Questions tagged [brackets]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
33 views

(Solved, New) Parenthesis while using subfig and autoref

MWE first. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage[subrefformat=simple,labelformat=simple]{subfig} %\newcommand{\subfigureautorefname}{\...
9
votes
7answers
531 views

Big Bracket for equations

How can I add the big bracket at the side of my equations, just like in the photo? Below is my code for the equations. \begin{align} \frac{dS_d}{dt}&= A + \lambda_dR_d + \sigma_d(1-\gamma_d)E_d -...
0
votes
2answers
33 views

Square brackets with BibLatex in text and bibliography

I have read many related posts regarding the issue of having squared brackets with biblatex. Unfortunately, none have made me fully understand how to compute the squared brackets. I know that biblatex ...
0
votes
2answers
27 views

Problem with small brackets in `case` and `array` environment [closed]

When I write an equation for cases, the brackets do not adapt to size, they remain very small. Previously I solved a problem with the arrow drawings because I am using Spanish babel. I added \...
4
votes
1answer
66 views

Chemfig: Problem setting brackets for polymers

Hy everybody, I am a newbie in LaTeX so I apologize if the question is not so precisely. I try to draw polymers with the Chemfig package. Everything works fine with except the brackets for the ...
0
votes
0answers
22 views

Creating a bracket [] macro for \ref when using hyperref

I've been trying to add brackets around cross-references in a more automatic manner in my recent report, but haven't been able to do so just yet. A simple \newcommand-macro does not seem to work. I've ...
0
votes
0answers
18 views

format specific table rows: elements in parenthesis

How can I format specific rows of a table, placing every element of such rows inside brackets? I have tried adapting the command that I have seen here in this way: \newcommand{\rowparenthesis}[1]{\...
0
votes
0answers
24 views
0
votes
0answers
17 views

Losing a right bracket when using \\ &\quad to split over two lines [duplicate]

I have a long equation, and here I am giving a sample code that illustrates the problem. \begin{equation} \begin{aligned} \left\{ fhfj \right\} \end{aligned} \end{equation} gives me {fhfj} while ...
1
vote
0answers
18 views

Can I make a larger left bracket? [duplicate]

For statements like the one below, I need a large left bracket to precede the array. \Biggr\{ is not big enough. Ideally I could use \left\{ and make the right bracket white, but there doesn't seem ...
2
votes
0answers
41 views

Curly bracket for subequation enviroment using the mtpro2 v. lite

Remembering the very nice answer given by the user @Mico, Curly braces using mtpro2[lite]: fix correct alignment, it has been used into an equation the enviroment \ccases{\begin{aligned}.....\end{...
0
votes
1answer
33 views

How to define a bracket function that allows line breaking and auto-adjusts size?

I want to define a bracket function that allows line breaking and auto-adjusts the size of the bracket like the normal method did. By normal method I mean using \left\{\right\}. According to this ...
0
votes
2answers
48 views

Creating bracket-enclosed, colored, hyperlinked text

How do I surround a hyperlink with square brackets using \href? I want something like [Link] with square brackets, in black and "Link" in blue (my default hyper-link color).
2
votes
2answers
56 views

Thin parentheses bracket

How do I typeset the bracket/parentheses form the second equation. I have been searching the internet and gone through various mathfonts but did not find the right one. Can someone please help me ...
1
vote
1answer
42 views

Automatically add parentheses if expression is composite

I'm trying to write a macro which automatically adds parentheses to an expression if the argument is composite. Specifically, I would like to define a command for the inner product of two vectors ...
3
votes
1answer
63 views

Can I make a matrix from just a parts of the cells?

Can I make a matrix from just a parts of the cells? i.e. not all the cells just some of it, like here: It possible to make something like this? Thank you!! P.S. I'm using LyX.
2
votes
3answers
81 views

Bracket for dual pair (in functional analysis)

In functional analysis, one occasionally considers a so-called dual pair (a pair of vector spaces tied together by a non-degenerate bilinear map to the ground field). I usually typeset these using \...
0
votes
2answers
62 views

Brackets in \subsection titles

The mathematical text ${\mathbb Z}[\sqrt{2}]$ works perfectly well within the general text, but I want it as a subsection title. However, \subsection${\mathbb Z}[\sqrt{2}]$ produces the ...
0
votes
0answers
6 views

Split equation with \begin{split} - brackets don't follow [duplicate]

I have a really long equation, which I want to split into two lines. I searched the internet and found that it works with a split environment. It actually does! But I have big (or automatically sized) ...
5
votes
2answers
120 views

Combining latex input and sed

I need to include file, but I want to manipulate it directly from PDFLaTeX. I must remove any text which is betweem \{ and \}, including backslashes and parenthesis. I have tried many escaping options,...
2
votes
0answers
33 views

Issue with brackets ( using myblockquote)

I have an issue with the code. When I try to put multiples ( in my case 2 ou 3 ) \myblockquote. There are 2 more brackets that appear and the quote doesn't always start a new paragraph. The code I use ...
2
votes
1answer
78 views

How can I remove the brackets around a reference if it is already in brackets?

I am using cleveref for cross-referencing in my thesis. For equations, it typically looks like this: As can be seen in Eq. (5), the numbers don't add up. However, sometimes I only want to ...
0
votes
0answers
9 views

Array inside an equation: open bracket in a line and close in another line [duplicate]

This code: \documentclass[12pt]{article} \begin{document} \begin{equation}\label{eq:test} \begin{array}{l} \left[ \displaystyle \frac{e^{ix}}{2} = \\ = \sin (x) + \cos (x) \right] \end{array} \end{...
4
votes
2answers
248 views

Stretching a curly bracket to get better vertical symmetry

As can be seen in the following MWE, \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \left\{ \begin{aligned} a&=\frac{b}{c} \\ a&=e ...
2
votes
1answer
32 views

Adding brackets below Tikz picture

I currently made the following timeline/picture in Tikz: Which corresponds to the following code: \begin{figure} \caption{Scaling approach} \noindent\begin{tikzpicture} \matrix (M) [ ...
5
votes
1answer
41 views

Multiline equation with aligned (amsmath) and brackets that contains the entire equation

I want to have the right side of the equation surrounded by square brackets with appropriate size. How do I make the brackets contain many lines without ruining the alignment? Minimal code that won'...
3
votes
1answer
34 views

How to specify language dialect in \lstline option?

First, here is some code that works fine: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \begin{document} \lstinline[language=algol,keywordstyle=\color{blue}]{int a} \end{document} ...
3
votes
1answer
65 views

Siunitx table, with a number in parentheses (single row)

I want a table column to be aligned using the thousands comma. But when I try to put a number in parentheses I get an error. I have read previous answers which were not suitable for my situation, ...
11
votes
3answers
184 views

How to make \{ and \} automatically have \left and \right

Desired behavior \{ and \} should turn into \left\{ and \right\{. Attempt 1 \edef\{{\left\{} \edef\}{\right\}} Error message TeX capacity exceeded, sorry [input stack size=5000]. \font@name ->...
3
votes
2answers
157 views

Adding curly brace to the right-hand side of the equation

I want to add brackets on one side of the equation and write something adjacent to it. But, I'm getting those words in the line below while I need those at one side of the equation. Can anyone help ? ...
0
votes
1answer
45 views

Hiding brackets after a definition

I use amsthm package to define the environment as \documentclass[a4paper,11pt,twoside,openright,notitlepage]{book} \pdfobjcompresslevel 0 \usepackage[a-1b]{pdfx} \usepackage[utf8]{inputenc} \...
0
votes
4answers
82 views

How to make big parenthesis in equation?

I am learning how to make like this, would you mind guys to help me? I just can't make a big parenthesis like this one. Thanks in advance.
3
votes
3answers
246 views

How can I make parentheses stick to formula?

I'm working with a class of functions roughly denoted by \mathcal R\big(\Pi_+;\le\big). The problem is that the last parenthesis won't "stick" to the rest. What I mean by that is that i.e. when the ...
0
votes
0answers
21 views

bmatrix brackets too tall when using package setspacing and setting \doublespacing [duplicate]

Is there a way to get the brackets of the matrices to ignore the spacing that I set up for the paper? There is just a little too much space at the top of each matrix when using \doublespacing. I would ...
0
votes
1answer
69 views

How to typeset \left \right parenthesis in LuaLaTeX in 2019?

With pdflatex I often used \left( and \right) to scale the parenthesis of a function as in \[\exp\left(\frac{a}{b}\right) \] But this method was not perfect, because the code is difficult to read ...
1
vote
1answer
42 views

pgfplots: Are parentheses mandatory in axis environments?

Assumed we have this little code snippet: \begin{tikzpicture} \begin{axis}[ date coordinates in = x, table/col sep = semicolon, date ZERO ...
4
votes
1answer
39 views

How to increase the vertical offset of exponent terms with increasing size of parentheses?

I want to be able to write the following expression: But have not been able to do so, since all I can get is: I do not use the fraction of P/E, but rather just the psi. Can you help? EDIT: After ...
3
votes
1answer
34 views

Removing outer parenthesis in a diagram

When I try to remove the outer brackets in the following diagram, by removing the first occurrence of \begin{pmatrix} and the last occurrence of \end{pmatrix} I get the error misplaced alignment tab ...
3
votes
2answers
154 views

How can I get cleveref to surround references with parentheses automatically?

I use cleveref for in-document references, and find it to be clever. However, I typically want to refer to figures (for example) within parentheses. What I do now is this \usepackage{cleveref} ... X ...
5
votes
1answer
156 views

Parentheses between \big and \Big

Is there a way to create parentheses in math mode that have an extension between that of the commands \big (too small) and \Big (too big)? The amsmath package documentation defines the delimiters in ...
1
vote
2answers
65 views

Help! Why does my curly brace show as a straight line?

I'm a beginner at latex and I've been reading everything I found about curl braces. I managed to positioned it where I wanted it but now my curly brace appears as a straight line. When I write the ...
1
vote
1answer
41 views

How to deal with sentence-level parentheses ending equations?

Say you want to make a remark on-the-fly, which involves a formula too big to be put online, but this formula is supposed to end your sentence (as in, for instance, if we let How do you deal with the ...
3
votes
1answer
59 views

Add parentheses if double superscript or double subscript

I've already got an answer for Add parentheses if double superscript. I want to go a step further as proposed below. However lualatex complains of “missing $” when using the e{_}-type argument… \...
1
vote
2answers
33 views

Problem redefining hat accent in eulerpx

I want to use eulerpx with the alternative hat accent provided by eulervm (via the euler-hat-accent option). To this end, I copied the relevant commands from eulervm.sty (see also this answer). The ...
0
votes
0answers
17 views

inverting fraction comes out different size [duplicate]

I think I get why the two parentheses/fractions here are not the same size: \left(\frac{3}{p}\right)\left(\frac{p}{3}\right) Screenshot from Mathjax website: Presumably something about the baseline ...
0
votes
1answer
32 views

Grouping lines in cases and aligning them

I am reading an article, where I faced the following: I want to write such a thing in LaTeX. Basically, this whole thing is in a bracket, every two lines are grouped and labeled together, and there ...
5
votes
2answers
205 views

Gauss brackets with double vertical lines [duplicate]

I would like to have commands for left- and right gauss brackets which have a double vertical line, but otherwise behave exactly like \lfloor and \rfloor. In particular, they should come in various ...
1
vote
1answer
38 views

Citation brackets using biblatex

I'm using biblatex for references and citations in my thesis. \usepackage[backend=biber, style=alphabetic, citestyle=authoryear]{biblatex} gives me the author name in the text, but I would like to ...
0
votes
1answer
139 views

Citation for an addendum in brackets, \citet vs \citep

With natbib (and bibtex) I have the option of using either \citet{foo2019} or \citeb{bar2019} and I think I'm pretty clear on their use. I.e. "as Foo (2019) has shown, ducks tend to quack" vs "...
1
vote
1answer
62 views

Problem with Big Curly Brackets in Overleaf

I am trying to make open a big curly bracket with 3 rows and 2 columns in it. This will be used in a Conference Paper that has 2 columns per page, so logically the wideness of each column is ...