git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: Add pdflang to hypersetup if lang is set.

Closes #5443.

commit6d19c08e9f5bae0547ca98b853fd59921a391623 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 11 Apr 2019, 16:53 (8 years ago) parent8f01044
2 files changed+4
data/templates/default.latex+3 test/writers-lang-and-dir.latex+1
data/templates/default.latex+3
@@ -205,6 +205,9 @@ $endif$
205205$if(author-meta)$
206206 pdfauthor={$author-meta$},
207207$endif$
208+$if(lang)$
209+ pdflang={$lang$},
210+$endif$
208211$if(subject)$
209212 pdfsubject={$subject$},
210213$endif$
test/writers-lang-and-dir.latex+1
@@ -37,6 +37,7 @@
3737\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
3838\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
3939\hypersetup{
40+ pdflang={en},
4041 hidelinks,
4142 pdfcreator={LaTeX via pandoc}}
4243\urlstyle{same} % disable monospaced font for URLs