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

learn more… | top users | synonyms

2
votes
0answers
217 views

Using braces in verbatim environment

I want to put some code in a verbatim environment: \begin{verbatim} data _≥_ : Nat → Nat → Set where ge0 : {y : Nat} → y ≥ zero geS : {x : Nat} {y : Nat} → x ≥ y → suc x ≥ ...
5
votes
1answer
90 views

pass to \geometry{} options using a macro - keyval error

MWE: \documentclass{article} \usepackage{geometry} \newcommand{\GeomOpts}{a4paper,vmargin={3cm,3cm}} \geometry{\GeomOpts} \begin{document} \end{document} Because of the braces in \GeomOpts its ...
3
votes
2answers
110 views

Big braces both on left and right of column or array

I'm trying to type a column with seven elements and some vertical big braces on its left and right. The code I use is \[ \begin{array}{rcl} & \Gamma & \\ \multirow{3}{*}{$\mathcal{D}_3 ...
5
votes
1answer
328 views

How to draw vertical brace right side of a vertical line with node?

I want to draw the following figure (with a node which is not shown). I obtained this with the following code: \begin{figure} \begin{center} $\left.\begin{array}{rr} \begin{tikzpicture} \draw ...
6
votes
2answers
115 views

How to make the this brace bigger? “}”

here is my code: \begin{equation*} \left . \substack{ 2 \beta_{r,j}^{(l)} = \beta_{r,j}^{l-1} + \beta_{R+r,j}^{(l-1)} \epsilon_{m}^{j} \\ 2 \beta_{r,m+j}^{(l)} = ...
9
votes
2answers
208 views

Underbrace in denominator with () [] {} (howto)

I would like to put an underbrace correctly under the denominator of a expression but what I get is wrong because of the (). Alternatively I create another line in the text ...
3
votes
2answers
394 views

Using Tikz in a figure, can I draw braces between nodes and control spacing between brace ends and the nodes?

This question is related to Draw curly braces in TikZ. Is there a way of making the solution more general for when you wish to use node names to define the end points? To illustrate, I've made a ...
1
vote
1answer
100 views

How can I use curly braces provided by YandY Mathtime in a MathtimePro2 doc?

I'm using MathTimePro2 as my math fonts in my documents, so how can I replace curly braces such as \lbrace, \rbrace, \underbrace, \{, \} etc provided by MTP2 to ones given by YandY MathTime? Thanks.
6
votes
3answers
3k views

Using a big brace over multiple lines - multiple lines left of it

I am super helpless, I wanna do the following: Mathmode, 2 lines on the left, a brace over both (using array) and than I wanna have 3 lines on the right. A small example: \begin{align*} \left. ...
2
votes
1answer
153 views

Align sequence with curly bracket and half row shift

Can anybody tell me how to rewrite these equations: There are curly brackets and half row shift and I don't know how to write it in align (eqnarray) environment.
7
votes
2answers
970 views

braces over matrix

I want to make an overbrace and a side brace on my matrix in order to indicate its size. How can I achieve that. \begin{pmatrix} 1 & 1 & 0 & .& . & . & 0 & 1 \\ 0 ...
1
vote
1answer
837 views

Texmaker: How to “type through” closing brackets, braces, and parentheses?

I'll start by saying that my recent experiences using Python 3.3 (a programming language) have prompted me to question the potential of my favorite way to "TeX" something using Texmaker. In Python, ...
3
votes
0answers
324 views

Combining unicode-math fonts: Problems with \underbrace [closed]

I switched to XeLaTeX and unicode-math a while ago. I really like the possibility to combine different fonts for mathematical symbols. But now I run into trouble by combining the \underbrace command ...
5
votes
1answer
91 views

Changing the size of the braces from the cases environment

I have created the following picture using the cases environment. For this picture I have two questions. 1) I would like to limit the size of the braces created by the cases environment to ...
0
votes
0answers
51 views

Tikz Braces On Top of Image [duplicate]

I am trying to produce the following result: I've never placed tikz objects on images. Any help would be appreciated.
4
votes
1answer
8k views

Left brace including several lines in eqnarray [duplicate]

How is it possible to make a brace and have something like this in a eqnarray block?
1
vote
0answers
36 views

How can I use a curly brace together with subequations? [duplicate]

The code \begin{equation} \begin{cases} x+y=2 \\ x-y=0 \end{cases} \end{equation} produces two aligned equations, with a curly brace to the left. I want to refer to the individual equations, and ...
5
votes
1answer
522 views

Splitting a command syntax across a \newenvironment definition

This question is a direct follow-up to the question Can a \newcommand Definition Contain Braces as Substitution Text? I asked yesterday. The following example is once again a counter-intuitive one, ...
5
votes
1answer
276 views

Can a \newcommand Definition Contain Braces as Substitution Text?

The following example is completely counter-intuitive, but I need this in a bigger definition I'm not including here. \newcommand{\openbrace}{{} I need this to start a nested scope. Is this ...
4
votes
1answer
475 views

Right curly bracket around text

The following code will produce some text enclosed by a right curly bracket and to the right of it some other text saying that is the same meaning. Now, I would like to have the text aligned to the ...
2
votes
0answers
25 views

Non-nested underbrace/overbrace [duplicate]

How to create underbrace/overbrace structures such that one is not strictly nested within the other? E.g.:
7
votes
2answers
120 views

Braces on either side of a list

I want to create this: The following code does this, but produces a number of overfull hbox and vbox statements in the log -- how can I get rid of those? On the other hand, if there is a better ...
5
votes
1answer
581 views

How to put a brace and a title?

I would like to put a brace between the Q_s and Q_d of the following diagram \begin{tikzpicture}[domain=0:5,scale=1,thick] \usetikzlibrary{calc} %allows coordinate calculations. %Define linear ...
2
votes
2answers
197 views

How to adjust the blank space between the top of the left curly brace and the contents?

I want to type a system of equations delimited by the left curly brace. And I tried using the \left{ with aligned, and cases, and array, and numcases. But there are some difference between the results ...
0
votes
0answers
234 views

Missing $ inserted - did I make something wrong? [duplicate]

Im writing a paper using Latex and I get repeatedly this "! Missing $ inserted. $ l.92 ?" error. Its only in two passages and I don't see any obvious mistake I made. The code is: ...
2
votes
1answer
687 views

Asymetric curly braces TikZ [duplicate]

How can I draw asymetric curly braces in TikZ? I have the following MWE: \documentclass{article} \usepackage{tikz, pgfplots} \begin{document} \begin{tikzpicture}[ >=stealth,] \draw ...
17
votes
1answer
726 views

Brackets around matrices in TikZ

I'm writing a custom package for labeled matrices using TikZ. I noticed an inconsistency in TikZ. This is best illustrated with the following MWE: \documentclass{standalone} \usepackage{tikz} ...
12
votes
2answers
639 views

Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds?

This question about {(x+y)}^2 vs (x+y)^2 drew my attention to the slightly different vertical positioning of super- and subscripts for such expressions. Compare (x+y)^8_8 (left) and {(x+y)}^8_8 ...
3
votes
1answer
346 views

cannot scale curly brace

In follow up to my previous question, I wanted to align two arrows and put curly braces around them. The following works fine \documentclass{article} \usepackage[margin=2cm,centering]{geometry} ...
3
votes
2answers
196 views

Latex Curly braces grouping arrows

I'm creating a communication diagram. The desired effect is to have the following in a box: Alice Bob ...
29
votes
1answer
2k views

\{ & \} vs \lbrace & \rbrace

So, what is the difference in using \{ and \} to using \lbrace and \rbrace? Which one is preferred, and when one has to take care?
6
votes
3answers
259 views

How can I calculate the length of the longest word in a node?

I would like to create an inline brace command \inline{} for xelatex using TikZ. The difficult part is calculating the text width for the node without hardcoding it into the tikzpicture environment. ...
5
votes
2answers
125 views

Whole word as a macro argument when macro called without braces

I have a macro: \newcommand{\sEmph}[1]{\textbf{\textcolor{NavyBlue}{#1}}} Then I can do: Some text is in \sEmph{blue}, and some in black. with this result: But if I omit the braces only the ...
3
votes
2answers
252 views

Overbrace in lstlisting of Scala code

I want to add an overbrace to some text in a Scala code listing (using lstlisting). \begin{lstlisting} object TypeClass extends FooParMain { def newApp(args: Array[String]) = new FooParApp { ...
2
votes
1answer
579 views

Brace spanning multiple rows in a table and horizontal alignment

I'm a beginner trying to do an brace inside a table, that is spanning multiple rows. I assume the best way to achieve this is to do a two-row tabular environment, with an array environment for the ...
65
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? ...
7
votes
2answers
2k views

Underbrace in Tikz

I'm trying to add an underbrace to a graph in tikz but when i compile run PDFLaTeX and View PDF, the underbrace doesn't look correct. Instead of curling down and inwards at the ends, it goes outwards ...
2
votes
1answer
124 views

too many curly brace using verbdef

I would like to create an inline verbatim text for a regular expression. The verbdef package does not like when I put curly braces into its second argument. I tried with escaping backslashes but that ...
4
votes
1answer
194 views

Bracing fraction numerator or denominator to the left or right

I have a fraction with further fractions in both the numerator and denominator. I wish to label the fractions in the numerator and denominator with braces to the right. I would like these braces to ...
4
votes
1answer
618 views

Using simple, MathJax-compatible TeX to put enclose a matrix in braces

I was trying to explain the identity matrix over at Math StackExchange and I wound up using the following. $${\bf I_n} = \underbrace{ \left.\left( ...
5
votes
1answer
164 views

Unnecessary braces versus speed compilation process

Could the use of many unnecessary braces speed down the compilation process? I'm asking because I use many many alert commands, defined by \def\alert#1{\textcolor{red}{#1}} So when I want to ...
11
votes
1answer
244 views

Straight Braces

Can I make a variant of Latex Braces? In some equations system, I'd like to use a left brace like in this picture:
7
votes
1answer
382 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} ...
4
votes
0answers
63 views

Should I put the name of a new command in braces? [duplicate]

Possible Duplicate: Why do people use unnecessary braces? In so far as I know, the open and close braces around the command name for \newcommand{\commandname}{...} versus ...
9
votes
1answer
197 views

Using xy-pic, how do you label an arrow with a curly brace that spans the length of the arrow, and can be offset arbitrary distances?

I'm trying to figure out how to label the arrows with curly braces that span the length of the arrow, and to make it all very pretty. More specifically, I'm trying to make ...
8
votes
1answer
170 views

Brace from {cases} environment disappears after rowcolors*{1}{…}{…}

I use rowcolors*{1}{...}{...} to color a table, then I use it again (with white as arguments) to reset the color. After that, braces look weird (they disappear slightly). If I use scrbook, book, ...
2
votes
2answers
531 views

Split environment wrong braces dimensions

I have to split a quite long formula. I used a nested split environment but I have to break curly braces from one line to another using \right. and \left. The curly braces I get have different ...
12
votes
1answer
1k views

Curly brackets around a table

I would like to have braces on the left side of a table (either that or on the right side) and bellow the same table. What I have got is $ m-Mal \underbrace{ ...
2
votes
1answer
822 views

Why do I get an error “Too many }'s” when using package rotating

I'm receiving an error "! Extra }, or forgotten \endgroup" with all of my figures in my thesis , when I use graphicx and rotating usepackage simulatenously. If I use graphicx package only then there ...
5
votes
3answers
293 views

slim braces in a table

We need to make clear that certain data is the same in several rows. An underbrace taken from math-mode does the job quite well, but is unfortunately way too prominent in the table, especially in ...