Linked Questions

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} \...
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 ...
7
votes
5answers
21k views

Highlight / color parts of text

LaTex newbie here. Currently using vim with solarized color scheme to edit .tex documents. When writing I often jump around to different parts of the document, leaving gaps behind to work on later. ...
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
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
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 ...
60
votes
7answers
12k views

Efficient ways to anonymize a document

Many academic journals practice double-blind peer review which means that the author is required to blind their document by removing any references that can reveal the author's identity. How can I ...
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} \...
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 ...

15 30 50 per page