Gregory Ditzler
December 04, 2013

# Introduction to LaTeX

#### Gregory Ditzler

December 04, 2013

## Transcript

1. ### An Introduction to Typesetting with L A TEX Sponsored by

IGSA, DIG, and GSA Gregory Ditzler Drexel University PhD Candidate Vice President of DIG Dept. of Electrical & Computer Engineering Gregory Ditzler (Drexel University) L ATEXTutorial 1 / 20
2. ### What is L A TEX? L A TEXand Typesetting According

to Wikipedia, L A TEX is a “document preparation system and document markup language” extends the TEX typesetting system well-suited for the production of long articles, books and theses easy to learn, but there is a bit of a learning curve documents can be prepared with a simple text editor (e.g., Vim, Emacs) Central Idea: focus on the content of the document, not the presentation of the document central diﬀerence between typesetting and document processing! typesetting lets the user focus on the logical structure of their document rather than the initial presentation. Is L A TEX only for word-like documents? No. It can be used for presentations and posters too! Word Processor vs. L A TEX Word processors, such as Word and Pages, integrate all document processing operations into a single computer program. The formatting, display, and ﬁnal output is all presented in the same program. By formatting we mean deﬁning lines, sections, paragraphs, chapters, . . . Typesetting with L A TEX only focused on formatting the document. Content not presentation! input text into the document deﬁning the structure compile the document view output (i.e., DVI, PDF, PS) Gregory Ditzler (Drexel University) L ATEXTutorial 2 / 20
3. ### More L A TEX What type of tools do you

recommend? Editors/GUIs: TeXShop (Mac), TeXworks (Linux/Windows), Texmaker (Mac/Linux/Windows) At the end of the day, all you really need is a simple text editor Bibliography: BibDesk (Mac), JabRef (Linux/Windows) BibDesk and JabRef can act as na¨ ıve reference managers. Other tools, such as Mendelay and Endnote, can export to the bibtex ﬁle format. Getting help: http://google.com Advantages / Disadvantages Pros: great for large documents (journals, theses, books), beautiful mathematics, consistent formatting, great ﬁgure generation tools Cons: learning curve, not for those work a nit-picky about the absolute appearance of their document, grammar/spell checker (?). Gregory Ditzler (Drexel University) L ATEXTutorial 3 / 20
4. ### My L A TEX Setup Gregory Ditzler (Drexel University) L

ATEXTutorial 4 / 20
5. ### More L A TEX advantages auto title pages auto table

of contents auto table of ﬁgures auto table of tables easy macros easy to customize write “sub”-documents easy to keep track of references light weight within document links superior quality cost (ugh, free!) Time Saver: Changing from one document format to another could be as simple as changing a few lines of code rather than the format to the entire document. Gregory Ditzler (Drexel University) L ATEXTutorial 5 / 20

18. ### Citations Using Citations BibTex is the easiest way to handle

citations in your document. There are may reference managers freely available that handle the BibTex format without actually view the BibTex format. (I’ll show you a demo) A citation package must be added to the top of your document. I recommend using cite or natbib. Depending on the reference style would call for one of the packages over the other (i.e., APA, Chicago, IEEE, . . . ). Like other types of references, each citation has a label that is called when you want to make a citation. For example, if I wanted to cite my recent IEEE Transactions on Knowledge & Data Engineering article I would use something like \cite{Ditzler2013TKDE} Just add the following lines before \end{document} \bibliographystyle{ieeetr} \bibliography{myrefs} Gregory Ditzler (Drexel University) L ATEXTutorial 18 / 20
19. ### Working with Large Documents Handling Multiple Files Working with very

large documents is very diﬃcult with programs such as Word. It becomes increasingly diﬃcult as you add many ﬁgures into the document (such as a thesis). All chapters, sections, subsections, . . . are located in the same document. Recall that a L A TEX document is simply a text ﬁle. Doesn’t get too much more light weight than that! the logical structure of a document may contain several diﬀerent sub-levels L A TEX allows authors to write their document with multiple ﬁles and combine them together. This keeps the user from ending up with 1000+ line text ﬁles. \documentclass{article} \begin{document} \title{Our First Document} \author{You and I} \maketitle \input{section1.tex} \input{section2.tex} \input{section3.tex} \end{document} Gregory Ditzler (Drexel University) L ATEXTutorial 19 / 20
20. ### A Few Notes Before the Demo and Example Time New

to L A TEX? Compile often! My best piece advice: practice! reading about it is not as helpful Other useful things \tableofcontents: generate a table of contents \listoffigures: generate a table of ﬁgures \def: create command deﬁnitions. e.g., \def\xbf{\mathbf{x}} allows use to use \xbf instead of \mathbf{x} to create a bold face x. Gregory Ditzler (Drexel University) L ATEXTutorial 20 / 20