Linked Questions

245
votes
4answers
146k views

LaTeX conditional expression

I would like to be able to set a flag at the beginning of the main flag (say output) that tells if I want to produce a paper document or an electronic document. Then I should check this flag to ...
26
votes
6answers
11k views

Putting a bar in the margin

I sometimes want to give examples in a document I am writing. Because these examples are quite general it could be difficult for readers to see the difference between the examples and the theoretical ...
8
votes
5answers
3k views

Brace and text in side margin

Within a text, I would like to emphasize one or two paragraphs by placing a curly brace in the left side margin, and next to it some short text vertically centred around the brace's centre. The ...
8
votes
2answers
4k views

labeling underlined text over multiple lines

I have a large number of documents I need to create, and there is one very particular need I cannot find a solution for. In these documents, there are pieces of text that are underlined and they ...
11
votes
1answer
3k views

Environment to underline/strikeout for comparing versions

I have a TeX file that I'm editing with several collaborators and we use environments to highlight and discuss proposed changes like the following: Some text. \begin{old} Text that I propose to ...
5
votes
2answers
606 views

Leftbar in align environment

We have to mark lines in a LaTeX document by vertical lines in the left margin of the site. An excellent solution outside of align environments is the leftbar environment (framed package): \begin{...
3
votes
2answers
674 views

Left bar in the margin of an environment with figures/tables

I am writing a document with theorems and proofs. Since, some reader may not be interested by the proofs I want to highlight them so they can be skipped easily. The best idea I came up with is to ...
8
votes
1answer
164 views

Why does the `&` reset grouping?

In this answer, I used \tikzmark to mark the extent of a typeset piece of text, so I could draw changebars next to it. But it initially seemed that the changebars "disappear" with math-mode content. ...
4
votes
1answer
305 views

Disable underlining in display math and resume afterwards

In my documents I have conditional text, which is underlined (in non-display math mode) to make it more obvious to the reader as to exactly which portions of text is conditional text. In display math ...
3
votes
1answer
186 views

Mark portions of text without affecting spacing

I would like to mark portions of my text that requires special attention during the review process. This marking won't be in the final document, so would like to be able to add these marks without ...
0
votes
0answers
31 views

How to let latex only run one user defined command and save the ouput to a tax file [duplicate]

I want to let latex only run one of my defined commands and output results to a tax file. For example, the following tex file: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \...