From aac88c8bfd610b97914d35eb1dccf9b250cecb43 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 13 Feb 2024 12:37:11 +0100 Subject: localize TeX template title.tex ``` cp /opt/quarto/share/formats/pdf/pandoc/title.tex . ``` or ``` curl -O title.tex https://github.com/quarto-dev/quarto-cli/raw/main/src/resources/formats/pdf/pandoc/title.tex ``` --- _report.yml | 4 ++-- title.tex | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 title.tex diff --git a/_report.yml b/_report.yml index 997f985..0fe280b 100644 --- a/_report.yml +++ b/_report.yml @@ -8,8 +8,8 @@ format: - DIV=calc csquotes: true papersize: a4 -# template-partials: -# - title.tex + template-partials: + - ../title.tex include-in-header: # recalculate page margins, since mainfont was set after documentclass diff --git a/title.tex b/title.tex new file mode 100644 index 0000000..540a370 --- /dev/null +++ b/title.tex @@ -0,0 +1,28 @@ +$if(title)$ +\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} +$endif$ +$if(subtitle)$ +$if(beamer)$ +$else$ +\usepackage{etoolbox} +\makeatletter +\providecommand{\subtitle}[1]{% add subtitle to \maketitle + \apptocmd{\@title}{\par {\large #1 \par}}{}{} +} +\makeatother +$endif$ +\subtitle{$subtitle$} +$endif$ +\author{$for(authors)$$it.name.literal$$sep$ \and $endfor$} +\date{$date$} +$if(beamer)$ +$if(institute)$ +\institute{$for(institute)$$institute$$sep$ \and $endfor$} +$endif$ +$if(titlegraphic)$ +\titlegraphic{\includegraphics{$titlegraphic$}} +$endif$ +$if(logo)$ +\logo{\includegraphics{$logo$}} +$endif$ +$endif$ \ No newline at end of file -- cgit v1.2.3