Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [brackets]

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

0
votes
0answers
9 views

Array inside an equation: open bracket in a line and close in another line [duplicate]

This code: \documentclass[12pt]{article} \begin{document} \begin{equation}\label{eq:test} \begin{array}{l} \left[ \displaystyle \frac{e^{ix}}{2} = \\ = \sin (x) + \cos (x) \right] \end{array} \end{...
4
votes
2answers
236 views

Stretching a curly bracket to get better vertical symmetry

As can be seen in the following MWE, \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \left\{ \begin{aligned} a&=\frac{b}{c} \\ a&=e ...
2
votes
1answer
26 views

Adding brackets below Tikz picture

I currently made the following timeline/picture in Tikz: Which corresponds to the following code: \begin{figure} \caption{Scaling approach} \noindent\begin{tikzpicture} \matrix (M) [ ...
5
votes
1answer
29 views

Multiline equation with aligned (amsmath) and brackets that contains the entire equation

I want to have the right side of the equation surrounded by square brackets with appropriate size. How do I make the brackets contain many lines without ruining the alignment? Minimal code that won'...
2
votes
1answer
16 views

How to specify language dialect in \lstline option?

First, here is some code that works fine: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \begin{document} \lstinline[language=algol,keywordstyle=\color{blue}]{int a} \end{document} ...
3
votes
1answer
53 views

Siunitx table, with a number in parentheses (single row)

I want a table column to be aligned using the thousands comma. But when I try to put a number in parentheses I get an error. I have read previous answers which were not suitable for my situation, ...
9
votes
3answers
134 views

How to make \{ and \} automatically have \left and \right

Desired behavior \{ and \} should turn into \left\{ and \right\{. Attempt 1 \edef\{{\left\{} \edef\}{\right\}} Error message TeX capacity exceeded, sorry [input stack size=5000]. \font@name ->...
3
votes
2answers
147 views

Adding curly brace to the right-hand side of the equation

I want to add brackets on one side of the equation and write something adjacent to it. But, I'm getting those words in the line below while I need those at one side of the equation. Can anyone help ? ...
0
votes
1answer
35 views

Hiding brackets after a definition

I use amsthm package to define the environment as \documentclass[a4paper,11pt,twoside,openright,notitlepage]{book} \pdfobjcompresslevel 0 \usepackage[a-1b]{pdfx} \usepackage[utf8]{inputenc} \...
0
votes
4answers
72 views

How to make big parenthesis in equation?

I am learning how to make like this, would you mind guys to help me? I just can't make a big parenthesis like this one. Thanks in advance.
3
votes
3answers
239 views

How can I make parentheses stick to formula?

I'm working with a class of functions roughly denoted by \mathcal R\big(\Pi_+;\le\big). The problem is that the last parenthesis won't "stick" to the rest. What I mean by that is that i.e. when the ...
0
votes
0answers
19 views

bmatrix brackets too tall when using package setspacing and setting \doublespacing [duplicate]

Is there a way to get the brackets of the matrices to ignore the spacing that I set up for the paper? There is just a little too much space at the top of each matrix when using \doublespacing. I would ...
0
votes
1answer
58 views

How to typeset \left \right parenthesis in LuaLaTeX in 2019?

With pdflatex I often used \left( and \right) to scale the parenthesis of a function as in \[\exp\left(\frac{a}{b}\right) \] But this method was not perfect, because the code is difficult to read ...
1
vote
1answer
37 views

pgfplots: Are parentheses mandatory in axis environments?

Assumed we have this little code snippet: \begin{tikzpicture} \begin{axis}[ date coordinates in = x, table/col sep = semicolon, date ZERO ...
4
votes
1answer
32 views

How to increase the vertical offset of exponent terms with increasing size of parentheses?

I want to be able to write the following expression: But have not been able to do so, since all I can get is: I do not use the fraction of P/E, but rather just the psi. Can you help? EDIT: After ...
3
votes
1answer
30 views

Removing outer parenthesis in a diagram

When I try to remove the outer brackets in the following diagram, by removing the first occurrence of \begin{pmatrix} and the last occurrence of \end{pmatrix} I get the error misplaced alignment tab ...
3
votes
2answers
128 views

How can I get cleveref to surround references with parentheses automatically?

I use cleveref for in-document references, and find it to be clever. However, I typically want to refer to figures (for example) within parentheses. What I do now is this \usepackage{cleveref} ... X ...
4
votes
1answer
95 views

Parentheses between \big and \Big

Is there a way to create parentheses in math mode that have an extension between that of the commands \big (too small) and \Big (too big)? The amsmath package documentation defines the delimiters in ...
1
vote
2answers
52 views

Help! Why does my curly brace show as a straight line?

I'm a beginner at latex and I've been reading everything I found about curl braces. I managed to positioned it where I wanted it but now my curly brace appears as a straight line. When I write the ...
1
vote
1answer
40 views

How to deal with sentence-level parentheses ending equations?

Say you want to make a remark on-the-fly, which involves a formula too big to be put online, but this formula is supposed to end your sentence (as in, for instance, if we let How do you deal with the ...
3
votes
1answer
46 views

Add parentheses if double superscript or double subscript

I've already got an answer for Add parentheses if double superscript. I want to go a step further as proposed below. However lualatex complains of “missing $” when using the e{_}-type argument… \...
1
vote
2answers
22 views

Problem redefining hat accent in eulerpx

I want to use eulerpx with the alternative hat accent provided by eulervm (via the euler-hat-accent option). To this end, I copied the relevant commands from eulervm.sty (see also this answer). The ...
0
votes
0answers
16 views

inverting fraction comes out different size [duplicate]

I think I get why the two parentheses/fractions here are not the same size: \left(\frac{3}{p}\right)\left(\frac{p}{3}\right) Screenshot from Mathjax website: Presumably something about the baseline ...
0
votes
1answer
29 views

Grouping lines in cases and aligning them

I am reading an article, where I faced the following: I want to write such a thing in LaTeX. Basically, this whole thing is in a bracket, every two lines are grouped and labeled together, and there ...
5
votes
2answers
185 views

Gauss brackets with double vertical lines [duplicate]

I would like to have commands for left- and right gauss brackets which have a double vertical line, but otherwise behave exactly like \lfloor and \rfloor. In particular, they should come in various ...
1
vote
1answer
30 views

Citation brackets using biblatex

I'm using biblatex for references and citations in my thesis. \usepackage[backend=biber, style=alphabetic, citestyle=authoryear]{biblatex} gives me the author name in the text, but I would like to ...
0
votes
1answer
81 views

Citation for an addendum in brackets, \citet vs \citep

With natbib (and bibtex) I have the option of using either \citet{foo2019} or \citeb{bar2019} and I think I'm pretty clear on their use. I.e. "as Foo (2019) has shown, ducks tend to quack" vs "...
1
vote
1answer
44 views

Problem with Big Curly Brackets in Overleaf

I am trying to make open a big curly bracket with 3 rows and 2 columns in it. This will be used in a Conference Paper that has 2 columns per page, so logically the wideness of each column is ...
4
votes
2answers
168 views

Table enclosed in curly brackets

I would like to enclose a table with curly brackets. I photoshopped an example here: The MWE of the table is here, please feel free to add packages etc. ` \documentclass[11pt]{article} \begin{...
3
votes
4answers
201 views

A universal method for left-hand alignment of a sequence of equalities

With this code \documentclass[a4paper,12pt]{article} \usepackage{mathtools, mathrsfs} %% Code for '\widebar' macro is courtesy of %% https://tex.stackexchange.com/a/60253 \makeatletter \let\save@...
6
votes
1answer
80 views

Missing space after parenthesis in inline text

\documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{listings} \lstdefinestyle{General} { basicstyle=\small\ttfamily, breaklines=true } \lstset{style=...
1
vote
1answer
28 views

Brackets around blkarray are too big

This is a followup to this question. MWE (given by Henri Menke in the linked post): \documentclass{article} \usepackage{blkarray} \begin{document} \[ \left[ \begin{blockarray}{ccccccc} \...
1
vote
1answer
31 views

brackets inside matrix / matrices inside a matrix

I would like to make something that looks like this: I don't know how to get the brackets inside the matrix to line up in the right spots. I don't need them to be red; I just added that to emphasize ...
0
votes
0answers
10 views

Row vector bracket size with double spacing [duplicate]

I have an equation in my thesis that needs a row vector. Since my thesis template is using the \doublespacing command of the "setspace" package, the bracket size of the row vector is not consistent ...
3
votes
1answer
29 views

Is there a way to remove extra space when using qtree?

Is there a way to remove the extra space in the example below? (That is, to make the square brackets smaller but in such a way that the whole tree still falls within the brackets) Here is the code: \...
3
votes
1answer
83 views

Kerning with parentheses

Given the MWE below, one can see that the spacing around the parentheses is rather awkward. The opening parenthesis is too close to \cos and \sin, and too far away from the \omega. The closing ...
1
vote
2answers
88 views

Rotated Curly Brackets Along Arrow (TikZ)

I am trying to do a diagram to show the nature of Principal Component Analysis. I have the following code, wherein I would like to have rotated curly brackets under the Principal Component Vectors to ...
2
votes
2answers
56 views

A chain of inequalities with words - aligned

How would one write this in TeX? I tried basic align techniques, but one also needs to align the words inside the brackets on the right-hand side and for me it does strange things. Thanks!
2
votes
1answer
122 views

How to type these special brackets in latex in text mode?

LEFT BLACK LENTICULAR BRACKET (U+3010): 【 RIGHT BLACK LENTICULAR BRACKET (U+3011): 】 LEFT WHITE LENTICULAR BRACKET (U+3016): 〖 RIGHT WHITE LENTICULAR BRACKET (U+3017): 〗 LEFT WHITE TORTOISE SHELL ...
0
votes
1answer
73 views

Maths Equation Formatting - Brackets [duplicate]

Does anyone know how you would type this in latex? Thank you!
3
votes
1answer
79 views

Citing twice the same paper in LaTeX (with Biber)

I'm using LaTeX to write my Masters thesis, and I have some issue with the bibliography. I'm using Biber and the style bath. I have a paper (for now, but will probably have more in the same case) ...
2
votes
3answers
243 views

Making brackets around a function larger

In my project I want to define e as a limit and have the following $$\lim_{x\to\infty} {(1+\frac{1}{n})^n}$$ but the brackets don't line up properly, the curved brackets don't go around the entire ...
2
votes
2answers
74 views

How to get uneven size/space of numerator and denominator in fraction enclosed by \left\{ and \right} brackets

The following code gives a large amount of space under the denominator, enclosed by the left and right brackets, \left{ and \right}: U_{ij}^{\mathrm{tor}}(\mathbf{\hat{r}}_{ij},\mathbf{\Omega}_i,\...
3
votes
2answers
312 views

But how to align the equality sign $=$ balanced?

See the following latex keywords \[\left\{\begin{matrix} A=B \\ C=D \end{matrix}\right.\] This shows the two array as column wise in center part. But how to align the equality sign $=$ balanced?
5
votes
3answers
567 views

How to align numbers in parentheses

This code aligns the 4 and the -3 roughly centered, i.e., the 4 is centered above the -3. I would like the 4 and the 3 to be perfectly vertically aligned, with the negative sign out to the left and ...
10
votes
2answers
461 views

Unstandardized brackets in matrix

I wonder how to solve my problem. In 'normal' matrix we have a square brackets but I need to write a brackets like in photo Could you help me? I'm using \usepackage{amsmath}.
5
votes
3answers
287 views

Macros \dv and \pdv eat the subsequent parenthesis argument

The physics package has the macros \dv and \pdv which are great but I have a small problem with them. If an argument with parenthesis included right after them they eat the whole argument. If there ...
0
votes
1answer
74 views

Big Parenthesis in Latex

So you know how this code: $(\frac{1}{2})$ produces small parenthesis. How would I get bigger parenthesis?
1
vote
1answer
34 views

In-prose bracket styling

For stylistic reasons, I would like to ensure that parentheses use different characters for each level of nesting: ([{}]). I would like this to be upheld in the main body (as well as citations, ...
0
votes
1answer
33 views

Hyphenation doesn't work if the word is inside brackets and bold

So, the hyphenation apparently doesn't work, if the word is inside of round brackets AND in bold font. This is the code: \documentclass[12pt,ngerman]{scrartcl} \usepackage{babel} \begin{document} ...