Questions tagged [braces]
Conventionally { and }; used to delimit groups or arguments in (La)TeX code.
400
questions
2
votes
1answer
52 views
Increase the vertical space between braces in table - LaTeX
I have a table as follows. I want to increase the space between every two braces (I used \renewcommand{\arraystretch}{1.5} but it did not work so well).
\documentclass{article}
\usepackage{...
5
votes
2answers
180 views
How to Produce an Adjustable-Size Opening or Closing Curly Brace for Plain Text Only
I would like to be be able to add an adjustable-size curly brace (either opening or closing but not both) to ordinary text; for example,
I have searched the archives of this site and found several ...
5
votes
3answers
260 views
How to draw a table with different braces
I do not have any idea how to draw this kind of braces in a table! (picture attached)
0
votes
2answers
47 views
Making a boxed minipage environment
I am writing up a document where I frequently want to put multiple paragraphs of text inside a box. I am doing this with
\framebox{\begin{minipage}{0.95 \textwidth}
Here is how you solve this problem.
...
0
votes
0answers
49 views
Somebody messed my curly braces up
In our template somebody inserted following lines:
\addto\captionsngerman{%
\renewcommand{\lstlistlistingname}{Quelltextverzeichnis}%
\renewcommand{\lstlistingname}{Code}%
\renewcommand{\}}{}
}
...
4
votes
4answers
103 views
Group displayed equations with braces
I would like to display a list of equations with some braces on the left to group some of them.
Something that looks like the example below, with text on the left of each brace (aligned vertically), ...
0
votes
4answers
59 views
How to sidebrace and overbrace a matrix?
I am trying to make a matrix with side braces and over braces like this:
Any ideas? Thanks :)
7
votes
2answers
295 views
Side brace only some equations
I'm trying but failing since quite some time now to get the following:
I've got 6 equations aligned and I want to brace the first 4 of them with some text behind.
But my result is this something like ...
0
votes
1answer
26 views
Why \verb@{@ doesn't work with tabularx
In this example tabular environment works fine, but tabularx produces an error.
\documentclass{book}
\usepackage{tabularx}
\begin{document}
\begin{tabular}{l l}
\verb@{@ & cell2 \\
\end{...
0
votes
0answers
35 views
minuses used in an exponent are shown as spaces
While editing some formula in Wikipedia (LaTeX) , the minus signs are shown like blank spaces when used between the braces of an exponent.
here's the code:
\begin{alignat}{2} \varepsilon_0 & = \...
0
votes
2answers
64 views
Place text next to a down arrow
I would like to place a text next to an arrow. The figure below shows how I would like it to look. I tried to use the commands ^ and _ and also \hspace and \vspace, but it is not getting the way you ...
2
votes
2answers
56 views
Braces in a \@for loop
While writing macros to manipulate the items of a list with a
\@for loop, I have found that braced items behave differently depending on whether they have a leading space or not:
\documentclass{...
3
votes
2answers
98 views
Gather multiple equations with curly bracket
I have two equations, both of which hold under the same condition (x<5):
\begin{align}
f(x) &= \sum_{n} a^i_j \Psi_n(x) &\text{for } x < 5
\\ g(x) &= \sum_{n} b^i_j \Phi_n(x) &\...
0
votes
0answers
25 views
Is there a way to collapse/expand LaTeX blocks in VS Code?
I'd like to be able to collapse/expand LaTeX {...} blocks in VS Code, is there any way to do that?
Less important is the ability to collapse/expand LaTeX \being{}...\end{} or consecutive comments.
2
votes
1answer
23 views
adjust rule thickness between row groups in a table
How can I get the horizontal rule between group A and group B to be thicker without disturbing the braces? Do I need to use a different method to obtain the braces in order to achieve this?
\...
0
votes
0answers
47 views
How to only show the note of the math underbrace, and hide underbrace bracket?
How can I hide the underbrace curly bracket and only show the overhead note (note here) (and not n times shown underneath)? Better yet, is there a TeX command that only does the note, i.e. an overhead ...
1
vote
1answer
83 views
how to debug runaway argument?
How do I figure out what line the latex starts looking for a missing brace or..... I would prefer not to include my latex code
Excluding 'comment' comment.)
Runaway argument?
! File ended while ...
7
votes
3answers
449 views
Horizontal curly braces inside matrix
I'm trying to make this determinant:
But I don't know how to put the curly braces. I've tried with \underbrace but I get the brace only under a_m, not the entire space.
My try:
\documentclass{...
0
votes
1answer
71 views
Left aligned text in equations bound by right curly brace [duplicate]
I wish to have the following. There are several solutions on the platform, dealing with either left aligned text or rightly placed curly brace to the numbered set of equations. But, I am not able to ...
2
votes
3answers
140 views
Left/right brackets spanning multiple lines within aligned environment
I'm trying to draw tall square brackets on both sides of a four-line component of an equation within an aligned environment. I've tried \Bigg[ and \Bigg], but these aren't tall enough for me. I also ...
0
votes
1answer
34 views
Issue with curly brace after printing
The following piece of code
\documentclass{article}
\usepackage{amsmath}
\usepackage{cases}
\renewcommand{\d}[1]{\ensuremath{\operatorname{d}\!{#1}}}
\begin{document}
\[
\begin{cases}
f = g+a \\
\...
0
votes
1answer
56 views
How to add a brace in the output side of my quantum circuit?
I want to add a brace in the output side of my quantum circuit, I saw this answer which gives a solution to add a brace in the input side, I tried to reproduce the same for the output where I used \...
0
votes
2answers
42 views
Align Environment does not work cause of Braces
in my align environment for a proof it doesn't work like it should do... I searched for about 2 h but didn't find a solution. Any help? Pictures show the error
And this is the input.
If someone could ...
1
vote
1answer
93 views
Special characters \{ and \} in mtpro2 [duplicate]
I recently just started running into a special character error for curly braces, like { and } in the example below:
\documentclass{article}
\usepackage{times}
\usepackage[complete,...
3
votes
1answer
42 views
How to align multiple rows after right brace
I want my text, which I wrote after right brace, to be aligned right next to the brace. But they keep going far right and align with the longest line's end, vertically.
\begin{align*}
\left.
...
0
votes
1answer
17 views
How to remove excess vertical spaces occur in the equation?
I would like to remove the vertical white spaces that occur when compiling this equation. Kindly help.
\documentclass[12pt,border=12pt]{standalone}
\usepackage{amsmath}
\makeatletter
\newcommand{\...
1
vote
1answer
64 views
Numbering equations inside left brace
Please,
How can I write three numbering equations with left brace. Usually I use "\numcases" but with a specific springer template this gives a different color text and different numbering position.
...
0
votes
1answer
36 views
How do I stack multiple underbrackets?
How do I reproduce the lines like the image below in LaTeX?
In this image, common characters are connected by a line.
I've tried using \overbrace and \underbrace, but I couldn't reproduce it ...
3
votes
2answers
81 views
Suppression of braces auto-scale in Latex
I often use the \hat function in equations and noticed that the auto-scaling of Latex selects the bigger braces.
Example: The inline formula $Z(\beta) = \tr(\exp(-\beta \hat{H}))$ gives the ...
0
votes
1answer
58 views
Issue with `cases` of `amsmath`
Problem description:
using the following latex code:
\[ \left\{
\begin{array}{ll}
0 & x\leq a \\
\frac{x-a}{b-a} & a\leq x\leq b \\
\frac{c-x}{c-b} & b\leq x\leq c \\
1 & c\leq x \...
1
vote
1answer
110 views
Including braces and labels in Young tableaux
Today I decided that I needed some practice in order to become more familiar with Young tableaux.
I have the following piece of code -which returns the diagrams that I wanted-
\documentclass[11pt]{...
0
votes
1answer
44 views
How can a new column type be defined, which feeds the column's contents (embraced) to a command? [duplicate]
I am typesetting a document using the package tipa, and it happens often that the contents of each cell in a column of a table are notionally IPA and need to be enclosed between \textipa{ and }. So I ...
6
votes
3answers
195 views
Ellipsis with sideways curly bracket
I'm writing a math proof and need to expand an exponentiation into n multiplications. I would like to have something like:
A x A x A x A ........... A x A x A
with a largy curly bracket open ...
0
votes
1answer
58 views
Why does (6-3x)/2 fail to render here?
I have the following code:
$$f_ {Y\mid X}(y\mid x)=\frac{f_ {X,Y}(x,y)}{f_ {X}(x)}=\left\{ \begin{array}{ll} {\displaystyle \frac{1/2}{x/2}=\frac{1}{x}}, &\text{if}~0\leq x\leq 1~\text{and}~0\...
6
votes
1answer
178 views
Why does LaTeX parse square brackets differently than curly braces?
In this comment (copied below without effort to preserve formatting):
It may be worth pointing out why this happens. The [ and ] bracketing of optional arguments in LaTeX isn't as robust as the { .....
0
votes
2answers
27 views
How to rewrite this using right curly brace? [duplicate]
I am using this formula:
0\leq y\leq 1\leq x\leq 2 = \left\{\begin{array}{ll} 0\leq y\leq 1 \\ 1\leq x\leq 2\end{array} \right.
which gives me this:
I would like to ask how I can rewrite it using ...
1
vote
2answers
144 views
Adding a large brace next to a table: Beamer
I have the following table in Beamer:
I would like to add a large curly brace "{" on the left of the table (outside) spanning the first three rows and add some information concerning these rows ...
1
vote
1answer
50 views
Nested braces using cases
I want to use nested braces but the following code is giving errors. What is wrong here? How can I correct it?
$\psi_n(x)=
\begin{cases}
\begin{aligned}
&1 &= &\ 2\\
&...
1
vote
2answers
53 views
How to use curly braces over multiple lines?
I would like to typeset a multi-line set.
I want to typeset something similar to this image:
I have tried using an equation environment and an align environment but to no avail.
Attempt
\...
0
votes
1answer
75 views
How to put right brace to group cases without using math mode? [duplicate]
I want do put right brace to group two cases (mixed normal and math mode) but when I try something, it says that I can do it only in math mode. Can someone help me, please?
1
vote
1answer
65 views
Is there a way to change latex to be able to write less curly braces in math mode?
The markup for complex expressions in latex often gets very big, unreadable and hard to edit. I feel it could be better, at least sometimes. Maybe I don't understand something about parsing, and I ...
0
votes
3answers
696 views
Multiline curly braces
I know how to draw the following multiline matrix using brackets on both sides:
$$\begin{bmatrix}1&5&-3\\-2&-13&8\\3&-3&1\end{bmatrix}$$
The question is, how do I do it with ...
3
votes
4answers
240 views
Left and right brace around different number of rows without tikzmark
MWE:
\documentclass{article}
\usepackage{blkarray}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xparse}
\usetikzlibrary{decorations.pathreplacing,calc,tikzmark}
% \usetikzlibrary{external}
\...
3
votes
2answers
114 views
Draw right brace which covers first four items of enumerated list
Question:
How can i draw big right brace which is covering first four items?
MWE:
\documentclass[12pt,a4paper]{article}
\usepackage[shortlabels]{enumitem}
\usepackage{parskip}
\usepackage[left=1....
1
vote
1answer
69 views
Help with Maths equation [duplicate]
I am very new to any form of Latex and markdown coding but I am trying to assist my student as much as possible. He is visually impaired and is finding markdown, with maths in LaTex, really accessible ...
2
votes
1answer
64 views
Mathtools and Mtpro2 curly brace
In the mathtools package there is the dcases environment by which mathematical expressions are presented in displaystyle mode in each row of the case environment, as shown in the first picture.
With ...
5
votes
1answer
60 views
How to typeset a complicated align environment with lots of braces spanning several lines
I would like to typeset the plan of a complicated proof - something like an align environment, but with lots of braces spanning multiple lines on both sides. Here is a rough picture of what I want:
...
6
votes
1answer
111 views
How to improve poorly rendered braces around TikZ figure?
Trying with TikZ to have a figure surrounded by braces above and below, the result is quite ugly: braces as well as node besides look poorly rendered, as it there was a problem in their rasterization.
...
4
votes
2answers
189 views
Extra long braces with \begin{array}[t]
the following is a snippet of a lecture note I am typing.
\[ \mathscr F=\left\{\{B_{\a}\}_{\a\in J}: \begin{array}[t]{rl}
i) & B_{\a} \text{ are open}\\
ii) & \{...
6
votes
2answers
86 views
Grouped and aligned expressions
The effect I'm trying to achieve is illustrated here:
The blue line indicates the desired alignment axis. Specifically, I want to align the arrows but also have a curly brace to the left of the ...