Questions tagged [braces]
Conventionally { and }; used to delimit groups or arguments in (La)TeX code.
482
questions
0
votes
1
answer
33
views
Ignoring curly braces when citing JSON code
Is there any other way to escape curly braces in JSON code when citing code using the \texttt{} option other than using the backslash?
Using the commandchars=\\\{\} causes the backslash escape ...
0
votes
1
answer
119
views
Locally delete ^ and _ in braces
I want to delete ^ and _ in a braces like \left( and \right) so that size change of braces ignores super and subscripts.
I want to define it as a macro, but use of xstring package does not allow me to ...
1
vote
2
answers
43
views
Is it possible to fully `\restoregeometry` inside a group?
For the geometry package, is it possible to \newgeometry{…} and fully \restoregeometry inside a group?
Minimal Example
In the following, the \restoregeometry inside the {…} restores frames, but still ...
1
vote
2
answers
65
views
How to add vertical braces to a matrix showing different groupings of the elements?
So, I am currently trying to do this:
And this is what I tried so far,
\[
\left[
\begin{array}{c}
\left.\begin{matrix}
x_k \\
y_k \\
v_k \\
\psi_k \\
\end{matrix}\right\} s_k^p \\
\...
2
votes
2
answers
114
views
Place explicit character tokens of category 1/2, whose character codes are to be specified, before/behind tokens that form arbitrary macro argument?
Assume tokens
\macro{1612512}2{1612612}2{1⟨arbitrary non-outer brace balanced tokens⟩}2;
the 1st argument of \macro holds a TeX-⟨number⟩-quantity in the range of possible codepoints of the TeX engine'...
1
vote
0
answers
81
views
Bracket with multiple lines [closed]
The errors of my codes with feedback: Missing $ inserted
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$[x_0: x_1: x_2]\mapsto$
\begin{cases}
$[x_0: x_1]$ & \text{ ...
1
vote
3
answers
79
views
3 tables in one slide in Beamer
I generated 3 tables:
\documentclass[10pt, aspectratio=169]{beamer}
\usefonttheme{serif}
%\usepackage{booktabs} % tables
\usepackage{siunitx} % units, numbers
\usepackage{mathtools}
\usepackage[...
3
votes
2
answers
104
views
Add large brace next to table (Beamer): Description included
I created the following table:
\begin{columns}[c]
\begin{column}{7.5cm}
\begin{table}[ht]
\small
\centering
\caption{Test table}
\begin{tabular}{ll}
\midrule
A &$a \sim \qty{e6}{m}$\\
B &$b \...
6
votes
3
answers
356
views
Big right brace in enumerate environment
I'm trying to do a cases environment with a brace on the right using the classic trick \left. \begin{aligned} ... \end{aligned} \right\} but the particularity is that I'm in an enumerate environment ...
0
votes
2
answers
75
views
Remove all instances of {} interior to argument to a command
Is it possible to remove all instances of {} which are passed as parts of an argument to a command?
I would like to use the Tensor package with LyX. The problem is that LyX always puts subscripts ...
0
votes
2
answers
52
views
ifthenelse with mismatched braces [duplicate]
I am writing some lecture notes, and I would like to have automatically generated two versions. One version includes everything (examples, additional explanations, etc.), and another one with only the ...
7
votes
2
answers
150
views
How do I align the parts of a brace diagram?
I am trying to reproduce the following somewhat complex brace diagram:
I am having trouble getting the alignment exactly the way I want. Ideally, Category A would be centered in the space delimited ...
1
vote
0
answers
38
views
Double subscript error on ${\tilde a_0}_0$? [duplicate]
${a_0}_0$ compiles fine: ${a_0}_0$
${\tilde a_0}_0$ yields a "double subscript" error.
Why is that and how can I fix it?
5
votes
2
answers
265
views
How to add a left-hand brace to this system of equations?
How to
My code
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{3}
a_1x &+ b_1y &&+ c_1z &&= d_1 \label{eq1}\\
a_2x &...
0
votes
0
answers
31
views
Get bigdelim effect with tabularray
Simply I would like to include braces across multiple rows within a table using tblr environment in the same way as bigdelim allows in a tabular environment.
1
vote
1
answer
90
views
How to make small set [closed]
i have a map such that image of an element is a set
\documentclass{article}
\usepackage{amsmath,amssymb,amsthm,mathtools,xcolor,enumitem,mathrsfs,pzccal,mdframed}
\usepackage[hmargin=3cm,vmargin=3cm]{...
3
votes
1
answer
276
views
How to put left brace in nicematrix?
I want to have a matrix, where on the left side I have left brace with n written on it. But the current code I have does not produce the desired result. The left brace is not drawn due to some issue ...
0
votes
1
answer
65
views
The parenthesis problem from above in latex
The parenthesis sign is too long in the part you see in the delta sign. I couldn't do it as a fixed parenthesis. We used \bigl but it doesn't work. We used \underbrace and we couldn't reach the result....
8
votes
2
answers
705
views
Nicematrix overbrace and underbrace clash with surrounding text
I am surprised that I didn't find anything on this topic here. In the following document, the contents of the braces clash with the above text even after several compilations:
\documentclass{article}
\...
0
votes
0
answers
56
views
How to typeset a right brace which has exactly the height and depth of contents it braces?
I want to design a right brace contents whose height and depth are equal to the contents it braces. It is possible to design it using \left. \right\rbrace, but I actually want multiple braces to align ...
0
votes
0
answers
84
views
Can I replace begin and end of an environment with a new definition with only braces
Can I replace the begin and end of an environment just with a pair of braces {} where the left brace { will take care of the \begin{} part and right brace } will function like the \end{} part? This is ...
0
votes
0
answers
37
views
Is the preferred use of tilde command with braces?
It looks like the standard way of using the \tilde is as in $\tilde{a}$. However, I saw a latex document in which the usage was $\tilde a$.
Will the two ways of defining a tilde produce the same ...
3
votes
2
answers
160
views
latex two left braces for 4 lines and one right brace for 3 lines
My minimal demo is given as follows
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
$$
\begin{aligned}
\text{quantitative} &=
\left\{
\begin{gathered}
\text{continuous}\\
\...
0
votes
1
answer
68
views
How do I define a custom command or a macro, or something of that nature, which will use the matrix environment?
When I write some latex with \{ and \}, such as the following:
\begin{Bmatrix} \dfrac{x_{1}}{10^{1}}, \dfrac{x_{2}}{10^{2}}, \dfrac{x_{3}}{10^{3}} \end{Bmatrix}
The output looks like this:
The ...
3
votes
4
answers
308
views
Problem with a TikZcd between curly braces
I was trying to answer a question but the TikZcd I would like to typeset is not well vertically positioned between the curly braces (the red lines are drawn to better show the problem):
\documentclass{...
3
votes
1
answer
234
views
Curved Line Under Number (not sure what it's called)
How would I make something like this in Latex?
Thank you in advance!
1
vote
1
answer
71
views
How do I format curly braces with pgfplots?
I would like to illustrate the set $A = (-\infty,1] \cup [2,+\infty) $ using curly braces as in the figure below.
However, to express the left-hand side and right-rand side infinity, I would like to ...
2
votes
2
answers
225
views
Equation with braces, multi-column and multi-rows
I am working on a paper and need to write something like the image below in my report. Any help on how to type such equations in latex?
3
votes
1
answer
65
views
Scantokens and balanced text, what options exist for curly braces?
\scantokens takes balanced text as its argument, and braces have to be explicit, as far as I can tell. I'm puzzled by the following, where the first line is okay and the second line results in a &...
0
votes
1
answer
94
views
add braces to a directory tree diagram
I'd like to add right align braces, to a directory tree diagram, for explaination but I don't know how to "mix" package command
here are the 2 links
align right braces
making a directory ...
5
votes
3
answers
388
views
align right braces
I found this latex sample, close to what I need but fail to modify it like I need.
I try to understand how to do, reading about eqparbox package but it doesn't help me more.
I want to make braces on ...
1
vote
1
answer
84
views
Text alignment between curly braces [duplicate]
I am trying to rewrite an equation that looks like this:
The latex code I have written so far is:
\documentclass{article}
\begin{document}
\[f(x,\alpha,x_m) = \biggl\{ \frac {\alpha x_m^\alpha} {x_i^...
2
votes
1
answer
148
views
Replacing all curly braces in a font (not just the large ones)
I find the curly braces from kpfonts difficult to distinguish from other brace-like symbols and would like to replace all math instances of \{ and \} (so \lbrace and \rbrace) with curlier braces from ...
0
votes
1
answer
70
views
Lucida: Make large braces the same style as small braces
I noticed the problem with the cases environment, but it is due to using braces that are bigger than \Bigg.
How can I make (1) to be the same style as (2)?
\documentclass{article}
\usepackage{amsmath}...
3
votes
2
answers
193
views
Text under 'overbrace' too big
I have an equation, and one part of it is under an 'overbrace'. The problem is the numbers under the brace are too big. When I only write the part with the overbrace the size is fine. Is there any way ...
5
votes
2
answers
153
views
newenvironment without brace
This code works well [edit : thanks, Mico]
\documentclass{minimal}
\usepackage{tikz}
\usepackage{lipsum}
\newenvironment{MyBox}[1]{%
\begin{tikzpicture}
\node[text width = 0.9\linewidth, text ...
2
votes
1
answer
48
views
Times Opening Curly Bracket: Remove the initial horizontal skip
I would like the opening curly brackets in Times to start against the margin.
How can I create a "fixed" curly bracket?
\documentclass{article}
\usepackage{fontspec}
\setmainfont{...
1
vote
1
answer
56
views
Curly Braces around text groups with tikz
I would like to achieve the following
What I have by now is
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{makecell}%
\begin{document}
\begin{...
1
vote
2
answers
179
views
How to get unbalanced opening brace behind macro argument?
Editor's note: this question was significantly revised, it might or might not reflect OP's original intention. OP might want to rollback it and clarify the question/provide a proper MWE if it does not....
2
votes
3
answers
75
views
Line breaking inside BIG parenthesis
I tried line break as well as \newline command inside parentheses but it did not work.
6
votes
2
answers
1k
views
How can I have both horizontal and vertical curly braces in a matrix?
I want to make horizontal and vertical curly braces to show up simultaneously just outside a matrix, but it only works when I use one or the other, instead of both.
I use \left.\right\} for vertical ...
0
votes
0
answers
278
views
Why does \texttt not work on braces?
Why does \texttt not work on \textbraceleft or \{? Is there any solution to solve this?
\documentclass{article}
\begin{document}
\texttt{\textbraceleft} \texttt{\{} \verb|{|
\end{...
1
vote
3
answers
307
views
Curly braces of arbitrary size
How to get a curly brace of given length? (e.g: 100px)
The following works but it is obviously not the best solution:
\begin{cases}
\\
\\
\\
\\
\\
\\
\\
\end{cases}
2
votes
2
answers
644
views
How to put braces over certain parts of matrices?
I want to typeset something like this:
I couldn't find a way to achieve this using array or blkarray. Any help?
1
vote
1
answer
658
views
How to add a big curly brace to label the side of a table?
How can I use a big curly brace to group together lines of a table on the left side?
\documentclass{article}
\begin{document}
\begin{center}
\textbf{$n=3$}
\begin{tabular}{ |c|c| }
\hline
...
0
votes
1
answer
180
views
Professional curly braces in MTPro2 font
I've noticed the differences in typesetting between MTPro2 Lite and its complete version, so I even bought the license and installed the complete version onto my computer. Most of the features have ...
0
votes
0
answers
41
views
How to decrease the vertical spacing in cases environment?
I have a few lines of code. I want them to align at the equals sign, and also shrink the brace for phi using cases environment. The curly brace sticks out at the top and bottom, which is a little ...
2
votes
2
answers
293
views
How to add a bracket above a gather environment?
I would like to turn this :
$$
\begin{gather}
\overbracket{\text{1 2}}^{\text{Basic idea}} &
\overbracket{\text{3 4}}^{\text{Contrasting idea}} \\
\underbracket{\text{5 6}}_{\text{Basic idea}} &...
3
votes
2
answers
293
views
How to create a simple vertical vector with several vertical curly braces outside the square bracket?
I could not code a vertical vector with several vertical curly braces outside the square bracket of the vector. The best thing I have obtained so far is by using rcases from mathtools package that ...
2
votes
3
answers
1k
views
How to typeset a curly braced column vector
How to write this
Ignore underbrace and the vector's content. Thanks.