Linked Questions

106
votes
7answers
67k views

TikZ: Node at same x-coordinate as another node, but specified y-coordinate?

In TikZ, if I have a node (A), how do I create a node (B) with the same x-coordinate as (A), but a given y-coordinate?
119
votes
7answers
46k views

Cool Text Highlighting in LaTeX

LaTeX has soul. ConTeXt, of course, has beautifully marked up "sharpie" highlighting, where you can put sweet hightligher under your text for free! In the pictured example, you can see highlights ...
8
votes
4answers
331 views

How to trim a certain part of each character in a whole document?

Got inspired from a nice article titled "why All Caps is so hard to read", I want to produce the following result for my document. MWE \documentclass[preview,border=12pt,varwidth]{standalone} \...
3
votes
3answers
119 views

Redefine `\uline` so `\colorbox` is locally defined to have underlined text, too

Initial problem: I want to underline the text with a continuous line with the following code: \uline{No underlining for \colorbox{lightgray}{everything} inside the colorbox.} Workaround: A ...
1
vote
2answers
834 views

highlighting strikeout text with ulem shifts the line downwards

I'm trying to highlight a text with a strikeout word by defining a new command as explained in the docs of ulem. Unfortunately, that moves down the strikeout line a few points, which looks strange ...
2
votes
2answers
391 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?
1
vote
2answers
162 views

Ad Tikz filled rectangle that serves as background of block text in original document

Is it possible to put a Tikz filled rectangle behind a block of text that serves as background color? Although the text is inside the Tikz node, the margins and positions of the text block should ...
1
vote
2answers
90 views

How to line-break a framed text box?

Is it possible to line-break a framed text box in LaTeX? If so, is it necessary to use some package to do so, and what is the name of that package? EDIT: For greater clarity, let me give an example. ...
1
vote
1answer
51 views

Can tikz menu items (as defined by menukeys pkg) be made to go across multiple lines? [closed]

I have a big problem regarding the menukeys package, which uses tikz to allow you to graphically represent menus/file paths. The major problem: no linebreaks. If a menu item happens to exceed the line ...
0
votes
0answers
55 views

TikZ drawing across two lines

this is perhaps a bit of a weird request, but I was wondering if it's possible to have a TikZ drawing start on one line, stop at the page margin, and continue in the next line. I'm aware that you can ...