16
FSU Physics Society LaTeX Introductory Tutorial Dr. Jason Osborne (FSU Mathematics) December 3, 2008

FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Embed Size (px)

Citation preview

Page 1: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

FSU Physics Society LaTeX Introductory Tutorial

Dr.JasonOsborne(FSUMathematics)

December3,2008

Page 2: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Header:

Page 3: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

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)

Page 4: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Math Environments: displaymath, equation, and eqnarray

Page 5: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Tables:

Page 6: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Figures: graphicx package and includegraphics command

Note:graphicxpackage

Page 7: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Multiple Figures: subfigure package and subfigure command

Note:subfigurepackage

Page 8: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Bibliography: SampleBibliography.bib and BibTex

SampleBibliography.bib

Page 9: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

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)

Page 10: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

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

revtex4.cls

Usesapsrmp.bst

Page 11: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Common Mistakes 1

forgot \end{displaymath}

Page 12: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Common Mistakes 2

forgot \end{document}

Page 13: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Common Mistakes 3

Mismatch }. Add extra } after the ex

Page 14: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Common Mistakes 4

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

Page 15: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Latex Resources:

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

Thebook

Awebsite(HelmutKopkaandPatrickDaly)

Page 16: FSU Physics Society LaTeX Introductory Tutorial - BUmath.bu.edu/people/josborne/MA226and231/notes/... · FSU Physics Society LaTeX Introductory Tutorial Dr. ... • Here are a variety

Now Begin Discussion, Questions, and Real Time Examples

Thanks for your attention