Conventionally { and }; used to delimit groups or arguments in (La)TeX code.

learn more… | top users | synonyms

0
votes
0answers
2 views

Can't escape curly braces in \lstinline

Upon trying to typeset the following TeX I get the error: Too many }'s. ...handleClick } >Button component} TeX: \lstinline{<Button onClick=\{this.handleClick\}>Button ...
1
vote
1answer
35 views

Curly braces disappear when reloading LyX document

I have a problem in LyX when using a math macro with an optional argument. I want to have an interval [a,b] as argument, which I need to group in curly braces, otherwise LaTeX will confuse the ...
21
votes
4answers
1k views

Why does TeX remove braces around delimited arguments?

On pp. 203–204 of the TeXbook, Knuth describes how TeX absorbs macros' arguments: delimited go until the first appearance of the delimiter, and undelimited go until the next token, in both cases ...
3
votes
2answers
11k views

“Extra }, or forgotten \endgroup” error

Don't understand why this piece won't compile fluently. TeX file as following: \begin{figure} \centering \includegraphics[width=\textwidth]{chapter2/epjb/groups_0.pdf} ...
2
votes
1answer
101 views

Conflicting multi-line underbrace labels

Sometimes a \makebox gives nice underbrace, sometimes multiline version with \parbox works. But how to combine two multiline-underbrace-equation-labels side by side and make them look good? ...
11
votes
3answers
259 views

How do I adjust \underbrace spacing?

I have an equation like this \documentclass{article} \usepackage{IEEEtrantools} \usepackage{amsmath} \begin{document} \begin{IEEEeqnarray*}{rClCl} \left( \begin{array}{c} ...
2
votes
2answers
471 views

subequations and array in braces

I need something like this: \left\{ first line (1a) second line (1b) third line (1c) \right. all lines should be aligned to left
5
votes
4answers
198 views

How to put curly brace in front of even number of bullets?

I need to put curly braces in front of even number of bullets. The following post works perfectly for odd number of bullets. Bullet points and curly braces how can we modify it to for even number ...
7
votes
4answers
192 views

\newcommand with options

My question is about declaring a "newcommand" with an option. I have defined \newcommand{\bforall}[2]{\forall #1\, (#2)} so that $\bforall{x}{x \in A}$ writes $\forall x (x \in A)$. I would like ...
7
votes
2answers
55 views

prevent the label beneath an underbrace from taking up vertical space

\documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{multline*} = I_{B}(\Pi_{B})_{\theta}[\theta_{B},\Lambda^{\prime}[I_{0} - I_{B}[1-F(\theta_{B})]]] - ...
0
votes
1answer
41 views

Usage of the curly brackets [duplicate]

I have noticed today that the LaTeX would compile regardless if I put curly brackets or not. What I mean is this: I would usually write in maths mode \frac{1}{2} however latex also compiles if I write ...
3
votes
1answer
185 views

Curly brace with a bar next to it

I'm trying to work out if there's a symbol for this, or if my hack will have to do. What I'd like to achieve is a symbol identical to the curly braces with a bar here: But the closest I can seem ...
3
votes
2answers
54 views

write equation with more than one curly brace

I was trying to write the equation, but did not get enough hints in tex.stackexchange.com
1
vote
1answer
63 views

Left brace in align environoment [duplicate]

I would like to have a left brace around equations in the align environment. How can I do this? (I would like to use this environment because I would like to number each individual equation to be ...
3
votes
1answer
41 views

Multiple cases with automatic braces

I am writing a relation in which I need to describe the value of G(i, s, a): \documentclass{article} \usepackage {amsfonts} \usepackage {amsmath} \usepackage [margin=1in]{geometry} \usepackage ...
4
votes
2answers
156 views

Replacing braces in strings

I know I should probably not want to, but say for the sake of discussion that I wanted to remove braces from a string for some purpose (background, now obsolete). From its package description, ...
6
votes
1answer
118 views

LaTeX3: tokens for curly braces

I use a clist of delimiters to define functions that enclose text within the said delimiters. Here is a MWE: \ExplSyntaxOn \clist_new:N \l_delim_clist \clist_put_right:Nn \l_delim_clist { {paren, ...
2
votes
2answers
37 views

A part of the Leontief matrix: something -> something

I know this is probably not needed considering I have a matrix and such, but I would like to know what the best way would be for formatting something like this into LaTeX: Tried using matrices and ...
2
votes
0answers
71 views

Sublimetext highlighting of braces

In SublimeText 3, the syntax highlighting for latex documents in math mode has the following (unexpected?) behavior. Consider the following: \{sometext\} versus \{ sometext\}. The syntax ...
9
votes
1answer
494 views

Labeling non axis parallel braces in tikz

Given two points, the following code draws a brace connecting them and labels it. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,decorations.pathreplacing} \begin{document} ...
5
votes
1answer
279 views

How to disable auto-complete braces in TEXStudio?

I want to disable auto-complete for braces in TexStudio. In its simplest form, when I type "{" I do not want it to automatically add a "}". When it does this, many times I end up deleting brace, ...
3
votes
1answer
44 views

Splitting up an expression (that has braces)

I am trying to split up the longest set (the super long expression) here into multiple lines, I've looked at some other similar questions on this forum and tried a few different things but nothing ...
3
votes
1answer
207 views

How two draw a two-head vector and curly brace in picture environment?

I want to insert a two-head vector, and a curly brace of length of my choice, as shown in figure below in the picture environment and want to put it on the specified location. Unable to find any ...
3
votes
3answers
123 views

How to align braces with middle vertical line the same size in math mode?

How can I make the middle vertical line the same size as the braces? \[ A\left(c\mid \substack{a,b \\ c,d} \right) \] Thanks!
3
votes
1answer
47 views

'Illegal parameter number' error using underbrace in QCircuit environment

Using QCircuit, the following code \documentclass{article} \usepackage{amsmath} \usepackage{qcircuit} \usepackage{braket} \begin{document} \Qcircuit @C=0.5cm @R=.2cm { \lstick{\ket{0}_n} & ...
4
votes
1answer
57 views

Connecting scopes with braces and arrows

I'm working in a tikz figure that so far is like that: Produced with the following code: \documentclass[tikz,border=9]{standalone} \usetikzlibrary{matrix, calc, backgrounds, ...
3
votes
1answer
88 views

Underbrace an equation with its result

I have several formulas that are too long to fit into the \textwidth of my page. That's why I want them underbraced with the result-formulation beneath them. Something like this. ...
0
votes
1answer
35 views

underbrace in superscript exponentiation [duplicate]

So I have this latex code \underbrace{ a^{\frac{1}{n}} \cdot a^{\frac{1}{n}} \cdot \ldots \cdot a^{\frac{1}{n}} }_{n\text{-times}}} = a^{ \underbrace{ \frac{1}{n} + \frac{1}{n} + \ldots + ...
4
votes
3answers
113 views

Side brace in dfrac

So I have this formula \begin{empheq}[right=\empheqrbrace]{align*} \dfrac{\dfrac{\dfrac{\dfrac{ \frac{1}{a} % <-- start with this a }{a}}{a}}{\vdots}}{a} that's rendered in this formula: ...
3
votes
3answers
343 views

Adding braces around equations

Is there any way to add braces around a system of equations? Say I want to add braces around: a=x+2y+3z b=6x+y+2z c=5x+3y+z The best example I could find of how I want the braces to look is the ...
7
votes
2answers
3k views

How to escape curly braces within \texttt{}

How can I escape curly braces within the \texttt{} environment? \texttt{ \{ } produces errors within my template, which can be found here: (link) I saw this question for square braces, but the ...
0
votes
0answers
19 views

Impact of enclosing lines with curly brackets [duplicate]

When I compile the following (almost identical) two pieces of code, there is much more vertical space between both words in the first example than in the second example: % Much space between the ...
3
votes
2answers
262 views

Multiple results for equation

How do I define a equation e.g. x +y that shall be true for e.g. <5 and >0 in one equation? I was thinking of using a large brace, but I can't find any example of how to achieve this.
5
votes
2answers
266 views

How to put a curly brace in the right of three lines within an align-environment

I have a question concerning how to add a curly brace at the right side of three lines in an align-environment. The following is an example of what I'm speaking about: ...
5
votes
1answer
2k views

! You can't use `\eqno' in math mode

what is wrong with this??? please,can anyone help? \begin{equation} \label{probabilityy} P^{t}({E_{0})=P_{0}+(1-P_{0})P_{1}+ (1-P_{0})(1-P_{1})P_{2}+.......+P_{n}\Pi_{k_{0}}^{n-1}(1-P_{k}) ...
5
votes
3answers
64 views

Array environment cell over two rows keeping alignment

I am trying to span braces over two rows while keeping the aligment in the following example correct alignment in this case the alignment is correct. I think I am nearly there, any help would be ...
3
votes
1answer
119 views

breqn and subscripts and curly braces

When using the package breqn I got some compile errors. Without the package this works just fine. (I am using xelatex.) \documentclass[a4paper,12pt]{scrbook} \usepackage{breqn} ...
1
vote
2answers
293 views

Overbrace/underbrace without extending brackets/parentheses

I'm using \overbrace to explain a part of an equation, like this: \begin{align} a\left[\frac{d\cos y}{e} + \overbrace{\frac{b\sin x}{c}}^{\text{second bit}}\right] \end{align} But the overbrace ...
13
votes
1answer
3k views

Using braces to label parts of an equation

Given an equation, say Bayes' rule, $P(X \mid O) \propto P(X)P(O \mid X)$ how do I label the different parts of the equation using curly braces?
2
votes
2answers
102 views

MathJax won't render dynamically sized left/right braces (or parentheses, brackets, etc) [closed]

When I try something like: \left\{ x+y = z \\ 2x - 3y = yomamma , MathJax fails to render. At first I thought it was an issue with my website, but this problem also happens on the official MathJax ...
4
votes
0answers
125 views

Side margin text and brace across multiple pages

hopefully a simple question to ask, not sure about the answer... Given the MWEs \documentclass{report} \usepackage{amsmath} \usepackage{lipsum} \newcommand\BrText[2]{% \par\smallskip ...
5
votes
1answer
434 views

Resize braces arbitrarily

I'm trying to get arbitrarily big braces in some graphs I have to make, using Inkscape with the PDF+LaTeX option. The problem I have is that simply resizing a bracket makes it stretch: I'm aware ...
4
votes
2answers
108 views

How to align two equation arrays when combined with lateral braces

I want to have two equation arrays including lateral braces aligned properly. So far I got \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \overline{z}_k^{[m]} \sim ...
0
votes
1answer
72 views

Changing overbrace width in mathjax? [closed]

The following code A_1, A_2,\underbrace{A_3,\overbrace{A_4}^{\text{over}}, A_5}_{\text{under}}, A_6, A_7 yields How can I change it to get:
0
votes
0answers
26 views

Curly bracket under a sum [duplicate]

I would like to type something similar to the following: i.e., a sum of k ones. Is there an easy way to do this in LaTeX?
69
votes
5answers
2k views

{(x+y)}^2 or (x+y)^2?

This expression is just an example, of course. My question is: should one always specify the quantity being exponentiated by surrounding it with braces, or is it acceptable to drop those braces? ...
4
votes
2answers
282 views

How to escape curly braces in \texttt inside math mode?

In a previous question was answered how to escape curly braces within \texttt{}. On answer suggest using the fontenc package. \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \(a ...
2
votes
2answers
103 views

Adding underbrace on $\left(\frac{dB}{dA}\right)^2\right$

I am trying to add underbrace to $\left(\frac{dB}{dA}\right)^2\right$. I have \underbrace{\left(\frac{dB}{dA}\right)^2\right}_\text{(-)}. However, LaTeX is giving me an error. Do I have to install a ...
8
votes
2answers
223 views

Underline number in two parts; math mode

I'm trying to underbrace a binary numeral as follow: 10111101 '--''---' B D in order to show the binary-hexadecimal correspondence, but using twice the underbrace command: ...
15
votes
3answers
7k views

Aligning across 'aligned' equation blocks

I'd like to format two groups of equations such that all their equal signs line up and such that I can put a big brace to the right of each block to annotate that block. The last part is easily ...