Skip to main content

Questions tagged [brackets]

{brackets} is about different brackets, their usage and functionality in (La)TeX.

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 - ...
Internet man's user avatar
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( \...
user50612's user avatar
  • 1,303
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 ...
Mateus Araújo's user avatar
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 ...
fo9bgk's user avatar
  • 791
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 ...
Tim N's user avatar
  • 10.3k
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: [...
Tim's user avatar
  • 683
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{...
Kyle's user avatar
  • 391
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 -...
Larry Wang's user avatar
  • 3,555
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 & ...
GarouDan's user avatar
  • 3,291
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} ...
Andreas's user avatar
  • 443
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 ...
Charles Staats's user avatar
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]] ...
Regressor's user avatar
  • 793
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)?
pluton's user avatar
  • 16.5k
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 ...
Marco Servetto's user avatar
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 ...
Michael Underwood's user avatar

15 30 50 per page
1
2 3 4 5
14