session 13 14 l t ex markdown cv workshop
play

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


  1. Session 13/14: L T EX/Markdown CV Workshop A P . S. Langeslag 31 January 2019

  2. L A T EX

  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

  4. 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} 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

  5. Hanging Indent in tabularx \begin {tabularx}{\textwidth}{p{29mm} >{\hangindent1em \hangafter1\raggedright\arraybackslash}X} 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}

  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}

  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}

  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.

  9. Pandoc Markdown

  10. ▶ 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. Issue: Too Much Top-Margin on Title Page

  11. ▶ 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. Issue: Too Much Top-Margin on Title Page ▶ Prefix your title with \vspace*{-25mm} or similar: % \vspace*{-2em}A Brief History of Thyme

  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.

  13. 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. Issue: Set Font Size/Padding for Headings

  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.

  15. We can neutralize these commands in header-includes as follows: header-includes : | ```{=latex} \renewcommand{\toprule}{} \renewcommand{\midrule}{} \renewcommand{\bottomrule}{} ``` Issue: No Support for Borderless Tables Pandoc’s default L T EX template loads booktabs , A and Pandoc’s table code relies on its rule commands.

  16. Issue: No Support for Borderless Tables Pandoc’s default L T EX template loads booktabs , A 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}{} ```

  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

  18. L T EX environments like multicols only take L T EX formatting, unless A A 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. Issue: Column Support Only Available in beamer Use header-includes to load the multicol L A T EX package.

  19. Issue: Column Support Only Available in beamer Use header-includes to load the multicol L A T EX package. L T EX environments like multicols only take L T EX formatting, unless A A 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.

  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.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend