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

learn more… | top users | synonyms

77
votes
4answers
5k 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 ...
70
votes
4answers
71k 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 ...
49
votes
6answers
27k 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 ...
41
votes
7answers
5k 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 ...
41
votes
5answers
9k 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 ...
38
votes
2answers
7k 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)?
33
votes
4answers
1k views

Is it ever bad to use \left and \right? [duplicate]

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( ...
33
votes
5answers
5k 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 ...
30
votes
4answers
6k views

How to have overlapping under-braces and over-braces

I am trying to typeset an equation that has overlapping over and under braces as per the image below: I have managed to typeset it using a sort of a hack, by typing the equation twice, once using ...
27
votes
2answers
621 views

Deep brackets around a text

What I'm trying to achieve is to get the following effect for a body of text: . I've looked at many examples that use all sort of brackets, but none of them look like the ones above. So far, I've ...
23
votes
3answers
39k 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 ...
23
votes
1answer
25k views

Square brackets in math mode without the bracket symbols

Is there a way to typeset a square bracket without using the symbols [ and ]? What I am looking for is like \vert instead of |. Motivation is a need for a workaround in using LaTeX formulas inside ...
22
votes
2answers
7k views

Escaping square braces

I want to use some text as the optional parameter to some command. The text includes square braces ([ and ]), but since the optional parameter goes within square brackets, unexpected things happen. ...
21
votes
4answers
7k views

Align large vertical delimiters (brackets) to rows of a table?

I’m trying to typeset a table of data, with brackets (i.e. }) at the right-hand side to show a classification of the rows.  Something like: ----------------------- | Aardvark | Armenia | \ ...
21
votes
2answers
7k views

\overbrace 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 ...
20
votes
3answers
15k views

big angle brackets

I know that \langle and \rangle creates left and right angle brackets. But they don't seem to adopt to the size of the expression inside. For example, if I have a big matrix, I would like to angle ...
19
votes
3answers
1k views

Curly brace to insert something into an equation? Like an inverted underbrace

I have a generic equation, into which I want to "insert" something so that the reader can see what I inserted into the equation and at which point. E.g. \documentclass{plain} \begin{document} \[ f ...
19
votes
3answers
2k 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 ...
19
votes
1answer
488 views

Indicating matching brackets/parentheses in TeX output

I often have cause to typeset things like this in TeX: When reading expressions like the one above, it's very difficult to tell which brackets match each other. I'd like to be able to define ...
16
votes
2answers
9k 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} ...
15
votes
3answers
11k 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
3answers
531 views

Angle brackets with an underset arrow

I am trying to make a pair of angle brackets of variable height enclosing a main box along with a box beneath each bracket and an arrow of variable length between these lower boxes. Since I'm sure ...
14
votes
3answers
18k 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]] ...
14
votes
3answers
38k views

Lyx: Quick way to insert Dirac bra-ket

In LyX, what is a quick way to insert mismatched delimiters in math environment? I tried typing \left|\right>, but it is not interpreted automatically.
13
votes
2answers
334 views

How can one put a “[” after \item?

The following does not compile because of the "[" after the \item. I presume it is because LaTeX expects a "]" as per the \item[option] syntax. However, I just want to insert the "[" character into ...
13
votes
4answers
3k views

What is the correct way to do delimiters?

I've always used \left and \right with my delimiters, but Martin Heller's answer to another question indicates that this method gives incorrect spacing. The correction appears to be prepending ...
12
votes
4answers
577 views

How do I specify a round parenthesis below some text?

I need something similar to \underbrace but instead of curly brackets, I would like to have normal round horizontal paranthesis below my text. Similar to \textbottomtiebar but spanning the whole text. ...
12
votes
1answer
1k views

Import curly brackets from MathDesign (Utopia)

I am using Fourier maths fonts with Utopia text (\usepackage{fourier}) for a book project, but I'm not satisfied with the curly brackets \{ and \}. They are too slim, and barely distinguishable from ...
11
votes
3answers
2k views

Big brackets around Text

I want to create a big single curly bracket over a paragraph of text. I will be using this for many, many paragraphs. I want to make it left and/or right idented. This is for a conversational styled ...
11
votes
1answer
2k views

Easily change behavior of \DeclarePairedDelimiter

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 ...
11
votes
1answer
385 views

bracket with doubled delimiters

I want to typeset Hilbert-Schmidt-Products as the Liouville-Equivalent of the Hilbert Space Braket, with doubled delimiters, like this: \Lbraket{\rho|\rho} results in <<rho|rho>>. I was ...
10
votes
6answers
2k views

How do I get function argument parenthesis to position correctly?

I'm having trouble with the appearance of parentheses representing function arguments. They appear to far away from the function name. For example the code ...
10
votes
5answers
1k views

A symbol for the field of formal Laurent series

In my area of math one of the objects that pops up quite often is the field of all formal Laurent series. Now the trouble is that the notation for this field is $\mathbf{C} (( t ))$. Now the two ...
10
votes
3answers
289 views

Is it possible to give colors to big (automatic) parenthesis in math mode?

In the following code I can't make the right parenthesis to have arbitrary colors. \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \begin{document} \begin{equation} ...
10
votes
2answers
6k views

Why different bra ket notations?

Why are bra and ket defined in the official package braket.sty in two different ways (\bra, \Bra and \ket, \Ket)? I do not understand why there exists the command \bra with non-scalable delimiters. ...
10
votes
1answer
9k views

Tall curly brace

I would like to put a tall (long) left curly bracket on the left side of the following: \documentclass[12pt]{article} \begin{document} \noindent c: $\{$1, ..., n$\}$ $\rightarrow$ $\{$1, ..., ...
10
votes
1answer
610 views

Bracketed Sentences

I am trying to achieve an effect similar to this book in diagramming sentences. Is there a package for achieving that? I can place all the brackets and subscripts manually, mixing math and text, but ...
10
votes
1answer
26k views

Brackets in first column in table give “Missing number, treated as zero” error [duplicate]

Possible Duplicate: Error with table I'm writing a table with 4 columns and 1 row. The first column starts with a bracket. It compiles without issues: \documentclass{article} ...
10
votes
1answer
281 views

No hyphenation of a word in square brackets

I'm having square brackets in normal text. Unfortunately latex won't hyphenate the enclosed word. This is the code: \documentclass[]{article} \usepackage[ngerman]{babel} ...
9
votes
2answers
2k views

LaTeX: optional arguments with square brackets

LaTeX is trying to add a missing $ that I don't want to the following code: EDIT: replaced stricken lines from original question with minimal working example: \documentclass[letter,12pt]{article} ...
9
votes
4answers
247 views

How to prevent the opening curly brace from going out over the top equation?

Constraints: I have to use top aligned aligned to let the baseline of the top equation be aligned with the enumerate label. Issues: The curly brace goes beyond the top equation so it does not look ...
9
votes
1answer
2k views

How to escape “]” in a description's item tag?

In a description like \begin{description} \item[\texttt{DoSomething(items[])}:] ... \end{description} , how do I escape the "]" character?
9
votes
2answers
229 views

Is there a faster way to type sequences?

When I'm using sequences in an article, I always type things like (x_n)_n and (x_n^k)_n. However, that doesn't display the subscript after the brackets very nicely. I know that I can fix this by using ...
9
votes
1answer
1k views

\overbrace split accross multiple lines

Is there a way to split the overbrace so that it appears in two halves over a multi-line equation. Something like /-----------Overbrace Label---- Equation over which to place ...
9
votes
2answers
344 views

how to get square brackets with \SIrange{}{}{}?

I'd like to get something like this: [-40 ; 80] °C Instead I'm getting: Below is a MWE. I've tried to include all necessary packages for siunitx, as written in its documentation; there are more, ...
8
votes
2answers
7k views

Need to change citation format from [1] to (a)

I need to change the format of citations for my bibliography items to look like: "See Reference (a)" instead of "See Reference (1)" I have used code like: \renewcommand\@cite[1]{Reference~(#1)} ...
8
votes
3answers
580 views

How to make pipe to grow with both sides?

How to make pipe (vertical bar) symbol to grow like in Dirac product notation but without outer angle brackets?
8
votes
2answers
306 views

Put a text into Brackets (no math mode)

I want to make something like this. Put a text into Brackets (can be (). {}, [] ..., whatever type is the easiest). I am looking for an easy way. There are a lot of similar question on this site, ...
8
votes
3answers
2k views

Inline row vectors with smallmatrix

I typeset inline column vectors with the smallmatrix environment from the amsmath package: $\left(\begin{smallmatrix}a\\b\end{smallmatrix}\right)$ Unfortunately, when I do the same with row vectors ...
8
votes
2answers
358 views

Less aggressive automatic paren stretching with \left

\left and \right are convenient but sometimes they're a bit overeager in stretching the parentheses. In that case we can manually use \bigl, \Bigl, etc. I have defined a new command like this ...