LaTeX template: Add pdflang to hypersetup if lang is set.
Closes #5443.
This commit is contained in:
parent
8f01044062
commit
6d19c08e9f
2 changed files with 4 additions and 0 deletions
|
@ -205,6 +205,9 @@ $endif$
|
||||||
$if(author-meta)$
|
$if(author-meta)$
|
||||||
pdfauthor={$author-meta$},
|
pdfauthor={$author-meta$},
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(lang)$
|
||||||
|
pdflang={$lang$},
|
||||||
|
$endif$
|
||||||
$if(subject)$
|
$if(subject)$
|
||||||
pdfsubject={$subject$},
|
pdfsubject={$subject$},
|
||||||
$endif$
|
$endif$
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
||||||
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
|
pdflang={en},
|
||||||
hidelinks,
|
hidelinks,
|
||||||
pdfcreator={LaTeX via pandoc}}
|
pdfcreator={LaTeX via pandoc}}
|
||||||
\urlstyle{same} % disable monospaced font for URLs
|
\urlstyle{same} % disable monospaced font for URLs
|
||||||
|
|
Loading…
Reference in a new issue