diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-07-26 09:47:24 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-07-26 09:48:17 -0700 |
| commit | c97c4761a83b5ed7bdd75202c60a25801ba63e35 (patch) | |
| tree | b3fa437e852d62e2a8e8f8d3f7f239d501b8b419 | |
| parent | ac7fa3da4d70433d367274bc19c726e1c30f7a81 (diff) | |
Add `boxlinks` variable for LaTeX/PDF output.
If `boxlinks` is set but `colorlinks` is not, then boxes will
be printed around links (`hidelinks` will not be set in `hypersetup`).
Addresses #8198.
| -rw-r--r-- | MANUAL.txt | 3 | ||||
| -rw-r--r-- | data/templates/default.latex | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 6967e503c..86e013a97 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -2885,6 +2885,9 @@ Pandoc uses these variables when [creating a PDF] with a LaTeX engine. : add color to link text; automatically enabled if any of `linkcolor`, `filecolor`, `citecolor`, `urlcolor`, or `toccolor` are set +`boxlinks` +: add visible box around links (has no effect if `colorlinks` is set) + `linkcolor`, `filecolor`, `citecolor`, `urlcolor`, `toccolor` : color for internal links, external links, citation links, linked URLs, and links in table of contents, respectively: uses options diff --git a/data/templates/default.latex b/data/templates/default.latex index 202db4f81..638eacabf 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -403,6 +403,8 @@ $if(colorlinks)$ filecolor={$if(filecolor)$$filecolor$$else$Maroon$endif$}, citecolor={$if(citecolor)$$citecolor$$else$Blue$endif$}, urlcolor={$if(urlcolor)$$urlcolor$$else$Blue$endif$}, +$endif$ +$if(boxlinks)$ $else$ hidelinks, $endif$ |
