introduction to latex - university of...
TRANSCRIPT
![Page 1: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/1.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Introduction to LATEX
Nobel [email protected]
01/11/2010
by Nobel Khandaker Introduction to LATEX
![Page 2: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/2.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Outline
1 Introduction
2 Basic Typesetting
3 Advanced Typesetting
4 References
by Nobel Khandaker Introduction to LATEX
![Page 3: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/3.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
What is LATEX ?
LATEX is a document preparation system for high-qualitytypesetting
LATEX is pronounced “lay-tech” or “lah-tech”, not “la-teks”
LATEX is most often used to produce technical or scientificdocuments, but it can be used for almost any form ofpublishing
by Nobel Khandaker Introduction to LATEX
![Page 4: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/4.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
What is LATEX ?
LATEX is a document preparation system for high-qualitytypesetting
LATEX is pronounced “lay-tech” or “lah-tech”, not “la-teks”
LATEX is most often used to produce technical or scientificdocuments, but it can be used for almost any form ofpublishing
by Nobel Khandaker Introduction to LATEX
![Page 5: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/5.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
What is LATEX ?
LATEX is a document preparation system for high-qualitytypesetting
LATEX is pronounced “lay-tech” or “lah-tech”, not “la-teks”
LATEX is most often used to produce technical or scientificdocuments, but it can be used for almost any form ofpublishing
by Nobel Khandaker Introduction to LATEX
![Page 6: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/6.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Why use LATEX ?
Professional result
Platform, version independent (Unix, Windows . . . )
Pre-set standard formats (for paper, thesis . . . )
Fast, professional math equations typesetting
Freely available
by Nobel Khandaker Introduction to LATEX
![Page 7: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/7.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Why use LATEX ?
Professional result
Platform, version independent (Unix, Windows . . . )
Pre-set standard formats (for paper, thesis . . . )
Fast, professional math equations typesetting
Freely available
by Nobel Khandaker Introduction to LATEX
![Page 8: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/8.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Why use LATEX ?
Professional result
Platform, version independent (Unix, Windows . . . )
Pre-set standard formats (for paper, thesis . . . )
Fast, professional math equations typesetting
Freely available
by Nobel Khandaker Introduction to LATEX
![Page 9: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/9.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Why use LATEX ?
Professional result
Platform, version independent (Unix, Windows . . . )
Pre-set standard formats (for paper, thesis . . . )
Fast, professional math equations typesetting
Freely available
by Nobel Khandaker Introduction to LATEX
![Page 10: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/10.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Why use LATEX ?
Professional result
Platform, version independent (Unix, Windows . . . )
Pre-set standard formats (for paper, thesis . . . )
Fast, professional math equations typesetting
Freely available
by Nobel Khandaker Introduction to LATEX
![Page 11: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/11.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Basic LATEX Work Flow I
by Nobel Khandaker Introduction to LATEX
![Page 12: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/12.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
What Do You Need to Process a LATEX Document?
LATEX Editor
Linux: Kile, EmacsWindows: WinEdt, LyXMac: LyX, Emacs
LATEX Compiler
Linux: LaTex, TexLiveWindows: MikTeXMac: TeXshop
LATEX Output Viewer
PDF: xpdf, Foxit (better than Acrobat!)PS: Ghostscript, GhostViewHTML: Web Browser
by Nobel Khandaker Introduction to LATEX
![Page 13: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/13.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
What Do You Need to Process a LATEX Document?
LATEX Editor
Linux: Kile, EmacsWindows: WinEdt, LyXMac: LyX, Emacs
LATEX Compiler
Linux: LaTex, TexLiveWindows: MikTeXMac: TeXshop
LATEX Output Viewer
PDF: xpdf, Foxit (better than Acrobat!)PS: Ghostscript, GhostViewHTML: Web Browser
by Nobel Khandaker Introduction to LATEX
![Page 14: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/14.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
What Do You Need to Process a LATEX Document?
LATEX Editor
Linux: Kile, EmacsWindows: WinEdt, LyXMac: LyX, Emacs
LATEX Compiler
Linux: LaTex, TexLiveWindows: MikTeXMac: TeXshop
LATEX Output Viewer
PDF: xpdf, Foxit (better than Acrobat!)PS: Ghostscript, GhostViewHTML: Web Browser
by Nobel Khandaker Introduction to LATEX
![Page 15: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/15.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Basic LATEX Work Flow II
by Nobel Khandaker Introduction to LATEX
![Page 16: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/16.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Hello World in LATEX
Example
\documentclass[12pt,letterpaper]{article}%include packages here%\usepackage{package}\begin{document}Hello world!\end{document}
by Nobel Khandaker Introduction to LATEX
![Page 17: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/17.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Basic Formatting in LATEX
Bold Text: \textbf{Bold Text }Italic Text: \emph{Italic Text }Spacing:
Many spaces = one spaceUse \\for newlineHit return twice for a new paragraph\newpage
Comments: % . . . your comments here . . .
Reserved Symbols: # $ % ˆ & { } ˜ \
by Nobel Khandaker Introduction to LATEX
![Page 18: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/18.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Mathematical Equations in LATEX
Use $ . . . $ or \begin{math} . . . \end{math} for includemathematical symbols, equations, etc.
Subscript and superscripts — xˆ2: x2 and x 2: x2
Fractions— \frac{a}{b}: ab
Radical— \sqrt{x}:√x
Many more symbols and operators are available
by Nobel Khandaker Introduction to LATEX
![Page 19: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/19.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Images and Figures in LATEX
Include .eps (postscript) images in LATEX for dvi output
Include .jpg, .png, and .gif images in LATEX for pdf output
Software: gimp: for converting images, DIA and xfig: fordrawing figures
graphicx package is required: \usepackage{graphicx}
Example
\begin{figure}\includegraphics[height=50%,width=50%]{filename.eps}\end{figure}
by Nobel Khandaker Introduction to LATEX
![Page 20: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/20.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Bibliography in LATEX I
Bibliography information is stored in a *.bib file, in Bibtexformat
To include and reference Bibliography:
Set referencing style\bibliographystyle{plain}Create reference section by \bibliography{bibfile with noextension}Cite reference inside the text by \cite{bibliography item}
by Nobel Khandaker Introduction to LATEX
![Page 21: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/21.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Bibliography in LATEX II
@book{Come95,author=“D. E. Comer”,title={Internetworking with TCP/IP: Principles, Protocolsand Architecture},publisher=“Prentice-Hall”,year=1995,volume=1,edition=“Third”}
by Nobel Khandaker Introduction to LATEX
![Page 22: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/22.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Other Useful Tools/Topics for LATEX
Bibliography Management: JabRef, Zotero
Very Helpful References for creating: Tables, Equation Arrays,Lists, etc.
Not So Short Introduction to LaTeXSimplified Introduction to LaTeXLaTeX Wikibook
Google is your friend
by Nobel Khandaker Introduction to LATEX
![Page 23: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/23.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Other Useful Tools/Topics for LATEX
Bibliography Management: JabRef, Zotero
Very Helpful References for creating: Tables, Equation Arrays,Lists, etc.
Not So Short Introduction to LaTeXSimplified Introduction to LaTeXLaTeX Wikibook
Google is your friend
by Nobel Khandaker Introduction to LATEX
![Page 24: Introduction to LaTeX - University of Nebraska–Lincolncse.unl.edu/~choueiry/S10-235/files/IntroductionToLaTeX.pdfNot So Short Introduction to LaTeX Simpli ed Introduction to LaTeX](https://reader034.vdocuments.us/reader034/viewer/2022051407/5af8b9cf7f8b9abd588bf868/html5/thumbnails/24.jpg)
IntroductionBasic Typesetting
Advanced TypesettingReferences
Other Useful Tools/Topics for LATEX
Bibliography Management: JabRef, Zotero
Very Helpful References for creating: Tables, Equation Arrays,Lists, etc.
Not So Short Introduction to LaTeXSimplified Introduction to LaTeXLaTeX Wikibook
Google is your friend
by Nobel Khandaker Introduction to LATEX