1 / 16

For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA 9

A Very Short Introduction to LaTeX . For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA 95064. What are TeX and LaTeX?. LaTeX is a typesetting systems suitable for producing scientific and mathematical documents

lynch
Download Presentation

For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA 9

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Very Short Introduction to LaTeX For AMS 200, 2009 Dept. of Applied Math & StatisticsSchool of Engineering University of CaliforniaSanta Cruz, CA 95064

  2. What are TeX and LaTeX? • LaTeX is a typesetting systems suitable for producing scientific and mathematical documents • LaTeX enables authors to typeset and print their work at the highest typographical quality. • LaTeX is pronounced “Lay-tech”. • LaTeX uses TeX formatter as its typesetting engine. • TeX is a program written by Donald Kunth for typesetting text and mathematical formulas

  3. Why Use LaTeX? Word • High quality • Easy to use, especially for typing mathematical formulas • Portability (Windows, Unix, Mac) • Stability and interchangeability (Office 97 Office 2000) • Most journals have their LaTeX styles (just download and use them). • Final reason: most likely, you will be forced to use it, since everyone else around you is using it. LaTeX

  4. Process to Create a Document Using LaTeX TeX input file file.tex Your source LaTeX document Run LaTeX program DVI file file.dvi Device independent output Run Device Driver Unix Commands > latex file.tex > xdiv file.dvi > dvips file.dvi > pdflatex file.tex runs latex previewer creates .ps creates .pdf directly Out input file file.ps or file.pdf

  5. How to Setup LaTeX for Windows • Download and install MikTeX • http://www.miktex.org/ • Install Ghostscript and Gsview http://pages.cs.wisc.edu/~ghost/ • Install Acrobat Reader • Install Editor • WinEdt • http://www.winedt.com/ • TexnicCenter • http://www.texniccenter.org/ • Emacs, vi, etc. LaTeX package PS device driver … For MAC Users TeXShop iTexMac Texmaker …

  6. How to Use LaTeX to Create Documents • Start with a skeleton document (create it by yourself, get it from you classmates, download it from journals’ website) • Fill stuff (text, formula, figure, table …) into your skeleton document • Run LaTeX to generate output and make modifications • Learn as you go • The not so short introduction to LaTeX2e • http://tobi.oetiker.ch/lshort/lshort.pdf • Comprehensive TeX archive network • http://www.ctan.org/ • Beginning LaTeX • http://www.cs.cornell.edu/Info/Misc/LaTeX-Tutorial/LaTeX-Home.html • Google

  7. Basic Structure of LaTeX Document Define the types of the document (article, book, thesis …) \documentclass [12pt]{article} \usepackage {color} \usepackage {graphicx} \begin{document} \end{document} Preamble. Incorporate packages or define macros here Main body, stuff to be printed, title, authors, abstract, sections, references, ….

  8. Title/Author Information and Document Structure \begin{document} \title {A Very Simple Introduction to LaTeX} \author {names} \thanks{AMS UCSC} … \maketitle … \section{Introduction} \subsection{Subsection Heading Here} \end{document}

  9. Example Document From IEEE • Suppose you want to write a paper for IEEE journals • Download LaTeX template from IEEE website • http://www.ieee.org/web/publications/authors/transjnl/index.html • Open example LaTeX file (bare_jrnl.tex) and modify it • No need to worry about things like margin, font, … bare_jrnl.tex click to open it in TeXShop

  10. Standard Environments \begin{env_name} stuff \end{enc_name} Environment name (env_name) can be document, itemize, enumerate, tabular, etc. \begin{itemize} \item The first item \item The second item \end{itemize} \begin{enumerate} \item The first item \item The second item \end{enumerate}

  11. How to Input Math Formulas • Use \( … \) for in-line and \[ … \] for displaying math formulas • Spaces inside \( … \) and \[ … \] are ignored. If needed, use “\ ” to add space • Use \mbox{…} for words inside math formulas

  12. Figures You can insert figures in pdf, jpg, eps, and other formats into your document. \begin{figure} \centering \includegraphics {name of the figure file} \caption{Put the caption here} \end{figure} Multiple figures can be inserted using \subfigure

  13. Cross Referencing LaTeX generates numbers for Theorem, Equation, Section, Figure and other environments automatically. You can access them with \label and \ref \section{Introduction} \label{sec:intro} …. In Section \ref{sec:intro}, we ….

  14. Reference and Citation The \thebibliography environment produces a bibliography or reference list. In the article style, this reference list is labeled "References"; in the report style, it is labeled "Bibliography". \begin{thebibliography} {widest-label} \bibitem[label]{cite_key} . . . \end{thebibliography} widest-label: Text that, when printed, is approximately as wide as the widest item label produces by the \bibitem commands.

  15. Reference and Citation If you know you have between 10 and 99 publications, you can start with \begin{thebibliography}[99]. Use any two digit number in the argument, since all numerals are the same width. If you are using customized labels, put the longest label in argument, i.e., type \begin{thebibliography}[Longest-name]

  16. Reference and Citation \begin{thebibliography} {widest-label} \bibitem[label]{cite_key} . . . \end{thebibliography} • cite_key is used to cite publication inside the document. • To cite a publication from the reference list, use the \cite command. • The argument to \cite may be one key, or two or more keys, separated by commas. You can also use bibTeX package to generate reference list http://www.hep.manchester.ac.uk/u/jenny/jcwdocs/latex/bibtexbasics.html

More Related