Linked Questions

114
votes
7answers
44k 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 ...
66
votes
7answers
44k views

Adding a large brace next to a body of text

I'm writing a short document listing some chronological events. I want to pick out a period with a big brace. Here's a quick mockup: What's the best way to do this? Can I set the size declaratively - ...
27
votes
2answers
61k views

How make sure two elements stay on the same page? [duplicate]

Possible Duplicate: Unbreakable block I am writing a very simple how-to document with several screenshots. The document flow goes something like this: A few sentences explaining action 1 \begin{...
29
votes
3answers
4k views

Is there a way to measure the remaining space of a line of text?

I'd like to write the following: Some long paragraph of text \measureremainder{\whatsleft}\begin{mimipage}{\whatsleft} stuff \end{minipage} so that the minipage takes up exactly the remaining \...
16
votes
3answers
3k views

How to draw text-anchored tikz line below text instead of above?

I wish to mark several pairs of from/to anchor locations in text, and use tikz to draw lines between these. The anchors are not in absolute page locations; the text determines where the endpoints of ...
17
votes
2answers
10k views

Installing background and foreground page layers with TikZ

Several times I discovered the need to draw TikZ material behind and on top of the page text (How to draw text-anchored tikz line below text instead of above?, Test if a paragraph has a page break in ...
8
votes
2answers
3k views

Background overflows when using rounded corners for listings (package: `listings`)

I'm using listings to list code in my document, and I want the code to be displayed in a frame with rounded corners and a grey background color. But the background overflows the frame, as if the frame ...
8
votes
2answers
1k views

Special action for every new page

I need to define a macro or do some special action every time a new page is encountered. In some sense I want to "number" tikzpictures but have all the tikzpictures on the same page contain the same ...
9
votes
2answers
2k views

Fixing a code to highlight formulas and text on several lines

In this post I've found the following amazing code to highlight text on several lines. The problem is that code dosen't work well with formulas : for example, fraction using the mode display are ...
6
votes
2answers
1k views

Wraparound of tikz pictures in twocolumn layout

I am currently typesetting a document in a two column layout. Many text blocks are put into colored boxes, currently implemented with TikZ. This works; however, I have to split the text blocks ...
7
votes
2answers
425 views

marking conditional versions with line in margin

I have two versions of a document, which I have implemented using the versions package. So I can use \includeversion/\excludeversion to generate the different versions from the same source. I would ...
6
votes
1answer
1k views

File icon (folded corner rectangle) frame around text

I would like to present code listings with a "file icon box". Something like this: I'm aware of listings package allowing rectangle frames. My interest is in the specific shape of the frame. I think ...
10
votes
2answers
373 views

Place TikZ coordinate or \zlabel at every (base)line

I'm currently adjusting the code shown in Test if a paragraph has a page break in it? to support underlining and highlighting using TikZ similar as shown in Cool Text Highlighting in LaTeX, but ...
5
votes
3answers
531 views

classification labels in headers and footers

I'm trying to write Latex documents that will automatically satisfy government requirements for labeling certain classes of information: - Each paragraph starts with a label indicating its importance....
4
votes
1answer
755 views

Creating an environment able to span over multiple pages or columns

I'm trying to create an environment able to understand when it's on a single/two columns layout and to span over multiple pages or columns having different style for the two cases. I would want to ...

15 30 50 per page