A presentation in LATEX Beamer on TEX/LATEX Jack Rosenthal CSM Linux Users Group

24 September 2015

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

The Name of the Game

From the TEXbook English words like ‘technology’ stem from a Greek root beginning with the letters τ ϵχ . . .; and this same Greek word means art as well as technology... Insiders pronounce the χ of TEX as a Greek chi, not as an ‘x’, so that TEX rhymes with the word blecchhh... When you say it correctly to your computer, the terminal may become slightly moist.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

The Name of the Game

From LATEX: A Document Preparation System One of the hardest things about LATEX is deciding how to pronounce it. This is also one of the few things I’m not going to tell you about LATEX, since pronunciation is best determined by usage, not fiat. TEX is usually pronounced teck, making lah-teck, and lay-teck the logical choices.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Typesetting vs. Ordinary Typing

Typesetting is the art of putting letters on a page

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Typesetting vs. Ordinary Typing

Typesetting is the art of putting letters on a page Ligatures appear in professional typesetting, such as in the word find (rather than find)

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Typesetting vs. Ordinary Typing

Typesetting is the art of putting letters on a page Ligatures appear in professional typesetting, such as in the word find (rather than find) Typesetting can involve complex mathematics, of which TEX handles quite well ∞ ∑

an z n

(

converges if

|z| < lim sup n→∞

n=0

Jack Rosenthal

√ n

|an |

)−1

.

A presentation in LATEX Beamer on TEX/LATEX

Trying to Math in Word

LATEX −

∫ 2π

kQ dθ

0

2π(a2 + x2 )3/2

(a sin θ ȷˆ) = 0

Word

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Structure of a LATEX Document Preamble

Body

\documentclass[12pt]{article} \usepackage[margin=25mm]{geometry} \begin{document} Hello World from \LaTeX ! \begin{equation} \sum_{n = 0}ˆ\infty \frac{xˆn}{n!} = eˆx \end{equation} \end{document}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Structure of a LATEX Document Preamble

Body

\documentclass[12pt]{article} \usepackage[margin=25mm]{geometry} \begin{document} Hello World from \LaTeX ! \begin{equation} \sum_{n = 0}ˆ\infty \frac{xˆn}{n!} = eˆx \end{equation} \end{document}

Output Hello World from LATEX! ∞ ∑ xn n=0

Jack Rosenthal

n!

= ex

(1)

A presentation in LATEX Beamer on TEX/LATEX

Control Sequences Immediately after typing ‘\’, TEX expects a control word or symbol.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Control Sequences Immediately after typing ‘\’, TEX expects a control word or symbol. A control word constists of a backslash followed by one or more letters.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Control Sequences Immediately after typing ‘\’, TEX expects a control word or symbol. A control word constists of a backslash followed by one or more letters. A control symbol constists of a backslash followed by a single nonletter.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Control Sequences Immediately after typing ‘\’, TEX expects a control word or symbol. A control word constists of a backslash followed by one or more letters. A control symbol constists of a backslash followed by a single nonletter. Example: ‘\input MS’ causes TEX to begin reading a file called ‘MS.tex’.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Control Sequences Immediately after typing ‘\’, TEX expects a control word or symbol. A control word constists of a backslash followed by one or more letters. A control symbol constists of a backslash followed by a single nonletter. Example: ‘\input MS’ causes TEX to begin reading a file called ‘MS.tex’. Example: TEX converts ‘George P\’olya and Gabor Szeg\"o’ to ‘George P´olya and Gabor Szeg¨o.’

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Control Sequences Immediately after typing ‘\’, TEX expects a control word or symbol. A control word constists of a backslash followed by one or more letters. A control symbol constists of a backslash followed by a single nonletter. Example: ‘\input MS’ causes TEX to begin reading a file called ‘MS.tex’. Example: TEX converts ‘George P\’olya and Gabor Szeg\"o’ to ‘George P´olya and Gabor Szeg¨o.’ A space after a control word is ignored, to fix this, escape the space afted a control word when required. \TeX\ ignores spaces after control words. Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Grouping

{ } Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Fonts of Type in LATEX

\textrm{This} \textsl{This} \textit{This} \textbf{This} \texttt{This} \textsf{This}

This produces roman typeface output. This produces slanted typeface output. This produces italics typeface output. This produces bold typeface output. This produces typewriter typeface output. This produces sans typeface output.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Installing TEX Live

Arch Linux: # pacman -S texlive-most Debian/Ubuntu/Mint: # apt-get install texlive-full Fedora: # yum install texlive Windows/OS X: Follow instructions at http://tug.org

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Running TEX

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Running LATEX When you start pdflatex, you will see the following: This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) **

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Running LATEX When you start pdflatex, you will see the following: This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) **

The ‘**’ is TEX’s way of asking you for an input filename. If you don’t want to type in the filename through standard input each time, provide the filename as the first argument.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Running LATEX When you start pdflatex, you will see the following: This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) **

The ‘**’ is TEX’s way of asking you for an input filename. If you don’t want to type in the filename through standard input each time, provide the filename as the first argument. To use TEX in a REPL like manner, type ‘\relax’ at the prompt for a filename. This is TEX’s NoOp command, in this case you are using it to tell TEX to expect nothing after an ‘\input’.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Running LATEX When you start pdflatex, you will see the following: This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) **

The ‘**’ is TEX’s way of asking you for an input filename. If you don’t want to type in the filename through standard input each time, provide the filename as the first argument. To use TEX in a REPL like manner, type ‘\relax’ at the prompt for a filename. This is TEX’s NoOp command, in this case you are using it to tell TEX to expect nothing after an ‘\input’. pdfTEX will produce a PDF file. Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

The documentclass When you start a document, you start it with a line that reads something like this: \documentclass{article}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

The documentclass When you start a document, you start it with a line that reads something like this: \documentclass{article}

There are actually many documentclasses to choose from: article

minimal

memior

leaflet

IEEEtran

report

letter

beamer

proc

book

exam

...

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

The documentclass When you start a document, you start it with a line that reads something like this: \documentclass{article}

There are actually many documentclasses to choose from: article

minimal

memior

leaflet

IEEEtran

report

letter

beamer

proc

book

exam

...

You can also specify options like this: \documentclass[12pt,a4paper,titlepage]{article}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Environments

environment

... \begin{itemize} \item An item \item Another item \end{itemize} ...

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Environments

environment

... \begin{itemize} \item An item \item Another item \end{itemize} ...

Output An item Another item

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Environments

environment

... \begin{enumerate} \item An item \item Another item \end{enumerate} ...

Output 1

An item

2

Another item

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Mathematics in LATEX Use the equation environment for basic equation displays: \begin{equation} \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{ \Delta x} \end{equation}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Mathematics in LATEX Use the equation environment for basic equation displays: \begin{equation} \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{ \Delta x} \end{equation}

Output f (x + ∆x) − f (x) ∆x→0 ∆x lim

Jack Rosenthal

(2)

A presentation in LATEX Beamer on TEX/LATEX

Mathematics in LATEX Use the equation environment for basic equation displays: \begin{equation} \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{ \Delta x} \end{equation}

Output f (x + ∆x) − f (x) ∆x→0 ∆x lim

(2)

Or use ‘$ ... $’ to quickly show math in a paragraph: ... we can see that as $x \to \infty$, the amount of ...

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Mathematics in LATEX Use the equation environment for basic equation displays: \begin{equation} \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{ \Delta x} \end{equation}

Output f (x + ∆x) − f (x) ∆x→0 ∆x lim

(2)

Or use ‘$ ... $’ to quickly show math in a paragraph: ... we can see that as $x \to \infty$, the amount of ...

Output ... we can see that as x → ∞, the amount of ... Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

How TEX Reads What You Type A ⟨return⟩ is like a space

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

How TEX Reads What You Type A ⟨return⟩ is like a space Two spaces in a row count as a single space

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

How TEX Reads What You Type A ⟨return⟩ is like a space Two spaces in a row count as a single space A blank line denotes the end of a paragraph

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

How TEX Reads What You Type A ⟨return⟩ is like a space Two spaces in a row count as a single space A blank line denotes the end of a paragraph TEX also categorgizes your characters. There are 16 categories as follows: Cat 0 1 2 3 4 5 6 7

Meaning Escape character Begin group End group Math shift Alignment tab End of line Parameter Superscript

Default \ { } $ & ⟨return⟩ # ˆ

Cat 8 9 10 11 12 13 14 15

Meaning Subscript Ignored characer Space Letter Other character Active character Comment character Invalid character

Default _ ⟨null⟩ ⟨space⟩ A-Z,a-z ˜ % ⟨delete⟩

Don’t worry too much about this. All this means is that you will have to escape a few special characters. Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Line Breaking

TEX has a badness value from 0 to 10,000, where 0 is perfect and 10,000 is infinitely bad, for almost everything in your document that is flexible.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Line Breaking

TEX has a badness value from 0 to 10,000, where 0 is perfect and 10,000 is infinitely bad, for almost everything in your document that is flexible. When a line is perfect in spacing between words and no hyphenation, the badness will be zero.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Line Breaking

TEX has a badness value from 0 to 10,000, where 0 is perfect and 10,000 is infinitely bad, for almost everything in your document that is flexible. When a line is perfect in spacing between words and no hyphenation, the badness will be zero. As words get too tight or too narrow, the badness increases.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Line Breaking

TEX has a badness value from 0 to 10,000, where 0 is perfect and 10,000 is infinitely bad, for almost everything in your document that is flexible. When a line is perfect in spacing between words and no hyphenation, the badness will be zero. As words get too tight or too narrow, the badness increases. Hyphenation in words adds a lot of badness!

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Line Breaking

TEX has a badness value from 0 to 10,000, where 0 is perfect and 10,000 is infinitely bad, for almost everything in your document that is flexible. When a line is perfect in spacing between words and no hyphenation, the badness will be zero. As words get too tight or too narrow, the badness increases. Hyphenation in words adds a lot of badness! TEX then optimises the badness of each line, trying to get it as low as possible.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Sectioning

Use the commands: \part{Part I} % only in the book class \chapter{Awesome Chapter} % only in book, report \section{Optimal Awesome} \subsection{Here It Is}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Sectioning

Use the commands: \part{Part I} % only in the book class \chapter{Awesome Chapter} % only in book, report \section{Optimal Awesome} \subsection{Here It Is}

Then you can generate your table of contents using: \tableofcontents

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Graphics

In your preamble, include the graphicx package: \usepackage{graphicx}

Then in your body: (arguments and file extension optional) \includegraphics[width=4cm]{coolpix.png}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Tables ‘&’ acts as an alignment character in the tabular environment, ‘\\’ acts as a newline: \begin{tabular}{ |l|l| } \hline stuff & stuff \\ \hline stuff & stuff \\ \hline \end{tabular}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Tables ‘&’ acts as an alignment character in the tabular environment, ‘\\’ acts as a newline: \begin{tabular}{ |l|l| } \hline stuff & stuff \\ \hline stuff & stuff \\ \hline \end{tabular}

Output stuff stuff stuff stuff

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Tables ‘&’ acts as an alignment character in the tabular environment, ‘\\’ acts as a newline: \begin{tabular}{ |l|l| } \hline stuff & stuff \\ \hline stuff & stuff \\ \hline \end{tabular}

Output stuff stuff stuff stuff Also take a look at the excellent tabu package.

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Automagically Numbered Floating Figures and Tables \begin{figure} \centering \includegraphics[width=4cm]{coolpix} \caption{This is a really cool picture} \end{figure}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Automagically Numbered Floating Figures and Tables \begin{figure} \centering \includegraphics[width=4cm]{coolpix} \caption{This is a really cool picture} \end{figure} \begin{table} \centering \caption{Important Data About Stuff} \begin{tabular}{ | l | l | c | } ... \end{tabular} \end{table}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Automagically Numbered Floating Figures and Tables \begin{figure} \centering \includegraphics[width=4cm]{coolpix} \caption{This is a really cool picture} \end{figure} \begin{table} \centering \caption{Important Data About Stuff} \begin{tabular}{ | l | l | c | } ... \end{tabular} \end{table}

You can also generate a List of Figures and a List of Tables: \listoffigures \listoftables Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Presentations Use the beamer class, slides are in the frame environment. \documentclass{beamer} \begin{document} \begin{frame} \frametitle{Relevant Title} Hello World! \pause % Advance slide to continue This won’t show till you click. \begin{block}{Cool Information} This shows in a fancy blue block \end{block} \end{frame} \end{document}

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Relevant Title

Hello World!

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Relevant Title

Hello World! This won’t show till you click. Cool Information This shows in a fancy blue block

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Cool Tricks Using TikZ... 74 75 76

82 8380 81 77 7879 86

85

84

87

88

7273

71 70 69

6867 66

65 64

63 62

6160 59

58

57 5556

5051 4849 47

54 52 53

46 4544 43

42 41

27 28

26 2425 23 22 2120 1918

40 39

3837 36 35

34 33 3132 29 30

17 16

1514 1312 11

10

9 78 5 6

4

3

2

1

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Comprehensive TEX Archive Network (CTAN)

CTAN is a great site that has all of the TEX and LATEX packages and sources. http://ctan.org

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Resources and Recommended Reading

The TEXbook, Donald E. Knuth

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Resources and Recommended Reading

The TEXbook, Donald E. Knuth LATEX: A Document Preparation System, Leslie Lamport

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Resources and Recommended Reading

The TEXbook, Donald E. Knuth LATEX: A Document Preparation System, Leslie Lamport The LATEX Companion, Frank Mittelbach & Michel Goossens

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Resources and Recommended Reading

The TEXbook, Donald E. Knuth LATEX: A Document Preparation System, Leslie Lamport The LATEX Companion, Frank Mittelbach & Michel Goossens The LATEX Book on Wikibooks

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Resources and Recommended Reading

The TEXbook, Donald E. Knuth LATEX: A Document Preparation System, Leslie Lamport The LATEX Companion, Frank Mittelbach & Michel Goossens The LATEX Book on Wikibooks http://texdoc.net

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Resources and Recommended Reading

The TEXbook, Donald E. Knuth LATEX: A Document Preparation System, Leslie Lamport The LATEX Companion, Frank Mittelbach & Michel Goossens The LATEX Book on Wikibooks http://texdoc.net TEX Users Group: http://tug.org

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Getting Help

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

Getting Help

You likely haven’t found a bug in TEX. Knuth pays 0x$80.00 for every bug found in the current stable versions of TEX and METAFONT. TEX Stack Exchange texhax mailing list Come to LUG!

Jack Rosenthal

A presentation in LATEX Beamer on TEX/LATEX

A presentation in LaTeX Beamer on TeX/LaTeX - GitHub

Hello World from \LaTeX ! \begin{equation}. \sum_{n .... pacman -S texlive-most. Debian/Ubuntu/Mint: ... '\input'. pdfTEX will produce a PDF file. Jack Rosenthal.

5MB Sizes 2 Downloads 277 Views

Recommend Documents

A presentation in LaTeX Beamer on LaTeX Beamer - GitHub
Oct 20, 2016 - \usetheme{theme goes here} after the \usepackage section. • I personally prefer the Pittsburgh theme, but others around ... add captions ...

beamer-purdue - A Beamer template inspired by the Purdue ... - GitHub
May 19, 2016 - A Beamer template inspired by the Purdue Visual. Identity ... x(t)e−jωt dt. (1). 4/10 ... PDF plots are nice, but nothing beats the native look of.

Posters and LATEX - GitHub
Aug 23, 2011 - and there is even another website, which uses this document class and TikZ ... 1The URL is http://theoval.cmp.uea.ac.uk/~nlct/latex/posters/index.html ... and Thomas Deselaers have created the beamerposter package, which ...

A Beamer Template for Huazhong University of Science and ... - GitHub
Jun 18, 2016 - 如\email{[email protected]}会生成如下效果的地址: ... 文件,其效果见hustbeamer-example.pdf。 1 ...... \href{mailto:#1}{\texttt{#1}}. 447 }.

How to make presentations with LATEX - GitHub
Aug 29, 2011 - well with PGF/TikZ packages which might make it the best solution out there. ... done from scratch, the user will end up having a unique theme for his/her ... .tex files, which get compiled when needed and then the resultant .pdf.

〈q|pic〉: Quantum Circuit Diagrams in LATEX - GitHub
28. 5 qpic and LATEX. 28. 5.1 Include 〈q|pic〉 Diagrams as PDF Graphics in a LATEX File . ... A Python script, which we call1 qpic, parses .... Figure 3: Quantum Fourier transform on three bits: diagram and code. It is worth .... discarded. Line 9

An Example of Using hustreport LaTeX Template - GitHub
Department Electronic and Information Engineering. Graduate School .... Figure supports format in eps, png, pdf and so on. Multi-figures ... Student Signature.

LaTeX Tutorial
To have formulas appear in their own paragraph, use matching $$'s to surround them. For example,. $$. \frac{x^n-1}{x-1} = \sum_{k=0}^{n-1}x^k. $$ becomes xn − 1 x − 1. = n−1. ∑ k=0 xk. Practice: Create your own document with both kinds of for

Hypertext marks in LATEX: a manual for hyperref - Michael Prokop
2 by processing hyperref.dtx. You should also read the chapter on hyperref in The LATEX Web ... The image command is intended (as with current HTML.

latex gloves.pdf
Sign in. Page. 1. /. 1. Loading… Page 1 of 1. Page 1 of 1. latex gloves.pdf. latex gloves.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying latex gloves.pdf. Page 1 of 1.

A Sample AMS Latex File
Abstract: This paper evaluates the IPCC SRES scenarios against fossil fuel depletion models and proposes attainable carbon emissions trajectories. The contemporary carbon feedback cycle is then evaluated in light of recent studies and attainable carb

A Scandal In Bohemia - GitHub
ton, bachelor. It was all done in an instant, and there was the gentle- man thanking me on the one side and the lady on the other, while the clergyman beamed ...

On Effective Presentation of Graph Patterns: A ... - ACM Digital Library
Oct 30, 2008 - to mine frequent patterns over graph data, with the large spectrum covering many variants of the problem. However, the real bottleneck for ...

On Effective Presentation of Graph Patterns: A ...
Oct 30, 2008 - niques give is a lengthy list of exact patterns, which are undesirable ..... and enumerated supports, in order to delegate p1 by p2 so that p1 can ...

LATEX Tutorial
LATEX Tutorial. Zhirong Yang. Laboratory of Computer and Information Science. Helsinki University of Technology. 16 December 2007. – Typeset by FoilTEX – ...

Hands-On Exercises - GitHub
Nov 29, 2011 - Lecture 13: Building a Bioinformatics Pipeline, Part III ... Download protein sequences for the best blast hits from Swiss-Prot ... Download the file unknown1.fas and unknown2.fas from the class website. ... u1.seq[:10].tostring().

Presentation - Optimising the guidance on significant benefit ...
Apr 25, 2017 - Industry stakeholder platform on research and development support. Presented by Matthias Hofer on 25 ... authorisation application. Page 2. Orphan environment after 16 years of EU orphan legislation. Recent developments ...

Presentation on Ebola Virus.pdf
Page 2 of 19. Ebola Awareness Ebola Awareness. Toolbox Talk. March 2014. Disclaimer: This awareness talk has been developed for educational. purposes onl It i t b tit t f f i l di l d i ly. It is not a su. bstitute for professional medical a. d. vice