{brackets} is about different brackets, their usage and functionality in (La)TeX.

learn more… | top users | synonyms

1
vote
1answer
167 views

Latex math encapsulating complex expression in bracket

Latex newbie here. I've clumsily built the following math expression in Latex \begin{align} &W_{i'}(\alpha) = \cdots \notag\\ &\vdots \notag\\ &W_i(\alpha) = ...
4
votes
1answer
95 views

Resize brackets for publication?

I am unsure how to select appropriate size of brackets for different equations. Example \begin{equation} (v, \frac{\partial^{2} u}{\partial t^{2}}) + c^{2}(\nabla v, \nabla u) - c^{2} (v, ...
3
votes
2answers
56 views

How to change the size of the brackets

\begin{document} The algebraic system define over operator $\star$ , which is \emph{closed} and \emph{associative} is called SEMIGROUP. The algebraic system define over operator $\star$ having ...
7
votes
3answers
217 views

How to break long equations while keeping alignment?

I have the following long equations: \documentclass[]{article} \usepackage{amsmath} \begin{document} \begin{displaymath} \begin{aligned} (\chi_1|\chi_1) ...
5
votes
1answer
132 views

How can I define a macro with literal square brackets in the body?

The following macro works correctly for enclosing an expression in parenthesis. \def\group#1{\left ( #1 \right )} I want to write the equivalent macro for enclosing an expression in square ...
4
votes
1answer
194 views

Wrap lines of code with curly bracket and add some text next to it

I am currently studying algorithmic complexity of some programs, I have to deal with lines and lines of code and it would be really nice and helpful if I could wrap some of those lines in a right (or ...
3
votes
2answers
114 views

Anomalous bracket sizes when using the cancel package

I have been happily using the cancel package that allows to cross out parts of mathematical formulas for some time now. However, today I noticed a very strange behaviour in the size of brackets ...
7
votes
2answers
139 views

Use custom brackets

For my thesis I need particular brackets for defining some operators. I found \llceil, \rrceil, \llfloor and \rrfloor in the stmaryrd package, which are just what I was looking for. Unfortunately, ...
3
votes
1answer
115 views

curly braces problem (garamondx package)

Sorry. i couldn't see another question about this. I'm using garamondx package. The problem is large curly bracket. It seems like the picture given. i want stg like { , but that's like ( . what can i ...
0
votes
2answers
273 views

Automatically size the brackets by \left and \right

My tex code \documentclass[twocolumn]{article} \usepackage{amsmath, amsfonts, amssymb, textcomp} \usepackage[T4, OT1]{fontenc} \usepackage{newunicodechar} \usepackage{unicode-math} ...
4
votes
1answer
84 views

Spacing around brackets in slanted or italics

From time to time I use brackets as an equivalent of respectively, like in the following sentence: A semigroup [monoid, group] $S$ is commutative if, for all $x, y \in S$, $xy = yx$. Now, I would ...
3
votes
3answers
177 views

How to put lots of brackets

I want to show all valid bracketed strings made from {} [] (). This is the intended output: {[()]} {[]()} {[]}() {([])} {()[]} {()}[] {}[()] {}[]() {}([]) {}()[] [{()}] [{}()] [{}]() [({})] [(){}] ...
0
votes
0answers
31 views

Strange brackets [duplicate]

I recently saw strange modifications of { and }. The middle twirl was directed as well as two others. Does anybody know how can I get this symbols? Is there any way to discover the LaTeX source code ...
1
vote
1answer
71 views

Change height of a math command

I want to change the effective height of the \ket{...} command (from the braket package). I don't want to change the visual appearance of the ket, I just want change its effective height. Ideally ...
2
votes
1answer
91 views

How can I insert a bracket on top or below a sum? [duplicate]

I would like to insert brackets around a sum to signal the number of terms inside like we sometimes do in mathematics. I drew a picture: The bracket can be either on top or bottom. Is there any ...
20
votes
2answers
2k views

\overbrace with square bracket

I'm trying to put a nice square bracket over a complex text, it should look like an \overline but with ending like \ulcorner and \urcorner. The presence of \overrightarrow and \overleftarrow makes me ...
0
votes
2answers
139 views

How can I get items in my bibliography listed with square brackets?

I would like to use square brackets for citations in the text and in the bibliography. I figured out how to adapt the citations in the text, but I just don't find any way how to change the appearance ...
2
votes
1answer
52 views

typing a straightline next to a dfrac? [duplicate]

I would like to type how do I do it? Thanks!
1
vote
2answers
148 views

Brackets in citing-style? [duplicate]

I have the following LaTeX code: \documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, ...
2
votes
1answer
117 views

lazy latex: how use '^' and '_' without mapping argument in parenthesis

For e.g. take $G^\times$ here we do not need to write the curly parenthesis, as in $G^{\times}$ What is it that one has to add to a newly declared command, e.g. \newcommand{\foo}{\ensuremath ...
3
votes
1answer
89 views

LaTeX Scale Adjacent Terms' Grouping Symbols Together

I have two adjacent terms in a LaTeX equation, and I'd like the brackets around both to scale to the height of both terms. For example \left[ a \right] \left[ \frac{b}{c} \right] generates: I'd ...
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.
2
votes
0answers
68 views

Replacing brackets with parentheses for \textcite, Biblatex numeric-comp [duplicate]

I'm trying to modify the numeric-comp style so in-text citations appear with parentheses rather than brackets for both \cite and \textcite i.e. [1] becomes (1) and Smith et al. [1] becomes Smith et ...
1
vote
1answer
4k views

What is “! paragraph ended before \align was complete”?

The following is the piece of code that was working right before I made a few small minor changes. \begin{align} \langle \prod_{i=1}^{n} \delta_i ^{n_i} y^{m_i}_i \rangle = \sum _ {a_{i=1...n} = ...
3
votes
1answer
167 views

Error typesetting large bracket with multiple lines

I was following a Wikibooks section to create multiple lines within a single large bracket. Something like this. The problem is that when I type in the given code, which is \[ u(x) = ...
0
votes
1answer
95 views

When to use `\left(` and when plain `(`? [duplicate]

This is basically a follow-up to the comments on this answer which I couldn't find to be settled anywhere. I learned that you can write ordinary bracket simply using f(x) but that you can also use ...
15
votes
3answers
413 views

Angle brackets with an underset arrow

I am trying to make a pair of angle brackets of variable height enclosing a main box along with a box beneath each bracket and an arrow of variable length between these lower boxes. Since I'm sure ...
5
votes
1answer
621 views

Changing biblatex footcite style to use square brackets around the citation

I am supposed to use a certain citation style which has the citations in footnotes and square brackets around the references, just like "regular" citations in text (see screenshot). I can't however, ...
1
vote
3answers
107 views

How can I obtain brackets with proper size on multiple lines using the {multline} environment?

My code is of the form \begin{multline} \left[ \frac{foo}{bar} \\ foo \right] \end{multline} This code gives an error for missing \right. etc. To remedy this, I used this code \begin{multline} ...
2
votes
1answer
549 views

How can I add square brackets for the authoryear biblatex bibliography style?

Due to some university requirements, I redefined the biblatex citesytle authoryear to use square brackets instead of round parentheses. Now I am trying to achieve the same for the bibstyle. My ...
2
votes
1answer
752 views

How to get the square brackets that are involved in integration working

The clearest way to clearly show what I want is using an example: I am looking for the Latex syntax that gives me the stuff on the right-hand side of the equation.
4
votes
1answer
310 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
2answers
138 views

Dual big brackets around Text

Back again! Currently attempting a dual bracket thing: where word {para}{para} word, are all on one line. I'm trying to play around with the code. But I cannot seem to get it to work. Here's my ...
3
votes
2answers
77 views

New commands for the equation environment

I'm trying to define a bra-ket command so that I can easily build things like: \langle e^+ | \gamma^\mu | e^-\rangle At the moment I have this: \newcommand{\brak}[3]{ \langle #1 \| \gamma^{#2} \| ...
4
votes
1answer
120 views

Where are \left and \right defined?

In order to define a new environment using \left and \right, I need to know how those macros are defined. Unfortunately, both \show\left and \show\right return an error. My last resort was to scan ...
5
votes
2answers
80 views

How to prevent overstretching of brackets?

With a tall equation like the following, using simple ( and ) gives brackets that are too small, and using \left( and \right) gives ones that are ridiculously big: ...
1
vote
1answer
1k views

Get round brackets with apalike

When forming my bibliography, I use \bibliographystyle{apalike} However that leads to in text references to use square brackets. I was wondering if it is possible for me to change the brackets to ...
7
votes
1answer
2k views

Tall curly brace

I would like to put a tall (long) left curly bracket on the left side of the following: \documentclass[12pt]{article} \begin{document} \noindent c: $\{$1, ..., n$\}$ $\rightarrow$ $\{$1, ..., ...
6
votes
2answers
233 views

Missing final brackets (in one equation { and in other - ]) in the equations

This is my first question on tex.stackexchange, so the formatting will be terrible. I've got a problem with three lengthy equations - the closing brackets, in all three formulas, are not displayed. ...
7
votes
2answers
261 views

Less aggressive automatic paren stretching with \left

\left and \right are convenient but sometimes they're a bit overeager in stretching the parentheses. In that case we can manually use \bigl, \Bigl, etc. I have defined a new command like this ...
3
votes
2answers
652 views

Can I make LyX automatically use 'smart' parentheses [\left( \right)] in math mode?

When I type in math mode I always prefer to use the parentheses using \left and \right. Currently, I go into math mode and then press the button on the ribbon that appears in this mode and creates ...
4
votes
1answer
283 views

Disable TeXstudio auto completion of square brackets?

I've disabled auto completion of {} from the advanced settings menu, but the program still automatically adds a ] when I type [ in examples like: \item[--] Is this a bug or can I disable it some ...
1
vote
1answer
292 views

Small descriptions next to matrix [duplicate]

One of my textbooks notates Markov transition matrices this way with 1 and 2 denoting states: How can I reproduce this matrix in LaTeX?
4
votes
1answer
120 views

Matching Brackets in TeX output

Is there any ways or features to make pdf-files using one of TeX systems so that when I move the cursor to one of brackets (either open or closed brackets) in pdf, then the bracket and the other ...
10
votes
3answers
661 views

Big brackets around Text

I want to create a big single curly bracket over a paragraph of text. I will be using this for many, many paragraphs. I want to make it left and/or right idented. This is for a conversational styled ...
0
votes
0answers
92 views

Redefine \cite for brackets [duplicate]

EDIT: I finally found out how to do it: \newrobustcmd*{\parentexttrack}[1]{% \begingroup \blx@blxinit \blx@setsfcodes \blx@bibopenparen#1\blx@bibcloseparen \endgroup} \AtEveryCite{% ...
5
votes
2answers
224 views

Double subscript error with \newcommand?

Disclaimer: I know of Defining a newcommand with sub- or superscript and avoiding "double subscript" error but this only gives a work-around, but no explanation to my question. Here's a ...
2
votes
1answer
1k views

Two double-line equations need double left brackets

I have four lines of equations. The first two and the second two need to be grouped by a left bracket, and all four need to be grouped by one overall left bracket. I am using an array within an ...
2
votes
1answer
129 views

Using square bracket inside square bracket [duplicate]

I have a two-column layout, and I want to put a specific section with images to span the whole page width. So I use: \twocolumn[ ... ] So far, so good. However, when I want to include anything in ...
5
votes
1answer
279 views

Highlighted Matrix with brackets

I would like to produce the matrix as shown in this figure: At the moment, I have this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...