Skip to content

Instantly share code, notes, and snippets.

@thomp
Created January 19, 2021 22:23
Show Gist options
  • Save thomp/f23f689b300d01e7100df95c26f86bd4 to your computer and use it in GitHub Desktop.
Save thomp/f23f689b300d01e7100df95c26f86bd4 to your computer and use it in GitHub Desktop.
org LaTeX_HEADER examples

Example of LaTeX_header for org

Misc. examples

#+LaTeX_HEADER: \usepackage{parskip} \usepackage{nopageno} \usepackage{tabularx}

#+LaTeX_HEADER: \usepackage[margin=1.5cm,portrait,letterpaper]{geometry} \newenvironment{identity} {\endgroup\ignorespaces} {\begingroup\def\@currenvir{identity}\ignorespacesafterend}

Specifying font

#+LaTeX_HEADER: \usepackage{xltxtra} \usepackage{fontspec} \setmainfont{DejaVu Serif} \setsansfont{DejaVu Sans} \setmonofont{DejaVu Sans Mono}

Access to the libertine and biolinium fonts:

#+latex_header: \usepackage{libertine}

Increasing font size:

#+latex_header: \usepackage{setspace} #+latex_header: \onehalfspacing #+latex_class_options: [12pt]

inputenc as UTF8 encoding should be unnecessary with LaTeX 2018 or later

#+latex_header: \usepackage[utf8]{inputenc}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment