310 likes | 561 Views
An Introduction to LaTeX. Lane Thames Georgia Institute of Technology School of Electrical and Computer Engineering. Presentation Objectives. Provide simple overview of LaTeX and how to use GaTech’s thesis template High-level overview of the Document Markup Language (DML) process
E N D
An Introduction to LaTeX Lane Thames Georgia Institute of Technology School of Electrical and Computer Engineering
Presentation Objectives • Provide simple overview of LaTeX and how to use GaTech’s thesis template • High-level overview of the Document Markup Language (DML) process • Provide details of how to use the template structure that I am supplying to the graduate community • Overview of LaTeX DML • Discuss advanced editor options
DML Overview • The goal of any DML system is to provide the user an opportunity to “tightly” control the layout and presentation (L&P) of the document • WSYWYG programs are designed to allow you to use graphical environments to create the L&P. But, these programs can become cumbersome when creating highly technical documents!
Web Example with HTML <html><head> <title>Simple Example</title></head> <body bgcolor=“#EEEEE” text=“red”> <div align=“center”><font size=“5”> Hello World</font> </div><br><br> Good Bye <br> </html>
Software Needed to Develop LaTex Documents (Microsoft) • MikTex • Text Editor • PSPad, Notepad++,… • Optional: Advanced LaTeX Editing • WinEdt • TeXnicCenter
GaTech Thesis Template • http://www.gradadmiss.gatech.edu/thesis/templates.php
GaTech Thesis Template File Structure • The primary configuration file: gatech-thesis.cls • A set of “jules-vern” TEX files {*.tex} • A bibliography file: *.bib • DO_pdf.bat and CLEAN.bat (for building the document and cleaning the directory) • Let’s build the template document: • Jule-Vern Template
TexFilesTutorial Template • Where to get it: • http://www.gtsav.gatech.edu/~lthames • Click the “Misc” tab
TexFilesTutorial File Structure • Directories • Gatech-thesis-2.7 • Presentation • ProposalTex • TexFilesTutorial • TeXnicCenter • WinEdtTex
TexFilesTutorial File Structure • TEX Files • Thames-main.tex • Thames-ack.tex • Thames-summary.tex • Thames-dedication.tex • Thames-chapter1.tex-Thames-chapter8.tex • BIB Files • Thames-bib.bib
TexFilesTutorial File Structure • Configuration Files • Gatech-thesis.cls • Gatech-thesis.bst • Gatech-thesis-losa.bst • Gatech-thesis-index.ist • Gatech-thesis-gloss.sty • Gatech-thesis-index.sty • Gatech-thesis-losa.sty • Gatech-thesis-patch.sty
TexFilesTutorial File Structure • Miscellaneous • Directory:: fig/ (for holding figures/images) • DO_pdf.bat (for building the document) • CLEAN.bat (for cleaning the directory) • Thames-main.pdf (Final output file) • Let’s check it out: • Open FS
Using the Structure • Modify the file names • Change “thames” to whatever you want, i.e. change “thames-main.tex” to “johndoe-main.tex” • Don’t change the names of the configuration files, just the “.tex”, “.bib” and “.pdf” files
Modify the Build File • Use a text editor to change the DO_pdf.bat file to reflect your new file naming convention. • Let’s look to see why. • Open FS
Analysis of thames-main.tex • The primary TEX file for inclusion of the various TEX documents, etc. • Open FS
LaTeX Bibliography • Internals for GaTech Thesis, see file “gatech-thesis.bst” • For more information, see http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.html • Fields to be used as defined in gatech-thesis.bst: ENTRY { address, author, booktitle, chapter, edition, editor, howpublished, institution, journal, key, month, note, number, organization, pages, publisher, school, series, title, type, volume, year }
LaTeX Bibliography Note: “knuth:lp” is a “variable” to be used for citation @ARTICLE{knuth:lp, AUTHOR = {Donald E. Knuth}, TITLE = {Literate Programming}, JOURNAL = {The Computer Journal}, YEAR = {1984}, VOLUME = {27}, NUMBER = {2}, PAGES = {97--111}, MONTH = May }
Other styles are permitted @INPROCEEDINGS{dressler, author = "F. Dressler and G. Munz and G. Carle", title = "Attack Detection using Cooperating Autonomous Detection Systems ({CATS})", booktitle = "1st IFIP International Workshop on Autonomic Communication (WAC 2004)", year = 2004, address = "Berlin, Germany", } Note: {CATS} forces bibtex to retain the word verbatim, i.e. all caps in this case. Observe that I’m using “” instead of {} and lowercase ENTRY keywords
Now for some hands-on LaTeX • Open FS
Gatech-thesis.cls Hack • My CLS Proposal modification • Wanted to add a “Section I” and “Section II” page to the proposal. To do so, I modified the class file (gatech-thesis.cls) to incorporate a new label. • Open FS
Advanced LaTeX Editing • WinEdt • TeXnicCenter • Open FS
Final Tips • Don’t forget that others (collaborators or advisors) might need to read your TEX, so • Keep the text clean and readable • Use the % comment character to organize “chunks” of material. For example, use the % to add a “visual line break” in the TEX file before and after a set of equations or to occasionally break up a very long paragraph • Keep the sentence length around 70 (no more than 80) characters