SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 
Tree
TreeTree
Tree
 
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
 
osm.cs.byu.edu
osm.cs.byu.eduosm.cs.byu.edu
osm.cs.byu.edu
 

Andere mochten auch

Proj educativo de escola mpsmcasanova
Proj educativo de escola mpsmcasanovaProj educativo de escola mpsmcasanova
Proj educativo de escola mpsmcasanovaMaria Casanova
 
Media Thriller Opening
Media Thriller OpeningMedia Thriller Opening
Media Thriller OpeningMissCTurner
 
Transformers 4 Prowls Flashback Remastered
Transformers 4 Prowls Flashback RemasteredTransformers 4 Prowls Flashback Remastered
Transformers 4 Prowls Flashback RemasteredRyan Sadler
 
USC Gerentology Certificate
USC Gerentology CertificateUSC Gerentology Certificate
USC Gerentology CertificateWALTER SCHLOMANN
 
Multicultural Marketing Conference
Multicultural Marketing ConferenceMulticultural Marketing Conference
Multicultural Marketing ConferenceEric Floresca
 
由Hash Set谈重用
由Hash Set谈重用由Hash Set谈重用
由Hash Set谈重用yiditushe
 
V A L U E E D U C A T I O N & N A M A S M A R A N D R
V A L U E  E D U C A T I O N &  N A M A S M A R A N  D RV A L U E  E D U C A T I O N &  N A M A S M A R A N  D R
V A L U E E D U C A T I O N & N A M A S M A R A N D Rdrsolapurkar
 
CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11
CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11
CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11Maria Raju
 
Challenges in Scaling & Globalization of a Web Application - The Slideshare E...
Challenges in Scaling & Globalization of a Web Application - The Slideshare E...Challenges in Scaling & Globalization of a Web Application - The Slideshare E...
Challenges in Scaling & Globalization of a Web Application - The Slideshare E...Amit Ranjan
 
Face Tattoo Source Article
Face Tattoo Source ArticleFace Tattoo Source Article
Face Tattoo Source ArticleLulaine Compere
 

Andere mochten auch (14)

Proj educativo de escola mpsmcasanova
Proj educativo de escola mpsmcasanovaProj educativo de escola mpsmcasanova
Proj educativo de escola mpsmcasanova
 
Ejb方面
Ejb方面Ejb方面
Ejb方面
 
ruby3_6up
ruby3_6upruby3_6up
ruby3_6up
 
Media Thriller Opening
Media Thriller OpeningMedia Thriller Opening
Media Thriller Opening
 
Transformers 4 Prowls Flashback Remastered
Transformers 4 Prowls Flashback RemasteredTransformers 4 Prowls Flashback Remastered
Transformers 4 Prowls Flashback Remastered
 
USC Gerentology Certificate
USC Gerentology CertificateUSC Gerentology Certificate
USC Gerentology Certificate
 
Problemas act 2.1
Problemas act 2.1Problemas act 2.1
Problemas act 2.1
 
Why Chemistry and the Web Will Benefit from a ChemSpider
Why Chemistry and the Web Will Benefit from a ChemSpiderWhy Chemistry and the Web Will Benefit from a ChemSpider
Why Chemistry and the Web Will Benefit from a ChemSpider
 
Multicultural Marketing Conference
Multicultural Marketing ConferenceMulticultural Marketing Conference
Multicultural Marketing Conference
 
由Hash Set谈重用
由Hash Set谈重用由Hash Set谈重用
由Hash Set谈重用
 
V A L U E E D U C A T I O N & N A M A S M A R A N D R
V A L U E  E D U C A T I O N &  N A M A S M A R A N  D RV A L U E  E D U C A T I O N &  N A M A S M A R A N  D R
V A L U E E D U C A T I O N & N A M A S M A R A N D R
 
CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11
CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11
CERT - EXXONMOBIL - RECORD MANAGEMENT - PART 11
 
Challenges in Scaling & Globalization of a Web Application - The Slideshare E...
Challenges in Scaling & Globalization of a Web Application - The Slideshare E...Challenges in Scaling & Globalization of a Web Application - The Slideshare E...
Challenges in Scaling & Globalization of a Web Application - The Slideshare E...
 
Face Tattoo Source Article
Face Tattoo Source ArticleFace Tattoo Source Article
Face Tattoo Source Article
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Kürzlich hochgeladen (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

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