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

learn more… | top users | synonyms

6
votes
3answers
124 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 ...
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 ...
6
votes
3answers
202 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. ...
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 ...
6
votes
4answers
890 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
3answers
1k views

Using a big brace over multiple lines - multiple lines left of it

I am super helpless, I wanna do the following: Mathmode, 2 lines on the left, a brace over both (using array) and than I wanna have 3 lines on the right. A small example: \begin{align*} \left. ...
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} ...
6
votes
2answers
51 views

How to change the orientation of a brace?, with psbrace, in PsTricks

I can´t believe it. I was looking and reading... the multiple examples in page 23 in pstricks-add-doc.pdf and I can´t reach what I want. Even copying and pasting any examples of the PDF I know how ...
6
votes
1answer
230 views

Underbrace problem

I have some problem to make the Underbrace partly for the equation like the picture shows. The unique part is the "b" is used twice. Thanks !
6
votes
2answers
78 views

short curly braces with tikz

Is there a way to get curly braces with tikz which look more like this one? At the moment I'm using the following to get curly braces: \documentclass{article} \usepackage{tikz} \begin{document} ...
6
votes
2answers
105 views

How to make the this brace bigger? “}”

here is my code: \begin{equation*} \left . \substack{ 2 \beta_{r,j}^{(l)} = \beta_{r,j}^{l-1} + \beta_{R+r,j}^{(l-1)} \epsilon_{m}^{j} \\ 2 \beta_{r,m+j}^{(l)} = ...
6
votes
1answer
322 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)}\\ ...
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 ...
6
votes
1answer
76 views

LaTeX3: tokens for curly braces

I use a clist of delimiters to define functions that enclose text within the said delimiters. Here is a MWE: \ExplSyntaxOn \clist_new:N \l_delim_clist \clist_put_right:Nn \l_delim_clist { {paren, ...
6
votes
1answer
929 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} ...
6
votes
1answer
556 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} ...
5
votes
2answers
118 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 ...
5
votes
3answers
281 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 ...
5
votes
2answers
230 views

How to escape curly braces within \texttt{}

How can I escape curly braces within the \texttt{} environment? \texttt{ \{ } produces errors within my template, which can be found here: (link) I saw this question for square braces, but the ...
5
votes
1answer
430 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://... }} ...
5
votes
2answers
160 views

How to change the style of the braces around equation numbers in the align-environment

I would like to change the braces in the align-environment from the normal braces ( ) to rectangular braces [ ],
5
votes
1answer
161 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
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) : ...
5
votes
1answer
223 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
848 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
406 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
2answers
431 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
1answer
289 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
161 views

Resize braces arbitrarily

I'm trying to get arbitrarily big braces in some graphs I have to make, using Inkscape with the PDF+LaTeX option. The problem I have is that simply resizing a bracket makes it stretch: I'm aware ...
5
votes
1answer
59 views

How to add curly brace below xytree nodes

I would like to add a curly brace and label underneath the E and F nodes of an xytree like this: So far, I have the code for the tree, but haven't been able to figure out how to insert the curly ...
5
votes
1answer
23 views

How do I insert a command using braces into the caption of a ctable?

I need to place a hyperref command into the caption of a ctable, but this does not produce correct output. For example: \ctable[caption={Properties of the \hyperref[sec:Towers]{Towers} dataset.}, ...
5
votes
1answer
89 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 ...
5
votes
1answer
517 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
305 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
83 views

Index unmatched braces in LaTeX

I am trying to make the following work \documentclass{book} \usepackage{makeidx} \makeindex \begin{document} \chapter{One} \section{One} Let us try to index the characters '()'. \index{()@()} \\ Let ...
5
votes
1answer
226 views

How to draw vertical brace right side of a vertical line with node?

I want to draw the following figure (with a node which is not shown). I obtained this with the following code: \begin{figure} \begin{center} $\left.\begin{array}{rr} \begin{tikzpicture} \draw ...
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 ...
5
votes
1answer
72 views

pass to \geometry{} options using a macro - keyval error

MWE: \documentclass{article} \usepackage{geometry} \newcommand{\GeomOpts}{a4paper,vmargin={3cm,3cm}} \geometry{\GeomOpts} \begin{document} \end{document} Because of the braces in \GeomOpts its ...
4
votes
4answers
184 views

underbrace matrix inside brackets

I would like to put an underbrace below the matrix like this: $$\left(\underbrace{ \left[\begin{array}{ccc} a&b&c\\ d&e&f\\ g&h&i \end{array}\right]}_{A} ...
4
votes
3answers
175 views

How to write two *unaligned* multi-line braces on both sides

I have a theorem which is about some 4 conditions, 3 of which are equivalent in one case, and some other three are equivalent in some other case, hence I would like to typeset something like this: ...
4
votes
2answers
120 views

Define a special verbatim commmand

To learn more about Plain TeX, I try to define a special verbatim command \verb{code}, which puts code inside braces. When there is no braces in code, It's easy. But when there are some balanced ...
4
votes
3answers
244 views

Why don't the curly braces and the mid bar become bigger?

I'm having the following code: \documentclass[11pt]{article} \usepackage{amssymb,amsthm,amsmath} \newcommand{\abs}[1]{\lvert #1 \rvert} \newcommand{\N}{\mathbb N} \newcommand{\K}{\mathbb K} ...
4
votes
1answer
496 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
1answer
4k 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?
4
votes
2answers
68 views

Make a character thinner

With the following LaTeX code, the braces look too thick when the array is large. Is it possible to make the brace thinner? By the way, the | delimiters look always good. \[\left\{\begin{array}{l} ...
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}} ...
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 ...
4
votes
2answers
97 views

Setting over- and underbraces outside an matrix formula

I want to typeset a matrix which consists of several submatrices. As they consist of some longer formulae I'd like to assign each a name. I tried to use \underbace and \overbrace. However now the ...
4
votes
1answer
320 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
66 views

Why do the braces in f{\left(x\right)} affect the output? [duplicate]

Why does f\left(x\right) result in more space before the ( than f{\left(x\right)}? i.e. Why does putting extra braces suppress the space?