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
13 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. ...
user avatar
  • 400
0 votes
0 answers
21 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?
user avatar
0 votes
1 answer
30 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 ...
user avatar
  • 413
1 vote
0 answers
31 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} \...
user avatar
1 vote
1 answer
36 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. ...
user avatar
  • 343
0 votes
0 answers
12 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{...
user avatar
  • 103
0 votes
0 answers
21 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 ...
user avatar
4 votes
3 answers
132 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 ...
user avatar
  • 400
0 votes
1 answer
30 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 ...
user avatar
2 votes
2 answers
112 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 ...
user avatar
1 vote
1 answer
27 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} ...
user avatar
0 votes
1 answer
57 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{} \...
user avatar
2 votes
2 answers
139 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} \...
user avatar
  • 481
1 vote
0 answers
34 views

soul package with Latex dilimiter

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} \...
user avatar
  • 139
0 votes
0 answers
45 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 ...
user avatar
0 votes
2 answers
90 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 ...
user avatar
0 votes
1 answer
37 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, ...
user avatar
  • 5
1 vote
0 answers
28 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 ...
user avatar
  • 1,372
6 votes
0 answers
165 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{...
user avatar
  • 7,867
2 votes
1 answer
44 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 ...
user avatar
  • 4,420
4 votes
2 answers
75 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{...
user avatar
  • 41
2 votes
1 answer
34 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 ...
user avatar
1 vote
0 answers
72 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 ...
user avatar
  • 593
0 votes
0 answers
67 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 ...
user avatar
  • 593
1 vote
0 answers
263 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 ...
user avatar
1 vote
0 answers
57 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 \...
user avatar
2 votes
1 answer
64 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{...
user avatar
1 vote
1 answer
74 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} \...
user avatar
  • 611
1 vote
1 answer
57 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} \...
user avatar
1 vote
1 answer
86 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 ...
user avatar
0 votes
0 answers
98 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, ...
user avatar
  • 5,053
0 votes
0 answers
70 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 ...
user avatar
3 votes
1 answer
83 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? \...
user avatar
0 votes
0 answers
63 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]{% \...
user avatar
  • 31
3 votes
1 answer
308 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, ...
user avatar
  • 211
0 votes
1 answer
1k 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 ...
user avatar
  • 101
2 votes
0 answers
28 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 ...
user avatar
  • 155
9 votes
2 answers
1k 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 ...
user avatar
  • 192
1 vote
1 answer
41 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{...
user avatar
  • 1,638
1 vote
1 answer
167 views

Package soul Error: Reconstruction failed in \tableofcontents and bibliography

I'm writing a book in a scrreprt format. And, for the spacing and underlining the sections, I'm using the soul package. However, it throws an error in tableofcontents and bibliography. I'm clueless ...
user avatar
  • 37
0 votes
1 answer
2k views

Use \hl command to highlight a subsection title

I am trying to use the \hl command to highlight a subsection and subsubsection title. I have tried wrapping the commands in a \mbox or between parenthesis but it doesn't seem to work. They worked with ...
user avatar
0 votes
0 answers
119 views

Problem of compilation with XelateX (Package soul error)

In a previous question (https://tex.stackexchange.com/questions/548738/special-character-oe-and-biblatex-with-xelatex), it was proposed to modify a part of the code to solve the problem. But the new ...
user avatar
  • 367
0 votes
1 answer
113 views

Color text: Soul - reconstruction failed with font switching

I want to color my text and followed this sample code. Now I have \documentclass[a4paper,11pt]{article} \usepackage[a4paper,includeheadfoot,margin=2.54cm]{geometry} % for margins on a A4paper \...
user avatar
  • 1,215
0 votes
0 answers
65 views

Figure touching the top or bottom of page causes page numbering to reset to zero? [duplicate]

I am experiencing this weird bug where if a figure touches the top or bottom of a page, is the page numbering reset to zero on that page. I haven't been able to make a minimal example showing the ...
user avatar
  • 101
2 votes
2 answers
465 views

Trouble with soul and utf8 [duplicate]

Here is a working example \documentclass{book} \usepackage[utf8]{inputenc} \linewidth 150mm \usepackage[spanish]{babel} \usepackage{soul} \sodef\secso{\scshape}{.125bp}{0.33em ...
user avatar
3 votes
1 answer
450 views

Suppressing text with strikethrough?

I would like to suppress text that has been strickenthrough (struckthrough?). I don't think that hide does this, because hide replaces with an empty box of the same size. I think something like \...
user avatar
  • 33
0 votes
0 answers
43 views

Page counter is reset when highlighting long text using sethlcolor from soul package [duplicate]

I encounter a similar problem like this TeX question or this other one. However, I open a new question because the examples given by the previous ones were not suited to highlight the potential ...
user avatar
  • 163
1 vote
1 answer
90 views

Printing TeX special symbols with tex.print, but also highlighted

I would like to be able to automatically print TeX special symbols into pdf. Mostly (but not only) the underscore symbol _, but also highlighted by grey color (similar to how it is displayed in this ...
user avatar
1 vote
1 answer
319 views

\Verb{} in fvextra: Highlighting \Verb{} text to be able to break at the end of line

Searching through various packages documentation and this site I have found how to write inline verbatim text, that is (when neccessary) broken at the end of line. For this feature, I am using \Verb{} ...
user avatar
4 votes
1 answer
336 views

pdfx causes soul to stop working

I noticed that adding pdfx package to my document stopped the soul package from highlighting the text in yellow. \documentclass[a4paper,12pt]{article} \usepackage[a-1b]{pdfx} % comment this out \...
user avatar

1
2 3 4 5