Questions tagged [soul]

Questions with this tag are about the uses, and also problems with using, the `soul` package for letterspacing, underlining, overstriking and highlighting, perhaps also using colour.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Changing colors in soul package

I am writing a template for my lecture notes and I wanted to have a different color as my highlighted text. \usepackage{soul} \usepackage[dvipsnames]{xcolor} \definecolor{delectricblue}{RGB}{93, ...
  • 3
0 votes
1 answer
71 views

URL with track changes and line breaking

I am trying to handle URLs such that I can: split the URL in multiple lines if too long exceeding the page width include a track change mode which means being able to: strikethrough and underline ...
2 votes
1 answer
41 views

Why does highlighting stop working when I introduce hyphenation and text including an equals sign?

I'm using soul's \texthl in combination with \texttt to render inline code that can break at arbitrary hyphenation points when it reaches the end of a line. To simulate the "verbatim" aspect ...
  • 1,460
0 votes
0 answers
20 views

Importing geometry package messes up line breaking behavior of \texthl

It looks like uncommenting line 6 of the code below suppresses the line breaking behavior of \texthl \documentclass[a4paper, 11pt]{article} \usepackage{parskip} \usepackage{fontspec} \usepackage{...
  • 1,460
0 votes
1 answer
52 views

How to use soul's `\ul` instead of `\underline` in TeXstudio

I'm using TeXstudio on Linux, and there is an option under the LaTeX/Font Styles menu to underline the selected text. For convenience, I set Alt + U as a shortcut so that I can quickly underline ...
  • 165
0 votes
1 answer
40 views

How to Underline (with Linebreaking) within Contiguously Highlighted Text Using Soul

I would like to use the command \ul within a block of text that is contiguously highlighted using the macro contained in the following code: \documentclass[12pt,openany]{book} \usepackage{soul} \...
4 votes
4 answers
247 views

pdflatex: conflict between pdfcomment and soul

Here's the MWE: \documentclass{article} \usepackage{soul} \usepackage{pdfcomment} \begin{document} \section*{\hl{Fine}} \section{\hl{Error}} \end{document} which gives the following error ...
  • 41
1 vote
1 answer
65 views

How to Break Text-Underlining within a Paragraph without the Soul Package

Consider the code: \documentclass{book} \usepackage{soul} \begin{document} \thispagestyle{empty} \large How may I do this without the \textit{soul} package?\\[7pt] \ul{Text underlining with ...
  • 5,657
0 votes
0 answers
30 views

How to set background color for long in-text citations with line wrapping?

Normally for revised-version, the revised text should be highlighted. When it contains long in-text citations which span more than one line, the background color will extend to the margin, and ...
  • 33
0 votes
0 answers
29 views

Make \hl include linebreaks

I am using soul package and \hl to highlight text in my Latex. However, it does not work when there is a linebreak or a new paragraph. I have a whole page to highlight. Is it possible to make \hl ...
0 votes
0 answers
29 views

Underline gap in both side aligned line only using `\ul{}` command

Ho do I underline gap in both side aligned line like this: \documentclass{article} \usepackage{cmap} \usepackage[utf8]{inputenc} \usepackage[T2A,T1]{fontenc} \usepackage[english,russian,ukrainian]{...
0 votes
1 answer
19 views

Soul hl within a mdframed environment won't print footnote number?

I am trying to highlight some text with soul::hl within a mdframed environment defined by newmdenv. I get expected output using: hl text outside of the environment normal text within the environment. ...
  • 505
0 votes
0 answers
24 views

soulutf8 + slovak = missing letteR?

The following file \documentclass[twoside]{book} \usepackage{soulutf8} \usepackage[slovak]{babel} \begin{document} \so{missing-letteR} \end{document} Produces the following output: Is it a bug?
0 votes
1 answer
46 views

How can I patch `minted` to use `soul`s higlighting

I'd like to highlight code with a gray background like StackExchange does. I know that I can set bgcolor in minted to put a solid background color on inline code. However, this makes minted use ...
  • 425
1 vote
0 answers
38 views

highlighting with different heights

I want to use \hl from the soul package to highlight my mathematical definitions. The problem is, that it is very inflexible when it comes to height. For example when I write \documentclass{article} \...
1 vote
1 answer
54 views

No automatic line-breaks with ulem and soul packages

In below code, I define two commands \refpage and \refpages using in turn, the ulem and soul packages, but both of them do not break a sentence when that sentence runs on beyond the end of a line. ...
  • 453
0 votes
0 answers
13 views

New command to dynamically change proper name removes spaces within main body but not tables? [duplicate]

I have a document that looks like so \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{soul} \usepackage{tabularx} \DeclareRobustCommand{\highlight}[1]{{\sethlcolor{...
  • 103
0 votes
1 answer
69 views

Multiple line strikeout with ulem/soul and newcommand

I'm having a hard time doing a strikeout of a multi-line text within a newcommand using ulem and soul. The answers below were not helpful: https://tex.stackexchange.com/a/74910/265141 % Multi-line ...
4 votes
3 answers
159 views

Turning soul:hl function into an environment

I am using the function hl from package soul to highlight text. I would like to create a specific environment, that would be used for the highlighting. I tried with newenvironment, but did not figure ...
  • 505
0 votes
1 answer
54 views

How to change the font used in text highlighted with soul's package \hl{} command

I'm using LaTeX with soul's package \hl{text} command to highlight text. I'd like to know if it is possible to automatically change the font used in text marked with hl{text}. I know that I can do ...
2 votes
2 answers
125 views

l e t t e r s p a c i n g with soul/soulutf8

I use l e t t e r s p a c i n g provided by soul/soulutf8 to emphasize words. But If I try to copy a spaced word from the pdf-file, then I get "w o r d" instead of "word". Also ...
1 vote
1 answer
37 views

underline a specific hyper link

I would be happy if anyone can help me to color differently only one specific hyperlink, (preferably, without setting \hypersetup{}. Many thanks in advance. \documentclass{article} \usepackage{soul} ...
0 votes
1 answer
164 views

Using \ul{} (from soul package) with referencing labels (\nameref)

I have this following code: \documentclass[12pt]{article} \usepackage{hyperref} \usepackage{soul} \usepackage{blindtext} \begin{document} \section{Introducton} \label{sec:intro} \blindtext{} \...
2 votes
2 answers
177 views

soul package and Cyrillic with xelatex

How to handle Cyrillic ymbols with soul package? \documentclass[a4paper,10pt]{book} \usepackage{polyglossia} \defaultfontfeatures{Ligatures={TeX}} \setmainfont{Liberation Serif} \...
  • 481
1 vote
0 answers
44 views

soul package with Latex dilimiter [duplicate]

I would like to ask that how can we use Latex delimiter \(\) instead of $$ inside parameter of \hl{} highlight from soul package? \documentclass[a5paper,12pt]{beamer} \usepackage{soul,xcolor} \...
  • 139
0 votes
0 answers
51 views

Looking for a Soul Alternative to Underline in Color with Custom Depth and Thickness Using Pdflatex

Consider the code \documentclass{article} \usepackage{color,soul} \begin{document} \Huge \setulcolor{red} \setul{}{2.5pt} \textcolor{blue}{\ul{\textbf{some text}}} \end{document} with output This ...
0 votes
2 answers
97 views

Why and how ulem package disable linebreaking and stretching encountering brace and macro replacement

Descriptions of my questions So, I am doing some hacking which requires me to use ulem package. I found on page 5 of the documentation of this package (dated 2019/11/18) that One important ...
0 votes
1 answer
58 views

Highlight function does not work with vietnamese language

So i was trying to highlight some text in Vietnamese but all latex programs like overleaf and texstudio all failed to load the text. So what i did wrong? Here's my packages: \documentclass[12pt, ...
  • 5
1 vote
0 answers
34 views

Glossaries and soul causing problems when used together, specifically \glsdisp

Unfortunately, the package soul does not coexist well with glossaries. From this answer it seems that to get both packages to work within the same document one must make use of the \soulregister ...
  • 1,460
6 votes
0 answers
222 views

Cross-line inline tcolorbox

As shown in the following example, underlining a cross-line sentence can be easily done by \ul via soul.sty. Can a cross-line sentence be tcolorboxed automatically in a similar way? \documentclass{...
  • 7,887
2 votes
1 answer
47 views

How do I stop hyperref from putting PDF text enhancements in the bookmarks?

In my book I used a stylized font and background to indicate bits, like this: I do that with this macro: \newcommand{\bindigits}[1]{\colorbox{lightlightgray}{\tt{#1}\rm}\xspace} So I thought it ...
  • 4,510
4 votes
2 answers
83 views

Using soul and xcolor to highlight \emph renders some letters incorrectly

Minimum working example: \documentclass{article} \usepackage{xcolor} \usepackage{soul} \begin{document} \hl{\emph{irreducible}} \hl{{\emph irreducible}} \emph{irreducible} \end{...
  • 41
2 votes
1 answer
38 views

Line-width distributed letter-spacing with \newcommand macros

I am using the soul package to produce "distributed" text. That is, text that is automatically spaced such that it fills the entire line. This works great, but now what I want to do is use a ...
1 vote
0 answers
94 views

Why does highlighting in the soul package change the spacing between letters?

\documentclass{ieeeaccess} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} %\usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{color, soul} % comment ...
  • 615
0 votes
0 answers
76 views

How to highlight multiple lines of inline equations?

\documentclass{ieeeaccess} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} %\usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{color, soul} % comment ...
  • 615
1 vote
0 answers
399 views

MDPI Default Template Highlight

Hi everyone I am working on MDPI submission using their template avaliable on overleaf and their site here I am highlighting changes using the soul package and the \hl{} but everytime I do this on the ...
1 vote
0 answers
76 views

SOUL not working with "ě" character

I have the following code in soul to allow underlines for letters with descenders. \usepackage{xcolor} \usepackage{xparse} \usepackage{soul} \makeatletter \ExplSyntaxOn \cs_new:Npn \...
2 votes
1 answer
77 views

Using the 'soul' package to redefine \emph -> Problems in Bibtex

I was planning on using the soul package to redefine \emph to \so, so that everytime I use \emph, the text would not be italics but l i k e t h i s (spacing out, so). However, once I use \usepackage{...
1 vote
1 answer
102 views

Colored underline without affecting the default LaTeX style

I would like to have a colored line. I tried the following: \documentclass[11pt,english]{article} \usepackage[T1]{fontenc} \usepackage[parfill]{parskip} \usepackage{color,soul} \setulcolor{red} \...
  • 623
1 vote
1 answer
68 views

Getting soulutf8 to work with luatex

Is it possible to get soul(utf8) to work with luatex? In the following example only the first three lines are typeset. \documentclass{article} \usepackage{fontspec} \usepackage{soulutf8} \...
1 vote
1 answer
125 views

How can I highlight blocks of text which include citations and display equations?

I am addressing reviewer comments for a scientific article. I would like to highlight significant changes to make it easier for reviewers to spot the changes. However, I find that when using the soul ...
0 votes
0 answers
127 views

newcommand + csname + sout + cref = ERROR: Extra }, or forgotten \endgroup

I'm not sure to understand why, but I created a command to automatically add a strike-command per author. If I use it strike normal text, it works. If I use it to strike a text with \cref{...} inside, ...
  • 5,265
0 votes
0 answers
83 views

Highlight and label anything in LaTex article

I'm looking for a package that highlights and labels anything I wrap with it. So that I can then create a list of those highlights according to the label. I was thinking of something like the ...
3 votes
1 answer
89 views

Soulpos package definitions

Here is the soulpos package link:: https://www.ctan.org/tex-archive/macros/latex/contrib/soulpos I wrote the code from soulpos manual, But I don't know how can I use \ulpgfB \ulpgfC definitions? \...
0 votes
0 answers
69 views

apply nested box in soul package

\documentclass[a4paper,twocolumn]{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} % \usepackage{soul} \usepackage{soulpos} \begin{document} \ulposdef\ulpgfC[xoffset=.15em]{% \...
  • 31
3 votes
1 answer
414 views

How to highlight text spanning multiple lines that includes macros?

I am currently proofreading a document and want to highlight some sentences. Unfortunately, I haven't found a highlighting package that can both Preserve linebreaks Highlight text produced by macros, ...
  • 211
0 votes
1 answer
2k views

The installed file does not exist - soul.sty

I want to use this beamer template that I found on Overleaf with MiKTeX in TeXstudio: https://www.overleaf.com/latex/templates/presentation-template-au-theme/ffhvmnbyvdjg I downloaded the the whole ...
  • 101
2 votes
0 answers
40 views

\hl gives 5 errors and I don't know why [duplicate]

The sentence \hl{Upphängningsmetoden visade att masscentrumet låg i punkten (10,5;7,30) i centimeter medan den algebraiska metoden visade på att tyngdpunkten låg i $(10,5;7,34)$} gives 5 errors and I ...
  • 155
9 votes
2 answers
2k views

Alternative to the soul package?

Context One may want to highlight some text, or strike it. This can be done with either the soul package, or with the ulem package using a trick, although it does not work that well. Problem The ...
  • 192
1 vote
1 answer
43 views

Babel seems to break letterspacing of soul package

This is a MWE of a book I'm working on. \documentclass[10pt,twoside]{book} % \usepackage[ngerman]{babel} \usepackage{blindtext} \usepackage{soul} \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{...
  • 1,768

1
2 3 4 5