Questions tagged [delimiters]

{delimiters} are characters used to specify the boundary between separate blocks/groups of text. They are typically used in {macros} or {math-mode} constructions.

are characters used to specify the boundary between separate blocks/groups of text. They are typically used in or constructions.

There are many kinds of delimiters available in LaTeX. Here is an incomplete list:

  • The usual /round brackets (), /square brackets [], and /curly brackets {} (written \{ and \}). These have different names depending on your dialect of English, so if your question involves one of these, it's probably a good idea to clarify which one you're referring to!
  • The absolute value |x| is written |x| or \lvert x \rvert (the latter has better spacing).
  • The norm ‖x‖ is written \| x \| or \lVert x \rVert (again, the latter has better spacing).
  • Angle brackets/chevrons ⟨x⟩ are written \langle x \rangle.
  • The floor and ceiling functions are written \lfloor x \rfloor and \lceil x \rceil, respectively.

Using \left and \right, one can resize any kind of delimiter: \left( \frac{x}{2} \right) has larger parentheses to match the fraction. It's also possible to manually size delimiters with the commands \big, \bigg, \Big, and \Bigg.

Frequently Asked Questions

  1. How can I get \left and \right to work across a line break?
  2. How can I automatically increase the sizes of nested delimiters?
  3. What do \left and \right mean?
  4. How can I get larger parentheses in an equation?
  5. How can I automatically increase the size of outer nested parentheses?
  6. Parentheses bigger than \Bigg
492 questions
45
votes
2 answers

Why does \big\mid not work?

It is well-known \big\mid throws an error. But why is it so? As far as I know, \mid is equivalent to \mathrel|, while \lvert and \rvert are equivalent to \mathopen| and \mathclose|, respectively --- just like \vert is equivalent to |. And…
Gaussler
  • 12,801
28
votes
4 answers

Design of new brackets

There are many types of brackets (), [], {}, ||, <>, etc. In the context I use them all have already a fixed mathematical meaning; therefore I need another one. The brackets I use have two floors, so () looks like the binomial coefficient or {} like…
12
votes
4 answers

Regarding sizing of delimiters

I'm currently writing my dissertation in civil engineering using LaTeX. I think LaTeX is really good. I have been slowly distancing myself now from Microsoft Word. LaTeX is good for me since my paper (nonlinear structural dynamics) may eventually…
beethovengg
11
votes
1 answer

How to get big \{ and \} braces for an equation

How to type big \{ and \} braces in this sentence: $$P_{n,k}=\{\{x,y\}\in [X]^2: n=\min \{m\in \omega: B_m(x)\cap B_m(y)=\emptyset\}; (x,y)\notin G_k\}$$ Could somebody help me?
John
  • 565
9
votes
6 answers

A curly brace with an asymmetric cusp

I am trying to write one set of equations implying the next, inline with text. What I would like to do is something like the following: \documentclass{article} \begin{document} And so, \(\left. \begin{array}[t]{l} a \\ b \\ c \end{array}…
8
votes
1 answer

\mid or \vert in a conditional expectation or density function?

Which would you use to write a conditional density function $f(y|x)$ or a conditional expectation $E(y|x)$? There is an old question on this \mid, | (vertical bar), \vert, \lvert, \rvert, \divides, but it's unclear to me what the preferred form…
JPi
  • 13,595
7
votes
1 answer

Uniform delimiter size

In my preamble I have the following \DeclarePairedDelimiter\norm{\lVert}{\rVert}% \makeatletter \let\oldnorm\norm \def\norm{\@ifstar{\oldnorm}{\oldnorm*}} \makeatother without really knowing how it works. But it does work great in most cases. But…
Patrick
  • 309
6
votes
1 answer

thick vertical line symbol for norm of vector

Some old text books use single thick vertical lines for writing norms of vectors. I would like to define a pair of delimiters which behaves like \lvert and \rvert, but with thicker lines. The new delimiters should of course adapt to the size of the…
linusk
  • 63
5
votes
3 answers

How to prevent an underbrace, with a subscript, from affecting the sizes of delimiters

In MathJax, I had occasion to write this: \Big\| \Big( \,\underbrace{0,\ldots,0}_n, \frac 1 {n+1}, \frac 1 {n+2}, \frac 1 {n+3}, \ldots \Big) \Big\| I used \Big instead of \left and \right|. If I had done the latter, the delimiters would have…
5
votes
1 answer

Size-dependent \big-, \Big- (etc.) modifiers

What I'm looking for is a way to use \big and its friends such that they adapt to the environment that they're in, e.g. \scriptstyle. To a degree, this was already covered in this question and the corresponding answer, but the results are not yet as…
Axel
  • 791
4
votes
2 answers

Stretching left, "inside" and right delimiters

The following MWE shows a way to stretch left, "inside" and right delimiters. Is the use of \vphantom the good way to do that? \documentclass{article} \usepackage{amsmath} \NewDocumentCommand\interlike{mm}{ \left[ \vphantom{#2}#1…
projetmbc
  • 13,315
4
votes
1 answer

Replacing function, how to use + as delimiter

I am using a function for summing numbers like in paper and my input at arguments is like this: \showsum{123+456} I need to replace the custom function with other from package xlop - \opadd. I want the same function name but there are 2 separated…
Simeon Simeonov
  • 819
  • 5
  • 11
4
votes
1 answer

\DeclarePairedDelimiter with \left and \right

Why does this not work? \documentclass{article} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \newcommand{\DeclareAutoPairedDelimiter}[3]{\DeclarePairedDelimiter{#1}{\left#2}{\right#3}} \DeclareAutoPairedDelimiter{\p}{(}{)} % but…
user541686
  • 9,547
3
votes
1 answer

Large Delimiters

I am stuck with a LaTeX glitch! I am making an exercise on sequences and series. I have to write down an expression for the general form of a sequence for which I need large delimiters. I tried various ways but it did not work. Here is a minimal…
Shah
  • 51
2
votes
3 answers

How a program a command which counts the delimiter within itself and alternates brackets accordingly?

Is it possible to define a command which defines a delimiter which alternates round, square, brackets brackets in the formulas? The command would count if it has other 'mydelimiter' within itselft and alternate for better readability. $x =…
1
2 3