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

learn more… | top users | synonyms

5
votes
1answer
43 views

Avoid brackets with a command having an optional argument as subscript

I have the following code: \documentclass{article} \newcommand{\quot}[3][c]{\frac{#2}{#3#1}} \begin{document} \LARGE $A_\frac{a}{bc}$ $A_{\quot{a}{b}}$ $A_{\quot[d]{a}{b}}$ \end{document} If I ...
9
votes
3answers
230 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} ...
0
votes
1answer
55 views

Large enough bracket size

$$\Sh(E/K)=\ker\textbraceleft WC(E/K)\rightarrow\prod_{\nu\in M_K}WC(E/K_{\nu})\textbraceright$$ How do I make my brackets larger than the \prod within it?
29
votes
4answers
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 ...
31
votes
5answers
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 ...
2
votes
1answer
40 views

right bracket in my TeXworks does not work

I am working in TeXworks and I would like to use [ ] , but when i use \right] , it does not work. What should I do in this regards?when I use just ], there is no space between 2 and ], how should I do ...
1
vote
2answers
32 views

Brackets in two different align “lines” [duplicate]

i want to use a big bracket (\left( , \right)) in an align-enviroment over two lines, so that \begin{align} 0=\left(a+b+c \\ +d+e\right) \end{align} which is not possible, because Latex want me ...
5
votes
1answer
69 views

Redefine \middle| to insert space before and after itself

I want to use \middle| inside of brackets like this. \documentclass{article} \begin{document} \begin{equation} \left\{\frac{1}{n} \middle| n>0\right\} \end{equation} \end{document} ...
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} ...
3
votes
0answers
74 views

AUCTeX folding and square brackets in math mode

I want to use the folding functionality of AUCTeX, mainly to replace math macros with the corresponding symbols. But at the same time I want to continue to use square or curly brackets additionally to ...
4
votes
1answer
69 views

Brackets around multiple lines

I am trying to put big rounded brackets around some text that contains math formulas: Jede Teilfolge hat entweder unendliche viele Elemente von $\left( g_{2n}\right)$ oder $\left( ...
12
votes
3answers
24k 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.
3
votes
1answer
258 views

How to squeeze a formula inside a text in latex?

I type some formula in latex inside my text, but When I make it pdf I see it is not squeezed. How I can make it squeeze? See the attached, which shows the problem!
9
votes
2answers
153 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 ...
3
votes
1answer
44 views

adding large curly bracket and black title background

I tried to add curly brackate using \left{ , \begin{array}{@{}ll} but no help. What is the way to add large brackate to cover as in image? Is is possible to create black strip as in image behind ...
1
vote
0answers
26 views

Citing page numbers in parentheses with year but author outside

So I want the following: The three parameter inverse gamma distribution is described by Malamud et al. (2004, p. 694) as... The script I'm using is: The three parameter inverse gamma distribution ...
4
votes
1answer
131 views

Parentheses and square brackets contextually in small caps

In a book publication I use references in parentheses with an open type font. The references are set in small caps (both letters and numbers): % xelatex xetex 0.9999 texlive 2013 windows ...
3
votes
1answer
105 views

Bracket problems when splitting multiline equations

Basically, I have the following latex code: \begin{align*} + \left( \left[ \sum_i y_i x_i(r) - \frac{1}{n}\sum_i y_i \sum_i x_i(r) \right] \left[ \sum_i x_i^2(r) - \frac{1}{n} \left( \sum_i ...
4
votes
4answers
170 views

underbrace matrix inside brackets

I would like to put an underbrace below the matrix like this: $$\left(\underbrace{ \left[\begin{array}{ccc} a&b&c\\ d&e&f\\ g&h&i \end{array}\right]}_{A} ...
4
votes
1answer
113 views

Curly brackets in table cell for language manual

I try to make a table for language manual. Could anybody help me to manage curly brackets in the cells of a table? Like this: I tried to do it like here but I could't manage it.
9
votes
4answers
177 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 ...
0
votes
1answer
49 views

How do I write a right bracket without writing a left one?

I need to use \right] in one of my lines, but if I don't write \left[ in the same formula I get an error (Using texmaker). What I want to do is to type the range of a function, as in $F(x)]_{0}^{5}$. ...
6
votes
1answer
65 views

\eqref for systems

Is there anyway to create a single label for a system of equations instead of just one, such that I can recall it? I've done this but the result doesn't totally make sense. ...
4
votes
0answers
51 views

Why `\\` is wrong here? [duplicate]

The following codes return errors \documentclass{article} \begin{document} cd\\ [asd] \end{document} But this one will work \documentclass{article} \begin{document} cd [asd] \end{document}
5
votes
1answer
102 views

How do I remove parentheses from theorem optional argument?

This is a MWE: \documentclass[12pt]{article} \usepackage{amsfonts, amsthm, amsmath, amssymb} \theoremstyle{definition} \newtheorem{Theorem}{Theorem}[section] \newtheorem*{Pythagorean ...
1
vote
1answer
147 views

Biblatex square brackets color

How can I change the square brackets color of references in text using biblatex (numeric style)? I know it can be done with natbib, but not using this package anymore. ...
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( ...
2
votes
1answer
46 views

Enclose blocks of selected text with large square brackets?

I have some long equations in my document. I want to add some square brackets so it is clear how the main text flows. Here is my code \documentclass{article} \usepackage{amsmath} ...
4
votes
1answer
61 views

Bracket problem with \newtheorem

\documentclass[a4paper, 11pt, notitlepage]{report} \usepackage{amsthm} \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] % reset theorem numbering for each chapter \theoremstyle{definition} ...
9
votes
2answers
127 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, ...
1
vote
1answer
69 views

Mathematical Function Notation [duplicate]

How do I get this sort of notation in LaTeX? I'm using TeXmaker.
5
votes
1answer
113 views

Big brackets are always opening and square when using fontspec with MnSymbol

I have here a strange problem I don't get. When using the fontspec package in combination with MnSymbol package all big brackets in math mode are square and opening... when I deactivate one of the ...
2
votes
1answer
56 views

Overbraces hovering too far above matrix for some reason?

I have a matrix with two overbraces above it but they are not directly above it, there is a fair amount of space between the braces and the matrix and I can't see why it is happening. ...
2
votes
0answers
36 views

Need to split right bracket at side of matrix into three smaller brackets [duplicate]

To the right of this matrix I have a big right curly bracket with the text "2m terms" that spans the height of the matrix. I need to replace this right bracket with three smaller ones that together ...
2
votes
1answer
91 views

Place a column vector surrounded by square brackets in a 3-column table?

I have a 3 column table and in the third column I am representing a $20\times 1$ vector. I would like to put square brackets on each side of this vector. ...
5
votes
2answers
124 views

LaTeX parenthesis problem with multline environment [duplicate]

I have a problem with the different size of parenthesis with multiline (see image). Actually i don't care about the different size of the square parenthesis on M and \bar{M} but I really care about ...
5
votes
1answer
110 views

Modify smartcite from biblatex to change behaviour based on prenote

I have a question about the smartcite command from biblatex. I redefined it in the following way: \documentclass{article} \usepackage[style=alphabetic, autocite=footnote]{biblatex} ...
3
votes
1answer
109 views

bad looking binomial

I want to post something on math.stackexchange, but I have doubts about visual aspects of it. Take a look at $ {n \choose \lfloor \frac{n}{2}\rfloor} $ or $ { {n} \choose \frac{n}{k}} $ It ...
4
votes
1answer
283 views

Disable TeXstudio auto completion of square brackets?

I've disabled auto completion of {} from the advanced settings menu, but the program still automatically adds a ] when I type [ in examples like: \item[--] Is this a bug or can I disable it some ...
4
votes
1answer
92 views

How to create an array with both vertical and horizontal braces around the elements

I want to create the matrix shown bellow in Latex. I have the horizontal curly brackets figured out, I can use undermat{}{} for that. I do not however know how to insert the vertical curly brackets ...
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 ...
55
votes
4answers
47k 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 ...
4
votes
1answer
194 views

Wrap lines of code with curly bracket and add some text next to it

I am currently studying algorithmic complexity of some programs, I have to deal with lines and lines of code and it would be really nice and helpful if I could wrap some of those lines in a right (or ...
2
votes
1answer
100 views

Problem with brackets

I need to get {}. So what is wrong with the command $ \left\lbrace \left\rbrace $ ?
5
votes
2answers
433 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: ...
27
votes
2answers
577 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 ...
1
vote
1answer
31 views

break a long equation with an initial bracket [duplicate]

I tried to fix this problem by reading the answers to the questions on this forum related to this topic, but I did not find any solution. Could you help me, please? The thing is that I have to break a ...
4
votes
2answers
97 views

Vertical Alignment of Matrix Cells

In the equation below, I would like to have the horizontal dashed lines that seperate different cells of the matrix to be vertically aligned. Furthermore it would be nice if the square brackets of ...
4
votes
1answer
56 views

Nested call for brackets

I need to create a custom command that behaves differently when it is called. For example consider \documentclass{article} \newcommand{\bkt}[1]{\left( {#1} \right)} \begin{document} ...
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 ...