Skip to main content

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
1 vote
1 answer
53 views

biblatex: change the \finalnamedelim for a single entry

A user has a single bib entry in Greek (all the rest are in English) and wants the finalnamedelim to be "και" instead of "and" for just that entry in the References. Citation is ...
Peter Flynn's user avatar
  • 2,910
0 votes
2 answers
50 views

x/y and y/x having different-sized parentheses

I wrapped \dfrac xy and \dfrac yx in left and right LaTeX tags with parentheses, and I expected that the parentheses would be the same size since x/y and y/x should technically be the same height. ...
Technodoggo's user avatar
6 votes
2 answers
133 views

Simply Adjusting the Position of Dashed Lines in Nicematrix Package

I encountered a problem with the horizontal dashed line created by the nicematrix package in LaTeX. The line is a little close to the bottom of the matrix, overlapping with the elements of the second ...
Prince Chen's user avatar
0 votes
1 answer
27 views

Problem command and tikzcd

When I compile this $$ \begin{tikzcd}[column sep={small},nodes={inner sep=2pt}] {| +1 \rangle} & {\langle +2|} \\ {\langle +3 |} & {| +4 \rangle} \arrow[no head, from=1-1, to=2-2] \arrow[no ...
MathBug's user avatar
  • 105
1 vote
0 answers
20 views

How to get properly scaled forward slash delimiters?

I had originally thought this was related to my choice of font, but it seems like forward slash delimiters even in the default math font don't scale properly (or, at least, not as expected). For ...
Jigsaw's user avatar
  • 935
1 vote
1 answer
46 views

Use `\left[` and `\right]` in separate lines with 'align'

\documentclass[a4paper]{scrartcl} \usepackage{amsmath} \usepackage{upgreek} \usepackage{commath} \usepackage{amssymb} \usepackage{amsthm} \usepackage[pdftex,svgnames,hyperref]{xcolor} \usepackage{...
Trommelpeter's user avatar
0 votes
0 answers
52 views

When to use bigger-than-usual delimiters?

I am having issues deciding whether I should use \{left\{…\right\}, \{bigl\{…\bigr\} or simply {}. Consider the following MWE: \documentclass[]{article} % PACKAGES LOADING \usepackage[]{mathtools,...
EoDmnFOr3q's user avatar
  • 2,343
0 votes
1 answer
62 views

How to increase the effect of \bigl / \bigr with unicode-math

I am writing in fontsize 12pt and use lualatex (LuaHBTeX, Version 1.16.0 (TeX Live 2023)). Additionally I use the unicode-math package. Consider the following MWE: \documentclass[12pt]{article} \...
e_equals_pi's user avatar
0 votes
0 answers
51 views

Why is `DeclarePairedDelimiter` so complicated?

Currently I use the following to type singleton sets: \documentclass{article} \newcommand*{\singleton}[2][]{\mathopen{#1\{}#2\mathclose{#1\}}} \begin{document} $\singleton x$, but $\singleton[\big]{(...
user avatar
1 vote
1 answer
43 views

Customize delimiter in cite

I am using \parentcites to generate secondary citations. %!TEX program = lualatex \documentclass{article} \usepackage[backend=biber,style=apa]{biblatex} %\renewcommand{\compcitedelim}{\multicitedelim}...
juanuni's user avatar
  • 2,029
1 vote
1 answer
57 views

Swap star and non-star versions of DeclarePairedDelimiter without breaking other parameters

I use \DeclarePairedDelimiter from the mathtools package a lot, and I almost always want the delimiters to be automatically resized. Therefore, I switch the definitions of the star and non-star ...
Shai Avr's user avatar
  • 909
2 votes
1 answer
85 views

Idxlayout Paragraph Form---Adding a Period to Certain Page Numbers

This is a follow-up to Automatically Add a Period After Last Page Number in Each Index Entry Consider the MWE: \begin{filecontents*}{style.ist} delim_t "." \end{filecontents*} \...
DDS's user avatar
  • 9,768
1 vote
1 answer
43 views

Is there a way to define a separate listings escape sequence?

MWE: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \lstset{ basicstyle=\small\sffamily, frame=tb, columns=fullflexible, escapeinside={`}{`}, escapebegin={\color{darkgray}\...
user41177's user avatar
  • 375
1 vote
2 answers
82 views

Make new delimiter using Tikzpicture?

I am interested in creating a new paired delimiter using tikzpictures I defined. There has to be something easy I'm missing, but hours of searching has proved fruitless. Here is what I have so far: \...
Jeff Buffkin's user avatar
2 votes
2 answers
110 views

Consistent vertical spacing in cases environment with multirow cases

I'm having trouble figuring out how to achieve some sort of consistency when I work with vertical spacing in cases environments where the cases themselves have multiple rows. In the second version of ...
Fredrik P's user avatar
  • 1,428
-1 votes
1 answer
98 views

Ignore Text between \bgroup and \egroup from printing in PDF during runtime [closed]

I would like to exclude the text between \bgroup and \egroup from appearing in the final PDF, i.e. mark it as a comment during runtime. However, the problem here is that the text is not static and \...
FixFox's user avatar
  • 45
2 votes
1 answer
65 views

Integral bottom limit overlaps adjacent delimiters [duplicate]

When using \limits on an integral, the bottom limit can overlap a delimiter (although the top limit seems to behave fine): \[\left|\int\limits_{x = 100000}^{1000000}\right|\] What is the easiest way ...
Chris Jones's user avatar
6 votes
3 answers
499 views

Adjusting the height of math floor symbol

Recently I started to play with LaTeX again just to train for when I have to use it again. I like to write mathematical formulas and I am trying to nail down floor and ceil symbols with fractions. ...
MR. PROD's user avatar
4 votes
2 answers
174 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
51 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
  • 329
0 votes
1 answer
63 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
68 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
  • 473
0 votes
2 answers
137 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
  • 8,702
1 vote
1 answer
74 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
  • 613
0 votes
0 answers
33 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,575
4 votes
1 answer
167 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
46 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
59 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
68 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
121 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
68 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
  • 1,260
4 votes
0 answers
122 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
293 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
  • 35
0 votes
1 answer
87 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
78 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
  • 647
8 votes
2 answers
562 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
  • 984
1 vote
1 answer
19 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
166 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
190 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
150 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
  • 133
3 votes
2 answers
118 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
435 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
3 votes
2 answers
237 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
97 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
162 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
47 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
  • 503
3 votes
3 answers
126 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
40 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,479
0 votes
1 answer
650 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
  • 8,702
0 votes
1 answer
70 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

1
2 3 4 5
10