Conventionally { and }; used to delimit groups or arguments in (La)TeX code.
5
votes
1answer
112 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 ...
5
votes
2answers
498 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}
...
5
votes
3answers
305 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 ...
5
votes
1answer
4k 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 ...
5
votes
1answer
43 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 ...
5
votes
2answers
533 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
2answers
201 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 ...
5
votes
2answers
828 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 ...
5
votes
1answer
257 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, ...
5
votes
1answer
82 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 ...
5
votes
1answer
242 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}
...
5
votes
1answer
817 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 ...
4
votes
1answer
180 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(
...
4
votes
3answers
2k 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) : ...
4
votes
1answer
161 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
1answer
44 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 ...
4
votes
1answer
90 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
228 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
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
...
3
votes
1answer
245 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://... }}
...
3
votes
2answers
102 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
260 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
2answers
1k 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:
...
3
votes
2answers
430 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 ...
3
votes
1answer
49 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
189 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
567 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
94 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
676 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:
...
2
votes
3answers
367 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
1answer
295 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 ...
2
votes
2answers
109 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 ...
2
votes
1answer
76 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 ...
2
votes
1answer
34 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, ...
2
votes
1answer
87 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 ...
2
votes
1answer
272 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 \\
& &
...
2
votes
2answers
510 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 ...
2
votes
2answers
57 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 ...
2
votes
1answer
61 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 ...
2
votes
1answer
125 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 ...
2
votes
1answer
358 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
150 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 ...
2
votes
0answers
18 views
Non-nested underbrace/overbrace [duplicate]
How to create underbrace/overbrace structures such that one is not strictly nested within the other?
E.g.:
1
vote
1answer
3k 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}
...
1
vote
1answer
175 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 ...
1
vote
1answer
149 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 ...
1
vote
1answer
186 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 ...
0
votes
1answer
210 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]".
...
0
votes
0answers
84 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:
...
0
votes
0answers
31 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 ...
