SlideShare a Scribd company logo
1 of 20
Download to read offline
A L T X Tutorial
  A E

  Evangelos Milios

   March 15, 2004
What is L T X
        A E


• L T X is a typesetter.
  A E                      It is not WYSIWYG. It is not a word
  processor.


• Author specifies the structure of the document symbolically (in a
  mark-up language), without worrying about the formatting (like
  XML)


• L T X takes care of the formatting of the document according
   A E
  to the specified document style


• L T X files are text files, with mark-up for sectioning, equations,
   A E
  tables and figures.

                                                             1
Why is L T X better than Microsoft Word
         A E
for theses and papers?

• Professional quality typesetting of documents, and, in particular,
  equations


• Automatic numbering and crossreferencing of

  – references

  – figures and tables

  – equations

  – sections and pages


                                                              2
• Document style change from thesis to conference or journal pa-
  per is more or less trivial.


• Baseline font size change is trivial, and scales headings and equa-
  tions, too.


• Automatic placement of floating objects (figures and tables)


• Equations are not graphics. They are an integral part of the
  text.
• Automatic generation of

  – table of contents

  – list of figures

  – list of tables

  – index


• Archival: L T X files can be processed and printed decades later.
            A E
  L T X files cannot be corrupted!
  A E


• De facto standard for publishing scientific documents, especially
  medium-to-large ones.


• WYSIWYG products running on top of L T X exist, but they are
                                         A E
  expensive (US$450/single user). See: http://www.mackichan.com/
  → products → Scientific Word.
The L T X process
    A E

• Option 1 (open source):

  – The L T X file is processed with latex to generate a DVI file
        A E

  – The DVI file is processed with dvips to generate a Postscript
    file

  – The Postscript file can be:
    ∗ previewed using Ghostview

    ∗ printed

    ∗ converted to pdf format using command ps2pdf or Acro-
      bat Distiller.


• Option 2: The L T X file is processed with pdflatex to produce
                  A E
  a pdf file directly.
                                                          3
The L T X process
    A E


File.tex Latex or   File.dvi              File.dvi   Latex or File.dvi   Dvips    File.ps
         Pdflatex              Bibtex                Pdflatex            &
         (x2)       File.aux              File.bbl                       ps2pdf


                               Refs.bib               File.pdf




 • User provides: File.tex, Refs.bib


 • Files using latex: File.dvi, File.bbl, File.aux, File.ps
   Printable file: File.ps or convert to pdf via ps2pdf(UNIX) or
   Acrobat Distiller (Win))


 • Files using pdflatex: File.bbl, File.aux, File.pdf

                                                                                            4
How to get started with L T X
                        A E


 • Get hold of a thesis or paper in L T X
                                    A E



 • Use it as a template


 • Use

   – MikTeX for Windows

   – gnuemacs L T X editing mode on Unix, and the latex,
                 A E
     bibtex, dvips, ps2pdf or pdflatex, bibtex commands



                                                   5
A very simple L T X file
              A E
From “Getting Started with LT X”, by David R. Wilkins
                            A
                              E
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Index.html

documentclass[12pt]{article}
begin{document}

The foundations of the rigorous study of emph{analysis} were laid in the nineteenth century,
notably by the mathematicians Cauchy and Weierstrass. Central to the study of this subject
are the formal definitions of emph{limits} and emph{continuity}.

Let $D$ be a subset of $bf R$ and let $f colon D to mathbf{R}$ be a real-valued function on
$D$. The function $f$ is said to be emph{continuous} on $D$ if, for all $epsilon > 0$ and
for all $x in D$, there exists some $delta > 0$ (which may depend on $x$) such that if
$y in D$ satisfies
[ |y - x| < delta ]
then
[ |f(y) - f(x)| < epsilon. ]

One may readily verify that if $f$ and $g$ are continuous functions on $D$ then the functions
$f+g$, $f-g$ and $f.g$ are continuous. If in addition $g$ is everywhere non-zero then $f/g$
is continuous.

end{document}




                                                                                      6
And the file after typesetting
The foundations of the rigorous study of analysis were laid in the nineteenth century, notably by
the mathematicians Cauchy and Weierstrass. Central to the study of this subject are the formal
definitions of limits and continuity.

Let D be a subset of R and let f : D → R be a real-valued function on D. The function f is said to
be continuous on D if, for all > 0 and for all x ∈ D, there exists some δ > 0 (which may depend
on x) such that if y ∈ D satisfies
                                            |y − x| < δ
then
                                        |f (y) − f (x)| < .

One may readily verify that if f and g are continuous functions on D then the functions f + g,
f − g and f.g are continuous. If in addition g is everywhere non-zero then f /g is continuous.




                                                                                          7
Figures (photographs or diagrams) in L T X
                                     A E

 • Must be in encapsulated postscript (eps) (for latex) or pdf or
   jpeg format (for pdflatex)


 • Diagrams can be generated with a drawing program that can
   export into encapsulated postscript, e.g. CorelDraw, Dia, Pow-
   erpoint (Windows), Xfig (Unix), or print into pdf format.


 • Eps file is “included” into a L T X file using includegraphics
                                A E



 • Size and orientation can be adjusted with includegraphics


Example: Previous Figure made in CorelDraw, exported into eps/pdf,
included in latex file as:    includegraphics[scale=0.7]{./LatexProcessing}
latex will use the eps version, pdflatex will use the pdf version.
                                                                    8
Structure of a L T X file: preamble
               A E

documentclass[12pt]{article}

pagestyle{plain}
usepackage{graphicx}      % include macros for including eps or pdf figure files
usepackage{setspace}
onehalfspacing
%newcommand{comment}[1]{ {tiny {#1} } } % show comments, for editing
newcommand{comment}[1]{ } %hide comments, for final version
longdefinvis#1{}      % make text invisible

begin{document}}
title{Blah Blah ...}

author{
{em Student name, Evangelos Milios}
Faculty of Computer Science,
{tt {eem}@cs.dal.ca}}

date{}      % no date

maketitle      % make the title page here

begin{abstract}
blah, blah, ...
end{abstract}


                                                                                    9
Structure of a L T X file: body
               A E

section{Introduction} label{introduction}

blah, blah, ... In Section ref{bodyofwork},.... In Section ref{discussion}...

section{Body of work} label{bodyofwork}

blah, blah, ...

section{Discussion} label{discussion}

paragraph{Acknowledgements}
blah, blah,...

bibliographystyle{plain}
bibliography{reference}    % reference.bib contains the references

appendix
section{My code}
section{Excruciating details about my experiments}

tableofcontents

end{document}




                                                                                  10
References

• Placed in a bibliography file (.bib)


• Each reference has a key


• Cited in the text by cite{key}


• Bibliography section constructed and formatted automatically


• Items are numbered and correct numbers are placed in the text
  automatically


                                                          11
Example of a bib file
@BOOK{Lewis1998,
    AUTHOR = "H. Lewis and C. Papadimitriou",
    TITLE = "Elements of the Theory of Computation",
    PUBLISHER = "Prentice-Hall",
    YEAR = "1998",
    ADDRESS = "Upper Saddle River, NJ 07458"
    }

@ARTICLE{Muslea2001,
    AUTHOR = "I. Muslea and S. Minton and C. Knoblock.",
    TITLE = "Hierarchical Wrapper Induction for Semistructured Information Sources",
    JOURNAL = "Journal of Autonomous Agents and Multi-Agent Systems",
    VOLUME = "4",
    YEAR = "2001",
    PAGES = "93-114"
    }



Other types are available, too: INBOOK, TECHREPORT, INPRO-
CEEDINGS, ...


                                                                                       12
Slides in L T X
          A E

Recommended when you have equations and figures already in L T X
                                                             A E
(simple cutting and pasting between slides and thesis/paper)

The slides class:


  • Formats appropriately for slides


  • No floating bodies (figure, table)


  • Allows colours and overlays

Powerpoint-like effects are possible.

For Display, convert to pdf format and use Acrobat.

                                                           13
History of L T X
           A E

T X was created by Donald Knuth in the late seventies.
 E

L T X was written by Leslie Lamport as a more or less self-contained
 A E
set of macros for T X in the early eighties (1983).
                   E

At the same time (early eighties), the American Mathematical Soci-
ety developed AMS-T X, causing a split in the mathematical com-
                     E
munity.

In 1990, the AMS introduced AMS-L T X, splitting the community
                                A E
even further.

L T X2e was introduced in 1993, unifying L T X and AMS-L T X.
A E                                      A E           A E


In 1995, the AMS released version 1.2 of AMS-LaTeX built on top
of L T X2e.
   A E

Just what is T X? http://www.tug.org/whatis.html
              E
                                                              14
Summary

When to use L T X?
            A E



 • For a scientific document such as a thesis, textbook, monograph,
   or paper


 • For a document with a complex structure, bibliography and
   cross-references that will be revised several times


 • When typesetting of professional quality is required


 • Any document that you want to be able to read many years later


                                                            15
When not to use L T X?
                A E


 • For a letter or short memo of a short lifespan


 • For a short document with a simple structure and few and simple,
   or no, equations


 • Foreign language support may be limited. There is support for
   greek, arabic (arabtex), and Chinese.


What is L T X not good at?
        A E


 • Very small selection of fonts


 • Lack of control over the precise layout of the document
   (if you need it).
References

1. Tim Love: “Why L T X?”, September 2000, University of Cam-
                     A E
bridge, Department of Engineering
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/latex_advocacy.html
(compares L T X, Microsoft Word and Framemaker).
           A E


2. Allin Cottrell: “Word Processors: Stupid and Inefficient”, June
1999, http://www.ecn.wfu.edu/~cottrell/wp.html

3. Leslie Lamport: “A Document Preparation System, L T X: User’s
                                                   A E
Guide and Reference Manual”, Addison-Wesley, 1986.




                                                            16

More Related Content

What's hot

Linked Open Data: A simple how-to
Linked Open Data: A simple how-toLinked Open Data: A simple how-to
Linked Open Data: A simple how-tonvitucci
 
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force statusLDBC council
 
R programming for data science
R programming for data scienceR programming for data science
R programming for data scienceSovello Hildebrand
 
R programming Fundamentals
R programming  FundamentalsR programming  Fundamentals
R programming FundamentalsRagia Ibrahim
 
What_do_Knowledge_Graph_Embeddings_Learn.pdf
What_do_Knowledge_Graph_Embeddings_Learn.pdfWhat_do_Knowledge_Graph_Embeddings_Learn.pdf
What_do_Knowledge_Graph_Embeddings_Learn.pdfHeiko Paulheim
 
osm.cs.byu.edu
osm.cs.byu.eduosm.cs.byu.edu
osm.cs.byu.edubutest
 

What's hot (11)

Linked Open Data: A simple how-to
Linked Open Data: A simple how-toLinked Open Data: A simple how-to
Linked Open Data: A simple how-to
 
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
 
R programming by ganesh kavhar
R programming by ganesh kavharR programming by ganesh kavhar
R programming by ganesh kavhar
 
R programming
R programmingR programming
R programming
 
Incomplete Information in RDF
Incomplete Information in RDFIncomplete Information in RDF
Incomplete Information in RDF
 
R programming for data science
R programming for data scienceR programming for data science
R programming for data science
 
Unit 08 dbms
Unit 08 dbmsUnit 08 dbms
Unit 08 dbms
 
R programming Fundamentals
R programming  FundamentalsR programming  Fundamentals
R programming Fundamentals
 
What_do_Knowledge_Graph_Embeddings_Learn.pdf
What_do_Knowledge_Graph_Embeddings_Learn.pdfWhat_do_Knowledge_Graph_Embeddings_Learn.pdf
What_do_Knowledge_Graph_Embeddings_Learn.pdf
 
Tree
TreeTree
Tree
 
osm.cs.byu.edu
osm.cs.byu.eduosm.cs.byu.edu
osm.cs.byu.edu
 

Viewers also liked

Second Magazine Analysis
Second Magazine AnalysisSecond Magazine Analysis
Second Magazine Analysisguest0f911b
 
XSD%20and%20jCAM%20tutorial
XSD%20and%20jCAM%20tutorialXSD%20and%20jCAM%20tutorial
XSD%20and%20jCAM%20tutorialtutorialsruby
 
W A L K I N G T O W E L L N E S S H O L I S T I C V I E W D R S H R I N...
W A L K I N G  T O  W E L L N E S S  H O L I S T I C  V I E W  D R  S H R I N...W A L K I N G  T O  W E L L N E S S  H O L I S T I C  V I E W  D R  S H R I N...
W A L K I N G T O W E L L N E S S H O L I S T I C V I E W D R S H R I N...drsolapurkar
 
Blossoming Together Dr. Shriniwas Kashalikar
Blossoming Together Dr. Shriniwas KashalikarBlossoming Together Dr. Shriniwas Kashalikar
Blossoming Together Dr. Shriniwas Kashalikardrsolapurkar
 
Viral Marketing v praxi by ZARAGUZA .Com
Viral Marketing v praxi by ZARAGUZA .ComViral Marketing v praxi by ZARAGUZA .Com
Viral Marketing v praxi by ZARAGUZA .ComZARAGUZA DIGITAL
 
Jni攻略之九――操作异常
Jni攻略之九――操作异常Jni攻略之九――操作异常
Jni攻略之九――操作异常yiditushe
 
Opportunities with mobile applications from Wireless Expertise
Opportunities with mobile applications from Wireless ExpertiseOpportunities with mobile applications from Wireless Expertise
Opportunities with mobile applications from Wireless ExpertiseAnuj R KHANNA
 
由一个简单的程序谈起--之四
由一个简单的程序谈起--之四由一个简单的程序谈起--之四
由一个简单的程序谈起--之四yiditushe
 
SW_Documentation_GRASS
SW_Documentation_GRASSSW_Documentation_GRASS
SW_Documentation_GRASStutorialsruby
 

Viewers also liked (20)

M.S.Transcript
M.S.TranscriptM.S.Transcript
M.S.Transcript
 
Second Magazine Analysis
Second Magazine AnalysisSecond Magazine Analysis
Second Magazine Analysis
 
XSD%20and%20jCAM%20tutorial
XSD%20and%20jCAM%20tutorialXSD%20and%20jCAM%20tutorial
XSD%20and%20jCAM%20tutorial
 
os-php-wiki5-a4
os-php-wiki5-a4os-php-wiki5-a4
os-php-wiki5-a4
 
11 17 Retaining Walls
11 17 Retaining Walls11 17 Retaining Walls
11 17 Retaining Walls
 
W A L K I N G T O W E L L N E S S H O L I S T I C V I E W D R S H R I N...
W A L K I N G  T O  W E L L N E S S  H O L I S T I C  V I E W  D R  S H R I N...W A L K I N G  T O  W E L L N E S S  H O L I S T I C  V I E W  D R  S H R I N...
W A L K I N G T O W E L L N E S S H O L I S T I C V I E W D R S H R I N...
 
Blossoming Together Dr. Shriniwas Kashalikar
Blossoming Together Dr. Shriniwas KashalikarBlossoming Together Dr. Shriniwas Kashalikar
Blossoming Together Dr. Shriniwas Kashalikar
 
Well Done Award
Well Done AwardWell Done Award
Well Done Award
 
MBA Colour
MBA ColourMBA Colour
MBA Colour
 
Viral Marketing v praxi by ZARAGUZA .Com
Viral Marketing v praxi by ZARAGUZA .ComViral Marketing v praxi by ZARAGUZA .Com
Viral Marketing v praxi by ZARAGUZA .Com
 
Jni攻略之九――操作异常
Jni攻略之九――操作异常Jni攻略之九――操作异常
Jni攻略之九――操作异常
 
M. GIEBEL RESUME.PDF
M. GIEBEL RESUME.PDFM. GIEBEL RESUME.PDF
M. GIEBEL RESUME.PDF
 
Opportunities with mobile applications from Wireless Expertise
Opportunities with mobile applications from Wireless ExpertiseOpportunities with mobile applications from Wireless Expertise
Opportunities with mobile applications from Wireless Expertise
 
NutritionCamp. Water management and climate change - Luca Ruini
NutritionCamp. Water management and climate change - Luca RuiniNutritionCamp. Water management and climate change - Luca Ruini
NutritionCamp. Water management and climate change - Luca Ruini
 
SWtrngGB
SWtrngGBSWtrngGB
SWtrngGB
 
Australia
AustraliaAustralia
Australia
 
由一个简单的程序谈起--之四
由一个简单的程序谈起--之四由一个简单的程序谈起--之四
由一个简单的程序谈起--之四
 
SW_Documentation_GRASS
SW_Documentation_GRASSSW_Documentation_GRASS
SW_Documentation_GRASS
 
Wapflow
WapflowWapflow
Wapflow
 
Winter09TECH
Winter09TECHWinter09TECH
Winter09TECH
 

Similar to LatexTutorial

latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.pptTapasPal34
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginnersKaushik Naik
 
Editing documents with LaTeX
Editing documents with LaTeXEditing documents with LaTeX
Editing documents with LaTeXLaura M. Castro
 
latex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Techlatex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.TechSandhya Gandham
 
LaTeX for B.Sc. Mathematics,an introduction
LaTeX for B.Sc. Mathematics,an introductionLaTeX for B.Sc. Mathematics,an introduction
LaTeX for B.Sc. Mathematics,an introductionjayakumarc9
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptrajinooka
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptanandmaheshwari15
 
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...akuysal1
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptTaraLeander
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptGhufranKhan42
 
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptIntroduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptAmit Bairwa
 

Similar to LatexTutorial (20)

latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
latex_intro.ppt
latex_intro.pptlatex_intro.ppt
latex_intro.ppt
 
Inroduction to Latex
Inroduction to LatexInroduction to Latex
Inroduction to Latex
 
Latex intro
Latex introLatex intro
Latex intro
 
Document typesetting using LateX
Document typesetting using LateXDocument typesetting using LateX
Document typesetting using LateX
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
Editing documents with LaTeX
Editing documents with LaTeXEditing documents with LaTeX
Editing documents with LaTeX
 
Learn Latex
Learn LatexLearn Latex
Learn Latex
 
latex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Techlatex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Tech
 
LaTeX for B.Sc. Mathematics,an introduction
LaTeX for B.Sc. Mathematics,an introductionLaTeX for B.Sc. Mathematics,an introduction
LaTeX for B.Sc. Mathematics,an introduction
 
Latex Notes
Latex NotesLatex Notes
Latex Notes
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptIntroduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).ppt
 

More from tutorialsruby

&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
 
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>tutorialsruby
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 

More from tutorialsruby (20)

&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
 
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 

LatexTutorial

  • 1. A L T X Tutorial A E Evangelos Milios March 15, 2004
  • 2. What is L T X A E • L T X is a typesetter. A E It is not WYSIWYG. It is not a word processor. • Author specifies the structure of the document symbolically (in a mark-up language), without worrying about the formatting (like XML) • L T X takes care of the formatting of the document according A E to the specified document style • L T X files are text files, with mark-up for sectioning, equations, A E tables and figures. 1
  • 3. Why is L T X better than Microsoft Word A E for theses and papers? • Professional quality typesetting of documents, and, in particular, equations • Automatic numbering and crossreferencing of – references – figures and tables – equations – sections and pages 2
  • 4. • Document style change from thesis to conference or journal pa- per is more or less trivial. • Baseline font size change is trivial, and scales headings and equa- tions, too. • Automatic placement of floating objects (figures and tables) • Equations are not graphics. They are an integral part of the text.
  • 5. • Automatic generation of – table of contents – list of figures – list of tables – index • Archival: L T X files can be processed and printed decades later. A E L T X files cannot be corrupted! A E • De facto standard for publishing scientific documents, especially medium-to-large ones. • WYSIWYG products running on top of L T X exist, but they are A E expensive (US$450/single user). See: http://www.mackichan.com/ → products → Scientific Word.
  • 6. The L T X process A E • Option 1 (open source): – The L T X file is processed with latex to generate a DVI file A E – The DVI file is processed with dvips to generate a Postscript file – The Postscript file can be: ∗ previewed using Ghostview ∗ printed ∗ converted to pdf format using command ps2pdf or Acro- bat Distiller. • Option 2: The L T X file is processed with pdflatex to produce A E a pdf file directly. 3
  • 7. The L T X process A E File.tex Latex or File.dvi File.dvi Latex or File.dvi Dvips File.ps Pdflatex Bibtex Pdflatex & (x2) File.aux File.bbl ps2pdf Refs.bib File.pdf • User provides: File.tex, Refs.bib • Files using latex: File.dvi, File.bbl, File.aux, File.ps Printable file: File.ps or convert to pdf via ps2pdf(UNIX) or Acrobat Distiller (Win)) • Files using pdflatex: File.bbl, File.aux, File.pdf 4
  • 8. How to get started with L T X A E • Get hold of a thesis or paper in L T X A E • Use it as a template • Use – MikTeX for Windows – gnuemacs L T X editing mode on Unix, and the latex, A E bibtex, dvips, ps2pdf or pdflatex, bibtex commands 5
  • 9. A very simple L T X file A E From “Getting Started with LT X”, by David R. Wilkins A E http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Index.html documentclass[12pt]{article} begin{document} The foundations of the rigorous study of emph{analysis} were laid in the nineteenth century, notably by the mathematicians Cauchy and Weierstrass. Central to the study of this subject are the formal definitions of emph{limits} and emph{continuity}. Let $D$ be a subset of $bf R$ and let $f colon D to mathbf{R}$ be a real-valued function on $D$. The function $f$ is said to be emph{continuous} on $D$ if, for all $epsilon > 0$ and for all $x in D$, there exists some $delta > 0$ (which may depend on $x$) such that if $y in D$ satisfies [ |y - x| < delta ] then [ |f(y) - f(x)| < epsilon. ] One may readily verify that if $f$ and $g$ are continuous functions on $D$ then the functions $f+g$, $f-g$ and $f.g$ are continuous. If in addition $g$ is everywhere non-zero then $f/g$ is continuous. end{document} 6
  • 10. And the file after typesetting The foundations of the rigorous study of analysis were laid in the nineteenth century, notably by the mathematicians Cauchy and Weierstrass. Central to the study of this subject are the formal definitions of limits and continuity. Let D be a subset of R and let f : D → R be a real-valued function on D. The function f is said to be continuous on D if, for all > 0 and for all x ∈ D, there exists some δ > 0 (which may depend on x) such that if y ∈ D satisfies |y − x| < δ then |f (y) − f (x)| < . One may readily verify that if f and g are continuous functions on D then the functions f + g, f − g and f.g are continuous. If in addition g is everywhere non-zero then f /g is continuous. 7
  • 11. Figures (photographs or diagrams) in L T X A E • Must be in encapsulated postscript (eps) (for latex) or pdf or jpeg format (for pdflatex) • Diagrams can be generated with a drawing program that can export into encapsulated postscript, e.g. CorelDraw, Dia, Pow- erpoint (Windows), Xfig (Unix), or print into pdf format. • Eps file is “included” into a L T X file using includegraphics A E • Size and orientation can be adjusted with includegraphics Example: Previous Figure made in CorelDraw, exported into eps/pdf, included in latex file as: includegraphics[scale=0.7]{./LatexProcessing} latex will use the eps version, pdflatex will use the pdf version. 8
  • 12. Structure of a L T X file: preamble A E documentclass[12pt]{article} pagestyle{plain} usepackage{graphicx} % include macros for including eps or pdf figure files usepackage{setspace} onehalfspacing %newcommand{comment}[1]{ {tiny {#1} } } % show comments, for editing newcommand{comment}[1]{ } %hide comments, for final version longdefinvis#1{} % make text invisible begin{document}} title{Blah Blah ...} author{ {em Student name, Evangelos Milios} Faculty of Computer Science, {tt {eem}@cs.dal.ca}} date{} % no date maketitle % make the title page here begin{abstract} blah, blah, ... end{abstract} 9
  • 13. Structure of a L T X file: body A E section{Introduction} label{introduction} blah, blah, ... In Section ref{bodyofwork},.... In Section ref{discussion}... section{Body of work} label{bodyofwork} blah, blah, ... section{Discussion} label{discussion} paragraph{Acknowledgements} blah, blah,... bibliographystyle{plain} bibliography{reference} % reference.bib contains the references appendix section{My code} section{Excruciating details about my experiments} tableofcontents end{document} 10
  • 14. References • Placed in a bibliography file (.bib) • Each reference has a key • Cited in the text by cite{key} • Bibliography section constructed and formatted automatically • Items are numbered and correct numbers are placed in the text automatically 11
  • 15. Example of a bib file @BOOK{Lewis1998, AUTHOR = "H. Lewis and C. Papadimitriou", TITLE = "Elements of the Theory of Computation", PUBLISHER = "Prentice-Hall", YEAR = "1998", ADDRESS = "Upper Saddle River, NJ 07458" } @ARTICLE{Muslea2001, AUTHOR = "I. Muslea and S. Minton and C. Knoblock.", TITLE = "Hierarchical Wrapper Induction for Semistructured Information Sources", JOURNAL = "Journal of Autonomous Agents and Multi-Agent Systems", VOLUME = "4", YEAR = "2001", PAGES = "93-114" } Other types are available, too: INBOOK, TECHREPORT, INPRO- CEEDINGS, ... 12
  • 16. Slides in L T X A E Recommended when you have equations and figures already in L T X A E (simple cutting and pasting between slides and thesis/paper) The slides class: • Formats appropriately for slides • No floating bodies (figure, table) • Allows colours and overlays Powerpoint-like effects are possible. For Display, convert to pdf format and use Acrobat. 13
  • 17. History of L T X A E T X was created by Donald Knuth in the late seventies. E L T X was written by Leslie Lamport as a more or less self-contained A E set of macros for T X in the early eighties (1983). E At the same time (early eighties), the American Mathematical Soci- ety developed AMS-T X, causing a split in the mathematical com- E munity. In 1990, the AMS introduced AMS-L T X, splitting the community A E even further. L T X2e was introduced in 1993, unifying L T X and AMS-L T X. A E A E A E In 1995, the AMS released version 1.2 of AMS-LaTeX built on top of L T X2e. A E Just what is T X? http://www.tug.org/whatis.html E 14
  • 18. Summary When to use L T X? A E • For a scientific document such as a thesis, textbook, monograph, or paper • For a document with a complex structure, bibliography and cross-references that will be revised several times • When typesetting of professional quality is required • Any document that you want to be able to read many years later 15
  • 19. When not to use L T X? A E • For a letter or short memo of a short lifespan • For a short document with a simple structure and few and simple, or no, equations • Foreign language support may be limited. There is support for greek, arabic (arabtex), and Chinese. What is L T X not good at? A E • Very small selection of fonts • Lack of control over the precise layout of the document (if you need it).
  • 20. References 1. Tim Love: “Why L T X?”, September 2000, University of Cam- A E bridge, Department of Engineering http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/latex_advocacy.html (compares L T X, Microsoft Word and Framemaker). A E 2. Allin Cottrell: “Word Processors: Stupid and Inefficient”, June 1999, http://www.ecn.wfu.edu/~cottrell/wp.html 3. Leslie Lamport: “A Document Preparation System, L T X: User’s A E Guide and Reference Manual”, Addison-Wesley, 1986. 16