Questions tagged [braces]

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

0
votes
0answers
13 views

'TeXnicCenter' auto complete braces, brackets and alike

I'd like 'TeXnicCenter' to autocomplete the braces parentheses and likes, kind of like 'Sublime Text' does. I think, it has to do with some XML files, but I'm new to this. Here is the wished ...
0
votes
0answers
10 views

Incorrect line spacing when text is in curly braces [duplicate]

Consider this minimal working example: \documentclass{article} \begin{document} { \Huge Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum } \Huge Lorem ...
4
votes
1answer
38 views

Why do \large and \textbf require different usage of braces?

\large and other font size commands need to be placed inside a group: In this text {\large some part} is large. Whereas \textbf and other styling commands receive a parameter: In this text \textbf{...
1
vote
1answer
36 views

Add vertical braces to lists

I want to add vertical braces to a list of group axioms, in order to determine which of the following axioms need to hold for monoids, groups and abelian groups. I'm not really sure how to achieve ...
0
votes
1answer
38 views

How can I use braces for cites in biblatex package

I am trying to put braces before and after my cite like this: The IoT environment are.... (IoT Book). instead of The IoT environment are.... IoT Book. How can I succeed this? My code in ...
2
votes
2answers
341 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
379 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
34 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
30 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 ...
1
vote
2answers
56 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 ...
5
votes
1answer
117 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
29 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
4
votes
1answer
128 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
3answers
193 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
34 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
55 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
58 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
73 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
39 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
31 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
561 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
107 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
157 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 ...
6
votes
1answer
225 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
49 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
657 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
35 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
34 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
489 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
56 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
50 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
338 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{...
13
votes
4answers
808 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
50 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
58 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
51 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
52 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
142 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
80 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
270 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
88 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 ...
29
votes
2answers
458 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
30 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 ...
2
votes
1answer
430 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
5k 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 ...
2
votes
2answers
494 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
98 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
107 views

Matrix Equation Text over text in braces

Hi, how can I write this equation in Latex?
1
vote
1answer
94 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,...