From 98409b7fcc7e2c66eeea4e2c98c2561f2a415989 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Wed, 29 May 2024 20:45:48 +0200 Subject: [PATCH] Build PDF without ugly hyperref stuff --- .dir-locals.el | 12 ++++++++++++ build.el | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/.dir-locals.el b/.dir-locals.el index 352f1c5..1f4cf10 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -5,6 +5,18 @@ ("\\section{%s}" . "\\addsec{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) + + (org-latex-default-packages-alist . (("AUTO" "inputenc" t ("pdflatex")) + ("T1" "fontenc" t ("pdflatex")) + ("" "graphicx" t) + ("" "longtable" nil) + ("" "wrapfig" nil) + ("" "rotating" nil) + ("normalem" "ulem" t) + ("" "amsmath" t) + ("" "amssymb" t) + ("" "capt-of" nil) + ("hidelinks" "hyperref" nil))) (org-latex-caption-above . nil) (org-latex-src-block-backend . minted) (org-latex-minted-options . (("linenos" . "true"))) diff --git a/build.el b/build.el index e8a5a78..2fb5fa6 100644 --- a/build.el +++ b/build.el @@ -14,6 +14,17 @@ ("\\section{%s}" . "\\addsec{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) + org-latex-default-packages-alist '(("AUTO" "inputenc" t ("pdflatex")) + ("T1" "fontenc" t ("pdflatex")) + ("" "graphicx" t) + ("" "longtable" nil) + ("" "wrapfig" nil) + ("" "rotating" nil) + ("normalem" "ulem" t) + ("" "amsmath" t) + ("" "amssymb" t) + ("" "capt-of" nil) + ("hidelinks" "hyperref" nil)) org-latex-caption-above nil org-latex-src-block-backend 'minted org-latex-minted-options '(("linenos" . "true")