mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-23 00:36:29 +00:00
Add LaTeX variable urlstyle (#8429)
This is set to `same` by default, so users should not experience any change.
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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}}}
|
||||
|
||||
@@ -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
@@ -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}}
|
||||
|
||||
@@ -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
@@ -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},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user