FSU Physics Society LaTeX Introductory Tutorial -...

Preview:

Citation preview

FSU Physics Society LaTeX Introductory Tutorial

Dr.JasonOsborne(FSUMathematics)

December3,2008

Header:

Compiling a .tex file:

• Option A (Command Line: foo.tex ! foo.dvi ! foo.ps ! foo.pdf)

1. latex foo.tex (foo.dvi now exists)2. dvips -Ppdf foo.dvi (foo.ps now exists)3. ps2pdf foo.ps (foo.pdf now exists)

• Option B (Use you editors ”Texing” buttons)

Math Environments: displaymath, equation, and eqnarray

Tables:

Figures: graphicx package and includegraphics command

Note:graphicxpackage

Multiple Figures: subfigure package and subfigure command

Note:subfigurepackage

Bibliography: SampleBibliography.bib and BibTex

SampleBibliography.bib

Compiling .tex and .bib files:

• Option A (Command Line: Latex, Bibtex, Latex, maybe even Latex)

1. latex foo.tex (foo.dvi now exists)2. bibtex foo.bib (foo.bbl and others now exist)3. latex foo.tex4. latex foo.tex5. .dvi ! .ps ! .pdf

• Option B (Use you editors ”Texing and BibTexing” buttons)

Physical Review B style files: revtex4.cls and apsrmp.bst

revtex4.cls

Usesapsrmp.bst

Common Mistakes 1

forgot \end{displaymath}

Common Mistakes 2

forgot \end{document}

Common Mistakes 3

Mismatch }. Add extra } after the ex

Common Mistakes 4

too many \end{displaymath} and no \end{document}

Latex Resources:

http://www.cs.utah.edu/~dakoop/latex_symbols.html

Thebook

Awebsite(HelmutKopkaandPatrickDaly)

Now Begin Discussion, Questions, and Real Time Examples

Thanks for your attention

Recommended