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 [braces]

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

3
votes
2answers
267 views

How to get a single big right brace?

I am trying to make the right brace cover the whole matrix like the `\overbrace'. Is there a way to do this? \documentclass[reqno,12pt]{amsart} \usepackage{amsmath,mathtools,amssymb} \usepackage[top=...
7
votes
2answers
368 views

How to write a macro that is braces sensitive?

In the xparse package, there is the g type of argument which captures things inside a pair of TeX group tokens. This makes it possible to define commands \foo that behaves differently for \foo{a} and \...
2
votes
1answer
30 views

Alignment in nested align [duplicate]

How can I align equations in nested align ? \documentclass{article} \usepackage{amsmath,amssymb,amsfonts} \usepackage{flexisym} \begin{document} \begin{equation*} CT_i = \left\{\begin {aligned} ...
1
vote
1answer
23 views

multi line equation with full left brace, small right brace and text at right bottom of right brace

I want to write a three line equation with left curly brace for all three, right curly brace for bottom two ones and some text at right bottom of right curly brace. All with proper alignment. I wrote ...
2
votes
2answers
48 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 ...
6
votes
1answer
114 views

Grouping enumerated list with different width?

I found this nice answer regarding grouping of enumerated list. But it does not work for lists with different width. For instance \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
0
votes
1answer
27 views

LaTeX braces around a letter [duplicate]

Hello...I don't know the technical term for the above braces and so unable to find anything online. I would be grateful if someone can tell me what they're called. Thanks, HP
3
votes
1answer
81 views

Is coding multi-line curly braces in text mode possible?

I need to typeset the following document: I have coded the following \documentclass[french, a4paper, 10pt]{book} \usepackage[french]{babel} \usepackage{fontspec} \begin{document} \setlength{\...
0
votes
1answer
13 views

How to embed braces inside an `\ensuremath` environment inside a `\newglossaryentry`?

Running pdflatex on the following document \documentclass{article} \usepackage{glossaries-extra} \newglossaryentry{injective}{name={\ensuremath{X\overset{1:1}{\rightarrow}Y}},description={injective ...
6
votes
1answer
124 views

Braces for block matrix

I have a block matrix S of dimension (Lm+n)\times (L+n)m But I think it is not written in a clear way for the reader. Do you have suggestions? this is the code I wrote so far (thanks to some ...
0
votes
0answers
24 views

TexStudio: Auto-completion of empty braces for commands without arguments

I did some search but could not find a similar question. Thank you for sending me a link if there's one. My question is as follows: For convenience when writing latex, I use a lot of custom commands ...
5
votes
2answers
52 views

Vertical alignment of \rbrace

I tried to solve the follwing problem for a while but couldn't find a solution yet. I would like to align two \rbraces vertically. This code \begin{align} L = &\left. \text{short eq} \right\...
0
votes
1answer
31 views

! Argument of \align* has an extra }

When I run the following code: \begin{align*} \text{Here, } i = 2, 5, \text{ and } 6, \text{ because observations 2, 5, and 6 } & \text{are the closest (by Euclidian distance)} \\ P(Y = Red \mid ...
0
votes
1answer
56 views

Add upper brace on matrix with good alignement on each parameter

From this upper brace, I try to put a brace over the first 9 columns the 9 parameters below. I would like to align them with the 9 first columns of matrix, each one of this parameter aligned with each ...
0
votes
2answers
33 views

Inserting braces in a brace [duplicate]

I don’t know how can I ensert the right braces using latex... Any help is appreciated...
0
votes
0answers
30 views

excess space in new paragraph

Here is tiny example of my problem \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage[TS1, T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage{pscyr} \usepackage[left=2cm,right=...
14
votes
1answer
544 views

A curious dependency between \newcommand and curly braces

An example is a bit artificial, but the point is that I do not understand why {} influence the outcome of \newcommand in the way described below. Consider the following definition: \newcommand\...
2
votes
1answer
103 views

Why enclose a \verb block with curly braces?

Why would you enclose a \verb block with curly braces? Does it change anything? Consider the following examples: The \verb|acmart| document is \verb|orange| and \verb|blue|. Use the {\verb|verb|} ...
2
votes
0answers
148 views

text nested curly brace [duplicate]

So far I was able to write this but as you see is far from what I would like to achieve. I'm finding difficult to nest the braces. I would prefer to not use the math mode. Can someone could please ...
7
votes
1answer
209 views

Overhead brace in tikz

I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2. Here is a template: \documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} \usepackage{...
2
votes
2answers
42 views

Text within piecewise defined functions

I want to place text within the definition of piece-wise defined function as: I tried this: \begin{equation} F_j(x, y) = \begin{cases} 1 & \text{if pixel (x, y) is a face pixel in I_j} \\ 0, &...
7
votes
4answers
542 views

How do I put multi-line text on both sides of a brace?

I want a curly left-bracket with three lines and the behind the bracket two lines, see pictures. I only got one line behind which is continued under the bracket when the paper is ended. How do I do ...
1
vote
0answers
30 views

Store tokens with unbalanced braces in token register

First of all, this question is not part of a real-world problem, it's just to see whether the following is possible with TeX or not. Consider this short code: \begingroup \toks0={\def\foo<} \...
2
votes
1answer
32 views

Curly braces in fancyvrb

I am convinced that I have seen this on here before, but I am unable to find it. I am putting some code into a LaTeX document and I wish to add syntax colour to it. I have done this using fancyvrb ...
8
votes
4answers
378 views

How to make large brace and parenthesis thinner?

A MWE is as follows: \documentclass{amsart} \begin{document} \Huge We have \[ f(x)= \begin{cases} 2x^{2018}+9&x<2018\\ 3x+2018&x\geq 2018. \end{cases} \] And we also have \[ \left( \begin{...
5
votes
1answer
50 views

Vertical position of subscripts with commands

The answers to the questions Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds? and {(x+y)}^2 or (x+y)^2? make it clear that ...
4
votes
1answer
47 views

expl3: How to add a clist-grouping brace to a tokenlist?

I have LaTeX3 code for a macro that processes its parameters in a complicated way and builds a tree-like structure. To represent this structure it constructs a comma-separated list of strings and ...
4
votes
4answers
296 views

braces spanning few rows or columns of a matrix in latex

I am trying to put braces on matrix that cover just few rows or columns. I have come kinda close for the columns but no idea for the rows. This is the example I have been working on: \documentclass{...
12
votes
4answers
667 views

additional curly braces around matrix

I would like to have matrix like this one: I know how to make color frames in tikz, but I havee problems with braces. I tried this code: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{...
2
votes
1answer
49 views

Put braces in in-line math outside or inside of math-mode $?

Is there a consensus on which approach is better: text ($like this$) more text or text $(like this)$ more text if the content is not anything special, i.e. does not require \left(\right)? Thanks.
1
vote
1answer
54 views

Embedded curly brackets inside PGFplotstable

I have a little problem with the right curly bracket }. I need to use it inside {} for a meta-expression in a table. I want to use tha data as coefficient: Q_{10}. So, I write in the first term: { $Q_{...
1
vote
2answers
47 views

form of a condition function using leftbrace

In fact I want to write this function definition with the leftbrace : And here is the code that I have written: \begin{equation} \begin{aligned} Si \,\,\,\,\,\, \varepsilon Q_s \geq \Delta Q_s\\ Si \...
1
vote
1answer
50 views

Creating unique braces below equations [duplicate]

I would like to create something like this. Specifically my question is about how those curly braces below are drawn and labelled.
1
vote
1answer
93 views

Put braces in itemize list

I'm trying to create two bulleted list divided into categories by braces. Something like that: I searched on Google and I found some questions about it, for example: How can I create a brace spanning ...
3
votes
2answers
74 views

longer curly braces in Tikz

I am trying to draw curly braces that are slightly longer than the referring object. \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,angles,quotes} \begin{...
2
votes
1answer
225 views

Curly brackets in Qcircuit

I've written the following code for a quantum circuit using the qcircuit package and everything looks how I want it to look except that the curly brackets enclosing the bottom 2 lines are too far away....
1
vote
2answers
87 views

Spacing and correct use of braces in equations

I have a generic question about best practices in writing equations. I usually don't care about braces when they're not mandatory, e.g. {x}_{i} and x_i. However, I noticed that their use changes the ...
30
votes
2answers
437 views

Understanding Brace Hacks

I am trying to better understand brace hacks. The issue was brought to my attention in egreg's answer, Conflict between eqnarray and tabstackengine, that tabstackengine's failure to protect inner ...
1
vote
1answer
29 views

Brace and de-centered array with [t]

I did not find an answer to my problem, which is quite easy : I want to put a brace on the left of an array that I had "de-centered" with the option [t] (see the following code). The thing is that the ...
1
vote
1answer
354 views

Adding a large brace next to itemize: beamer

How can I add a large "}" (that covers top to bottom of Part 2) to the right of all texts of Part 2 on layer number 7? I don't "}" to be at right end of the frame because I want to write "Part 2" at ...
8
votes
4answers
3k views

! Paragraph ended before \name was complete

I recently upgraded my texlive packages at home and I cannot compile my document anymore due to the references. I googled for it for several days already and I cannot find anything recent about this ...
3
votes
2answers
480 views

Using \bgroup \egroup with \frac

I understand from this post that \bgroup is equivalent to { and \egroup is equivalent to } (Edit: turns out that my understanding was wrong, see @david-carlisle comments for details). I have a ...
2
votes
2answers
91 views

How to place right brace next to table row

How do I put a right brace next to the table row as described by the picture? Here is my MWE. \documentclass[12pt]{article} \usepackage{color, colortbl} \begin{document} \begin{tabular}{|l|l} \...
0
votes
1answer
102 views

Matrix Equation Text over text in braces

Hi, how can I write this equation in Latex?
1
vote
1answer
86 views

How to draw braces next to node

I have the following tikz graph. How can I draw braces on the left (2cm away) of Node1? \begin{frame} \begin{figure}[!htbp] \centering \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,...
5
votes
1answer
584 views

How to produce such a matrix with braces in LaTeX? [duplicate]

Currently I am working on an assignment that needs me to typeset the following Sylvester matrix in LaTeX. I have no idea how to typeset the two braces on the right side so I would like to ask for it....
2
votes
1answer
127 views

Polymer braces with diagonal bonds

I searched the questions around here but I can`t find an answer to my problem. I´m trying to draw a polymer with \chemfig and everything works but the braces, specially the right one. I´m using this ...
0
votes
0answers
32 views

Write out an unbalanced brace to a file [duplicate]

I want to know if it's possible to write out the line \def\TEMP{ to a file, and then later write } to close the brace-pair in the written file? Essentially I'd like to do; \documentclass{article} \...
0
votes
1answer
194 views

In TexWorks, why does using a real apostrophe (’) break brace matching?

To get an apostrophe in LaTeX, one can type ' (straight quote mark) or ’ (apostrophe). While both are compiled into an apostrophe, using ’ breaks the syntax highlighting of curly braces in TexWorks. ...
2
votes
1answer
818 views

Creating curly braces with limits

Hello, I am trying to create curly braces with lower and upper limits to the right, as shown in the picture. I am unable to fix these limits on the braces. I am using \bigl\{ and \bigr\} to create the ...