Linked Questions

3
votes
0answers
877 views

Highlighting words with special characters using \hl (soul)

I am using xelatex, polyglossia and the document is in UTF-8 encoding. I use the soul package to highlight words (using soulutf8 makes no difference). The problem is really weird, so I will go ...
2
votes
2answers
375 views

Box highlighting of text with rounded corners (soul-based)

Here it is an excellent solution from Gonzalo Medina. Could somebody help me to make it with nice small rounded courners?
4
votes
1answer
450 views

URL with dotted/customized underline AND line breaking

How can I get a dotted URL underline with line breaking? I found this solution: Having all links underlined with dotted line but this TIKZ one does not work with line breaking. I also tried a ...
5
votes
1answer
442 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
4
votes
2answers
253 views

Colored background with rounded corners for a text fragment preventing an overflow over the end of line

I have already found some similar solutions, but I was not able to adapt them to my requirements: A text fragment (e.g., source code) surrounded by other text should be highlighted with a background ...
3
votes
1answer
260 views

A bad result with the soulutf8 package

When I combine \textsl \textbf and \hl from the soulutf8 package, the result is ugly. Some letters are degraded. By zooming or printing you can see that with the following code: \documentclass[12pt,...
4
votes
1answer
227 views

Tcolorbox: breakable inlined box

I'd like to have a breakable inlined box in order to emphasis some text. Any idea how to do that, if possible with tcolorbox? Thanks! MWE: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \...
2
votes
1answer
368 views

How to write over a table? [duplicate]

I would like to make a hanzi grid for practicing Chinese characters, like this one: http://www.hanzigrids.com/version/1328584298/example-pdfs/hanzigrids-yingbikaishu.pdf I am able to make the table ...
2
votes
0answers
380 views

Box highlighting of text with rounded corners and hyphenation support

I used tcolorbox to highlight text some text in paragraphs, it seems to work smoothly, but it disables text hyphenation, that the highlighted piece fo text cannot be start somwhere at one line and ...
2
votes
1answer
289 views

Excess space surrounding highlighted text in modified soul's hl command

In Cool Text Highlighting in LaTeX, Gumbo offered, in a comment to Caramdir's answer, \hlc, a modification of soul's \hl to allow choosing the highlighting color on the fly. \hlc, though, leaves ...
2
votes
1answer
160 views

White space between hightlight tex [duplicate]

Here I faced challenge in highlighted text using soul package, when highlighting white space occurs in between lines. It should be closed up, please suggest any option for fixing this issue: Note: ...
1
vote
1answer
255 views

Modified soul command \hl will not accept \boldsymbol

In Cool Text Highlighting in LaTeX, Gumbo offered, in a comment to Caramdir's answer, \hlc, a modification of soul's \hl to allow choosing the highlighting color on the fly. \hlc accepts $2$ as ...
2
votes
1answer
247 views

Highlight text starting from the middle of line

I am using tcolorbox to highlight text. However, the color box starts from a new line even if I start highlight from the middle of a line. \documentclass{article} \usepackage[most]{tcolorbox} \...
2
votes
2answers
133 views

Fill in the blank: Red text with dotted lines

I am trying to achieve what is already in Fill in the blank: text wrapping & math mode but with dotted lines. The line should have the length of a \textwidth or \linewidth and it should allow line ...
2
votes
1answer
98 views

highlight text background

For a certain part of text, I needed to make the text bold + underlined in addition to changing the background color I needed to do all this while maintaining hyphenation Thus I could not use the ...

15 30 50 per page