Sébastien Le Roux. not What I am not going to talk about The explanations are in my HowTo ! Check my web IPCMS Basic tutorial to programming.

Slides:



Advertisements
Similar presentations
Document preparation for project reports Rob Pooley
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
A complete citation, notecard, and outlining tool
Unit 3 Day 4 FOCS – Web Design. No Journal Entry.
Cascading Style Sheets
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Some LaTeX features By Andreas Grondoudis 1. Contents This week we'll look at some TeX features Before specifics – Already uploaded on my website; the.
XHTML Basics.
Introduction to Jeroen Buijs.
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Lab 3 Creating Reports and Tables.
Chapter 12: Network Programming Desktop Publishing Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors.
How to Open Microsoft Word Click Start Click All Programs Click Microsoft Office Click Microsoft Word 2013.
Creating Web Page Forms
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Welcome to the 3-day Workshop on > Presented by Saeid Abolfazli Faculty of Computer Science and IT University Malaya 23,24, and.
Copyright ©: SAMSUNG & Samsung Hope for Youth. All rights reserved Tutorials Software: Word processing Suitable for: Beginner Improver Advanced.
Wikispaces in Education Tutorial Jennifer Carrier Dorman
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
HTML (HyperText Markup Language)
Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.
Introduction to LaTeX Thomas Gorry. What is Latex?  A typesetting system used to produce professional looking documents.  Particularly good at handling.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
LATEXLATEX IPA – batch. LATEXLATEX  A document preparation system - pronounced as lay-tek  It is a markup and programming language created by.
Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Word 2007 Chapter 4: Share, Compare and Document Robert Grauer, Keith.
Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Word 2007 Chapter 4: Share, Compare and Document Robert Grauer, Keith.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
1 LaTeX For Dummies Mulugeta Gebregziabher Division of Biostatistics and Epidemiology MUSC April 4, 2011.
BRIEF A BRIEF Introduction to L A T E X For Physics Graduate Students Prof. L. S. Pinsky Physics Department University of Houston.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
HTML: Hyptertext Markup Language Doman’s Sections.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
LATEX B. R. Chandavarkar, Wireless Information Networking Group (WiNG), CSE Dept., NITK, Surathkal.
The References Tab contains tools that help users to easily create references, table of contents, indexes, captions, citations, footnotes, endnotes and.
CSE470 Software Engineering Fall Tools - Overview LaTeX – Tool to create documents RCS – Revision Control System, to maintain multiple versions.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Word 2007 Chapter 4: Share, Compare and Document Robert Grauer, Keith.
Chapter 5 More About LaTex. Packages A package, which takes the form of a file with a sty extension, can be used to alter formatting parameters, create.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
Wikispaces in Education Tutorial ESA, Region 2 Mary Teply Marge Hauser.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Positioning Objects with CSS and Tables
Laboratory Exercise # 10 – Microsoft Word Additional Topics Office Productivity Tools 1 Laboratory Exercise # 10 Microsoft Word Additional Topics Objectives:
1 PROJECT 3 WEB/HTML PROJECT USING NOTEPAD Management Information Systems, 9 th edition, By Raymond McLeod, Jr. and George P. Schell © 2004, Prentice Hall,
LaTex -Computer scientist named Donald Knuth developed the program called Tex, in 1978.(mainly focused on formulae) -Later a mathematician and computer.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
LATEX By GerardoVela 3/27/2015.
Sébastien Le Roux.
Computer Fundamentals
XHTML Basics.
LaTeX Tutorial.
XHTML Basics.
XHTML Basics.
Computers and Scientific Thinking David Reed, Creighton University
Benchmark Series Microsoft Word 2016 Level 2
Basic usage and packages of TEX
XHTML Basics.
A Very Short Introduction to LaTeX
Download from Zotero Home Page
XHTML Basics.
A high quality document preparation system
Welcome To Microsoft Word 2016
Presentation transcript:

Sébastien Le Roux

not What I am not going to talk about The explanations are in my HowTo ! Check my web IPCMS Basic tutorial to programming

Sébastien Le Roux What I am going to talk about

Sébastien Le Roux ? In 1977 started to develop the computer typesetting system In 1983 started to develop short for Lamport

Sébastien Le Roux is a document markup language, the writer uses plain text (as opposed to formatted text), relying on markup tagging conventions to:  Define the general structure of a document (such as book or article).  Stylize text throughout a document (such as bold and italic).  Insert objects in the document (such as tables and figures).  Add citations and cross-referencing. A distribution such as TeX Live, MiKTeX or MacTeX is used to produce an output file (such as PS, PDF or DVI) suitable for printing or digital distribution. The latest version of is called

Sébastien Le Roux WYSIWYG vs. With typical word processors such as Microsoft Word and LibreOffice Writer, (WYSIWYG editors "What You See Is What You Get") one immediately visualize the formatted text and the final shape of the document on the screen. With : It is required to learn a programming language, or at least part of it, which scares most of the potential candidates. Few steps are required to obtain the final manuscript using the source file(s) in language: The sequence of these steps is called compilation

Sébastien Le Roux

Structure of the « *.tex » file The document:  Is a basic text file  Must have the « *.tex » extension  Must follow the structure:

Sébastien Le Roux The document class – the first line of the « *.tex » file The command Option(s), Between [ ], Separated by «, » Option(s), Between [ ], Separated by «, » Class name The command Class name Among the default classes: article book letter …

Sébastien Le Roux  The APS (PRB, PRL) and the AIP (JCP, APL) use revtex4.1:  The IOP (JPCM, RPP) uses iopart:  The ACS uses achemso:  Elsevier journals use elsarticle: The document class – scientific editors Each scientific editor provides a class:

Sébastien Le Roux The document class - example

Sébastien Le Roux The preamble  After the \documentclass command line and before the \begin{document} command. The preamble contains:  Packages declaration = extensions that you need to use  Commands that:  you need to use in the preamble, these likely depend on the document class.  you need to create and use in the preamble.  you need to create to use in the main body of the manuscript.  Files that can be read by before processing the rest of the document

Sébastien Le Roux The main body  Between the \begin{document} and \end{document} commands. The main body contains:  Basic text  commands to: Insert a title Organize your document Insert a math equation Insert a table Insert an image Insert a list (like this one) Insert an enumeration Insert a reference to one of the above Insert a file Insert a bibliographic reference and a bibliography

Sébastien Le Roux Running = compiling the « *.tex » file  The tools that you will need: A text editor Working distributions of and extensions that you might want to use (BibTeX, LaTeX2HTML...)  The compilation process: Let us consider that you already prepared a file that contains your manuscript. This file has to be a basic text file with the extension « *.tex », ex: manuscript.tex To visualize the manuscript requires to build it using this source file that contains the commands and the text. This building process is called compilation, depending on your OS and the tool you are using to prepare your document this can be achieved using different methods …

Sébastien Le Roux The compilation process – using the command line  Use the latex command (twice !): It will produce 3 files (at least):  To produce a PS file:  To produce a PDF file:

Sébastien Le Roux The compilation process – using a graphical interface  Using tools dedicated to :  Texmaker  TEXnicCenter  TeXstudio  … Open Source Multi-platform (Linux, Windows, Mac)

Sébastien Le Roux Texmaker – main window

Sébastien Le Roux Texmaker – compilation options

Sébastien Le Roux Texmaker – main window

Sébastien Le Roux

Essentials ?  The commands  The environments  The packages  The files

Sébastien Le Roux  In a command starts by the \ symbol:  It can require an option, placed between {}  And even more than one: Commands

Sébastien Le Roux Creating your own command(s) Example: To define a new command To define a new command The name of the new command The name of the new command The action(s) of the new command The action(s) of the new command

Sébastien Le Roux Creating your own command(s) with option(s) Example: To color some text in green use the command: This in green ! To color some text in green use the command: \green{This in green !} \textcolor{col}{Text in color} Is the command to color some text using the color “col” Number of option(s) Call to option using #num

Sébastien Le Roux Environments …  In many commands exist, many of them being available without any particular requirement.  However many others can only be used inside what is called an environment, ie. a part of the document where the standard behavior of is modified to do particular things.  Use the \begin and \end commands: You can insert: equations, tables, figures …

Sébastien Le Roux.. and floating objects  Floating objects can be moved in the document independently from the main text body.  will handle floating objects to maintain the best possible presentation, however there may be times when you disagree.  In this case additional options, keyword letters and symbol, to the \begin command can be used to specify the position:

Sébastien Le Roux Example:.. and floating objects \begin{something}[htbp!] Option What it does h Put the object here, i.e. "approximately" the same point that in the source text. t Put the object at the top of the page. b Put the object at the bottom of the page. p Put the object on an isolated page. ! Override internal parameters to determine "good" positions (exact position). \begin{table}[h!] Will insert a table, [h!] = at the exact position it appears in the source text.

Sébastien Le Roux Packages Option(s), between [ ], and separated by «, » Option(s), between [ ], and separated by «, » The command to use a package The command to use a package The name of the package The name of the package The command to use a package The command to use a package The name of the package The name of the package  Add-on features for are known as packages. Dozens are pre-installed an can be used immediately.  A package is a file or collection of files containing extra commands and programming which add new styling features or modify those already existing.

Sébastien Le Roux Files  It can be cleaver to divide your file in several pieces, for example information regarding each of the different chapter of your thesis could be in different files.  Two different commands exist to insert a file in a document, the \input and the \include commands. \input{myfile} \include{myfile} Insert the file without condition:Insert the file on a new page: + activated / deactivate by: \includeonly{myfile} Note: myfile without « *.tex » extension

Sébastien Le Roux Files - examples

Sébastien Le Roux

Preparing the preamble

Sébastien Le Roux « Preamble.tex » - example

Sébastien Le Roux Preparing the manuscript \begin{document} We will focus on this part of the *.tex file \end{document}

Sébastien Le Roux Writing text  Special characters  Basic commands  Font size  Font style  Font color

Sébastien Le Roux Special characters considers some particular characters as commands: \#% ∼ {}$_ˆ& \ is the beginning of a command (ex: \napo ) # is used when creating commands % starts a comments, everything that follow on the same line is not interpreted, read or compiled by ∼ creates a non-breaking space { and } beginning and the end of a command or an environment $, _ and ˆ are used for mathematics & is used for tabular and table environments

Sébastien Le Roux Few basic, yet very useful commands

Sébastien Le Roux Font size

Sébastien Le Roux Font style

Sébastien Le Roux Font color The color name The text to be colored  The command to change the font color is: Where the color « col » has to be defined in the package « xcolor »  You might want to define your own colors using: The color name Coding RGB code, 3 numbers [0.0 – 1.0] separated by «, » RGB code, 3 numbers [0.0 – 1.0] separated by «, »

Sébastien Le Roux Before starting  Authoring, title, abstract …  Organizing the manuscript

Sébastien Le Roux Authoring, title and abstract

Sébastien Le Roux Organizing the manuscript – commands

Sébastien Le Roux Organizing the manuscript – usage Optional parameter to modify the section name in the Table Of Contents Optional parameter to modify the section name in the Table Of Contents Default section name Default section name Automatic numbering No numbering, using the * symbol

Sébastien Le Roux Organizing the manuscript – example

Sébastien Le Roux Writing the manuscript  Math and equations  Tables  Figures  Lists  Cross-referencing  Bibliography

Sébastien Le Roux Insert an equation  To insert a math equation use:  The simple, in-line, math mode: $ math here $ ( $ $ symbols)  The equation environment

Sébastien Le Roux Properties of the math mode  Text letters (a,A → z,Z) are written in italic (a,A → z,Z), however numbers, symbols and punctuation signs are written in standard roman characters.  Superscript writing using the ˆ character  Subscript writing using the _ character If no brackets, { }, are used, then only the first letter/symbol/number following the ˆ and the _ characters will be affected and upper-lower-scripted.

Sébastien Le Roux Math symbols  Many, many, many symbols are accessible using commands:

Sébastien Le Roux Insert a table  To insert a table use:  The table environment to insert a caption ( \caption{} )  The tabular environment to insert a column based layout:  l = left aligned column  c = centered column  r = right aligned column  p{2cm} = user specified column, 2 cm large  As many letters as columns in the tabular environment  In tabular environment the & symbol to separate columns  In tabular environment the \\ command end the line \begin{tabular}{lcrp{2cm}}

Sébastien Le Roux Insert a table - example

Sébastien Le Roux Insert a figure  To insert a figure use:  The figure environment to insert a caption ( \caption{} )  The \includegraphics command (by the graphicx package) Use Encapsulated Postscript « *.eps » images !!!

Sébastien Le Roux The \includegraphics command Optional parameters or keywords, between [ ] and separated by «, » Optional parameters or keywords, between [ ] and separated by «, » Image File name Image File name

Sébastien Le Roux Insert a list  To insert a list use:  the itemize environment  The \item command 1 2 3

Sébastien Le Roux Insert an enumeration  To insert an enumeration use:  the enumerate environment  The \item command 1 2 3

Sébastien Le Roux Cross-referencing  To insert a cross-reference use:  The \label command to create a keyword associated with an object, or a section of the manuscript.  The \ref command to make reference to the keyword and therefore to the object or the section it-self No numbering to be done ! Keywords must be unique !!!

Sébastien Le Roux Cross-referencing - example

Sébastien Le Roux Bibliography with To insert bibliographic references in your manuscript use the \cite command: To the keyword used in the \cite command corresponds an entry in the bibliography that you need to create. To achieve this goal you have two methods: The thebibliography environment + the \bibitem command BibTeX

Sébastien Le Roux The « thebibliography » environment Use the thebibliography environment where you want to insert the bibliography, references are defined using the \bibitem command The keywords of the \bibitem command have to be unique You need to define the layout and stylize the bibliography yourself The entries have to be listed in the order you want them to appear

Sébastien Le Roux Using BibTeX Use the \bibliographystyle and \bibliography commands where you want to insert the bibliography The \bibliographystyle command sets the style of the bibliography, it also defines how references are sorted. The \bibliography command tells to import the file biblio.bib (the.bib extension being added automatically) using BibTeX to create the bibliography. This so-called BibTeX file contains all the elements of the bibliography.

Sébastien Le Roux The BibTeX file « *.bib » BibTeX file contains all the elements of the bibliography, in the BibTeX format with entries that looks like: The first line starting with gives the document type, here an article (among others like: book, phdthesis, proceedings, conference...) and the associated keyword here old_work_b The next lines are the fields to describe the bibliographic reference.

Sébastien Le Roux Why is BibTeX so great ? Most of the scientific editors provide the BibTeX entries for their publications, which means that you only need to browse their web sites, find the page of the appropriate article, and copy- paste the entry in your own BibTeX file, then simply use the corresponding keyword in your manuscript. No matter the number of entries in the BibTeX file, and BibTeX will only use the ones cited in your article and ignore the others. You can use the same BibTeX file for all your works with this means that you just need to do prepare an entry the first time you need the reference, then simply recall the appropriate keyword. No need to take care of the order of the entries in the BibTeX file, the citations in your bibliography will be sorted automatically.

Sébastien Le Roux The compilation process with BibTeX For the command line: For Texmaker:

Sébastien Le Roux

Drawbacks Programming Patience Organization

Sébastien Le Roux Drawbacks – programming ?! It is obvious that the first thing about is that you need to learn a bit, to say the least, about programming. If your are not willing to spend some time learning how things are behind the curtains, well forget about

Sébastien Le Roux Because you will not see immediately the result of your work. Most people spend a lot of time going back and forth between the source file and the PDF file. Because you will waste time trying to find that f*****g command your are looking for. That is the way it is, I wish I could tell you that you will be fluent in by the end of the day, and the commands will come to you naturally. Nope. As everybody, and even after years of experience, you will still waste time to look for a particular command to do that particular thing you really need to do. Because when you will find that f*****g command it will not work. And you will need to take time to install the package that contains this precious command that you really need. Because the compilation will fail, many time... Drawbacks – patience ?!

Sébastien Le Roux Drawbacks – organization ?! To avoid to waste too much time debugging errors during the compilation process. The compilation will fail, many times, because of silly mistakes like: – Forget to use an \end command to close a \begin command. – To miss or have an extra symbol: {, [, ( – To miss or have an extra symbol: }, ], ) – To miss or have an extra symbol: $ – To miss or have an extra symbol: & Trying to find where the error comes from, will be time consuming, and as much as possible you want to avoid that. To keep your working directory clean enough to know what is going on. Think about creating sub-directory(ies) to sort and organize everything, it will be easier to find the information you might look for afterwards.

Sébastien Le Roux Advantages If you are not too scared already, then hope for you there is young Padawan ! Your ally is the force in, and a powerful ally it is! May the force in be with you ! It looks great ! It looks great ! No more journal layout problems ! No more journal layout problems ! Cross-referencing and biblio. made easy ! Cross-referencing and biblio. made easy ! You will save time, a lot of time ! You will save time, a lot of time !

Sébastien Le Roux

Any questions ???