Linked Questions

16
votes
2answers
8k views

Easily change behavior of \DeclarePairedDelimiter [duplicate]

After seeing the answer to this question I realized that I preferred the way of working of Juan A. Navarro's answer: I.e., \DeclarePairedDelimiter{\parens}{\lparen}{\rparen} from mathtools is a great ...
227
votes
7answers
812k views

Absolute Value Symbols

What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods? Some options include |x| and \mid x \mid, but I'm not sure which is best...
145
votes
6answers
14k views

Spacing around \left and \right

Why does the addition of a \left and \right introduces an extra space around the formula? Specifically, why do $\cos(\theta)$ and $\cos\left(\theta\right)$ render differently? Is there a way to use ...
148
votes
2answers
273k views

'Floor' and 'ceiling' functions

Is there a convenient way to typeset the floor or ceiling of a number, without needing to separately code the left and right parts? For example, is there some way to do $\ceil{x}$ instead of $\lceil ...
56
votes
8answers
12k views

Automatic left and right commands

Is it possible to automatically "add" \left and \right commands in front of all brackets? The source code should be left intact, but LaTeX should interpret every pair of brackets as if they were ...
12
votes
4answers
2k views

How can I automatically abbreviate page ranges in citations (biblatex)

I am using biblatex for my citations, and I was wondering if there was a way to automatically abbreviate the page ranges in citations. (The reason I ask is because I have them all in long-style, and I ...
19
votes
2answers
528 views

Convert all \subsection to \subsection*

I want all of my \subsection behave like \subsection* Instead of adding * everywhere, I like to add a few lines in the preamble. What should I do? Can I just \renewcommand?
7
votes
3answers
421 views

Cause DeclarePairedDelimiter to switch starred and nonstarred versions

I've made lots of use of the answer here, which shows how to switch the starred and nonstarred versions of a paired delimiter command (causing the regular version to automatically size the delimiters)....
7
votes
1answer
592 views

Use \csname … \endcsname to compute the starred-version of some command

I want to define some commands declaring paired delimiters using the mathtools package in LaTeX. For example, \paren{...} should result in \left(...\right), whereas \paren[Big]{...} should give \Bigl(....
1
vote
0answers
334 views

Use of mathtools

I have defined the \absas described in the Mathtools Users Guide 3.6. But I would like to habe the stared-version as default (=\abs). I looked further and found on 3..6.1 (as I thought) a way to do ...