Questions tagged [brackets]
{brackets} is about different brackets, their usage and functionality in (La)TeX.
197
questions
80
votes
7
answers
55k
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 - ...
70
votes
4
answers
10k
views
Is it ever bad to use \left and \right?
For mathematics, is it ever disadvantageous to use \left( and \right) in equations?
I can't see any way that doing this would hinder the typesetting, so why isn't () just converted into \left( \...
183
votes
7
answers
27k
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 ...
69
votes
9
answers
22k
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 ...
136
votes
4
answers
259k
views
"(" or "\left(" parentheses?
What is the difference between ( and \left( in LaTeX? Sometimes, when the content is small, it does not seem to matter which pair I use.
What is the best practice when it comes to which parentheses ...
58
votes
6
answers
59k
views
Biblatex, author-year, square brackets
I need to customize the author-year citation in biblatex for a template at work. Right now biblatex cites like this:
Ruschmeyer u. a. 1995, S. 123
They way I was told it needs to cite is:
[...
15
votes
2
answers
8k
views
LaTeX: optional arguments with square brackets [duplicate]
LaTeX is trying to add a missing $ that I don't want to the following code. Minimal working example:
\documentclass[letter,12pt]{article}
\newcommand{\monkeyBeans}[2][]{
\parbox{4in}{#1}
}
\begin{...
52
votes
5
answers
20k
views
How do I label different rows or columns of a matrix using braces?
I have a matrix enclosed in brackets [ ] (or (), or {}, or |'s, or ||'s):
- a b c d -
| e f g h |
| i j k l |
- m n o p -
which I want to label like so:
R
|---|
-- - a b c d -...
215
votes
4
answers
971k
views
How to write a function (piecewise) with bracket outside?
How to write this Piecewise function using LaTeX?
I tried
$
\begin{array}{cc}
\{ &
\begin{array}{cc}
0 & x\leq 0 \\
\frac{100-x}{100} & 0\leq x\leq 100 \\
0 & ...
26
votes
3
answers
32k
views
\bordermatrix with brackets [ ] instead of parentheses ( )
I have the following code:
\documentclass{article}
\begin{document}
$
M = \bordermatrix{~ & x & y \cr
A & 1 & 0 \cr
B & 0 & 1 \cr}
$
\end{document}
...
27
votes
3
answers
5k
views
Vertically asymmetric size variation for parentheses
One of the difficulties I have with writing formulas in LaTeX is that the standard sizing tools for the variable-size operators (parentheses, etc.) do not account for "high" symbols and "low" symbols ...
69
votes
5
answers
124k
views
Enumerated list with square brackets
I want to make an enumerated list in the following format:
[1] foo foo
[2] foo foo
...
How I can do that using enumerated lists? I have tried the following:
\begin{enumerate}[\left[ 1 \right]]
...
60
votes
2
answers
26k
views
Difference between \big[ and \bigl[
What is the difference between \big[ (or equivalently \big() and \bigl[? Is it always necessary to mention l (left) and r (right)?
55
votes
3
answers
123k
views
\overbrace and \underbrace with square bracket
I'm trying to put a nice square bracket over a complex text, it should look like an \overline but with ending like
\ulcorner and \urcorner.
The presence of \overrightarrow and \overleftarrow makes me ...
53
votes
7
answers
18k
views
How can I get an underbrace and an overbrace to partially overlap in an equation?
Sometimes I want to describe portions of an equation using \underbrace and \overbrace in such a way that the portions are not completely distinct, for example:
/-------\
x = A + B + C + D + E
...