S4 - LaTeX editing, Richard Hutchinson (SfEP 27th conference, 10-12 September 2016)

Preview:

Citation preview

LATEX editingLet’s talk about text markup

Richard HutchinsonMonday 12 September 2016

richard.a.hutchinson@gmail.com

1

Table of contents

Who are you?

What’s this all about?

Where did it come from?

What can you do with it?

How can I use it?

How do authors use it?

2

Who are you?

Introductions

What am I doing here?

What are you doing here?

4

Introductions

What am I doing here?

What are you doing here?

4

What’s this all about?

Text markup

LATEX is a text markup language, which means you embed commandsin the text

\LaTeX\ is a \emph{text markup} language, whichmeans you \textbf{embed} commands inthe text % This is a comment

6

Text markup

LATEX is a text markup language, which means you embed commandsin the text

\LaTeX\ is a \emph{text markup} language, whichmeans you \textbf{embed} commands inthe text % This is a comment

6

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

Document structure

\documentclass{article}

\usepackage{...}\usepackage{...}

% Definitions

\begin{document}

...

\end{document}

Invisible!

7

ExampleDocument structure

8

LATEX files

Importantly, LATEX files are plain text files

Not proprietary binary formatCan use all sorts of text tools

In particular, choice of editorDifferencingVersion control

Small sizeEasily portableWork anywhere – don’t need special software installedLATEX itself easily extendedLingua franca for equations

9

LATEX files

Importantly, LATEX files are plain text files

Not proprietary binary formatCan use all sorts of text tools

In particular, choice of editorDifferencingVersion control

Small sizeEasily portableWork anywhere – don’t need special software installedLATEX itself easily extendedLingua franca for equations

9

Input, processing and output

.tex file

10

Input, processing and output

.tex file .dvi filelatex

10

Input, processing and output

.tex file .dvi filelatex .pdf file

screen

dvipdf

10

Input, processing and output

.tex file .dvi filelatex .pdf file

screen

dvipdf

printer

10

Input, processing and output

.tex file .dvi filelatex .pdf file

screen

dvipdf

printer

pdftex

10

Where did it come from?

TEX and LATEX

Gentle reader: This is a handbook about TEX, anew typesetting system intended for the creationof beautiful books—and especially for books thatcontain a lot of mathematics.

Donald E. Knuth, The TEXbook, American Mathematical Society (1984)

LATEX adds to TEX a collection of commands that sim-plify typesetting by letting the user concentrate onthe structure of the text rather than on formattingcommands. In turning TEX into LATEX, I have tried toconvert a highly tuned racing car into a comfortablefamily sedan.Leslie Lamport, LATEX: A Document Preparation System, Addison-Wesley (1986)

12

TEX and LATEX

Gentle reader: This is a handbook about TEX, anew typesetting system intended for the creationof beautiful books—and especially for books thatcontain a lot of mathematics.

Donald E. Knuth, The TEXbook, American Mathematical Society (1984)

LATEX adds to TEX a collection of commands that sim-plify typesetting by letting the user concentrate onthe structure of the text rather than on formattingcommands. In turning TEX into LATEX, I have tried toconvert a highly tuned racing car into a comfortablefamily sedan.Leslie Lamport, LATEX: A Document Preparation System, Addison-Wesley (1986)

12

Abstraction

LATEX \section{Section heading}

TEX \newcommand\section{\@startsection {section}{1}{\z@}%{-3.5ex \@plus -1ex \@minus -.2ex}%{2.3ex \@plus.2ex}%{\normalfont\Large\bfseries}}

\def\@startsection#1#2#3#4#5#6{%\if@noskipsec \leavevmode \fi\par\@tempskipa #4\relax\@afterindenttrue\ifdim \@tempskipa <\z@

\@tempskipa -\@tempskipa \@afterindentfalse\fi\if@nobreak

\everypar{}%\else

\addpenalty\@secpenalty\addvspace\@tempskipa\fi\@ifstar

{\@ssect{#3}{#4}{#5}{#6}}%{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}

13

Abstraction

LATEX \section{Section heading}TEX \newcommand\section{\@startsection {section}{1}{\z@}%

{-3.5ex \@plus -1ex \@minus -.2ex}%{2.3ex \@plus.2ex}%{\normalfont\Large\bfseries}}

\def\@startsection#1#2#3#4#5#6{%\if@noskipsec \leavevmode \fi\par\@tempskipa #4\relax\@afterindenttrue\ifdim \@tempskipa <\z@

\@tempskipa -\@tempskipa \@afterindentfalse\fi\if@nobreak

\everypar{}%\else

\addpenalty\@secpenalty\addvspace\@tempskipa\fi\@ifstar

{\@ssect{#3}{#4}{#5}{#6}}%{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}

13

What can you do with it?

Not just journal papers…

15

Capabilities

Actually, anything!

Concentrate on editing rather than writing

Comparison with Word

16

Capabilities

Actually, anything!

Concentrate on editing rather than writing

Comparison with Word

16

Capabilities

Actually, anything!

Concentrate on editing rather than writing

Comparison with Word

16

Capabilities

Actually, anything!

Concentrate on editing rather than writing

Comparison with Word

16

Home: fonts

Size \tiny \scriptsize \footnotesize \small \normalsize \large

\Large \LARGE\huge\HugeEffects \textbf \textit \underline \sout

1

Super/sub x2 x2

$x_2 x^2$

Colours \hl

2

\textcolor{red}

3

External packages: 1ulem 2soul 3color

17

Home: fonts

Size \tiny \scriptsize \footnotesize \small \normalsize \large

\Large \LARGE\huge\HugeEffects \textbf \textit \underline \sout

1

Super/sub x2 x2

$x_2 x^2$

Colours \hl

2

\textcolor{red}

3

External packages: 1ulem 2soul 3color

17

Home: fonts

Size \tiny \scriptsize \footnotesize \small \normalsize \large

\Large \LARGE\huge\HugeEffects \textbf \textit \underline \sout

1

Super/sub x2 x2 $x_2 x^2$

Colours \hl

2

\textcolor{red}

3

External packages: 1ulem 2soul 3color

17

Home: fonts

Size \tiny \scriptsize \footnotesize \small \normalsize \large

\Large \LARGE\huge\HugeEffects \textbf \textit \underline \sout1

Super/sub x2 x2 $x_2 x^2$

Colours \hl2 \textcolor{red}3

External packages: 1ulem 2soul 3color

17

Home: justification

\raggedright or flushleftLorizzle uhuh ... yih! dolizzle sit amizzle, consectetuer adipiscingdaahng dawg. Nullizzle owned velizzle, brizzle volutpizzle,crackalackin my shizz, fo shizzle vizzle, arcu.

\centering or centerLorizzle uhuh ... yih! dolizzle sit amizzle, consectetuer adipiscing

daahng dawg. Nullizzle owned velizzle, brizzle volutpizzle,crackalackin my shizz, fo shizzle vizzle, arcu.

\raggedleft or flushrightLorizzle uhuh ... yih! dolizzle sit amizzle, consectetuer adipiscing

daahng dawg. Nullizzle owned velizzle, brizzle volutpizzle,crackalackin my shizz, fo shizzle vizzle, arcu.

18

Home: justification

\raggedright or flushleftLorizzle uhuh ... yih! dolizzle sit amizzle, consectetuer adipiscingdaahng dawg. Nullizzle owned velizzle, brizzle volutpizzle,crackalackin my shizz, fo shizzle vizzle, arcu.

\centering or centerLorizzle uhuh ... yih! dolizzle sit amizzle, consectetuer adipiscing

daahng dawg. Nullizzle owned velizzle, brizzle volutpizzle,crackalackin my shizz, fo shizzle vizzle, arcu.

\raggedleft or flushrightLorizzle uhuh ... yih! dolizzle sit amizzle, consectetuer adipiscing

daahng dawg. Nullizzle owned velizzle, brizzle volutpizzle,crackalackin my shizz, fo shizzle vizzle, arcu.

18

Home: lists

itemize enumerate

Cupcake Ipsum

Picksum Ipsum

Lorizzle

Samuel L. Ipsum

Fillerama

PokéIpsum

1. Cupcake Ipsum

2. Picksum Ipsum

3. Lorizzle

4. Samuel L. Ipsum

5. Fillerama

6. PokéIpsum

1. Cupcake Ipsum

1.1 Picksum Ipsum1.2 Lorizzle

2. Samuel L. Ipsum

3. Fillerama

4. PokéIpsum

19

Home: lists

itemize enumerate

Cupcake Ipsum

Picksum Ipsum

Lorizzle

Samuel L. Ipsum

Fillerama

PokéIpsum

1. Cupcake Ipsum

2. Picksum Ipsum

3. Lorizzle

4. Samuel L. Ipsum

5. Fillerama

6. PokéIpsum

1. Cupcake Ipsum

1.1 Picksum Ipsum1.2 Lorizzle

2. Samuel L. Ipsum

3. Fillerama

4. PokéIpsum

19

Home: styles

Word LATEXNormalHeading 1 \section{}Heading 2 \subsection{}Emphasis \emph{}… …

Defined in:Templates Document class, packages, local definitions

20

Home: styles

Word LATEXNormalHeading 1 \section{}Heading 2 \subsection{}Emphasis \emph{}… …

Defined in:Templates Document class, packages, local definitions

20

ExampleEffect of document class

21

Insert: tables

Cocktail IngredientsMojito limes, mint leaves, sugar, ice, white rum, soda waterCosmopolitan vodka, orange liqueur, lime juice, cranberry juiceWhisky sour egg white, caster sugar, vanilla syrup, lemon juice, bourbon, bitters

\begin{tabular}{|l|l|}\hlineCocktail & Ingredients \\\hlineMojito & limes, mint leaves, sugar, ice, white rum, soda water \\\hlineCosmopolitan & vodka, orange liqueur, lime juice, cranberry juice \\\hlineWhisky sour & egg white, caster sugar, vanilla syrup, lemon juice, bourbon, bitters \\\hline\end{tabular}

22

Insert: tables

Cocktail IngredientsMojito limes, mint leaves, sugar, ice, white rum, soda waterCosmopolitan vodka, orange liqueur, lime juice, cranberry juiceWhisky sour egg white, caster sugar, vanilla syrup, lemon juice, bourbon, bitters

\begin{tabular}{|l|l|}\hlineCocktail & Ingredients \\\hlineMojito & limes, mint leaves, sugar, ice, white rum, soda water \\\hlineCosmopolitan & vodka, orange liqueur, lime juice, cranberry juice \\\hlineWhisky sour & egg white, caster sugar, vanilla syrup, lemon juice, bourbon, bitters \\\hline\end{tabular}

22

Insert: tables

Cocktail IngredientsMojito limes, mint leaves, sugar, ice, white rum, soda waterCosmopolitan vodka, orange liqueur, lime juice, cranberry juiceWhisky sour egg white, caster sugar, vanilla syrup, lemon juice, bourbon, bitters

\begin{tabular}{|l|l|}\hlineCocktail & Ingredients \\\hlineMojito & limes, mint leaves, sugar, ice, white rum, soda water \\\hlineCosmopolitan & vodka, orange liqueur, lime juice, cranberry juice \\\hlineWhisky sour & egg white, caster sugar, vanilla syrup, lemon juice, bourbon, bitters \\\hline\end{tabular}

22

ExampleEditing a table

23

Insert: figures

Figure 1: Cross-cultural mashup? Never mind

\includegraphics[height=3.5cm]{95115}

24

Insert: figures

Figure 1: Cross-cultural mashup? Never mind

\includegraphics[height=3.5cm]{95115}

24

Insert: figures

Figure 1: Cross-cultural mashup? Never mind

\includegraphics[height=3.5cm]{95115}

24

Aside: floats and labels

Figure 1 blends …

\begin{figure}[htbp]\centering\includegraphics[height=3.5cm]{95115}\caption{Cross-cultural mashup? Never mind}\label{fig:bart}

\end{figure}

Figure~\ref{fig:bart} blends \ldots

25

Aside: floats and labels

Figure 1 blends …

\begin{figure}[htbp]\centering\includegraphics[height=3.5cm]{95115}\caption{Cross-cultural mashup? Never mind}\label{fig:bart}

\end{figure}

Figure~\ref{fig:bart} blends \ldots

25

Aside: floats and labels

Figure 1 blends …

\begin{figure}[htbp]\centering\includegraphics[height=3.5cm]{95115}\caption{Cross-cultural mashup? Never mind}\label{fig:bart}

\end{figure}

Figure~\ref{fig:bart} blends \ldots

25

Insert: shapes etc.

Drawing a picture in words:

\begin{tikzpicture}[node distance = 3cm, auto, >=latex, thick]\path[use as bounding box]<1-> (-1,0) rectangle (8,-2);\path[->]<1-> node[format] (tex) {.tex file};\path[->]<2-> node[format, right of=tex] (dvi) {.dvi file}

(tex) edge node {\alert{latex}} (dvi);\path[->]<3-> node[format, right of=dvi] (pdf) {.pdf file}

node[medium, below of=dvi] (screen) {screen}(dvi) edge node[swap] {} (screen)

edge node {\alert{dvipdf}} (pdf);\path[->]<4-> node[medium, below of=pdf] (print) {printer}

(pdf) edge (screen)edge (print);

\path[->, draw]<5-> (tex) -- +(0,1) -| node[near start] {\alert{pdftex}} (pdf);\end{tikzpicture}

26

Insert: shapes etc.

Drawing a picture in words:

\begin{tikzpicture}[node distance = 3cm, auto, >=latex, thick]\path[use as bounding box]<1-> (-1,0) rectangle (8,-2);\path[->]<1-> node[format] (tex) {.tex file};\path[->]<2-> node[format, right of=tex] (dvi) {.dvi file}

(tex) edge node {\alert{latex}} (dvi);\path[->]<3-> node[format, right of=dvi] (pdf) {.pdf file}

node[medium, below of=dvi] (screen) {screen}(dvi) edge node[swap] {} (screen)

edge node {\alert{dvipdf}} (pdf);\path[->]<4-> node[medium, below of=pdf] (print) {printer}

(pdf) edge (screen)edge (print);

\path[->, draw]<5-> (tex) -- +(0,1) -| node[near start] {\alert{pdftex}} (pdf);\end{tikzpicture}

26

Insert: miscellaneous

Links hyperref

Headers/footers fancyhdr

Text boxes \framebox

Accents Ñö prøbłémô \~N\"o \v{p}r\o\b{b}\l\'em\^o

27

Insert: miscellaneous

Links hyperref

Headers/footers fancyhdr

Text boxes \framebox

Accents Ñö prøbłémô \~N\"o \v{p}r\o\b{b}\l\'em\^o

27

Insert: miscellaneous

Links hyperref

Headers/footers fancyhdr

Text boxes \framebox

Accents Ñö prøbłémô \~N\"o \v{p}r\o\b{b}\l\'em\^o

27

Insert: miscellaneous

Links hyperref

Headers/footers fancyhdr

Text boxes \framebox

Accents Ñö prøbłémô \~N\"o \v{p}r\o\b{b}\l\'em\^o

27

Insert: miscellaneous

Links hyperref

Headers/footers fancyhdr

Text boxes \framebox

Accents Ñö prøbłémô

\~N\"o \v{p}r\o\b{b}\l\'em\^o

27

Insert: miscellaneous

Links hyperref

Headers/footers fancyhdr

Text boxes \framebox

Accents Ñö prøbłémô \~N\"o \v{p}r\o\b{b}\l\'em\^o

27

Insert: comments

Comments

Sweet lollipop marshmallow marshmallow jelly beans lemon

∗ Toosweet!

dropscheesecake. Cheesecake sesame snaps candy pudding sugar plumlollipop. Pie candy canes lollipop danish jelly beans tootsie roll crois-sant.

Author Query 1I think I preferred Lorizzle.

28

Insert: comments

CommentsSweet lollipop marshmallow marshmallow jelly beans lemon

∗ Toosweet!

dropscheesecake. Cheesecake sesame snaps candy pudding sugar plumlollipop. Pie candy canes lollipop danish jelly beans tootsie roll crois-sant.

Author Query 1I think I preferred Lorizzle.

28

Insert: comments

CommentsSweet lollipop marshmallow marshmallow jelly beans lemon∗ Too

sweet!drops

cheesecake. Cheesecake sesame snaps candy pudding sugar plumlollipop. Pie candy canes lollipop danish jelly beans tootsie roll crois-sant.

Author Query 1I think I preferred Lorizzle.

28

Insert: comments

CommentsSweet lollipop marshmallow marshmallow jelly beans lemon∗ Too

sweet!drops

cheesecake. Cheesecake sesame snaps candy pudding sugar plumlollipop. Pie candy canes lollipop danish jelly beans tootsie roll crois-sant.

Author Query 1I think I preferred Lorizzle.

28

Aside: implementation of new commands

\newcommand{\mquery}[2]{%\textcolor{red}{$^{#1}$}\marginnote{\tiny \textcolor{red}{#2}}}

\mquery{*}{Too sweet!}

\newtheorem{query}{Author Query}

\begin{query}I think I preferred Lorizzle.

\end{query}

29

Aside: implementation of new commands

\newcommand{\mquery}[2]{%\textcolor{red}{$^{#1}$}\marginnote{\tiny \textcolor{red}{#2}}}

\mquery{*}{Too sweet!}

\newtheorem{query}{Author Query}

\begin{query}I think I preferred Lorizzle.

\end{query}

29

Aside: implementation of new commands

\newcommand{\mquery}[2]{%\textcolor{red}{$^{#1}$}\marginnote{\tiny \textcolor{red}{#2}}}

\mquery{*}{Too sweet!}

\newtheorem{query}{Author Query}

\begin{query}I think I preferred Lorizzle.

\end{query}

29

Aside: implementation of new commands

\newcommand{\mquery}[2]{%\textcolor{red}{$^{#1}$}\marginnote{\tiny \textcolor{red}{#2}}}

\mquery{*}{Too sweet!}

\newtheorem{query}{Author Query}

\begin{query}I think I preferred Lorizzle.

\end{query}

29

Insert: maths

The roots of the general quadratic equation ax2 + bx+ c = 0 aregiven by the formula in equation (1).

x = −b±√b2 − 4ac2a (1)

The roots of the general quadratic equation $ax^2+bx+c=0$ are givenby the formula in equation~\eqref{eq:quadratic}.\begin{equation}x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\label{eq:quadratic}

\end{equation}

30

Insert: maths

The roots of the general quadratic equation ax2 + bx+ c = 0 aregiven by the formula in equation (1).

x = −b±√b2 − 4ac2a (1)

The roots of the general quadratic equation $ax^2+bx+c=0$ are givenby the formula in equation~\eqref{eq:quadratic}.\begin{equation}x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\label{eq:quadratic}

\end{equation}

30

Insert: maths

The roots of the general quadratic equation ax2 + bx+ c = 0 aregiven by the formula in equation (1).

x = −b±√b2 − 4ac2a (1)

The roots of the general quadratic equation $ax^2+bx+c=0$ are givenby the formula in equation~\eqref{eq:quadratic}.\begin{equation}x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\label{eq:quadratic}

\end{equation}

30

Aside: MathType

31

Aside: MathType

31

Aside: MathType

31

ExampleMaths

32

References: table of contents, notes

Table of contents \section \tableofcontents

Footnotes \footnote1

Endnotes endnote package

Index \index makeindex theindex

1This is a footnote.

33

References: table of contents, notes

Table of contents \section \tableofcontents

Footnotes \footnote1

Endnotes endnote package

Index \index makeindex theindex

1This is a footnote.

33

References: table of contents, notes

Table of contents \section \tableofcontents

Footnotes \footnote1

Endnotes endnote package

Index \index makeindex theindex

1This is a footnote.

33

References: table of contents, notes

Table of contents \section \tableofcontents

Footnotes \footnote1

Endnotes endnote package

Index \index makeindex theindex

1This is a footnote.

33

References: table of contents, notes

Table of contents \section \tableofcontents

Footnotes \footnote1

Endnotes endnote package

Index \index makeindex theindex

1This is a footnote.

33

References: bibliography and citations

Bibliography

\begin{thebibliography}{}\bibitem[Armus et al.(2007)]{Armus+07}

Armus, L., et al.\ 2007, ApJ, 656, 148\bibitem[Bayet et al.(2009)]{Bayet+09}

Bayet, E., Gerin, M., Phillips, T.~G.,\& Contursi, A.\ 2009, MNRAS, 399, 264

\end{thebibliography}

Citation

\ldots and the exact fraction varies from sourceto source \citep{Armus+07}.

…and the exact fraction varies from source to source (Armus et al., 2007).

34

References: bibliography and citations

Bibliography

\begin{thebibliography}{}\bibitem[Armus et al.(2007)]{Armus+07}

Armus, L., et al.\ 2007, ApJ, 656, 148\bibitem[Bayet et al.(2009)]{Bayet+09}

Bayet, E., Gerin, M., Phillips, T.~G.,\& Contursi, A.\ 2009, MNRAS, 399, 264

\end{thebibliography}

Citation

\ldots and the exact fraction varies from sourceto source \citep{Armus+07}.

…and the exact fraction varies from source to source (Armus et al., 2007).

34

References: bibliography and citations

Bibliography

\begin{thebibliography}{}\bibitem[Armus et al.(2007)]{Armus+07}

Armus, L., et al.\ 2007, ApJ, 656, 148\bibitem[Bayet et al.(2009)]{Bayet+09}

Bayet, E., Gerin, M., Phillips, T.~G.,\& Contursi, A.\ 2009, MNRAS, 399, 264

\end{thebibliography}

Citation

\ldots and the exact fraction varies from sourceto source \citep{Armus+07}.

…and the exact fraction varies from source to source (Armus et al., 2007).

34

ExampleBibliography

35

Aside: BibTEX

BibTEX file (.bib) + style file (.bst) → bibliography file (.bbl)

@Article{AIK1981,author = {Akaike, H.},title = {Likelihood of a Model and Information Criteria},journal = {Journal of Econometrics},year = {1981},volume = {16},pages = {3--14}

}

\bibitem[Akaike(1981)]{AIK1981}Akaike H. 1981 Likelihood of a model and information criteria.\textit{Journal of Econometrics} \textbf{16}, 3--14.

36

Aside: BibTEX

BibTEX file (.bib) + style file (.bst) → bibliography file (.bbl)

@Article{AIK1981,author = {Akaike, H.},title = {Likelihood of a Model and Information Criteria},journal = {Journal of Econometrics},year = {1981},volume = {16},pages = {3--14}

}

\bibitem[Akaike(1981)]{AIK1981}Akaike H. 1981 Likelihood of a model and information criteria.\textit{Journal of Econometrics} \textbf{16}, 3--14.

36

Aside: BibTEX

BibTEX file (.bib) + style file (.bst) → bibliography file (.bbl)

@Article{AIK1981,author = {Akaike, H.},title = {Likelihood of a Model and Information Criteria},journal = {Journal of Econometrics},year = {1981},volume = {16},pages = {3--14}

}

\bibitem[Akaike(1981)]{AIK1981}Akaike H. 1981 Likelihood of a model and information criteria.\textit{Journal of Econometrics} \textbf{16}, 3--14.

36

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version controlEmbedded commentsWordlatexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version controlEmbedded commentsWordlatexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)

Version controlEmbedded commentsWordlatexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version control

Embedded commentsWordlatexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version controlEmbedded comments

Wordlatexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version controlEmbedded commentsWord

latexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version controlEmbedded commentsWordlatexdiff

latexdiff old.tex new.tex > diffs.tex

37

Review: change tracking

Importantly, LATEX files are plain text files

File comparison utilities (meld, windiff, Beyond Compare)Version controlEmbedded commentsWordlatexdiff latexdiff old.tex new.tex > diffs.tex

37

Examplelatexdiff

38

How can I use it?

Distributions

MacMacTeX www.tug.org/mactex

WindowsMiKTeX miktex.orgTeX Live www.tug.org/texlive

OnlineShareLaTeX www.sharelatex.comOverleaf www.overleaf.comPapeeria papeeria.comAuthorea www.authorea.com

40

Editors

MacTexpad www.texpadapp.comTeXShop pages.uoregon.edu/koch/texshop

WindowsLEd www.latexeditor.orgTeXnicCenter www.texniccenter.orgSublime Text 3 www.sublimetet.comNotepad++ notepad-plus-plus.org

BothTeXworks www.tug.org/texworksTexmaker www.xm1math.net/texmakerScientific Workplace www.mackichan.com/products/swp.htmlTeXlipse texlipse.sourceforge.netEmacs / Vim …

https://en.wikipedia.org/wiki/Comparison_of_TeX_editors41

Resources

Online texblog.org/tex-resourcesStack ExchangeGoogle

BooksLATEX: A Document Preparation System,Leslie Lamport, Addison-Wesley, 1994.

LATEX for Complete Novices,Nicola Talbot, Dickimaw Books, 2012.

42

Resources

Online texblog.org/tex-resourcesStack ExchangeGoogle

BooksLATEX: A Document Preparation System,Leslie Lamport, Addison-Wesley, 1994.

LATEX for Complete Novices,Nicola Talbot, Dickimaw Books, 2012.

42

How do authors use it?

Carelessly or lazily!

Michelson−Morley

Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley

Michelson$-$Morley

Michelson–Morley

Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1

$sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$

sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote”

"This is a quote"

“This is a quote”

``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV

$\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV

$\langle E \rangle \approx ~5.0 GeV$

⟨E⟩ ≈ 5.0GeV

$\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o

90$^o$90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$

90◦ 90$^\circ$

44

Carelessly or lazily!

Michelson−Morley Michelson$-$MorleyMichelson–Morley Michelson--Morley

sin2θ + cos2 theta = 1 $sin^2\theta+\cos^2theta=1$sin2 θ + cos2 θ = 1 $\sin^2\theta+\cos^2\theta=1$

”This is a quote” "This is a quote"“This is a quote” ``This is a quote''

⟨E⟩ ≈ 5.0GeV $\langle E \rangle \approx ~5.0 GeV$⟨E⟩ ≈ 5.0GeV $\langle E\rangle\approx5.0\,$GeV

90o 90$^o$90◦ 90$^\circ$

44

Questions?

45

Recommended