diff options
| author | John MacFarlane <[email protected]> | 2025-09-02 09:39:39 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-09-02 09:39:39 +0200 |
| commit | 0cdb430110d4ec6c0013fa495eaacf2e4e76d1e6 (patch) | |
| tree | b7bc9e3a46381c66ea0e999167e6744a75991b6b | |
| parent | 6070ad29cd75e09bc8f4c3e2ed32062055993556 (diff) | |
LaTeX template: don't emit empty linkcolor= in hypersetup.
Closes #11098.
| -rw-r--r-- | data/templates/default.latex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex index bbf84752a..6c7045955 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -95,7 +95,9 @@ $if(toc-title)$ $endif$ { $if(colorlinks)$ -\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$} +$if(toccolor)$ +\hypersetup{linkcolor=$toccolor$} +$endif$ $endif$ \setcounter{tocdepth}{$toc-depth$} \tableofcontents |
