diff options
| author | John MacFarlane <[email protected]> | 2022-11-19 12:17:46 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-11-19 12:28:41 -0800 |
| commit | 144bf90ab92b517dd721baf80f121f86187ccd61 (patch) | |
| tree | 4f3616e8b11dce2e6f4191ae22eaf89842fa146f /test | |
| parent | 202eacb6860967e6c74e8bc73eb8a4a677748243 (diff) | |
LaTeX writer: Use soul instead of ulem for strikeout, underline.
This handles things like hyphenation, line breaks, and nonbreaking
spaces better.
Closes #8411.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Tests/Writers/LaTeX.hs | 4 | ||||
| -rw-r--r-- | test/command/5529.md | 4 | ||||
| -rw-r--r-- | test/writer.latex | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/Tests/Writers/LaTeX.hs b/test/Tests/Writers/LaTeX.hs index 3496fccbc..35693d478 100644 --- a/test/Tests/Writers/LaTeX.hs +++ b/test/Tests/Writers/LaTeX.hs @@ -76,11 +76,11 @@ tests = [ testGroup "code blocks" [ "struck out and highlighted" =: strikeout (codeWith ("",["haskell"],[]) "foo" <> space <> str "bar") =?> - "\\sout{\\mbox{\\VERB|\\NormalTok{foo}|} bar}" + "\\st{\\mbox{\\VERB|\\NormalTok{foo}|} bar}" , "struck out and not highlighted" =: strikeout (code "foo" <> space <> str "bar") =?> - "\\sout{\\mbox{\\texttt{foo}} bar}" + "\\st{\\mbox{\\texttt{foo}} bar}" , "single quotes" =: code "dog's" =?> "\\texttt{dog\\textquotesingle{}s}" , "backtick" =: diff --git a/test/command/5529.md b/test/command/5529.md index fcecd9b1f..01c639954 100644 --- a/test/command/5529.md +++ b/test/command/5529.md @@ -4,7 +4,7 @@ ~~_`hello world`_~~ ^D -\sout{\mbox{\texttt{hello\ world}}} +\st{\mbox{\texttt{hello\ world}}} -\sout{\emph{\mbox{\texttt{hello\ world}}}} +\st{\emph{\mbox{\texttt{hello\ world}}}} ``` diff --git a/test/writer.latex b/test/writer.latex index b286d3da9..6a7abfca9 100644 --- a/test/writer.latex +++ b/test/writer.latex @@ -50,7 +50,7 @@ \makeatletter \def\fps@figure{htbp} \makeatother -\usepackage[normalem]{ulem} +\usepackage{soul} \setlength{\emergencystretch}{3em} % prevent overfull lines \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} @@ -704,7 +704,7 @@ So is \textbf{\emph{this}} word. This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}}, \texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}. -\sout{This is \emph{strikeout}.} +\st{This is \emph{strikeout}.} Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}} a\textsuperscript{hello~there}. |
