# Long org export latex header

I need many lines in my org-export latex header.

``````#+LATEX_HEADER: \usepackage[main=british,polutonikogreek]{babel}
#+LATEX_HEADER: \newcount\instr \instr=1 % hide/show instructions
``````

Is there an alternative to putting `#+LATEX_HEADER` in front of each?

• Your problem is not related with the tile of the question. – Dox Jan 26 '17 at 14:29
• If you prefer, write all of the preamble in an external file, say `header.tex`, and then call it like `#+latex_header: /path/to/header.tex`. – Dox Jan 26 '17 at 14:31
• @Dox, ups, corrected. – Toothrot Jan 26 '17 at 15:22

A possible solution is to write a file with the LaTeX preamble, like

``````%% This is the file MyTeXHeader.tex
\usepackage[main=british,polutonikogreek]{babel}
\usepackage{fontspec}
\usepackage{hanging}
\setmainfont{ebgaramond}[Contextuals=Alternate]
\newcount\instr \instr=1 % hide/show instructions
\babelhyphenation[british]{philo-sophy}
``````

and then use a single call of `#+latex_header` in your org file

``````#+title: A shortcut in my LaTeX header
#+author: Stan Lee
• I had to do `#+latex_header: \input preamble` – Toothrot Jan 29 '17 at 19:35