Conventionally { and }; used to delimit groups or arguments in (La)TeX code.
2
votes
2answers
51 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
53 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
75 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
184 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}
...
11
votes
2answers
131 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
33 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
92 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
...
25
votes
1answer
352 views
\{ & \} vs \lbrace & \rbrace
Surprisingly I haven't found a question, so if this is duplicate, I will remove the question.
So, what is the difference in using \{ and \} to using \lbrace and \rbrace?
Which one is preferred, and ...
6
votes
3answers
105 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
57 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
79 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
109 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 ...
50
votes
4answers
1k 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
197 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
51 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
84 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
153 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
107 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 ...
10
votes
1answer
160 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:
6
votes
1answer
121 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
60 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
106 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
77 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
94 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 ...
10
votes
1answer
172 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
110 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
171 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
196 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
91 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
30 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
72 views
Add a brace on the left side of a group
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 ...
46
votes
6answers
1k 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
191 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 ...
9
votes
2answers
332 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
178 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 :
...
5
votes
2answers
441 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
157 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}}
...
23
votes
2answers
722 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
180 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
230 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
140 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 ...
6
votes
1answer
98 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 ...
20
votes
3answers
418 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
125 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
220 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
172 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
236 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
265 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
172 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
220 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)}\\
...


