From b177f07d410814ca584e12b0287531e8b33a97ae Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 19 Apr 2021 01:13:00 +0200 Subject: [PATCH] Update setupfile, better handling of LaTeX headers All `html_head_extra's are replaced with `html_head's since they have the same effect. LaTeX headers are now handled in a separate file for easier handling of the LaTeX code. --- content/headers | 68 +++++++++++++++++++-------------------------- content/headers.tex | 14 ++++++++++ 2 files changed, 43 insertions(+), 39 deletions(-) create mode 100644 content/headers.tex diff --git a/content/headers b/content/headers index 38cc58b..e84c0f5 100644 --- a/content/headers +++ b/content/headers @@ -14,48 +14,38 @@ # ### LaTeX #################################################################### -#+latex_class: conlang -#+latex_class_options: [a4paper,twoside] -#+latex_header: \usepackage{xltxtra} -#+latex_header: \usepackage[total={17cm,24cm}]{geometry} -#+latex_header: \usepackage{newunicodechar} -#+latex_header: \usepackage{xcolor} -#+latex_header: \usepackage{hyperref} -#+latex_header: \usepackage{indentfirst} -#+latex_header: \usepackage{enumitem} -#+latex_header: \setmainfont{Charis SIL} -#+latex_header: \newunicodechar{’}{'} -#+latex_header: \newunicodechar{…}{\ldots} -#+latex_header: \hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}} +#+latex_class: conlang +#+latex_class_options: [a4paper,twoside,french] +#+latex_header: \input{headers.tex} # ### HTML ##################################################################### -#+html_doctype: html5 -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: -#+html_head_extra: +#+html_doctype: html5 +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: # ### EPUB ##################################################################### #+publisher: Lucien Cartier-Tilet diff --git a/content/headers.tex b/content/headers.tex new file mode 100644 index 0000000..a4aa387 --- /dev/null +++ b/content/headers.tex @@ -0,0 +1,14 @@ +% 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{ }{~} \ No newline at end of file