8
votes
1answer
569 views

How to make \hl (highlighting) to automatically place incompatible commands in \mbox?

The soul package provides a useful command \hl for highlighting text. However, \cite, \ref, and some other commands (maybe equations too) must be placed within an \mbox in order for \hl to work ...
13
votes
2answers
237 views

Soul's underline misses text produced by a macro

The macro ul provided by soul works great, allowing linebreaks within an underlined text block. It even supports macros - if they were registered with soulregister. But if these registered macros ...
3
votes
1answer
86 views

Using soul with indirect formatting applied (using macro with 2 parameters, one possibly optional)

This is a followup to Using soul with indirect formatting applied, where it was determined that using \soulregister allows the soul macros to have font switching macros within the parameters ...
9
votes
1answer
134 views

Using soul with indirect formatting applied

I am using the soul package to underline omitting the descenders. It seems that passing the following as a parameter works fine \textit{special text} but if the \textit is applied indirectly via ...
5
votes
2answers
79 views

Embedding \soulomit in a macro

In the MWE below, the code: \MyUl{abd \soulomit{\MyLink{www.google.com}{The Google}} ghi} works exactly as desired: However, when I attempt to wrap this in a macro, and use \MyUl{abd ...
3
votes
1answer
1k views

Issue with soul and nested macros

I'm using package soul to highlight text, for example with \hl{some text}. It works nicely in general, but when the text contains other macros, soul simply skips it. For example: \usepackage{soul} ...
4
votes
2answers
184 views

Hyphenatable material enclosed in group braces

I have text that I need to repeat quite a few times: \newcommand{\repeatme}{text to repeat that is somewhat long and verbose} I'd like to underline this text and have it not cause hbox overflow ...
0
votes
1answer
280 views

Argument of \someCustomCommand has an extra } encountered when command is put in \ul. How to fix this? [duplicate]

Possible Duplicate: Custom command inside soul package's \hl To make the document easier to understand (and easier to write), I have defined: \newcommand{\code}[1]{\texttt{#1}} I ...
6
votes
1answer
455 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 ...
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
746 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 ...
6
votes
2answers
357 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: ...