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

learn more… | top users | synonyms

45
votes
6answers
22k 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 ...
65
votes
4answers
4k 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 ...
17
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 ...
55
votes
4answers
46k 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 ...
38
votes
7answers
3k 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 ...
38
votes
5answers
7k 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 ...
11
votes
3answers
8k 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: ...
8
votes
2answers
1k 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} ...
31
votes
2answers
6k 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)?
19
votes
3answers
796 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 ...
30
votes
4answers
4k 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 ...
12
votes
4answers
2k 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 ...
14
votes
2answers
6k 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} ...
14
votes
3answers
16k 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 ...
28
votes
3answers
4k 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 ...
4
votes
1answer
475 views

How to make expanding middle delimitors like in the braket package

The braket package has convenient commands like \Braket and \Set, where | are automatically expanded vertically. This allows to easily typeset expressions like \documentclass{minimal} ...
11
votes
3answers
12k 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]] ...
10
votes
5answers
911 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 ...
32
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( ...
10
votes
3answers
635 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 ...
8
votes
2answers
3k views

\lstinline!Foo! vs \lstinline{Foo}

I wonder what is the difference or correct usage of \lstinline!...! and \lstinline{...}? I like better {} because I feel there it's more consistent with other commands but for example in below ...
5
votes
1answer
273 views

Highlighted Matrix with brackets

I would like to produce the matrix as shown in this figure: At the moment, I have this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
14
votes
3answers
5k 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 | \ ...
5
votes
2answers
389 views

Biblatex+Biber footcite style when using autocite

I'm referring to this post. Please consider the following MWE: \documentclass{article} \usepackage[style=alphabetic, autocite=footnote]{biblatex} % Footnote modifications: ...
20
votes
2answers
2k 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 ...
12
votes
4answers
524 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. ...
11
votes
3answers
23k 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.
10
votes
1answer
1k 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 ...
5
votes
2answers
79 views

How to prevent overstretching of brackets?

With a tall equation like the following, using simple ( and ) gives brackets that are too small, and using \left( and \right) gives ones that are ridiculously big: ...
11
votes
1answer
338 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
1answer
469 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 ...
8
votes
1answer
940 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?
6
votes
3answers
394 views

A way to mark things in math mode

I want to mark the weight function in an equation, using something similar to \underbrace. Using this piece of code: (x^2y')' + \lambda \underbrace{x^2}_{\text{Weight function}}y = 0 I get . I ...
5
votes
1answer
602 views

Changing biblatex footcite style to use square brackets around the citation

I am supposed to use a certain citation style which has the citations in footnotes and square brackets around the references, just like "regular" citations in text (see screenshot). I can't however, ...
5
votes
3answers
659 views

Less pointy angle brackets

I was looking for a way to beautifully display UML stereotype titles including angle brackets like you can see here: What I came up with is $\mathtt{\ll metaclass\gg}$, however, as you can see here ...
5
votes
2answers
170 views

How can you address the size of surrounding parentheses whose size is determined by \left and \right? [duplicate]

Possible Duplicate: How to automatically resize the vertical bar in a set comprehension? Trying to type the formula for a conditional probability like this \mathrm{P} \left( whatever \mid ...
8
votes
1answer
116 views

Underbrace multiple math lines

I have to underbrace multiple lines in an align-environment with one brace. Meaning something like \begin{align*} A ={}& B + \underbracemultiline{C + D + E \\ & + F + G \\ & ...
8
votes
1answer
351 views

bracket covering only a part of a matrix

How can I write a matrix, with brackets that cover only rows/columns in a certain range, but still has the right indentation? What I would like: My current solution: \[ \overset{ ...
8
votes
3answers
739 views

Stretchable square brackets outside math environment

I would like use stretchable square brackets outside of a math environment. Ideally, I would like to use \left[ blah \right. right in my text. Is it possible ? How ? Note : I would like to be able ...
7
votes
2answers
5k 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)} ...
6
votes
4answers
871 views

Dynamically sized brackets/parentheses for text

I'd like to have a large bracket that shows a relationship from one set of text to another, like this: Nam dui ligula, fringilla a, ) euismod sodales, sollicitudin ) vel, wisi. Morbi auctor ...
6
votes
3answers
636 views

How to make \left<\overrightarrow{b}\right> look good?

I want a 'b' with an arrow on top, enclosed in angle brackets. \left<\overrightarrow{b}\right> gives angle brackets which are far too high. <\overrightarrow{b}> gives far too much ...
4
votes
1answer
249 views

Colored Curly Brackets spanning across multiple pages

This is just a thought that came for the notes I am working on, I have a need to create curly brackets which span across multiple pages. I don't know if this is possible to do or not. my curly ...
3
votes
1answer
166 views

Error typesetting large bracket with multiple lines

I was following a Wikibooks section to create multiple lines within a single large bracket. Something like this. The problem is that when I type in the given code, which is \[ u(x) = ...
3
votes
1answer
573 views

How do I specify a round parenthesis above some text?

How can I draw a horizontal round parenthesis above some text? How do I specify a round parenthesis below some text? explains how to do it below text.
2
votes
1answer
1k views

Two double-line equations need double left brackets

I have four lines of equations. The first two and the second two need to be grouped by a left bracket, and all four need to be grouped by one overall left bracket. I am using an array within an ...
2
votes
1answer
964 views

biblatex authoryear-icomp: How to change parenthesis to [asdf 1985]

Sadly I didn't find any solutions in the biblatex doku nor in google. Can anybody please point me out how to change the parenthesis of the authoryear-icomp (or authoryear style) from (author year) ...
1
vote
1answer
70 views

How do I type a single bracket?

How do you produce a single bracket in LaTeX? I just want to insert a " [ " without closing the bracket. Is there a way to do this?
0
votes
2answers
260 views

Automatically size the brackets by \left and \right

My tex code \documentclass[twocolumn]{article} \usepackage{amsmath, amsfonts, amssymb, textcomp} \usepackage[T4, OT1]{fontenc} \usepackage{newunicodechar} \usepackage{unicode-math} ...