git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: Add pdflang to hypersetup if lang is set.
6d19c08John MacFarlane
data/templates/default.latex+3
@@ -205,6 +205,9 @@ $endif$
205$if(author-meta)$
205$if(author-meta)$
206 pdfauthor={$author-meta$},
206 pdfauthor={$author-meta$},
207$endif$
207$endif$
208+$if(lang)$
209+ pdflang={$lang$},
210+$endif$
208$if(subject)$
211$if(subject)$
209 pdfsubject={$subject$},
212 pdfsubject={$subject$},
210$endif$
213$endif$
test/writers-lang-and-dir.latex+1
@@ -37,6 +37,7 @@
37\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
37\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
38\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
38\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
39\hypersetup{
39\hypersetup{
40+ pdflang={en},
40 hidelinks,
41 hidelinks,
41 pdfcreator={LaTeX via pandoc}}
42 pdfcreator={LaTeX via pandoc}}
42\urlstyle{same} % disable monospaced font for URLs
43\urlstyle{same} % disable monospaced font for URLs