diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-07-22 23:05:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-07-22 23:05:43 -0700 |
commit | 1f1a30bbf6aa6d1c1dc60ac9d97560346066d02f (patch) | |
tree | 12b0d73b1f9b55b56ce2cff194303e914d46ad99 /data | |
parent | 832196fb17d7df037b1d1747d2c2d173ff7b3a95 (diff) | |
download | pandoc-1f1a30bbf6aa6d1c1dc60ac9d97560346066d02f.tar.gz |
LaTeX writer: Use ulem for underline.
ulem is conditionally included already when the `strikeout`
variable is set, so we set this when there is underlined text,
and use `\uline` instead of `\underline`.
This fixes wrapping for underlined text.
Closes #7351.
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/default.latex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex index d06701675..d6a6208a9 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -315,6 +315,7 @@ $if(links-as-notes)$ \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} $endif$ $if(strikeout)$ +$-- also used for underline \usepackage[normalem]{ulem} % Avoid problems with \sout in headers with hyperref \pdfstringdefDisableCommands{\renewcommand{\sout}{}} |