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

learn more… | top users | synonyms

21
votes
3answers
559 views

Why are text format commands used inside braces?

Most commands in Latex are written with the arguments inside braces following the command: \command{arguments}. But text formatting options, like \em, or \scriptsize are usually written inside the ...
7
votes
1answer
169 views

typesetting material to the left of a big curly brace

\documentclass{article} \newcommand*{\LeftWidth}{3.0cm}% \newcommand*{\RightWidth}{\dimexpr\linewidth-\LeftWidth-2em\relax}% \newcommand{\AlignedBrace}[2]{% \medskip\par\noindent% ...
12
votes
2answers
251 views

necessity of braces for accent commands

Many resources on LaTeX teach that "é" and "ä" are typeset with (respectively) \'{e} and \"{a}; and it is similar for other accent symbols. Are the braces really needed? Aren't \'e and \"a shorter but ...
1
vote
1answer
4k views

How to output a curly brace, which is interpreted only as a character? [duplicate]

Possible Duplicate: Writing { and } to a file with LaTeX I want to output a curly brace, which will not be interpreted as a group delimiter. My attempt does not work: \def\aa{\string}} I ...
5
votes
1answer
302 views

relative positioning in multipart nodes

Is there a way do draw a line from the beginning of the tip of the brace, using relative positioning? \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
507 views

Bringing the (square) brackets to the same height

Consider the .tex extract from below: \begin{equation*} A=U\Lambda U^T=\left[\begin{array}{ccc} & & \\ u_1 & \cdots & u_n \\ & & ...
1
vote
1answer
270 views

Changing the font for braces

I managed to successfully hack mathspec to use parentheses () and brackets [] from the specified font via e.g. \DeclareMathSymbol{]}{\mathord}{\eu@DigitsArabic@symfont}{`]} Obviously, I'd like to ...
6
votes
1answer
317 views

Adjusting \underbrace “cursor” at horizontal axis

Given is following formula: \[ \begin{split} \sum\limits_{k=-n}^k c_ke^{ikx}=\frac{a_0}{2}+&\underbrace{\sum\limits_{k=1}^n\left(c_ke^{ikx}+c_{-k}e^{-ikx}\right)}\\ ...
7
votes
3answers
359 views

unicode-math and braces scaling

I am trying to create a minimal lualatex distribution, and hence try to eliminate as much non OTF fonts as possible (I try to get rid of the .afm, .pfb, .map, etc files to save space). Everything is ...
11
votes
2answers
2k views

How can I put a curly brace inside an algorithm to group code lines?

I am using the algorithmic package (or even algorithm2e is fine). Is it possible to use curly braces to group some lines in the algorithm so as to be able to put an explanation to the right?
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 ...
2
votes
2answers
6k 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} ...
6
votes
2answers
1k views

braces on the sides of an easybmat matrix

I created the following matrix with easybmat, and I would like to add at the bottom (respectively right) something like an underbrace (resp. "rightbrace") under each of the two blocks, together with a ...
18
votes
3answers
6k views

How to put a brace on the right, not left, to group cases?

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They ...
10
votes
1answer
183 views

Treating < and > as synonyms for the curly braces { and }

I am exporting photo metadata from a software which seems to be unable to export curly braces correctly. Is there any way to tell LaTeX to treat < as {, and > as }, to keep me from having to go ...
11
votes
2answers
1k views

Side brace around image with underbrace

I have an image and I want to put a side brace on the left and an underbrace on the bottom. The underbrace works fine, but the left becomes twice the image height for some reason. I'm sure the image ...
4
votes
1answer
448 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 ...
2
votes
1answer
499 views

Unbalanced braces with newenvironment / NewEnviron + Command

This is a follow-up question of my Unbalanced braces with newenvironment / NewEnviron post. The gist is that by using \NewEnviron{myEnv}{% ...
2
votes
1answer
445 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 ...
20
votes
3answers
1k views

Why does TeX remove braces around delimited arguments?

On pp. 203–204 of the TeXbook, Knuth describes how TeX absorbs macros' arguments: delimited go until the first appearance of the delimiter, and undelimited go until the next token, in both cases ...
0
votes
2answers
4k views

Smaller \lbrace than expected [duplicate]

Possible Duplicate: How do I format this equation in LaTeX? \begin{equation} p_{GL}= \lbrace \begin{array}{@{} l c @{}} 0.59p_R+0.3p_G+0.11p_B & \text{p es un pixel del fuego} \\ 0 ...
15
votes
2answers
138 views

How do extra braces impact the placement of items in the document?

I am placing some of my document through some outside BASH scripts, but want to protect some information such that the scripts will not change them. The simplest option for me is to put { and } around ...
10
votes
1answer
2k views

Annotating individual math terms with braces

I am trying to annotate individual terms of a mathematical expression, as depicted below. The problem I get is that the comment seems to be taken as part of the fraction, which unnecessarily extends ...
7
votes
4answers
1k views

Brace and text in side margin

Within a text, I would like to emphasize one or two paragraphs by placing a curly brace in the left side margin, and next to it some short text vertically centred around the brace's centre. The ...
6
votes
4answers
861 views

Dynamically sized brackets/parentheses for text

I'd like to have a large bracket that shows a relationship from one set of text to another, like this: Nam dui ligula, fringilla a, ) euismod sodales, sollicitudin ) vel, wisi. Morbi auctor ...
6
votes
1answer
918 views

Side braces - can somebody make sure I'm reading this right?

After some trial and error, and a little help from this stack overflow question I was able to put together this code: \documentclass{article} \usepackage{tikz} ...
36
votes
2answers
39k views

How can I get text underneath an underbrace?

I am looking to do something of the following: To get text underneath the underbrace. Is it involving \stackrel or some sort of similar command?
0
votes
0answers
138 views

How to form braces or brackets used in math formulas around nodes in a TikZ picture? [duplicate]

Possible Duplicate: Adding a large brace next to a body of text I'm trying to create a brace or bracket around two or more nodes within a TikZ picture. Since there are more elements in the ...
6
votes
1answer
538 views

how to remove additional space around \underbrace and justify the text under it

How do I remove the additional space around \underbrace justify the text under it, if the latter is longer than the text above it? To illustrate the issue: \documentclass{article} ...
4
votes
2answers
1k 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 ...
10
votes
1answer
5k views

Adding underbrace in tikz

I have this code to draw a mass on a spring and now I want to have a curly brace below the spring to denote the distance: x_0. How do I do this? \begin{tikzpicture} ...
5
votes
2answers
805 views

Remove additional space around \underbrace{…}

How do I remove the additional space that is added when using \underbrace{...}, to get the same width in both lines: \documentclass{scrreprt} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} ...
5
votes
1answer
288 views

Nested macro envocation - syntax error?

I get a Argument of \\drs has an extra }. when I try to process the following: \documentclass{article} \usepackage{tikz} \newcommand{\drs}[2][lambda/.initial={}]{% \{% {\pgfkeys{/drs/.cd, #1, ...
11
votes
1answer
9k views

Double square braces like these ⟦exp⟧?

How do I create mathematical equation double square braces like these ⟦exp⟧ in latex? I failed to find it on google (I created these using word 2010 equation editor). I would like these to be of ...
4
votes
1answer
890 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): ...
3
votes
2answers
315 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 ...
6
votes
2answers
1k views

\underbrace symbol is wrong

Hey guys, I tried to google the solution, but I didn't find any solution to this. I am using beamer,xelatex to prepare a slide. When I use \underbrace, the brace doesn't show, instead, a crappy symbol ...
3
votes
2answers
2k 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: ...
8
votes
1answer
6k views

Missing } inserted, yet braces are balanced

Regard the following document: \documentclass[a4paper,reqno]{amsart} \usepackage{amssymb,amsmath,amsthm,fullpage} \begin{document} For each $k$ we denote by $\lambda_k$ the $k$th symmetric ...
2
votes
2answers
755 views

overbrace but leave spacing in math unaffected

I would like to use an overbrace, but I do not want how much text I put in the overbrace to affect the spacing of the math (i.e. I don't want the the "a" and the "b" to get further apart in the ...
5
votes
3answers
4k views

Large braces to specify condition in a set

How do I define this in LaTeX - I am writing a description of a set, and I need huge braces because I have lot of clauses to fit in, and it will take more than 1 line. For example: A = \{ (x,y,z) : ...
7
votes
1answer
3k views

natbib: Error when citing paper with similar authors and same year

I get a strange error when I try cite two certain papers in the same document, when I use the natbib package (with numbers option enabled). If I trim the author list or change the year of either ...
26
votes
5answers
2k views

Showcase of brace tricks: }, \egroup, \iffalse{\fi}, etc.

There have been a few questions about braces recently, specifically about when to use them (see this and that question). Note: I had mistakenly stated that SamB was the author of both questions. But ...
2
votes
3answers
495 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, ...
14
votes
2answers
6k views

large braces for specifying values of variables by condition

How do I typeset something like, X = 0 if a=1, 1 otherwise, using those huge left braces and specifying each condition in a line?
9
votes
2answers
4k views

Put a curly brace under an ellipsis in a math setting?

so I have $m\times n = n + n + \dots + n$ in my text right now, but I would like to put a curly brace under the \dots to emphasize that there are m n's involved. How would I do this?
11
votes
3answers
835 views

whitespace/brace/indentation conventions for LaTeX programming

This question is not about formatting the text/markup of a document. I'm really focused on the programming aspect of LaTeX. I'm working on a fairly large set of document classes and packages, and ...
3
votes
1answer
750 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: ...
9
votes
1answer
8k views

Aligning the right parts in multiple \begin{cases}

Is there an intelligent way to left-align the parts right of & of the two cases environments shown below (if x >= 0, otherwise, if y < 0, otherwise). I wonder if there is a better way than ...
10
votes
2answers
6k views

A lateral brace to group a set of equations with labels

I have a set of equations that I'd like to display together (as an example, the Maxwell's equations). Requirement #1: I'd like to have them labelled like in an align environment \begin{align} ...