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
0 votes
1 answer
31 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}]...
user avatar
2 votes
2 answers
78 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 \...
user avatar
3 votes
3 answers
347 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: \...
user avatar
0 votes
0 answers
20 views

"Missing { inserted" in DeclarePairedDelimiter [duplicate]

MWE: \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter{\abs}{\left|}{\right|} \DeclarePairedDelimiter{\absl}{\lvert}{\rvert} \begin{document} $\abs{\cdot}$ $\absl{\...
user avatar
  • 297
2 votes
1 answer
117 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 ...
user avatar
  • 2,345
6 votes
5 answers
179 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})}\...
user avatar
  • 2,345
9 votes
2 answers
160 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 ...
user avatar
  • 191
0 votes
1 answer
79 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 ...
user avatar
1 vote
1 answer
22 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} ...
user avatar
  • 35
1 vote
1 answer
44 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\}. \...
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 ...
user avatar
2 votes
0 answers
41 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 ...
user avatar
  • 1,774
1 vote
1 answer
39 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} \...
user avatar
  • 35.5k
1 vote
0 answers
38 views

soul package with Latex dilimiter

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} \...
user avatar
  • 139
3 votes
1 answer
90 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 ...
user avatar
  • 31
3 votes
2 answers
449 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 ...
user avatar
  • 811
0 votes
1 answer
30 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} \...
user avatar
  • 37
1 vote
1 answer
148 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 ...
user avatar
  • 61
1 vote
1 answer
26 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 ...
user avatar
  • 841
1 vote
1 answer
39 views

Line breaks inside autogrowing nested brackets using perfectcut?

In the package that I have been developing, I use the \perfectunary command from the Perfectcut package to get auto-growing brackets that increase in size depending on the number of nested brackets ...
user avatar
  • 351
1 vote
0 answers
30 views

Aligning material in delimiters within linguex examples

I'm trying to put trees (drawn with tikz-qtree) inside interpretation function brackets (scaled to the tree as suggested here (https://tex.stackexchange.com/a/133465) within a linguex example. ...
user avatar
  • 11
1 vote
2 answers
84 views

How to get better spacing in numerator and denominator inside delimiters

A fraction like this \frac{1}{\begin{vmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{vmatrix}} is nicely rendered as but when we enclose it in any kind of delimiters, LaTeX ...
user avatar
  • 121
0 votes
0 answers
57 views

Best use for Delimiters, Integrals, Big Operators, fonts

I know different packages, amsmath (or mathtools that $\supset$ amsmath) that creates nice delimiters, while stix and stix2 create ugly delimiters. If in a documentclass[]{book} or in documentclass[]{...
user avatar
  • 847
-3 votes
1 answer
85 views

How can I write this equation with LaTeX

I am new here. I would like to type an equation with LaTeX but I could not produce what I want so far.. I tried this example: m[\dot{u} - vr + wq -$x_{G}$(q^2+r^2) + $y_{G}$(pq - \dot{r}) + $z_{G}$(pr ...
user avatar
0 votes
0 answers
26 views

How can I access the size of a subequation, or of a delimiter, in math mode?

I would like a macro that typesets delimiters as $\langle!\langle$ around math expressions. If I try \DeclarePairedDelimiter\angles{\langle\!\langle}{\rangle\!\rangle}, I don't get the right size for ...
user avatar
  • 198
1 vote
1 answer
85 views

How to pass an argument to lua tex.print with maths

I want to create a blank exercise, in which answers can be text or mathematical expression, and to have below a list of all answers in disorder. In the MWE i made with LUA, the text appears below as ...
user avatar
1 vote
2 answers
146 views

How to use latex without install any package to type some physical notation?

Recently, I am a physics master student and I find the Typora is a good app to take notes from lecture, writing critique and summarize and organize ideas. However, I find that Typora does not support ...
user avatar
1 vote
1 answer
93 views

Big Brackets not working

I'm not sure why, but $$Cov(X,Y) = E\left((X-\mu_X)(Y-\mu_Y)\right)$$ doesn't seem to give me big brackets.
user avatar
  • 13
2 votes
2 answers
308 views

Nested inline math for new command with argument

There exists some consensus on the fact that one shouldn't use $...$, \(...\) or \ensuremath inside of newcommand (or NewDocumentCommand, ...) definitions to wrap passed macro arguments that are to ...
user avatar
1 vote
0 answers
30 views

Wrong baseline for subscript of paired delimiter

I'm using \DeclarePairedDelimiter from the mathtools package to create a paired delimiter \DeclarePairedDelimiter{\norm}{\lVert}{\rVert} but I want the same baseline for the subscript with and without ...
user avatar
  • 139
1 vote
1 answer
81 views

Different ⟨,⟩ symbol (scalerel issue)

My teacher uses angle brackets ⟨,⟩ both for inner product and for linear combinations. I'd like to use different, but similar symbols for this scope: so I wrote \documentclass{article} \usepackage{...
user avatar
1 vote
0 answers
53 views

Conditional delimiting parentheses in macro of "function evaluation"

I defined the following macro: \newcommand\evalf[3]{\left.#1\right\vert_{#2}^{#3}} It simply types the "evaluation bar" when computing integrals (inter alia). Now, typesetting \evalf{\frac{...
user avatar
  • 1,359
1 vote
0 answers
16 views

Changing the pretty-printing of delimiters in a listings language

In my listings language I have commentstyle=\color{red} morecomment = [n][commentstyle]{(*}{*)} So comments are written (* df *) in the tex file and they turn out like . These thick, centred asterisks ...
user avatar
  • 279
3 votes
2 answers
128 views

Spalign package: the use of square brackets with the borders

I am curious, since I have done several tests, how to set up the square brackets for the first matrix when I use the border with spalign package. I have seen this question and....actually I am not ...
user avatar
  • 46.3k
1 vote
1 answer
58 views

hyperref and imakeidx, custom delimiters

Suppose I want to replace the delimiters between pages in my index, so that instead of commas I use semicolons. The following code works well. \documentclass{article} \begin{filecontents}{\jobname....
user avatar
  • 20.1k
8 votes
2 answers
250 views

Drawing absolute value bars around a fraction with different height of numerator and denominator

I would like to typeset the absolute value of a fraction, e. g. with absolute value bars that are shorter at the bottom, like in Is there any way in LaTeX to achieve this rather than the first ...
user avatar
  • 183
5 votes
2 answers
219 views

How to Produce an Adjustable-Size Opening or Closing Curly Brace for Plain Text Only

I would like to be be able to add an adjustable-size curly brace (either opening or closing but not both) to ordinary text; for example, I have searched the archives of this site and found several ...
user avatar
  • 5,285
1 vote
2 answers
83 views

math operator spacing when used with delimiter modifiers such as \left \right, \big \Big etc

I noticed that using any delimiter modifiers like \left( \right) or \big( \Big( etc after a math operator like \cos inserts a small horizontal space. This question suggests that one simply not use ...
user avatar
  • 1,597
2 votes
2 answers
58 views

Problem with formatting expectation using a command [duplicate]

Here's the minimal example \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amssymb} \newcommand{\bbE}[1][X]{\mathbb{E}\left[#1\right]} \begin{document} Working: $\bbE[XY]$ Broken: $...
user avatar
  • 21
2 votes
2 answers
161 views

How to be consistent with delimiters in mathtools

I'm trying to create a few commands to handle conditional probabilities. So far I am using the mathtools DeclarePairedDelimiter family of commands. Also, as far as I am aware, mathtools does not allow ...
user avatar
0 votes
1 answer
78 views

Double subscript?

I am examining a way to adjust the size of nested delimiters automatically. This gives 'double subscript': \documentclass[a4paper, 12pt]{article} \usepackage[english]{babel} \usepackage{amsmath} \...
user avatar
1 vote
1 answer
113 views

How to write this xparse code more elegantly?

I'm currently trying to write a command using xparse, which translates into \A \A{Test} \mathbb{A} \mathbb{A}(Test) Also the full functionality of paired delimiters should work (\A[\Big]{Test} or \A*...
user avatar
2 votes
0 answers
70 views

More aesthetic norms, absolute values, parentheses, etc

This is nothing too important, and I've decided to make all three questions into one because they are more or less related. Sometimes when I type math equations, I find them not as beautiful as I ...
user avatar
  • 227
10 votes
3 answers
373 views

Why does using \biggl <stuff> \biggl not throw an error?

I consider myself a recovering user of \left...\right and stumbled onto this issue today. I have a \virtualparens command that puts light gray parentheses around its argument. I can provide optional ...
user avatar
4 votes
2 answers
178 views

Use \left( and \right) in mhchem

When I try to use the \left( and \right) commands in a chemistry equation, using mhchem, I get multiple errors. It is also not possible to use \bigl( or similar. For example, the following: \...
user avatar
  • 169
0 votes
1 answer
85 views

How to define a function that determines the argument without a delimiter?

Question: Is it possible to define a function, e.g. \myFunction, that does not require delimiters, that would consider the first string after its own name to be its argument? e.g. \myFunctionfoo (or ...
user avatar
  • 1,597
0 votes
0 answers
25 views

Text delimiters [duplicate]

Are there characters in latex for separating text? To place where one thought ends and another begins
user avatar
2 votes
2 answers
111 views

How to span \left\{ and \right\} over multiple alignat columns? [duplicate]

I would like to specify two very similar equations underneath each other, and align them at some points using the alignat environment. My code so far: \begin{alignat}{3} D_s &= \{ (s_1, s_2)\quad ...
user avatar
  • 21
2 votes
4 answers
188 views

How to get what is before the next '[' or ']'

Given next LaTeX source code \mymacro blablabla[ lorem ipsum \mymacro blablabla[ lorem ipsum ] etc \mymacro blablabla] lorem ipsum \mymacro blablabla] lorem ipsum [ etc How would I define \mymacro ...
user avatar
0 votes
0 answers
41 views

Create new delimiters

I would like to define new sets of delimiters for my document, but I cannot use packages like fdsymbol or MnSymbol because conflicts arise (I'm already using too many fonts). Specifically, I'm ...
user avatar
  • 335

1
2 3 4 5
9