SLIDE 1
CSSS 569 Visualizing Data and Models
Lab 2: Intro to L
AT
EX with Overleaf Kai Ping (Brian) Leung
Department of Political Science, UW
January 15, 2020
SLIDE 2 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 3 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 4 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 5 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 6 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides ◮ Control over large documents containing sectioning, cross-references, tables and figures
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 7 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides ◮ Control over large documents containing sectioning, cross-references, tables and figures ◮ Typesetting of complex mathematical formulas
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 8 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides ◮ Control over large documents containing sectioning, cross-references, tables and figures ◮ Typesetting of complex mathematical formulas ◮ Advanced typesetting of mathematics with AMS-LaTeX
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 9 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides ◮ Control over large documents containing sectioning, cross-references, tables and figures ◮ Typesetting of complex mathematical formulas ◮ Advanced typesetting of mathematics with AMS-LaTeX ◮ Automatic generation of bibliographies and indexes
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 10 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides ◮ Control over large documents containing sectioning, cross-references, tables and figures ◮ Typesetting of complex mathematical formulas ◮ Advanced typesetting of mathematics with AMS-LaTeX ◮ Automatic generation of bibliographies and indexes ◮ Multi-lingual typesetting
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 11 Intro to T EX and L
AT
EX
◮ T EX is a typesetting engine1 designed by Donald Knuth, a computer scientist and mathematician at Stanford
◮ For typesetting scientific text and mathematical formulas
◮ L
AT
EX is a document preparation system, or a macro package, built on top of the T EX engine, with features:
◮ Typesetting journal articles, technical reports, books, and slides ◮ Control over large documents containing sectioning, cross-references, tables and figures ◮ Typesetting of complex mathematical formulas ◮ Advanced typesetting of mathematics with AMS-LaTeX ◮ Automatic generation of bibliographies and indexes ◮ Multi-lingual typesetting ◮ See more here
1Modern extensions of the T
EX engines include pdfTeX, XeTeX, LuaTeX, etc.
SLIDE 12
Intro to T EX and L
AT
EX
◮ Popular implementations, or distributions, of T EX/L
AT
EX
SLIDE 13
Intro to T EX and L
AT
EX
◮ Popular implementations, or distributions, of T EX/L
AT
EX
◮ MacTeX for Mac OS: http://www.tug.org/mactex/
SLIDE 14
Intro to T EX and L
AT
EX
◮ Popular implementations, or distributions, of T EX/L
AT
EX
◮ MacTeX for Mac OS: http://www.tug.org/mactex/ ◮ MiKTeX for Windows: https://miktex.org
SLIDE 15
Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
SLIDE 16
Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
SLIDE 17
Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get
SLIDE 18
Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get ◮ You interact with a user interface to control the document layout while typing text
SLIDE 19
Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get ◮ You interact with a user interface to control the document layout while typing text ◮ What is displayed on the screen resembles what will be printed
SLIDE 20 Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get ◮ You interact with a user interface to control the document layout while typing text ◮ What is displayed on the screen resembles what will be printed
◮ L
AT
EX
SLIDE 21 Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get ◮ You interact with a user interface to control the document layout while typing text ◮ What is displayed on the screen resembles what will be printed
◮ L
AT
EX
◮ You provide “L
A
T EX commands” to specify the layout, structure, and details of the document:
SLIDE 22 Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get ◮ You interact with a user interface to control the document layout while typing text ◮ What is displayed on the screen resembles what will be printed
◮ L
AT
EX
◮ You provide “L
A
T EX commands” to specify the layout, structure, and details of the document: ◮ \command[optional parameter]{parameter}
SLIDE 23 Intro to T EX and L
AT
EX
◮ L
AT
EX vs. other word processors (e.g. Microsoft Word)
◮ Microsoft Word
◮ WYSIWYG: What You See Is What You Get ◮ You interact with a user interface to control the document layout while typing text ◮ What is displayed on the screen resembles what will be printed
◮ L
AT
EX
◮ You provide “L
A
T EX commands” to specify the layout, structure, and details of the document: ◮ \command[optional parameter]{parameter} ◮ And typeset the document using the T EX engine and compile the output
SLIDE 24
Intro to T EX and L
AT
EX
◮ The input for L
AT
EX is a plain text file (.tex)
SLIDE 25
Intro to T EX and L
AT
EX
◮ The input for L
AT
EX is a plain text file (.tex)
◮ You need a text editor!
SLIDE 26
Intro to T EX and L
AT
EX
◮ The input for L
AT
EX is a plain text file (.tex)
◮ You need a text editor!
◮ Numerous popular text editors
SLIDE 27
Intro to T EX and L
AT
EX
◮ The input for L
AT
EX is a plain text file (.tex)
◮ You need a text editor!
◮ Numerous popular text editors
◮ Specific: Texmaker, TeXShop, TeXstudio, TeXworks. . .
SLIDE 28
Intro to T EX and L
AT
EX
◮ The input for L
AT
EX is a plain text file (.tex)
◮ You need a text editor!
◮ Numerous popular text editors
◮ Specific: Texmaker, TeXShop, TeXstudio, TeXworks. . . ◮ Generic: Emacs (Aquamacs), Vim, Sublime, Atom. . .
SLIDE 29
Intro to T EX and L
AT
EX
◮ The input for L
AT
EX is a plain text file (.tex)
◮ You need a text editor!
◮ Numerous popular text editors
◮ Specific: Texmaker, TeXShop, TeXstudio, TeXworks. . . ◮ Generic: Emacs (Aquamacs), Vim, Sublime, Atom. . .
◮ A quick demonstration
SLIDE 30
Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . .
SLIDE 31
Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
SLIDE 32 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
SLIDE 33 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
◮ Integrated PDF preview pane
SLIDE 34 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
◮ Integrated PDF preview pane ◮ Quality of life features: auto-complete commands, auto-close brackets, keyboard shortcuts, etc.
SLIDE 35 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
◮ Integrated PDF preview pane ◮ Quality of life features: auto-complete commands, auto-close brackets, keyboard shortcuts, etc. ◮ Numerous templates: journal articles, books, CVs, slides, posters, etc.
SLIDE 36 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
◮ Integrated PDF preview pane ◮ Quality of life features: auto-complete commands, auto-close brackets, keyboard shortcuts, etc. ◮ Numerous templates: journal articles, books, CVs, slides, posters, etc. ◮ Easy collaboration
SLIDE 37 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
◮ Integrated PDF preview pane ◮ Quality of life features: auto-complete commands, auto-close brackets, keyboard shortcuts, etc. ◮ Numerous templates: journal articles, books, CVs, slides, posters, etc. ◮ Easy collaboration ◮ Integrated with Zotero and Mendeley for bibliography management
SLIDE 38 Intro to L
AT
EX with Overleaf
◮ All the above sound pretty complicated. . . ◮ Overleaf: https://www.overleaf.com/
◮ An online L
AT
EX editor
◮ Integrated PDF preview pane ◮ Quality of life features: auto-complete commands, auto-close brackets, keyboard shortcuts, etc. ◮ Numerous templates: journal articles, books, CVs, slides, posters, etc. ◮ Easy collaboration ◮ Integrated with Zotero and Mendeley for bibliography management ◮ Integrated with Git for version control
SLIDE 39
Intro to L
AT
EX with Overleaf
◮ Before we dive in, useful resources
SLIDE 40 Intro to L
AT
EX with Overleaf
◮ Before we dive in, useful resources
◮ The Not So Short Introduction to L
AT
EX2ε (Oetiker et al., 2018)
SLIDE 41 Intro to L
AT
EX with Overleaf
◮ Before we dive in, useful resources
◮ The Not So Short Introduction to L
AT
EX2ε (Oetiker et al., 2018)
◮ Learn L
A
T EX in 139 pages / minutes
SLIDE 42 Intro to L
AT
EX with Overleaf
◮ Before we dive in, useful resources
◮ The Not So Short Introduction to L
AT
EX2ε (Oetiker et al., 2018)
◮ Learn L
A
T EX in 139 pages / minutes
◮ ‘Overleaf‘ documentation
SLIDE 43 Intro to L
AT
EX with Overleaf
◮ Before we dive in, useful resources
◮ The Not So Short Introduction to L
AT
EX2ε (Oetiker et al., 2018)
◮ Learn L
A
T EX in 139 pages / minutes
◮ ‘Overleaf‘ documentation
◮ Contains intro to basic L
A
T EX, Overleaf, and many practical guides
SLIDE 44 Intro to L
AT
EX with Overleaf
◮ Before we dive in, useful resources
◮ The Not So Short Introduction to L
AT
EX2ε (Oetiker et al., 2018)
◮ Learn L
A
T EX in 139 pages / minutes
◮ ‘Overleaf‘ documentation
◮ Contains intro to basic L
A
T EX, Overleaf, and many practical guides
◮ T EX at StackExchange
SLIDE 45
Intro to L
AT
EX with Overleaf
◮ Some useful templates:
SLIDE 46
Intro to L
AT
EX with Overleaf
◮ Some useful templates:
◮ Thesis: here
SLIDE 47
Intro to L
AT
EX with Overleaf
◮ Some useful templates:
◮ Thesis: here ◮ Academic journal: here
SLIDE 48
Intro to L
AT
EX with Overleaf
◮ Some useful templates:
◮ Thesis: here ◮ Academic journal: here ◮ Presentation slides (Beamer): here and here
SLIDE 49
Intro to L
AT
EX with Overleaf
◮ Some useful templates:
◮ Thesis: here ◮ Academic journal: here ◮ Presentation slides (Beamer): here and here ◮ Poster: here
SLIDE 50
Intro to L
AT
EX with Overleaf
◮ Some useful templates:
◮ Thesis: here ◮ Academic journal: here ◮ Presentation slides (Beamer): here and here ◮ Poster: here ◮ Graphs, trees, diagrams (TikZ): here