Session 13/14: L T EX/Markdown CV Workshop A P . S. Langeslag - - PowerPoint PPT Presentation

session 13 14 l t ex markdown cv workshop
SMART_READER_LITE
LIVE PREVIEW

Session 13/14: L T EX/Markdown CV Workshop A P . S. Langeslag - - PowerPoint PPT Presentation

Session 13/14: L T EX/Markdown CV Workshop A P . S. Langeslag 31 January 2019 L A T EX L A T EX Recommendations Packages fullpage ; or geometry to reduce margins longtable or ltablex for tables across page breaks enumitem


slide-1
SLIDE 1

Session 13/14: L

A

T EX/Markdown CV Workshop

P . S. Langeslag 31 January 2019

slide-2
SLIDE 2

L

A

T EX

slide-3
SLIDE 3

L

A

T EX Recommendations

Packages

▶ fullpage; or geometry to reduce margins ▶ longtable or ltablex for tables across page breaks ▶ enumitem to customize lists (e.g. spacing) ▶ fancyhdr for page headers ▶ hyperref for hyperlinks

Environments

▶ section ▶ tabularx ▶ enumerate, itemize ▶ multicols or minipage

slide-4
SLIDE 4

L

A

T EX Challenges

Too Much Top-Margin on Title Page

▶ Use the fullpage package ▶ Use the titling package and \setlength{\droptitle}{-12mm} ▶ Or prepend e.g. \vspace*{-12mm} to your title

Align Lefu in tabularx

\begin{tabularx}{\textwidth}{p{29mm}>{\raggedright \arraybackslash}X}

Hanging Indent in tabularx

\begin{tabularx}{\textwidth}{p{29mm} >{\hangindent1em \hangafter1\raggedright\arraybackslash}X}

slide-5
SLIDE 5

L

A

T EX Challenges

Too Much Top-Margin on Title Page

▶ Use the fullpage package ▶ Use the titling package and \setlength{\droptitle}{-12mm} ▶ Or prepend e.g. \vspace*{-12mm} to your title

Align Lefu in tabularx

\begin{tabularx}{\textwidth}{p{29mm}>{\raggedright \arraybackslash}X}

Hanging Indent in tabularx

\begin{tabularx}{\textwidth}{p{29mm} >{\hangindent1em \hangafter1\raggedright\arraybackslash}X}

slide-6
SLIDE 6

L

A

T EX Challenges

Too Much Top-Margin on Title Page

▶ Use the fullpage package ▶ Use the titling package and \setlength{\droptitle}{-12mm} ▶ Or prepend e.g. \vspace*{-12mm} to your title

Align Lefu in tabularx

\begin{tabularx}{\textwidth}{p{29mm}>{\raggedright \arraybackslash}X}

Hanging Indent in tabularx

\begin{tabularx}{\textwidth}{p{29mm} >{\hangindent1em \hangafter1\raggedright\arraybackslash}X}

slide-7
SLIDE 7

L

A

T EX Challenges

itemize in tabularx

Enclose in minipage:

\begin{tabularx}{\textwidth}{lX} \begin{minipage}[t]{\linewidth} \begin{itemize}[nosep,after=\strut] % requires `enumitem` \item ... % package \end{itemize} \end{minipage} \end{tabularx}

slide-8
SLIDE 8

L

A

T EX Challenges

Set Font Size/Padding for Headings

Use the titlesec package:

\usepackage{titlesec} \titleformat*{\section}{\Large\bfseries} \titleformat*{\subsection}{\large\bfseries} \titleformat*{\subsubsection}{\normalsize\bfseries\itshape}

Adjust size and style as required; see WikiBooks.

slide-9
SLIDE 9

Pandoc Markdown

slide-10
SLIDE 10

Issue: Too Much Top-Margin on Title Page

▶ Prefix your title with \vspace*{-25mm} or similar:

% \vspace*{-2em}A Brief History of Thyme

▶ Or set titling options in your header-includes:

header-includes: | ```{=latex} \usepackage{titling} \setlength{\droptitle}{-25mm} ```

The latter also reduces the distance between title block elements.

slide-11
SLIDE 11

Issue: Too Much Top-Margin on Title Page

▶ Prefix your title with \vspace*{-25mm} or similar:

% \vspace*{-2em}A Brief History of Thyme

▶ Or set titling options in your header-includes:

header-includes: | ```{=latex} \usepackage{titling} \setlength{\droptitle}{-25mm} ```

The latter also reduces the distance between title block elements.

slide-12
SLIDE 12

Issue: Too Much Top-Margin on Title Page

▶ Prefix your title with \vspace*{-25mm} or similar:

% \vspace*{-2em}A Brief History of Thyme

▶ Or set titling options in your header-includes:

header-includes: | ```{=latex} \usepackage{titling} \setlength{\droptitle}{-25mm} ```

The latter also reduces the distance between title block elements.

slide-13
SLIDE 13

Issue: Set Font Size/Padding for Headings

Use the titlesec package:

header-includes: | ```{=latex} \usepackage{titlesec} \titleformat*{\section}{\Large\bfseries} \titleformat*{\subsection}{\large\bfseries} \titleformat*{\subsubsection}{\normalsize\bfseries\itshape} ```

Adjust size and style as required; see WikiBooks.

slide-14
SLIDE 14

Issue: Set Font Size/Padding for Headings

Use the titlesec package:

header-includes: | ```{=latex} \usepackage{titlesec} \titleformat*{\section}{\Large\bfseries} \titleformat*{\subsection}{\large\bfseries} \titleformat*{\subsubsection}{\normalsize\bfseries\itshape} ```

Adjust size and style as required; see WikiBooks.

slide-15
SLIDE 15

Issue: No Support for Borderless Tables

Pandoc’s default L

A

T EX template loads booktabs, and Pandoc’s table code relies on its rule commands. We can neutralize these commands in header-includes as follows:

header-includes: | ```{=latex} \renewcommand{\toprule}{} \renewcommand{\midrule}{} \renewcommand{\bottomrule}{} ```

slide-16
SLIDE 16

Issue: No Support for Borderless Tables

Pandoc’s default L

A

T EX template loads booktabs, and Pandoc’s table code relies on its rule commands. We can neutralize these commands in header-includes as follows:

header-includes: | ```{=latex} \renewcommand{\toprule}{} \renewcommand{\midrule}{} \renewcommand{\bottomrule}{} ```

slide-17
SLIDE 17

Issue: No Support for Borderless Tables

In some use cases, definition lists may be preferable:

2023 : BSc Exolinguistics, Starfleet Academy 2019 : MA English Philology, Göttingen University

slide-18
SLIDE 18

Issue: Column Support Only Available in beamer

Use header-includes to load the multicol L

A

T EX package. L

A

T EX environments like multicols only take L

A

T EX formatting, unless you clone the \begin and \end commands along these lines:

header-includes: | ```{=latex} \usepackage{multicol} \newcommand{\stealth}[1]{#1} \stealth{ \let\Begin\begin \let\End\end } ```

Then use \Begin{multicols}{2} and \End{multicols}; you can now use Markdown inside the multicols environment.

slide-19
SLIDE 19

Issue: Column Support Only Available in beamer

Use header-includes to load the multicol L

A

T EX package. L

A

T EX environments like multicols only take L

A

T EX formatting, unless you clone the \begin and \end commands along these lines:

header-includes: | ```{=latex} \usepackage{multicol} \newcommand{\stealth}[1]{#1} \stealth{ \let\Begin\begin \let\End\end } ```

Then use \Begin{multicols}{2} and \End{multicols}; you can now use Markdown inside the multicols environment.

slide-20
SLIDE 20

Recommended Reading

Cone, Matt. Markdown Guide. Accessed January 6, 2019. https://www.markdownguide.org. “LaTeX,” n.d. https://en.wikibooks.org/wiki/LaTeX. MacFarlane, John. “Pandoc User’s Guide.” Accessed January 6, 2019. http://pandoc.org/MANUAL.html.