Tagged Questions

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

learn more… | top users | synonyms

55
votes
6answers
2k views

How bad for TeX is omitting braces {}, even if the result is the same?

Sometimes writing braces and omitting them produces the same result: \tilde{\psi} \mathrm{e}^{\mathrm{i} \pi} vs \tilde \psi \mathrm e^{\mathrm i \pi} Or (taken from Werner's comment below) ...
5
votes
2answers
505 views

Text over the overbrace beyond “scope”

does anyone know how can I avoid the free space between the sum sign and the indicator function. I guess it's caused by the width of the upper block above the overbrace. So is there a way to allow ...
11
votes
2answers
1k views

How can I draw annotated braces over and under math expressions?

What LaTeX markup would one have to write to produce a result similar to the image below? Please excuse my Paint-and-mouse drawing skills. :-)
7
votes
1answer
830 views

How to adjust brace size for nested braces?

How can I adjust the size of the outer braces to make the following equation neater? \documentclass[a4paper]{scrreprt} \usepackage{amsmath} \begin{document} \[ M = \left\{ x \in X : ...
6
votes
2answers
2k views

Case equation without curly brace

I want to have a case equation without the left curly brace. I am using \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} ...
4
votes
1answer
207 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}} ...
25
votes
2answers
1k views

Asymmetric overbrace

This question led to a new package: abraces How can I control the position of an overbrace's spike? e.g. I want: /------^----------------------\ aksdj ajksdnkajs ajsdknakjsnd jaknd As ...
3
votes
1answer
336 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 ...
5
votes
1answer
449 views

How to tell LaTeX to automatically remove envelopping curly braces in a string to use with biblatex?

I am using biblatex together with a bibliography manager Referencer. I want to use the url field of the bib file to link to the page. However, Referencer has urls of the form url = {{ http://... }} ...
1
vote
1answer
273 views

How to strip curly-braces from variable before using it as a filename?

I'm trying to use a variable to pass a filename to \includegraphics. I'm having trouble because my filename is built up from other variables. This leaves an empty curly-brace inside the filename. The ...
7
votes
1answer
269 views

Can I use \begingroup \endgroup as delimiter of \detokenize, instead of {}?

I would like to use other delimiters than {} for the argument of \detokenize. E.g. something like \detokenize\begingroup a lot of stuff \com \mycom \endgroup but it does not work. Am I really ...
21
votes
3answers
612 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
182 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
259 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
7k 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
321 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
637 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
288 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
331 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
365 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 ...
12
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
7k 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
2k 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 ...
20
votes
3answers
8k 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
185 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
544 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
547 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
493 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
141 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 ...
8
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
930 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
947 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} ...
39
votes
2answers
48k 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
568 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
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 ...
10
votes
1answer
6k 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
884 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
291 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, ...
13
votes
1answer
11k 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
992 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
330 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 ...