Introducing Document Preparation with LATEX Stan Reeves A Introduction Introducing Document Preparation with LTEX LATEX Editors

Automation

Prosper Stan Reeves

Beamer Posters Department of Electrical and Computer Engineering

June 28, 2010

1 / 38 TEX(τχ) is a typesetting system. METAFONT – Font description language A point on a glyph is found as the intersection of a line segment and a Bezier´ cubic curve Computer modern typeface. 62 parameters control the widths and heights of elements

Author of TEX Donald Knuth (1978), computer science professor at Stan- ford

TEX

Introducing Document Preparation Preparation of a document involves with LATEX Entering text Stan Reeves Formatting text

Introduction Display on a screen Printing LATEX Editors

Automation

Prosper

Beamer

Posters

2 / 38 TEX

Introducing Document Preparation Preparation of a document involves with LATEX Entering text Stan Reeves Formatting text

Introduction Display on a screen Printing LATEX Editors TEX(τχ) is a typesetting system. Automation METAFONT – Font description language Prosper A point on a glyph is found as the intersection of a line Beamer segment and a Bezier´ cubic curve Posters Computer modern typeface. 62 parameters control the widths and heights of elements

Author of TEX Donald Knuth (1978), computer science professor at Stan- ford

2 / 38 A total-fit line-breaking algorithm Assigns badness. Minimizes SS of badness Hyphenation algorithm Removes prefixes and suffixes Will attempt to put a break between consonants in a pattern of the form vowel-consonant-consonant-vowel.

Line breaks

LATEX is a set of macros for TEX Written by Leslie Lamport (1984), current release LATEX2ε

TEX and LATEX

Introducing Document Preparation with LATEX Math spacing carefully derived based on typesets in: Stan Reeves Acta Mathematica Indagationes Mathematicae Introduction Addison-Wesley’s books LATEX Editors

Automation

Prosper

Beamer

Posters

3 / 38 Hyphenation algorithm Removes prefixes and suffixes Will attempt to put a break between consonants in a pattern of the form vowel-consonant-consonant-vowel.

LATEX is a set of macros for TEX Written by Leslie Lamport (1984), current release LATEX2ε

TEX and LATEX

Introducing Document Preparation with LATEX Math spacing carefully derived based on typesets in: Stan Reeves Acta Mathematica Indagationes Mathematicae Introduction Addison-Wesley’s books LAT X E Line breaks Editors total-fit Automation A line-breaking algorithm Assigns badness. Minimizes SS of badness Prosper

Beamer

Posters

3 / 38 LATEX is a set of macros for TEX Written by Leslie Lamport (1984), current release LATEX2ε

TEX and LATEX

Introducing Document Preparation with LATEX Math spacing carefully derived based on typesets in: Stan Reeves Acta Mathematica Indagationes Mathematicae Introduction Addison-Wesley’s books LAT X E Line breaks Editors total-fit Automation A line-breaking algorithm Assigns badness. Minimizes SS of badness Prosper

Beamer Hyphenation algorithm Posters Removes prefixes and suffixes Will attempt to put a break between consonants in a pattern of the form vowel-consonant-consonant-vowel.

3 / 38 TEX and LATEX

Introducing Document Preparation with LATEX Math spacing carefully derived based on typesets in: Stan Reeves Acta Mathematica Indagationes Mathematicae Introduction Addison-Wesley’s books LAT X E Line breaks Editors total-fit Automation A line-breaking algorithm Assigns badness. Minimizes SS of badness Prosper

Beamer Hyphenation algorithm Posters Removes prefixes and suffixes Will attempt to put a break between consonants in a pattern of the form vowel-consonant-consonant-vowel.

LATEX is a set of macros for TEX Written by Leslie Lamport (1984), current release LATEX2ε

3 / 38 Pronunciation of LATEX

Introducing Document Preparation with LATEX Stan Reeves no single agreed-upon pronunciation Introduction T X derives from the Greek τχνη, which means “art, LATEX E Editors skill, craft” Automation origin of the name suggests that “X” be pronounced like Prosper the “ch” in “technical” Beamer Options: Posters LAYtek LAHtek LahTEK

4 / 38 FREE & open source

Why LATEX?

Introducing Document It is a natural choice if you want to create beautiful Preparation with LATEX output Stan Reeves A structured system of typesetting. Spend time and

Introduction effort on content not on layout

LATEX Works across platforms Editors Handles math well Automation Table of contents, list of figures, bibliography etc. Prosper Cross-referencing features Beamer Stable processing engine Posters Highly extensible Input is plain text Output can be anything Complete document preparation. Articles, presentations, posters, HTML.

5 / 38 Why LATEX?

Introducing Document It is a natural choice if you want to create beautiful Preparation with LATEX output Stan Reeves A structured system of typesetting. Spend time and

Introduction effort on content not on layout

LATEX Works across platforms Editors Handles math well Automation Table of contents, list of figures, bibliography etc. Prosper Cross-referencing features Beamer Stable processing engine Posters Highly extensible Input is plain text Output can be anything Complete document preparation. Articles, presentations, posters, HTML. FREE & open source 5 / 38 LATEX vs. MS Word

Introducing Document Preparation with LATEX Stan Reeves LATEX MS Word Introduction WYSIWYG × X LATEX Platform independent X × Editors Math XX Automation Citations & references X × Prosper Automated TOC, LoF X × Beamer Cross-references X × Posters Style changes XX Multimedia XX Free X ×

6 / 38 LATEX

MS Word Equation Editor

Why LATEX?

Introducing Document Preparation with LATEX Stan Reeves

Introduction ∞ LATEX Z rm+wm Z rn+wm+pT 2 X 0 0 Editors Imn(λ) = I0(λ)Tm(λ) dx PSF(x − x )dx r rn+pT Automation p=−∞ m

Prosper

Beamer

Posters

7 / 38 Why LATEX?

Introducing Document Preparation with LATEX A Stan Reeves LTEX

Introduction ∞ LATEX Z rm+wm Z rn+wm+pT 2 X 0 0 Editors Imn(λ) = I0(λ)Tm(λ) dx PSF(x − x )dx r rn+pT Automation p=−∞ m

Prosper Beamer MS Word Equation Editor Posters

7 / 38 Why LATEX?

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX Editors

Automation

Prosper

Beamer

Posters

8 / 38 Installation

Introducing Document Preparation with LATEX Packages Stan Reeves Back-end Front-end Introduction Windows MikTEX,TEXLive WinEdt, TEXnicCenter LAT X E Mac CMacTEX, OzTEXTEXShop iTEXMac Editors Linux teT X, T X Live Kile Automation E E

Prosper

Beamer Posters CoE Windows labs have:

MikTEX TEXnicCenter

9 / 38 LATEX for the PC

Introducing Document Preparation with LATEX Stan Reeves To install LATEX on your PC you need:

Introduction The back-end: The base TEX package LATEX Windows Editors (MikTEX). Available at the MikTEX homepage Automation TEXLive Prosper Ghostscript, Ghostview, and GSview. Beamer The front-end:ALAT X editor (WinEdt, T XnicCenter) Posters E E WinEdt: evaluation version. TEXnicCenter: free Available at the WinEdt homepage or at Sourceforge.net

10 / 38 The downside

Introducing Document Preparation with LATEX Stan Reeves

Introduction There are certain “disadvantages” LATEX Editors Somewhat steep learning curve Automation Not interactive. Have to use pre-viewer before finalizing Prosper

Beamer document Posters Difficult to create your own document type

11 / 38 LATEX workflow LATEX workflow

Document preparation Introducing with LATEX Document PreparationAuburn U. withChapter LATEX of SIAM and StanIEEE Reeves Student Chapter Introduction Introduction LATEX A EditorsLTEX Editors Automation Automation Prosper Prosper Beamer Beamer Posters Posters

pdflatex is an alternative workflow that goes straight from the *. file to a PDF file.

12 / 38 Getting started

Introducing Document Preparation \documentclass{article} with LATEX Stan Reeves \begin{document}

Introduction \section{Introduction}

LATEX The conditional probability of an event $A$ assuming another Editors event $M$, denoted by $P(A\,|M)$, is by definition the ratio

Automation \begin{align} P(A\,|M) &= \frac{P(AM)}{P(M)} Prosper \end{align} Beamer \subsection{Bayes’s theorem} Posters Bayes’s theorem for probability densities is given by:

\begin{align} p(x|y) &= \frac{p(y|x)p(x)}{p(y)} \end{align}

\end{document}

13 / 38 Getting started

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX Editors

Automation

Prosper

Beamer

Posters

14 / 38 LaTeX Documents

Introducing Document Preparation with LATEX Stan Reeves

Introduction \ is used to start LAT X commands LATEX E Editors % is used to start a comment Automation &, $, #, , ˆ, {} and ˜ are special characters Prosper

Beamer Words are separated by one or more spaces. Posters Paragraphs are separated by one or more blank lines.

15 / 38 Sectioning commands

Introducing Document Preparation with LATEX Stan Reeves The sectional units in an article are produced by the Introduction following commands: LATEX Editors \chapter{title} Automation \section{title} Prosper Beamer \subsection{title} Posters \subsubsection{title} \paragraph{title}

16 / 38 List Environments

Introducing \begin{itemize} Document Preparation \item enumerate: Numbered lists with LATEX \item itemize: Bulletted lists Stan Reeves \end{itemize}

Introduction

LAT X E enumerate: Numbered lists Editors Automation itemize: Bulleted lists Prosper

Beamer \begin{enumerate} Posters \item enumerate: Numbered lists \item itemize: Bulletted lists \end{enumerate}

1 enumerate: Numbered lists 2 itemize: Bulletted lists 17 / 38 Math

Introducing Document Preparation with LATEX Inline math Stan Reeves Inline math appears within a line and must appear enclosed in $ signs. $xˆ2 = 2 Introduction \Rightarrow x = \pm \sqrt{2}$.

LATEX Inline math appears within a line and√ must appear Editors enclosed in $ signs. x2 = 2 ⇒ x = ± 2. Automation Equations Prosper \begin{align} Beamer \cal{F}(\omega) = \int _{-\infty}ˆ{\infty} Posters f(t)eˆ{-j \omega t} dt \end{align}

Z ∞ F (ω) = f (t) e−jωtdt (1) −∞

18 / 38 More math

Introducing Document Preparation The Fibonacci numbers form a sequence defined recursively by: A with LTEX \begin{align} Stan Reeves F(n) &= \begin{cases} 0, & \mbox{if} n=0; \\ Introduction 1, & \mbox{if} n=1; \\ LATEX F(n-1) + F(n-2) \mbox{otherwise}. Editors \end{cases} \end{align} Automation

Prosper Beamer The Fibonacci numbers form a sequence defined Posters recursively by:  0, if n = 0;  F(n) = 1, if n = 1; (3)  F(n − 1) + F(n − 2) otherwise.

19 / 38 Customizing

Introducing Document Preparation with LATEX \documentclass{article} Stan Reeves \newcommand{\parD}[2]{\frac{\partial #1}{\partial #2}} Introduction \newcommand{\parDD}[2]{\frac{\partialˆ2 #1}{\partialˆ2 #2}} \begin{document} LATEX Editors \begin{align*} Automation \parD{}{x} \left( \parD{y}{x} \right) = \parDD{y}{x} Prosper \end{align*}

Beamer

Posters

∂ ∂y ∂2y = ∂x ∂x ∂x2

20 / 38 Figures

Introducing Document Preparation with LATEX \documentclass{article} \usepackage{graphicx} Stan Reeves \begin{figure}[!h] Introduction \centering \includegraphics[width=5cm]{ginn_logo.pdf} LAT X E \caption{CoE logo} Editors \end{figure}

Automation

Prosper Figures

Document preparation Beamer A with LTEX \documentclass{article} Auburn U. \usepackage{graphicx} Chapter of SIAM and IEEE Student \begin{figure}[!h] Chapter \centering Posters \includegraphics[width=5cm]{ginn_logo.pdf} \caption{CoE logo} Introduction \end{figure} LATEX Editors

Automation

Prosper

Beamer

Posters

21 / 38 Video

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX Editors

Automation

Prosper

Beamer

Posters

Flow behind a cylinder - vorticity contours

22 / 38 TEXnicCenter

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX Editors

Automation

Prosper

Beamer

Posters

23 / 38 Cross-referencing

Can cross-reference figures, tables, equations, sections Introducing Document using: Preparation with LATEX \label{name}, %\label{eq:wav}, \label{sec:wav}, \label{fig:wav} Stan Reeves \ref{name}

Introduction

LATEX For example Editors Automation \begin{align}\label{eq:partial} Prosper \parD{}{x} \left( \parD{y}{x} \right) = \parDD{y}{x}

Beamer \end{align} Eq. \ref{eq:partial} describes \ldots Posters

∂ ∂y ∂2y = (4) ∂x ∂x ∂x2

Eq. 4 describes . . . 24 / 38 References and citations

Introducing Document Preparation with LATEX Stan Reeves

Introduction The BibTEX package LATEX Editors Create a bibliography database with a .bib extension:

Automation e.g., bibdatabase.bib Prosper Include following two lines where you want the Beamer bibliography to appear Posters \bibliographystyle{style} %% (plain, alpha, abbrv, unsrt) \bibliography{bibdatabase}

25 / 38 BibTEX entry

Introducing Document Preparation with LATEX Stan Reeves A BibTEX entry looks like:

Introduction @article{lane87, LAT X E title = "Automatic multidimensional deconvolution", Editors author = "R. G. Lane and R. H. T. Bates", Automation JOURNAL = "Journal of the Optical Society of America", Prosper YEAR = "1987", VOLUME = "4", Beamer NUMBER = "1", Posters PAGES = "180-188", MONTH = "January" }

26 / 38 BibTEX entry types

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX @booklet @proceedings Editors @conference @inbook

Automation @incollection @inproceedings @manual @mastersthesis Prosper @misc @phdthesis Beamer @techreport @unpublished Posters

27 / 38 To include an entry that was not cited in the LATEX document, add: \nocite{key} May also use \nocite{*}

Citations

Introducing Document Preparation with LAT X E Use the Stan Reeves \cite{key} Introduction command to include citations. LATEX Editors The authors in \cite{key} propose a new method to melt ice. Automation The authors in [1] propose a new method to melt ice. Prosper

Beamer

Posters

28 / 38 May also use \nocite{*}

Citations

Introducing Document Preparation with LAT X E Use the Stan Reeves \cite{key} Introduction command to include citations. LATEX Editors The authors in \cite{key} propose a new method to melt ice. Automation The authors in [1] propose a new method to melt ice. Prosper A Beamer To include an entry that was not cited in the LTEX Posters document, add: \nocite{key}

28 / 38 Citations

Introducing Document Preparation with LAT X E Use the Stan Reeves \cite{key} Introduction command to include citations. LATEX Editors The authors in \cite{key} propose a new method to melt ice. Automation The authors in [1] propose a new method to melt ice. Prosper A Beamer To include an entry that was not cited in the LTEX Posters document, add: \nocite{key} May also use \nocite{*}

28 / 38 JabRef

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX Editors

Automation

Prosper

Beamer

Posters

29 / 38 Presentations

Introducing Document Preparation http://prosper.sourceforge.net/ with LATEX Stan Reeves Prosper Needs the following packages: Introduction prosper LATEX seminar Editors pstricks Automation Prosper http://latex-beamer.sourceforge.net/ Beamer Beamer Posters Needs the following packages: -beamer xcolor pgm

30 / 38 Auto-generation of ToCs and ToFs Beamer tour: http://latex- beamer.sourceforge.net/beamerexample1.pdf.

Beamer documents

Introducing Document Preparation with LATEX Stan Reeves Uses the frame environment. A slide is defined within %\begin{frame} Introduction Slide body LATEX Editors %\end{frame} Automation Preserves document structure Prosper Very customizable Beamer

Posters Allows for overlays

31 / 38 Beamer documents

Introducing Document Preparation with LATEX Stan Reeves Uses the frame environment. A slide is defined within %\begin{frame} Introduction Slide body LATEX Editors %\end{frame} Automation Preserves document structure Prosper Very customizable Beamer

Posters Allows for overlays Auto-generation of ToCs and ToFs Beamer tour: http://latex- beamer.sourceforge.net/beamerexample1.pdf.

31 / 38 Posters

Introducing Document Preparation with LATEX Stan Reeves The a0poster.cls class file can be used to create upto Introduction A0 size posters. LATEX Editors It offers the following capabilities

Automation Allows for paper sizes A0, A1, A2, A3, & A4

Prosper Allows font sizes from 12pt–107pt

Beamer Scales formulas and math symbols

Posters The package also creates a postscript header file for dvips to ensure that the poster will be printed in the right size.

32 / 38 a0poster.cls

Introducing A Document The header of a LTEX poster document looks like: Preparation with LATEX \documentclass[options]{a0poster} Stan Reeves \usepackage{graphicx,pstricks,...} Introduction \begin{document}

LATEX Editors The following options are available: Automation

Prosper landscape landscape format Beamer portrait portrait format Posters a0b “DIN A0 big” a0 DIN A0 a1 DIN A1 a2 DIN A2 a3 DIN A3 posterdraft reduces the postscript output to DIN A4 size. final makes postscript output in original size

33 / 38 LyX

Introducing Document Preparation with LATEX Stan Reeves

Introduction LyX is a TEX based WYSIWYM editor LATEX Available for multiple platforms Editors

Automation Offers a GUI with menus Prosper Supports BibTEX Beamer Has WYSIWYG table and math editors Posters Uses TEX rules for indents, spacing, and hyphenation

34 / 38 LATEX in plotting tools

Introducing A Document MATLAB supports LTEX Preparation Figure labels and other text can be parsed by a LAT X with LAT X E E interpreter Stan Reeves The latex command translates MATLAB matrices into Introduction LATEX arrays A LATEX Can publish a formatted m-file, including LTEX A Editors constructs, as a LTEX document Automation

Prosper

Beamer

Posters

35 / 38 LATEX in plotting tools

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LAT X E PGFPLOTS is a drawing package for LATEXbased on Editors PGF/Tikz Automation

Prosper text-based specification of plots Beamer can actually calculate and evaluate figures Posters

36 / 38 LATEX at Auburn

Introducing Document Preparation with LATEX Stan Reeves

Introduction

LATEX Dr. E.E. Slaminka maintains AU theses style files Editors AU allows LATEX for theses. Formatting restrictions have Automation been relaxed. Color and multimedia as well as Prosper hyper-references are possible in PDF files. Beamer

Posters We have a rather inactive tex-users mailing list.

37 / 38 Summary

Introducing Document Preparation with LATEX Stan Reeves A Introduction LTEX is a programming language, not an application LATEX An abundance of LATEX utilities are available for different Editors platforms Automation All LAT X components and packages are free and easily Prosper E

Beamer available Posters It can be used to generate various document types Style files for Auburn University theses are available

38 / 38