Skip to content

ulem and soul in Scissor LaTeX

Partly. ulem's \uline, \sout and \xout and soul's \st work, and underlined text breaks across lines; \uuline gives a single line, \uwave and soul's \hl keep the text without the effect, and soul's \ul, \so and \caps are skipped with a note while the text stays.

What the packages do

LaTeX's own \underline does not break across lines. Both packages underline and strike through text that can break:

  • ulem gives \uline (underline), \uuline (double underline), \uwave (wavy underline), \sout (strike-through), \xout (crossed out with slashes) and more. Unless loaded with normalem, it also makes \emph underline instead of italicise.
  • soul gives \ul (underline), \st (strike-through), \hl (highlight with a colour), \so (letter spacing) and \caps (spaced small capitals).

What works here

CommandIn Scissor LaTeXNotes
\uline{...} (ulem)WorksBreaks across lines like normal text.
\sout{...} (ulem)Works
\xout{...} (ulem)PartlyStruck through with a line instead of slashes.
\uuline{...} (ulem)PartlyA single underline.
\uwave{...} (ulem)Left outThe text is kept without the wave, and without a message.
\dashuline, \dotuline (ulem)Not supportedSkipped with a Problems note; the text stays, without a line.
\emph with ulem loadedPartlyAlways italic here, as with the normalem option. \normalem in the body is skipped with a note.
\st{...} (soul)WorksStruck through.
\hl{...} (soul)Left outThe text is kept without a highlight. \sethlcolor is ignored in the preamble and skipped with a note in the body.
\ul{...}, \so{...}, \caps{...} (soul)Not supportedSkipped with a Problems note; the text stays, without the effect.
\textul, \textst, \texthl (soul)Not supportedSkipped with a note; the text stays.

\underline{...} works without any package, and here it breaks across lines too.

Examples

Underline and strike-through with ulem, loaded with normalem so \emph stays italic in a TeX installation too:

\uline, \sout and \xout

\documentclass{article}
\usepackage[normalem]{ulem}
\begin{document}
The price was \sout{\$48} \$44, and \uline{the offer ends on
Friday}. Erika Mustermann marked the old draft as \xout{rejected}
and wrote her \emph{own} version.
\end{document}
Rendered by Scissor LaTeX: \uline, \sout and \xout

soul's strike-through works; the highlight keeps the text but shows no colour:

\st works, \hl keeps the text

LaTeXPreamble: \usepackage{soul,xcolor}Open in editor (opens in a new tab)
John Doe deleted \st{the third paragraph} and marked
\hl{the key result} for Hans Mustermann.

\ul from soul is skipped with a note. Use \uline from ulem or \underline, which work here and in every TeX installation:

\ul is skipped; \underline works

LaTeXPreamble: \usepackage{soul}Open in editor (opens in a new tab)
With soul: \ul{44 samples}. Without a package: \underline{44 samples}.

Problems tab: Skipped 1 unknown command: \ul

Compatibility

  • From a TeX installation to here: underlines and strike-throughs keep their meaning. Wavy and double lines become plain or single, highlights are not shown, and soul's \ul, \so and \caps lose their effect.
  • From here to a TeX installation: documents compile there unchanged. Without the normalem option, ulem underlines every \emph there, so load it as \usepackage[normalem]{ulem}.

The full manuals are on CTAN: ctan.org/pkg/ulem and ctan.org/pkg/soul. See also Text formatting and xcolor.

Questions and answers

How do I strike through text in LaTeX?

Load \usepackage[normalem]{ulem} and write \sout{text}, or load soul and write \st{text}. Both work here.

How do I highlight text in Scissor LaTeX?

Not with a colour yet: soul's \hl and xcolor's \colorbox both keep the text without a coloured background. To make words stand out here, use \textbf or \uline; keep \hl if the document is also compiled in a TeX installation, where the highlight appears.

Every example on this page is typeset by Scissor LaTeX when the site is built. Last updated 2026-11-07.