Questions tagged [delimiters]

{delimiters} are characters used to specify the boundary between separate blocks/groups of text. They are typically used in {macros} or {math-mode} constructions.

Filter by
Sorted by
Tagged with
4 votes
2 answers
157 views

Stretching left, "inside" and right delimiters

The following MWE shows a way to stretch left, "inside" and right delimiters. Is the use of \vphantom the good way to do that? \documentclass{article} \usepackage{amsmath} \...
projetmbc's user avatar
  • 13.4k
0 votes
1 answer
39 views

Resizable delimiters with StixTwo OTF without unicode-math

What exactly is involved with setting up delimiters with XeTeX, Unicode, and OpenType fonts? I found this answer https://tex.stackexchange.com/a/692859/224317 which looks promising. I have also ...
Mike Pugh's user avatar
0 votes
1 answer
40 views

How make bag delimiters more big using stmaryrd package? [duplicate]

I am using the stmaryrd package and I have to increase the size of "bag" bracket, but unfortunately the usual commands \big, \Big, \biggl, \Biggl, \left, \right do not work, so that I ...
Antonio Maria Di Mauro's user avatar
1 vote
1 answer
53 views

How to define a symbol using its unicode number?

I want to define a pair of delimiters that look like (( and )). According to this question, I am looking for U+2E28 and U+2E29. However, I have no idea how to use these to define the symbols I want. ...
Gau-Syu's user avatar
  • 463
0 votes
2 answers
47 views

How resize \upharpoonright to denote math function restriction

A common math notation for restricting, to a subset A of its domain, a function f from a set X into a set Y is given by a vertical bar as shown in the first section of output shown below. This is a ...
murray's user avatar
  • 7,650
1 vote
1 answer
71 views

Choose delimiters in the command according the case

I'm trying to create a similar command as \qty from physics package. To understand, I have the following code as example: \documentclass{article} \usepackage{physics} \RenewDocumentCommand{\grad}{sm}...
Peluche's user avatar
  • 579
0 votes
0 answers
28 views

How to define new fully-functional math brackets in Latex?

How do I create mathematics paired delimiters such as $()$ or $\langle \rangle$ that satisfy all the functionality of those standard delimiters (by which I mean fully functional)? In particular, I ...
shuhalo's user avatar
  • 2,485
4 votes
1 answer
164 views

How to know if a token is a maths delimiter?

I would like to know if one token argument can be stretched by \big, \left and co. Is there an easy way to test that a token is a maths delimiter, before starting to produce some output?
projetmbc's user avatar
  • 13.4k
0 votes
1 answer
43 views

Can some please tell me how to put curly braces around the real part in an equation? [duplicate]

\begin{equation*} f \in S\mbox{*} \iff Re({\frac{zf'(z)}{f(z)})>0 \end{equation*}
Suhas B Mahesh's user avatar
1 vote
1 answer
44 views

How can I highlight elements in a matrix without overlapping the delimiters?

I used the code given by Kottwitz, and here is the result. Put another way, how can I adjust the position of the delimiters so that the highlights do not overlap them?
Aldean Gem P. De Guzman's user avatar
1 vote
1 answer
46 views

Definition of bold scalable delimiters using bm

I tried to define commands for scalable boldface delimiters via the bmdefine command from the bm package (obviously most of the packages involved seem unnecessary, but I need those packages, and ...
Matemáticos Chibchas's user avatar
3 votes
2 answers
96 views

Definition of individual (nonpaired) delimiters with mathtools

The command \DeclarePairedDelimiter (from the mathtools package) allows to use the delimiter size commands \big,\Big,\bigg,\Bigg, and allows to define custom paired delimiters. For example, the macro\...
Matemáticos Chibchas's user avatar
0 votes
1 answer
44 views

How do I define a custom command or a macro, or something of that nature, which will use the matrix environment?

When I write some latex with \{ and \}, such as the following: \begin{Bmatrix} \dfrac{x_{1}}{10^{1}}, \dfrac{x_{2}}{10^{2}}, \dfrac{x_{3}}{10^{3}} \end{Bmatrix} The output looks like this: The ...
IdleCustard's user avatar
4 votes
0 answers
120 views

Getting an "and" before the last block/element in \cite in BibLaTeX if elements are compressed

Using BibLaTeX, I would like to create a \textcite command based on the numeric-comp style which instead of showing [1-3, 5] shows Refs. 1-3 and 5, and instead of showing [1-3, 5-7] gives Refs. 1-3 ...
Peter's user avatar
  • 41
1 vote
1 answer
102 views

Getting proper math typesetting with Cambria?

When I switched from Calibri to Cambria in LuaLaTeX, a \middle/ lost its correct size. I then tinkered with combinations of fontspec, unicode-math and mathastext, but none seems to work. I didn't play ...
ehak's user avatar
  • 25
0 votes
1 answer
85 views

Typical mistake: xspace is always looking forwards, never backwards [closed]

How could we explain the difference between those two outputs, where the second one features } just after \xspace? MWE \documentclass{article} \usepackage{xspace} \usepackage[citestyle=authoryear]{...
Vincent Krebs's user avatar
2 votes
3 answers
69 views

How do I make the symbol | larger like other delimiters?

Consider the following code \documentclass{amsbook} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \[ E(X) = \delta \left[ \frac{1}{-\delta} x e^{-\delta x} \left| \right|_0^\infty \ldots ...
TonyK's user avatar
  • 489
8 votes
2 answers
465 views

Square curly bracket symbol

I would like to create "square-curly bracket" delimiters, somehow looking as in this question. I came up with the code below, which produces some good results, but has also some ...
Watson's user avatar
  • 870
1 vote
1 answer
13 views

Biblatex: Change the subentries' delimiter in references from semicolon to period

I'm using LuaLaTeX and BibLaTeX to write a report but have a problem as the title. I want to change the red-marked semicolon in the below picture to period but I cannot find how to. Here's the MWE, \...
Tomm's user avatar
  • 13
4 votes
1 answer
120 views

Passing formatting commands as arguments

I have a custom underlining command \cleverul{text} proposed by @Jinwen here. I would like to be able to pass the command inside a redefinition of the \@makechapterhead macro, as a formatting value ...
Vincent Krebs's user avatar
0 votes
2 answers
104 views

How to modify the style of Latex brackets?

For example, make the following braces thinner.
WeiJie Liu's user avatar
1 vote
1 answer
85 views

How can I make \left and \right consider additional sizes?

As I understand it, when a delimiter is marked \left or \right, its size will be chosen from among the available sizes. Suppose I define some new sizes, how can I make \left and \right use them when ...
NevinBR's user avatar
  • 123
3 votes
2 answers
102 views

\left\right on fraction applies the height of the taller term to both sides - How to make it more compact?

In the code below \left and \right are used to adjust the height of () to the nested fraction. While the denominator of the entire fraction is much shorter than that of the numerator, the numerator's ...
ssly55828's user avatar
4 votes
2 answers
423 views

Is it bad practice to use tabs to indicate indentation in LaTeX? [closed]

Should I make it a habit to use spaces instead of tabs when indenting? Casual use of tabs didn't cause problems but so far I experienced a few niche cases where using tabs leads to unexpected behavior....
sion35725's user avatar
2 votes
2 answers
94 views

What is the difference between {} and [] parameters? [duplicate]

Most commands use {} to receive parameters. For example $\binom{6}{2}$ typesets the binomial coefficient 6 choose 2. However \sqrt receives a [] parameter as its first parameter. For example $\sqrt[3]{...
aker9397's user avatar
1 vote
1 answer
85 views

Sizing of vertical bar delimiters by kpfonts

This is a follow-up question to Restriction of a function: the subscript seems too low. Typesetting the following math formulas with kpfonts \documentclass{article} \usepackage{kpfonts-otf} \begin{...
Heiko Theißen's user avatar
2 votes
2 answers
93 views

Declare custom formatted delimiters mathtools

First I want to thank mathtools package maintainers. Issue Description The issue is about declaring paired delimiters with \DeclarePairedDelimiter(X): if I want to e.g. colour the delimiters (with ...
vepain's user avatar
  • 23
1 vote
1 answer
42 views

PairedDelimiter with natural sub- and super-scripts

I would like to declare a paired delimiter so that I can use something like the following syntax: \mycommand'_k[\big]{x}\\ \mycommand^\prime_k[\big]{x} to put x in parentheses of \big size, preceded ...
rrrrr's user avatar
  • 491
3 votes
3 answers
123 views

Can you make the spacing around \middle separators the same as spacing around array lines?

I’d like to generate something like this code’s output: \left[ \begin{array}{ccc|c} 0 & 3 & -2 & 8 \\ 1 & 1 & 0 & 4 \\ 1 & 0 & 1 & 3 \end{array} \right] But by ...
schuelermine's user avatar
2 votes
0 answers
33 views

Delimiters in Mtpro2

Some delimiters do not appear as they should when using mtpro2 package \documentclass[11pt,a4paper]{article} \usepackage{amsmath,amssymb} \let\myBbbk\Bbbk \let\Bbbk\relax \usepackage[lite]{mtpro2} \...
mac's user avatar
  • 1,469
0 votes
1 answer
282 views

Ordered tuples of ordered tuples

The following source includes a definition of \opair for typesetting ordered pairs, or tuples, that use angle-brackets as the initial and terminal delimiters; that definition appears in https://tex....
murray's user avatar
  • 7,650
0 votes
1 answer
62 views

How to globally redefine kerning of \prime only when it encounters a left delimiter in math mode?

Here's my MWE: % !TEX program = lualatex \documentclass[preview,border={5mm 2.5mm 5mm 0mm},varwidth]{standalone} \usepackage{mathtools} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]...
Farrel Ahmed's user avatar
2 votes
2 answers
110 views

Combining \newunicodechar with delimiter sizes \big, \left, \right, etc

\documentclass[11pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{newunicodechar} \newunicodechar{‖}{\ensuremath{\|}} \begin{document} $$ ‖x‖ $$ $$ \big‖x\big‖ $$ % Error: Missing delimiter \...
Hyperplane's user avatar
3 votes
3 answers
432 views

unicode-math delimiters

I need the unicode-math package for LucidaBrightMathOT fonts. However, this seems to have some undesirable effects on delimiters. Left without and right with unicode-math using the MWE: \...
Manuel Schmidt's user avatar
0 votes
0 answers
24 views

"Missing { inserted" in DeclarePairedDelimiter [duplicate]

MWE: \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter{\abs}{\left|}{\right|} \DeclarePairedDelimiter{\absl}{\lvert}{\rvert} \begin{document} $\abs{\cdot}$ $\absl{\...
Atom's user avatar
  • 513
2 votes
1 answer
163 views

Detect delimiter

Is it possible to check whether a token is a delimiter, i.e (, ), |, \vert, \langle, \rangle, etc without directly checking each of them in a condition? The structure of delimiter is well described ...
antshar's user avatar
  • 4,116
6 votes
5 answers
257 views

Define macro for \Big, \bigg etc

Is it possible to make macro behave as if it was written directly? \documentclass{article} \usepackage{amsmath} \newcommand{\veca}{|_{\vec{a}}} \begin{document} \[ \frac{f(\vec{x})}{g(\vec{x})}\...
antshar's user avatar
  • 4,116
9 votes
2 answers
228 views

How to use \DeclarePairedDelimiter commands as moving arguments (such as sections or captions)?

I am having trouble to use \DeclarePairedDelimiter commands from the mathtools package with the optional size argument inside moving arguments such as section titles (or caption texts), when a table ...
Ben JW's user avatar
  • 191
0 votes
1 answer
94 views

Adjust / and \backslash symbols in Fourier

In Fourier, the non-sized slashes / and \backslash are, in my opinion, too small and does not tilt enough compared to their sized version. For example, writing a / b and a \big/ b, we obtain something ...
aahlback's user avatar
1 vote
1 answer
39 views

Missing delimiter error involving split and array environments

The following code works fine \documentclass[a4paper,12pt]{book} \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{amsthm} ...
ygh's user avatar
  • 57
1 vote
1 answer
230 views

! Missing delimiter (. inserted). <to be read again> error

\documentclass[sn-mathphys]{sn-jnl} %\documentclass{article} \begin{document} \begin{equation*} |u|_{p(x)}=\inf\left \{\tau>0;\int_{\Omega}\left|\frac{u}{\tau}\right|^{p(x)}\,dx\leq 1\right\}. \...
user263802's user avatar
0 votes
0 answers
19 views

Left and right delimiters for a formula split over two lines [duplicate]

Consider the following display: that can be obtained, for instance, with the following code: \begin{align*} \{\int_a^b g \; &: \; \text{ a very, very long and painful description of the ...
Philopolis's user avatar
2 votes
0 answers
58 views

\Udelcode and \Udelimiter not working with Unicode font in LuaLaTeX

I am unable to get the stretchy brackets \Udelcode with a Unicode font. I get the results in XeLaTex, but in LuaLaTex brackets are not stretched. I took the solution given by Marcel Krüger in this ...
RCV's user avatar
  • 1,966
1 vote
1 answer
57 views

yhmath's incompatible length of | and others ( () and [] and {} and \/ and ...)

The following code \documentclass{article} \usepackage{yhmath} \begin{document} \[ \left( \rule{10pt}{10pt} \middle| \rule[-5pt]{10pt}{5pt} \...
Symbol 1's user avatar
  • 36.6k
1 vote
0 answers
55 views

soul package with Latex delimiter [duplicate]

I would like to ask that how can we use Latex delimiter \(\) instead of $…$ inside parameter of \hl{} highlight from soul package? \documentclass[a5paper,12pt]{beamer} \usepackage{soul,xcolor} \...
Nuec Tah's user avatar
  • 139
3 votes
1 answer
128 views

Where is the extra amount of vertical space generated by math delimiters in Tex Book Appendix G Rule 19 specified?

Consider this minimal example: \documentclass{report} \delimitershortfall=0pt \delimiterfactor=1100 \begin{document} $$\left(\left(\left(\left(x\right)\right)\right)\right)$$ \end{document} which ...
Mart's user avatar
  • 31
3 votes
2 answers
537 views

Why does the square bracket not scale up?

I'm using \left [ \right ] to scale the bracket up to the height of the expression inside. However, it works as expected in the first line, bit not in the remaining two lines. Could you elaborate on ...
Akira's user avatar
  • 983
0 votes
1 answer
33 views

How to adjust the delimiters in multline environment

I am trying to have delimiters for the following equation written in multline environment, but the right most delimiter is not showing in the output. \documentclass[a4paper,fleqn]{cas-dc} \...
Saru's user avatar
  • 37
1 vote
1 answer
315 views

How can I use quotation marks like brackets in math mode?

I'd like to enclose some content in quotation marks in math mode. The content is text, so I put it as a parameter to \text from amsmath. S = \text{“some text”} But the quotation marks aren't part of ...
matj1's user avatar
  • 109
1 vote
1 answer
32 views

Suppress "in" for articles, modify for inbooks

I want articles to appear as Kowalski Jan, "Reforma reformatorska", Przeglad Historyczny 1 (1953), pp. 101-152. Inbook and incollection must appears as Kwiatkowska Anna, "Liczenie ...
andc's user avatar
  • 911

1
2 3 4 5
10