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

learn more… | top users | synonyms

5
votes
1answer
1k views

multi-line text for brace decoration in tikz

I'm trying to make a time-line with events by means of tikZ. Everything is going fine, I found (here) some nice examples and explanations but... I do a brace decoration for my time-line which has long ...
5
votes
1answer
114 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 ...
4
votes
3answers
113 views

Side brace in dfrac

So I have this formula \begin{empheq}[right=\empheqrbrace]{align*} \dfrac{\dfrac{\dfrac{\dfrac{ \frac{1}{a} % <-- start with this a }{a}}{a}}{\vdots}}{a} that's rendered in this formula: ...
4
votes
2answers
172 views

Define a special verbatim commmand

To learn more about Plain TeX, I try to define a special verbatim command \verb{code}, which puts code inside braces. When there is no braces in code, It's easy. But when there are some balanced ...
4
votes
3answers
321 views

How to write two *unaligned* multi-line braces on both sides

I have a theorem which is about some 4 conditions, 3 of which are equivalent in one case, and some other three are equivalent in some other case, hence I would like to typeset something like this: ...
4
votes
2answers
108 views

How to align two equation arrays when combined with lateral braces

I want to have two equation arrays including lateral braces aligned properly. So far I got \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \overline{z}_k^{[m]} \sim ...
4
votes
3answers
299 views

Why don't the curly braces and the mid bar become bigger?

I'm having the following code: \documentclass[11pt]{article} \usepackage{amssymb,amsthm,amsmath} \newcommand{\abs}[1]{\lvert #1 \rvert} \newcommand{\N}{\mathbb N} \newcommand{\K}{\mathbb K} ...
4
votes
2answers
281 views

How to escape curly braces in \texttt inside math mode?

In a previous question was answered how to escape curly braces within \texttt{}. On answer suggest using the fontenc package. \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \(a ...
4
votes
2answers
155 views

Replacing braces in strings

I know I should probably not want to, but say for the sake of discussion that I wanted to remove braces from a string for some purpose (background, now obsolete). From its package description, ...
4
votes
2answers
84 views

Make a character thinner

With the following LaTeX code, the braces look too thick when the array is large. Is it possible to make the brace thinner? By the way, the | delimiters look always good. \[\left\{\begin{array}{l} ...
4
votes
1answer
230 views

The command \string does not print curly braces of its argument

While printing the List of Symbols, I would like, in a draft, to print the definition commands as well. For instance, consider the following commands: \providecommand{\perm}{\ensuremath{\pi}} ...
4
votes
2answers
2k views

TeXShop: disabling auto bracketing?

Whenever I used an underscore it automatically adds those curly brackets to it. Now sometimes thats nice, but sometimes you really dont need this. Is there a way to disable that feature? I roamed ...
4
votes
2answers
3k views

Vertical spacing with underbrace command

How can I set how much vertical spacing is put between my equation and the curly bracket used in underbrace? As an example, I feel like the following just puts the brace too close to the equation: ...
4
votes
1answer
157 views

system of equation without the brackets? Possible?

Hi can i make a system of equations like the one below \[ \systeme{2y+4x=9, 3x-2y=10} \] But WITHOUT the bracket (braces) behind the equations?
4
votes
1answer
238 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
1k views

Strip one level of braces for using keyval-value within nested keyval

I have defined my own figure command using xkeyval and I want to pass arguments for the nested \includegraphics as one of its keyvalues (maybe I stripped too much code, but I hope you get the idea): ...
4
votes
1answer
735 views

lstinline loses braces when used as an argument to another command

I'm using the listings package, for the Java language (which, as all C-like languages, uses braces as a block delimiter). I intend to use \lstinline{...} as the second argument to a command for ...
4
votes
1answer
57 views

Connecting scopes with braces and arrows

I'm working in a tikz figure that so far is like that: Produced with the following code: \documentclass[tikz,border=9]{standalone} \usetikzlibrary{matrix, calc, backgrounds, ...
4
votes
1answer
362 views

How to create an array with both vertical and horizontal braces around the elements

I want to create the matrix shown bellow in Latex. I have the horizontal curly brackets figured out, I can use undermat{}{} for that. I do not however know how to insert the vertical curly brackets ...
4
votes
0answers
123 views

Side margin text and brace across multiple pages

hopefully a simple question to ask, not sure about the answer... Given the MWEs \documentclass{report} \usepackage{amsmath} \usepackage{lipsum} \newcommand\BrText[2]{% \par\smallskip ...
4
votes
0answers
394 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 ≥ ...
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 ...
3
votes
3answers
339 views

Adding braces around equations

Is there any way to add braces around a system of equations? Say I want to add braces around: a=x+2y+3z b=6x+y+2z c=5x+3y+z The best example I could find of how I want the braces to look is the ...
3
votes
2answers
256 views

Multiple results for equation

How do I define a equation e.g. x +y that shall be true for e.g. <5 and >0 in one equation? I was thinking of using a large brace, but I can't find any example of how to achieve this.
3
votes
2answers
11k views

“Extra }, or forgotten \endgroup” error

Don't understand why this piece won't compile fluently. TeX file as following: \begin{figure} \centering \includegraphics[width=\textwidth]{chapter2/epjb/groups_0.pdf} ...
3
votes
3answers
123 views

How to align braces with middle vertical line the same size in math mode?

How can I make the middle vertical line the same size as the braces? \[ A\left(c\mid \substack{a,b \\ c,d} \right) \] Thanks!
3
votes
2answers
87 views

Braces (not)containing \underbrace

This: \left\{ \begin{array}{l} \frac{da}{dt}=\sum\limits_kJ_k\sin(D_{ok})\\ \frac d{dt}\left\{\begin{array}{c}e\\i\end{array}\right\}=A+\sum\limits_kJ_k\sin(D_{ok})\\ \frac ...
3
votes
2answers
225 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 ...
3
votes
2answers
53 views

write equation with more than one curly brace

I was trying to write the equation, but did not get enough hints in tex.stackexchange.com
3
votes
1answer
119 views

breqn and subscripts and curly braces

When using the package breqn I got some compile errors. Without the package this works just fine. (I am using xelatex.) \documentclass[a4paper,12pt]{scrbook} \usepackage{breqn} ...
3
votes
1answer
200 views

How two draw a two-head vector and curly brace in picture environment?

I want to insert a two-head vector, and a curly brace of length of my choice, as shown in figure below in the picture environment and want to put it on the specified location. Unable to find any ...
3
votes
2answers
78 views

How to get large parentheses with \tanh-function?

I want to show a function which includes the tanh of a fraction, i.e. \tanh(\frac{x - g}{h}) but which gives me the normal small parentheses. I already tried \tanh\(\frac{x - g}{h}\) but this just ...
3
votes
2answers
138 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 ...
3
votes
2answers
357 views

Double braces in equation

I'm trying to create the attached image formulae. But I don't know how to get the double braces to work. This is my attempt with only single brace. x(t_n) = \left\{ \begin{array}{l l} 0 ...
3
votes
1answer
185 views

Curly brace with a bar next to it

I'm trying to work out if there's a symbol for this, or if my hack will have to do. What I'd like to achieve is a symbol identical to the curly braces with a bar here: But the closest I can seem ...
3
votes
1answer
107 views

Is it possible to take “sum” from computer modern, “braces” from fourier?

The code is here. Also How can i add underbraces from fourier? \documentclass[11pt,a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage{amsmath} ...
3
votes
1answer
259 views

How to arbitrarily stretch braces

I want to stretch the \rbrace command by an arbitrary vertical scale factor in order to have precise control over its size inside a TikZ picture. Surely there's a simply command to stretch it, any ...
3
votes
2answers
642 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 ...
3
votes
1answer
41 views

Multiple cases with automatic braces

I am writing a relation in which I need to describe the value of G(i, s, a): \documentclass{article} \usepackage {amsfonts} \usepackage {amsmath} \usepackage [margin=1in]{geometry} \usepackage ...
3
votes
1answer
521 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
1answer
409 views

Align inside align

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align*} aaaa &= 1 &&\text{for $X$} \\ bbbb ...
3
votes
1answer
44 views

Splitting up an expression (that has braces)

I am trying to split up the longest set (the super long expression) here into multiple lines, I've looked at some other similar questions on this forum and tried a few different things but nothing ...
3
votes
1answer
87 views

Underbrace an equation with its result

I have several formulas that are too long to fit into the \textwidth of my page. That's why I want them underbraced with the result-formulation beneath them. Something like this. ...
3
votes
2answers
331 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 { ...
3
votes
1answer
817 views

Horizontal braces with XeTeX take too much space

After some experiments and tests, I managed to create the following code for \upbracefill and \downbracefill in Plain XeTeX, which it seems is that used for \underbrace and \overbrace: ...
3
votes
1answer
47 views

'Illegal parameter number' error using underbrace in QCircuit environment

Using QCircuit, the following code \documentclass{article} \usepackage{amsmath} \usepackage{qcircuit} \usepackage{braket} \begin{document} \Qcircuit @C=0.5cm @R=.2cm { \lstick{\ket{0}_n} & ...
3
votes
0answers
435 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 ...
2
votes
3answers
593 views

equality sign and fraction bar alignments in complex fractions around braces

When some math expressions such as complex fractions are around the braces which should be on the same baseline, besides, equality sign should be aligned with vinculum, how can we handle? For example, ...
2
votes
2answers
466 views

subequations and array in braces

I need something like this: \left\{ first line (1a) second line (1b) third line (1c) \right. all lines should be aligned to left
2
votes
1answer
578 views

Unbalanced braces with newenvironment / NewEnviron

I am trying to define an Environment myEnv s.t. \begin{myEnv} text1 \end{myEnv} text2} expands to \renewcommand{\myCommand}{ text1 } { text2} The reason for the obviously unbalanced expression ...