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.

learn more… | top users | synonyms

8
votes
1answer
203 views

soul dropping some accented letters from the end of words

I'm using soul to letterspace headings in a Hungarian document and compiling it with lualatex. For some reason soul drops some of the accented letters at the end of a word, but not all. In the ...
4
votes
1answer
447 views

Letterspacing memoir section headers

I'd like to add letterspacing to the \section commands with \setsecheadstyle in a memoir book. I tried using soul: \sodef\soSection{}{.1em}{.5em plus.1em}{.1em plus.1em minus.1em} ...
12
votes
1answer
589 views

Triple underlining

I am quoting passages from ms. letters and need to underline a few words with three lines. Does a command exist for doing so? I've consulted Melchior Franz's soul package documentation from 2003 and ...
1
vote
1answer
640 views

Highlight foreground text using overpic?

I am using the overpic package to edit a pre-created pdf by writing notes in between the lines using \put(){$$} for each line. Im having difficulty however using the soul package and \hl to ...
7
votes
1answer
337 views

How could I use \input within soul arguments?

So, I basically want to do something like this: \documentclass{article} \usepackage{soul} \begin{document} \so{Hello} \so{\input{key.tex}} \end{document} Now the first "so" works but the second ...
3
votes
2answers
695 views

How to make overlaid text?

Is there a nice way to overlay text in the space of one character? So if text is overlaid as I described it would almost result in a black square.
3
votes
1answer
402 views

conditional highlighting with soul

The journal PLoS ONE, says in the FAQ When submitting your revision, you will need to include the following new files: [...] A ‘clean’ copy of your revised manuscript. A revised manuscript with ...
7
votes
1answer
470 views

bug with page numbers when using soul package

I recently ran into a curious bug when using the soul package. I managed to boil it down to the following example. The problem is that the page numbers get messed up. In the example below, they should ...
7
votes
1answer
578 views

Using a \phantom{} in \ul from the soul package

In responding to how to typeset a Long underscore in LaTeX, I attempted to use a \phantom with \ul, but end up Argument of \makeph@nt has an extra }. So, what is the proper way to use a \phantom ...
9
votes
1answer
3k views

Problems with \ref when using soul for highlighting

Here is a minimal example showing the problem. \documentclass[10pt]{article} \usepackage[usenames,dvipsnames]{color} \usepackage{soul} %\soulregister{\ref}{1} \begin{document} \section*{x}\label{x} ...
5
votes
1answer
1k views

Error “Reconstruction failed” with soul package

I've got a problem with the soul package while adding a letter-spacing to a result of a command that is defined just like this: \newcommand{\myCommand}{some text} In the document I'd like to have ...
6
votes
1answer
825 views

Custom command inside soul package's \hl

I'm having trouble with the soul package and its \hl command. The soul package's manual says I should not nest soul commands, which I didn't. \textsc works inside \hl. However, the following throws an ...
5
votes
1answer
3k views

How to highlight paragraph (linebreak preserving) as well as itemize, tabular etc.?

I want to highlight changes which are introduced by myself in the pdf document. So far the soul package is very neat but it does throw errors when I want to highlight not only paragraphs but also some ...
5
votes
2answers
440 views

How to only import certain commands?

The soul package defines a ton of short macros, some of which I use regularly for my own writing. I only need \hl and \sethlcolor. Is there a way to load the package and only get those two commands? ...
18
votes
6answers
8k views

Highlight text in code listing while also keeping syntax highlighting

I’m using the listings package for code listings. Now I try to highlight some part of the code using \hl from the soul package. Here’s an example of a resulting query where the injected part of a SQL ...
5
votes
2answers
528 views

soul's \ul{} breaks wrapfigure and textflow?

Please, I have a nice picture without that \ul{...}, but i need that. \documentclass{article} \usepackage{wrapfig} \usepackage{soul} \begin{document} \begin{wrapfigure}[3]{l}{30mm} \Huge 1 ...
35
votes
2answers
11k views

Why does underlined text not get wrapped once it hits the end of a line ?

Sometimes I want to underline some text, and it extends past the end of a line. Why does \underline{} not automatically wrap my text for me ? Also, how can I underline text so that it will still ...
6
votes
2answers
380 views

Changing fontsize within soul underline

This question is related to How to create a newcommand for fontsize?. I would like to change the fontsize within \ul of the soul package. For example: ...