Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
LaTeX in 15 minutes Slides by Pardis Noorzad
What are your questions? <ul><li>Somebody keep track of time </li></ul><ul><li>I will guess your questions </li></ul><ul><...
What is LaTeX? <ul><li>Pronounced  /leɪtɛk/  or   /lɑtɛk/ </li></ul><ul><ul><li>«Lay-tech» or «Lah-tech» </li></ul></ul><u...
(cont.)What is LaTeX? <ul><li>Created by Leslie Lamport </li></ul><ul><li>Currently maintained by  LaTeX3  project </li></...
(cont.)What is LaTeX? <ul><li>The text is  entered  into the computer. </li></ul><ul><li>The input text is  formatted  int...
(cont.)What is LaTeX?
Why LaTeX? <ul><li>Allows anybody to produce high-quality books using a reasonable amount of effort </li></ul><ul><li>Give...
(cont.)Why LaTeX? <ul><li>Support for articles, tech reports, books, and presentations  </li></ul><ul><li>Control over lar...
What will I need? <ul><li>If you’re on  Windows , you’ll need: </li></ul><ul><ul><li>MiKTeX   (LaTeX binaries and style sh...
(cont.)What will I need? <ul><li>If you’re on  Linux , you’ll be fine on your own and ... </li></ul><ul><li>If you’re on  ...
How do I start a document? <ul><ul><li>documentclass{article} </li></ul></ul><ul><ul><li>egin{document} </li></ul></ul><u...
What are the basics? <ul><li>LaTeX file structure </li></ul><ul><ul><li>documentclass{...} </li></ul></ul><ul><ul><li>usep...
(cont.)basics? <ul><li>LaTeX commands (general syntax) </li></ul><ul><ul><li>commandname[option1,option2,...]{argument1}{a...
What are some common commands and formattings? <ul><li>I’ll show you the use of these commands in our sample document: </l...
What about math? <ul><li>LaTeX typesets math differently than normal text </li></ul><ul><li>2 environments defined for thi...
(cont.)What about math? <ul><li>Here is what I will show you: </li></ul><ul><ul><li>Greek letters, set letters, symbols </...
And what about tables and figures? <ul><li>Tables </li></ul><ul><ul><li>egin{tabular}[pos]{table spec} ... end{tabular} <...
Are you gonna talk about bibliography today? <ul><li>2 approaches </li></ul><ul><ul><li>Embed within the main document </l...
I get the syntax, so how do I compile? <ul><li>Usually, this should be enough to resolve all labels and references </li></...
What will I get? The diagram shows the commands you can use to create the various file formats starting from a LaTeX or Te...
Is that all I need to know? <ul><li>Obviously not. </li></ul><ul><li>But, like with any other programming language </li></...
Why didn’t you use LaTeX for your slides? <ul><li>Checking to see if you’re paying attention  </li></ul><ul><li>LaTeX slid...
What if I want to typeset in Farsi? <ul><li>Use  FarsiTeX </li></ul><ul><li>Project directed by Mohammad Ghodsi </li></ul>...
Thanks? <ul><li>For being patient </li></ul><ul><li>Anything I haven’t answered? </li></ul>
References <ul><li>Websites : </li></ul><ul><ul><li>http://en.wikipedia.org/wiki/TeX </li></ul></ul><ul><ul><li>http://en....
Upcoming SlideShare
Loading in …5
×

TeX in 15 Minutes

5,576 views

Published on

For the accompanying document please visit http://www.pardisnoorzad.com/?p=108.

Credit: The slides' background is a snapshot of Notepad++(http://notepad-plus.sourceforge.net/)'s user interface.

Published in: Technology
  • Be the first to comment

TeX in 15 Minutes

  1. 1. LaTeX in 15 minutes Slides by Pardis Noorzad
  2. 2. What are your questions? <ul><li>Somebody keep track of time </li></ul><ul><li>I will guess your questions </li></ul><ul><ul><li>In this regard </li></ul></ul><ul><li>And answer them </li></ul><ul><li>In 15 minutes </li></ul><ul><li>Sit back and enjoy </li></ul>
  3. 3. What is LaTeX? <ul><li>Pronounced /leɪtɛk/ or /lɑtɛk/ </li></ul><ul><ul><li>«Lay-tech» or «Lah-tech» </li></ul></ul><ul><li>A macro package based on TeX </li></ul><ul><li>(which Donald Knuth started in 1977) </li></ul><ul><ul><li>TeX is a markup language to typeset documents (Turing-complete) </li></ul></ul><ul><ul><li>But it is difficult and time consuming to use </li></ul></ul>
  4. 4. (cont.)What is LaTeX? <ul><li>Created by Leslie Lamport </li></ul><ul><li>Currently maintained by LaTeX3 project </li></ul><ul><li>Authors contribute packages to CTAN (Comprehensive TeX Archive Network) </li></ul><ul><li>You create a text file in LaTeX markup </li></ul><ul><ul><li>the LaTeX macro reads this to produce the final document </li></ul></ul>
  5. 5. (cont.)What is LaTeX? <ul><li>The text is entered into the computer. </li></ul><ul><li>The input text is formatted into lines, paragraphs and pages. </li></ul><ul><li>The output text is displayed on the computer screen. </li></ul><ul><li>The final output is printed . </li></ul>
  6. 6. (cont.)What is LaTeX?
  7. 7. Why LaTeX? <ul><li>Allows anybody to produce high-quality books using a reasonable amount of effort </li></ul><ul><li>Gives exact same results on all computers, now and in the future </li></ul><ul><li>Typesetting of complex mathematical formulas </li></ul>
  8. 8. (cont.)Why LaTeX? <ul><li>Support for articles, tech reports, books, and presentations </li></ul><ul><li>Control over large documents with sectioning, cross-references, tables and figures </li></ul><ul><li>Automatic generation of bibliographies and indexes </li></ul>
  9. 9. What will I need? <ul><li>If you’re on Windows , you’ll need: </li></ul><ul><ul><li>MiKTeX (LaTeX binaries and style sheets) </li></ul></ul><ul><ul><li>WinEdt (editor) </li></ul></ul><ul><ul><ul><li>Any editor will do (e.g. Notepad++) </li></ul></ul></ul><ul><ul><li>Ghostscript and Ghostview (for working with Postscript files) </li></ul></ul><ul><ul><li>Adobe Acrobat Reader (to view PDF files) </li></ul></ul>
  10. 10. (cont.)What will I need? <ul><li>If you’re on Linux , you’ll be fine on your own and ... </li></ul><ul><li>If you’re on Mac , you’re on your own </li></ul><ul><li>I’m kidding, take a look at </li></ul><ul><ul><li>http://en.wikibooks.org/wiki/LaTeX/Installation </li></ul></ul>
  11. 11. How do I start a document? <ul><ul><li>documentclass{article} </li></ul></ul><ul><ul><li>egin{document} </li></ul></ul><ul><ul><li>Hello people! This is my first LaTeX{} document. </li></ul></ul><ul><ul><li>end{document} </li></ul></ul>The standard classes are: article , report , book , letter , and slides .
  12. 12. What are the basics? <ul><li>LaTeX file structure </li></ul><ul><ul><li>documentclass{...} </li></ul></ul><ul><ul><li>usepackage{...} </li></ul></ul><ul><ul><li>egin{document} </li></ul></ul><ul><ul><li>blah, blah and blah ... </li></ul></ul><ul><ul><li>end{document} </li></ul></ul><ul><li>LaTeX comments </li></ul><ul><ul><li>%this is a LaTeX comment </li></ul></ul>preamble
  13. 13. (cont.)basics? <ul><li>LaTeX commands (general syntax) </li></ul><ul><ul><li>commandname[option1,option2,...]{argument1}{argument2}... </li></ul></ul><ul><ul><li>e.g. documentclass[12pt,a4paper,twocolumn,oneside]{report} </li></ul></ul><ul><li>LaTeX environments </li></ul><ul><ul><li>egin{environmentname} </li></ul></ul><ul><ul><li>text to be influenced </li></ul></ul><ul><ul><li>end{environmentname} </li></ul></ul>Anything in LaTeX can be expressed in terms of commands and environments e.g. egin{abstract} This paper presents the basics. end{abstract}
  14. 14. What are some common commands and formattings? <ul><li>I’ll show you the use of these commands in our sample document: </li></ul><ul><ul><li>Sectioning, cross-referencing </li></ul></ul><ul><ul><li>Lists </li></ul></ul><ul><ul><li>Table of contents, list of figures </li></ul></ul><ul><ul><li>Quotes, dashes, font styles </li></ul></ul><ul><ul><li>Verbatim, footnotes, URLs, abstracts </li></ul></ul>
  15. 15. What about math? <ul><li>LaTeX typesets math differently than normal text </li></ul><ul><li>2 environments defined for this: </li></ul>
  16. 16. (cont.)What about math? <ul><li>Here is what I will show you: </li></ul><ul><ul><li>Greek letters, set letters, symbols </li></ul></ul><ul><ul><li>Fractions, roots </li></ul></ul><ul><ul><li>Powers, indices </li></ul></ul><ul><ul><li>Sums, integrals, brackets </li></ul></ul><ul><li>AMS math package provides higher level of abstraction over LaTeX math language </li></ul><ul><ul><li>So usepackage{amsmath} </li></ul></ul>
  17. 17. And what about tables and figures? <ul><li>Tables </li></ul><ul><ul><li>egin{tabular}[pos]{table spec} ... end{tabular} </li></ul></ul><ul><li>Figures </li></ul><ul><ul><li>egin{figure}[placement specifier] </li></ul></ul><ul><ul><li>... figure contents ... </li></ul></ul><ul><ul><li>end{figure} </li></ul></ul>
  18. 18. Are you gonna talk about bibliography today? <ul><li>2 approaches </li></ul><ul><ul><li>Embed within the main document </li></ul></ul><ul><ul><li>Store in external BibTeX file </li></ul></ul><ul><li>A BibTeX database is stored as a .bib file (with the same name as the .tex file that uses it) </li></ul><ul><li>Before end{document}, place the following TeX commands </li></ul><ul><ul><li>ibliographystyle{plain} </li></ul></ul><ul><ul><li>ibliography{test} </li></ul></ul>
  19. 19. I get the syntax, so how do I compile? <ul><li>Usually, this should be enough to resolve all labels and references </li></ul><ul><ul><li>pdflatex test </li></ul></ul><ul><ul><li>bibtex test </li></ul></ul><ul><ul><li>pdflatex test </li></ul></ul><ul><ul><li>pdflatex test </li></ul></ul><ul><li>Don’t add “.tex” extensions </li></ul>
  20. 20. What will I get? The diagram shows the commands you can use to create the various file formats starting from a LaTeX or TeX source file
  21. 21. Is that all I need to know? <ul><li>Obviously not. </li></ul><ul><li>But, like with any other programming language </li></ul><ul><ul><li>“ Experimentation quickly leads to mastery.” –LaTeX wikibook </li></ul></ul><ul><li>Luckily there are a lot of resources and templates online </li></ul>
  22. 22. Why didn’t you use LaTeX for your slides? <ul><li>Checking to see if you’re paying attention </li></ul><ul><li>LaTeX slides are best for academic presentations </li></ul><ul><li>For more information, search LaTeX Beamer </li></ul>
  23. 23. What if I want to typeset in Farsi? <ul><li>Use FarsiTeX </li></ul><ul><li>Project directed by Mohammad Ghodsi </li></ul><ul><li>http://www.farsitex.org </li></ul><ul><ul><li>And also http://farsitex.blogfa.com </li></ul></ul><ul><li>It’s an open source and ongoing project (see http://tinyurl.com/67ojqt ) </li></ul>
  24. 24. Thanks? <ul><li>For being patient </li></ul><ul><li>Anything I haven’t answered? </li></ul>
  25. 25. References <ul><li>Websites : </li></ul><ul><ul><li>http://en.wikipedia.org/wiki/TeX </li></ul></ul><ul><ul><li>http://en.wikipedia.org/wiki/LaTeX </li></ul></ul><ul><ul><li>http://en.wikibooks.org/wiki/LaTeX </li></ul></ul><ul><ul><li>http://www.cs.cornell.edu/info/Misc/LaTeX-Tutorial </li></ul></ul><ul><ul><li>http://www.latex-project.org/intro.html </li></ul></ul><ul><li>Ebooks and documents : </li></ul><ul><ul><li>“ LaTeX Tutorials – A Primer” by Indian TeX Users Group </li></ul></ul><ul><ul><li>“ LaTex Tutorial” by Jeff Clark </li></ul></ul><ul><ul><li>“ Getting Started with LaTeX” by David R. Wilkins </li></ul></ul>

×