[Org, LaTeX] Add headers for LaTeX export

Just in case
This commit is contained in:
Lucien Cartier-Tilet 2021-07-30 17:59:24 +02:00
parent deb3e03877
commit c3a81ae45d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 23 additions and 2 deletions

View File

@ -10,7 +10,13 @@
#+OPTIONS: H:4 broken_links:mark email:t ^:{} #+OPTIONS: H:4 broken_links:mark email:t ^:{}
#+KEYWORDS: dotfiles, linux, emacs, configuration, phundrak, drakpa #+KEYWORDS: dotfiles, linux, emacs, configuration, phundrak, drakpa
# ### HTML ##################################################################### # ### LaTeX #############################################################
#+latex_class: article
#+latex_class_options: [a4paper]
#+latex_header: \input{headers.tex}
# ### HTML #############################################################
#+HTML_DOCTYPE: html5 #+HTML_DOCTYPE: html5
#+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.com/img/rich_preview.png" /> #+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.com/img/rich_preview.png" />
@ -45,5 +51,5 @@
#+html_head: </script> #+html_head: </script>
#+html_head: <!-- End Matomo Code --> #+html_head: <!-- End Matomo Code -->
# ### MACROS ################################################################### # ### MACROS ############################################################
#+MACRO: newline @@latex:\hspace{0pt}\\@@ @@html:<br>@@ #+MACRO: newline @@latex:\hspace{0pt}\\@@ @@html:<br>@@

15
org/config/headers.tex Normal file
View File

@ -0,0 +1,15 @@
% LaTeX headers
\usepackage[total={17cm,24cm}]{geometry}
\usepackage{xltxtra}
\setmainfont{Charis SIL}
\usepackage{indentfirst}
\usepackage{enumitem}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}}
\usepackage{newunicodechar}
\newunicodechar{}{'}
\newunicodechar{}{\ldots}
\newunicodechar{ }{~}
\newunicodechar{}{~}
\usepackage{glossaries}