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

learn more… | top users | synonyms

3
votes
0answers
241 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
88 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
50 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
3k 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
383 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
211 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
298 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
23 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
110 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
492 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
163 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
202 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
505 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
604 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
491 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
261 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
187 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
198 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
116 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
211 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
492 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 ...
61
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? ...
6
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
113 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
178 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
473 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
160 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
225 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
325 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
170 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
153 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
407 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
643 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
278 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 ...
0
votes
1answer
431 views

\citeauthor* behaves like \citeauthor or \citeyearpar uses square brackets instead of round

I am LaTeX newbie so please bare with me. I would like to have citations in following format: e.g. "Bauer et al. (1988) [1]" so "1st Author et al. (year of publishing) [number in references]". ...
6
votes
3answers
120 views

How do I handle a closing brace in a 'character scanning' macro?

Problem I need to define a command that grabs all numerical digits following it and leaves the rest alone. Eventually I came up with this: First Solution \RequirePackage{xstring} % for \IfInteger ...
0
votes
0answers
36 views

Vertical braces spanning multiple items in an ennumeration-like environment [duplicate]

Possible Duplicate: Large braces over several items in an itemize with text by the brace How can I create these vertical braces if I have something like an enumeration environment and want ...
2
votes
1answer
99 views

Add a brace on the left side of a group [duplicate]

I can't figure out how to place the brace on the opposite side, that is on the left of the group of equations, when following the answer in this link: How to put a brace on the right, not left, to ...
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
412 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
929 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
717 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
201 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
316 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 ...