Questions tagged [brackets]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
37 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).
1
vote
2answers
37 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
37 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
59 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
61 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
45 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
5 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
114 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
32 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
75 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
244 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
30 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
33 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'...
2
votes
1answer
24 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
60 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
164 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
153 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
40 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
73 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
243 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
19 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
63 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
38 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
34 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
32 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
138 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 ...
4
votes
1answer
126 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
57 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
40 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
53 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
28 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
29 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
194 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
35 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
99 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
47 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 ...
4
votes
2answers
176 views

Table enclosed in curly brackets

I would like to enclose a table with curly brackets. I photoshopped an example here: The MWE of the table is here, please feel free to add packages etc. ` \documentclass[11pt]{article} \begin{...
3
votes
4answers
205 views

A universal method for left-hand alignment of a sequence of equalities

With this code \documentclass[a4paper,12pt]{article} \usepackage{mathtools, mathrsfs} %% Code for '\widebar' macro is courtesy of %% https://tex.stackexchange.com/a/60253 \makeatletter \let\save@...
6
votes
1answer
82 views

Missing space after parenthesis in inline text

\documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{listings} \lstdefinestyle{General} { basicstyle=\small\ttfamily, breaklines=true } \lstset{style=...
1
vote
1answer
33 views

Brackets around blkarray are too big

This is a followup to this question. MWE (given by Henri Menke in the linked post): \documentclass{article} \usepackage{blkarray} \begin{document} \[ \left[ \begin{blockarray}{ccccccc} \...
1
vote
1answer
33 views

brackets inside matrix / matrices inside a matrix

I would like to make something that looks like this: I don't know how to get the brackets inside the matrix to line up in the right spots. I don't need them to be red; I just added that to emphasize ...
0
votes
0answers
12 views

Row vector bracket size with double spacing [duplicate]

I have an equation in my thesis that needs a row vector. Since my thesis template is using the \doublespacing command of the "setspace" package, the bracket size of the row vector is not consistent ...
3
votes
1answer
30 views

Is there a way to remove extra space when using qtree?

Is there a way to remove the extra space in the example below? (That is, to make the square brackets smaller but in such a way that the whole tree still falls within the brackets) Here is the code: \...
3
votes
1answer
92 views

Kerning with parentheses

Given the MWE below, one can see that the spacing around the parentheses is rather awkward. The opening parenthesis is too close to \cos and \sin, and too far away from the \omega. The closing ...
1
vote
2answers
104 views

Rotated Curly Brackets Along Arrow (TikZ)

I am trying to do a diagram to show the nature of Principal Component Analysis. I have the following code, wherein I would like to have rotated curly brackets under the Principal Component Vectors to ...
2
votes
2answers
56 views

A chain of inequalities with words - aligned

How would one write this in TeX? I tried basic align techniques, but one also needs to align the words inside the brackets on the right-hand side and for me it does strange things. Thanks!
2
votes
1answer
153 views

How to type these special brackets in latex in text mode?

LEFT BLACK LENTICULAR BRACKET (U+3010): 【 RIGHT BLACK LENTICULAR BRACKET (U+3011): 】 LEFT WHITE LENTICULAR BRACKET (U+3016): 〖 RIGHT WHITE LENTICULAR BRACKET (U+3017): 〗 LEFT WHITE TORTOISE SHELL ...
0
votes
1answer
81 views

Maths Equation Formatting - Brackets [duplicate]

Does anyone know how you would type this in latex? Thank you!