• Save
TeX in 15 Minutes
Upcoming SlideShare
Loading in...5

TeX in 15 Minutes



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

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.



Total Views
Views on SlideShare
Embed Views



4 Embeds 89

http://www.pardisnoorzad.com 68
http://www.slideshare.net 12
http://www.e-presentations.us 7
http://djpardis.com 2



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

TeX in 15 Minutes TeX in 15 Minutes Presentation Transcript

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