Add LaTeX variable urlstyle (#8429)

This is set to `same` by default, so users should not experience any change.
This commit is contained in:
Amar Al-Zubaidi
2022-11-10 08:39:14 -08:00
committed by GitHub
parent 2f780ce45a
commit 03e478ee2c
7 changed files with 10 additions and 5 deletions
+3
View File
@@ -2913,6 +2913,9 @@ Pandoc uses these variables when [creating a PDF] with a LaTeX engine.
`links-as-notes`
: causes links to be printed as footnotes
`urlstyle`
: style for URLs (e.g., tt, same)
#### Front matter
`lof`, `lot`
+1 -1
View File
@@ -384,7 +384,7 @@ $if(csquotes)$
$endif$
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$}
$if(links-as-notes)$
% Make links footnotes instead of hotlinks:
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
+2
View File
@@ -3011,6 +3011,8 @@ and links in table of contents, respectively: uses options allowed by
.TP
\f[V]links-as-notes\f[R]
causes links to be printed as footnotes
\f[V]urlstyle\f[R]
style for URLs (e.g., tt, same)
.SS Front matter
.TP
\f[V]lof\f[R], \f[V]lot\f[R]
+1 -1
View File
@@ -83,7 +83,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
hidelinks,
pdfcreator={LaTeX via pandoc}}
+1 -1
View File
@@ -50,7 +50,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
hidelinks,
pdfcreator={LaTeX via pandoc}}
+1 -1
View File
@@ -60,7 +60,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\VerbatimFootnotes % allow verbatim text in footnotes
\hypersetup{
pdftitle={Pandoc Test Suite},
+1 -1
View File
@@ -66,7 +66,7 @@
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
\urlstyle{same}
\hypersetup{
pdflang={en},
hidelinks,