Linked Questions

2
votes
1answer
69 views

Realistically highlight theorem title and numbering

Recently I came along this awesome post about cool text highlighting in LaTeX and the corresponding answer from @Antal Spector-Zabusky. I do want to implement this highlighting into my lecture notes. ...
0
votes
0answers
50 views

How to make a realistic highlighting [duplicate]

I'm using \hl{} from soul package to highlight some words in my document. However, I'd like a "realistic" highlighting, simulating the result of a "manual" note: a not-so-regular rectangle with "...
2
votes
1answer
97 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 ...
0
votes
0answers
39 views

Inline DeclareTotalTCBox Using tColorBox

My goal is to have inline code embedded in text using \DeclareTotalTCBox. The problem is that the box is not breakable (even though I used the breakable option). I looked at the manual (v 4.20) page ...
1
vote
1answer
75 views

Adjusting perimeter of colorbox to fit text

Consider this MWE: \documentclass[11pt]{article} \usepackage[left=1.5cm,top=2.5cm,right=3.5cm,bottom=3.2cm,a4paper]{geometry} \usepackage{xcolor} \usepackage{adjustbox} \usepackage{setspace} \...
0
votes
0answers
206 views

Slack style code in LaTeX

How can I get text to look like Slack inline code? An example is the pinkish redish text in the image below.
4
votes
1answer
44 views

Auto linefeed of node text in tikz

\node by tikz is used to get an effect of text highlight. It's all right except that the node text can not automatically linefeed. Is there a better way to achieve this? MWE: \documentclass{article} \...
4
votes
1answer
1k views

Highlight/color a part of text in block in beamer

I am using beamer in Latex to make a presentation. I use a block for definition like: \begin{block}{P1} \justifying Some text here \end{block} Let us say I wish to highlight a word "Some". By ...
4
votes
1answer
226 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
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: ...
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 ...
3
votes
1answer
72 views

Making a comment on margin with decoration and dealing with page breaking

is it possible to make a comment-like section on the margin which encloses a paragraph and can deal with page breaking? The problem with the following code is that if an enclosed paragraph exceeds the ...
1
vote
1answer
69 views

Auto-cross lines in framebox

Some text in a paragraph may need frame out of them, and this framed text may cross lines. \framebox seems not be able to do that. How to get this effect as shown on the attached figure which is ...
3
votes
1answer
102 views

How to make a soul driver draw two lines at once (one above and one below text)

This is a follow up question from Box highlighting of text with rounded corners (soul-based). The desired end result is a sort of "circled text", as one would do if annotating a text with a pencil. I ...
2
votes
1answer
219 views

Boxed text, multiline

How can I something like this (an \fbox that can span multiple lines): |--------------------------------------------- The quick brown fox |jumps over the| lazy dog. The quick ...

15 30 50 per page