Skip to main content

Questions tagged [mathtools]

{mathtools} is an extension package to amsmath. It provides bugfixes and adds useful tools for mathematical typesetting.

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

Avoid underset text overlaping

As you can see, underset on right hand becomes overlaped. How can I avoid this? This is my MWE \documentclass[14pt]{article} \usepackage{amsmath} \usepackage{mathtools} \newcommand{\lunderset}[2]{\...
user3204810's user avatar
  • 1,539
2 votes
0 answers
23 views

Erroneous \underbrace output with libertinus and mathtools (only lualatex and xelatex) [duplicate]

I'm using \underbrace and when I add mathtools to the package list, I get an erroneous output: An MWE to reproduce this is: \documentclass{article} \usepackage{libertinus} \usepackage{...
pschulz's user avatar
  • 1,385
3 votes
3 answers
180 views

Defining a functional map

I am trying to define in latex the following function: We also want everything to be aligned. I tried including another align environment but it seems this is not possible: \begin{align*} \Psi: C([0,...
mathex's user avatar
  • 135
4 votes
1 answer
119 views

Superfluous space at start of aligned inside multlined

In the following LaTeX document, which uses the aligned environment inside multlined, there is an superfluous space after the opening { compared to when multlined is replaced by split: \documentclass{...
usertcl's user avatar
  • 85
1 vote
3 answers
123 views

Evaluate fractions in Binomial coefficient command

I'm trying to create a new command to automatically compute fractions and differences while displaying a Binomial coefficient \usepackage{mathtools} \DeclarePairedDelimiter\braces{(}{)} \...
Emanuele Nardi's user avatar
4 votes
2 answers
151 views

Aligning equal signs and brackets at the same time

I wish to have the following . This is the code to generate the image above. \begin{align*} \vec{a}\dvec{B} = \vec{a}(\vec{b}\wedge\vec{c}) \\ \vec{a}(\vec{b}\wedge\vec{c}) = (a_x\hx + a_y\hy ...
Octonions's user avatar
0 votes
2 answers
93 views

Mathematical formula: max

How to write the following using latex? Unfortunately, $\max_{\beta in \mathbb{N}^d}_{|beta| \leq k}$ doesn't appear like this, we want the terms under max to appear just like in the picture
mathex's user avatar
  • 135
1 vote
1 answer
62 views

Space for the cases/matrix environment and use of \dfrac into \[...\]

I have this MWE: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \begin{document} \[ \begin{cases} \frac{\partial f}{\partial x} =& 2x(1 - y)=0 \iff x = 0 \quad \text{o} \...
Sebastiano's user avatar
  • 56.7k
0 votes
0 answers
61 views

Problem with widehat command in lualatex

I have a problem with the widehat command in lualatex. I have loaded the lualatex-math package that fixes some of the problems. Here is MWE. \documentclass{article} \usepackage[fleqn]{amsmath} \...
S. Venkataraman's user avatar
4 votes
4 answers
173 views

Typesetting and alignment of optimization problem where objective value row is excluded

I want to format my optimization problem like this (see picture for results): \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathtools} \DeclareMathOperator*{\minimize}{...
latex_is_hard's user avatar
3 votes
1 answer
70 views

XeLaTeX + mathtools + unicode-math missing symbols `\Coloneqq` and `\models`

Sorry, but I am browsing since morning around and try to find a solution for that issue. I have a beamer presentation with moloch theme and want to use the Fira font but only for the mathcal part I ...
Arne's user avatar
  • 1,390
7 votes
1 answer
196 views

Align :=, =, and =: symbols

What is the best way to get the symbols \coloneq, =, and \eqcolon (provided by package mathtools) to align in a nice way (so the equals part of each is aligned) in an align environment? I can get the ...
postylem's user avatar
  • 286
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
4 votes
3 answers
140 views

Arrow Label Size Issue in Tikz-CD

I am using the mathtools package in combination with the tikz-cd package to decorate an arrow label with an overbracket. However, using the \overbracket within the arrow labeling messes up the ...
mrtaurho's user avatar
  • 237
2 votes
2 answers
303 views

How can I write down this symbol for volume in latex?

I want to write down: in a mathematical formula. Can anyone help please?
Bastam Tajik's user avatar
0 votes
0 answers
69 views

The order of loading newtxtext, newtxmath and mathtools?

The newtxmath documentation says that it loads amsmath now. However, mathtools also loads amsmath. What should the order of the packages better be then: \usepackage{newtxtext} \usepackage{mathtools} \...
AlMa1r's user avatar
  • 541
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
1 vote
1 answer
71 views

Line spacing between lines containing inline math

Honestly I give up on this. I searched for a solution to this for so long, but nothing seemed to work (well) for me. I just want my equations to no longer look squashed together, referring to how ...
Andy3153's user avatar
  • 361
4 votes
1 answer
223 views

unicode-math and mathtools symbol naming clash doesn't seem to be an issue?

I got an error from Overleaf/LuaLaTeX saying that i have the following errors: Package unicode-math Warning: Using \overbracket and \underbracket from mathtools' package. Use \Uoverbracket and \...
Ferrius Undermine's user avatar
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
4 votes
2 answers
180 views

How to get a \widetilde with FiraMath?

It seems that widetilde is not available with FiraMath. \documentclass{standalone} \usepackage[math-style=TeX]{unicode-math} \usepackage{firamath-otf} \begin{document} $\widetilde{G_{+, 0}}$ \end{...
cjorssen's user avatar
  • 10.1k
1 vote
1 answer
48 views

How can I align on nested braces (NEWBIE)

In texStudio basically the following code returns the expected result: \documentclass{article} \usepackage{mathtools} \usepackage[japanese]{babel} \begin{document} \[ \begin{rcases} \...
Ben Engbers's user avatar
2 votes
1 answer
142 views

Restate all theorems & definitions?

I am new to this community, and unfamiliar with advanced latex use (e.g. creating packages, custom build scripts, post-processing scripts) so I apologize if my question seems unusual or overly simple. ...
davidleejy's user avatar
4 votes
1 answer
96 views

Removing space generated by box of multiline sum subscript

I have the following equation \begin{equation} \begin{split} \sum_{\mathclap{\substack{T_i \in \\ \{T_1,T_2, T_4,\\ T_5,T_6,T_7\}}}} T_i W^i_\mu &\equiv T_{+}W^+_\mu + T_{-}W^-_\mu +\\ &+ T^\...
GaloisFan's user avatar
  • 195
1 vote
1 answer
59 views

Box with a line in the centre

How can I do this for box multiplication in LaTeX?
riya 's user avatar
  • 11
0 votes
1 answer
36 views

Unnumbering corollaries

I would like to number the corollary of the theorem “theorem 1.2.3.” such as “corollary 1.2.3.” Instead of “corollary 1.2.3.1.”. How can I do? I’m using amsthm package.
Claudio Costantini's user avatar
-1 votes
1 answer
67 views

How can I write this type of "V" in latex in the image below [closed]

How can I write this type of "V" in latex
Memristor's user avatar
  • 119
1 vote
1 answer
44 views

Combining tabularray and aligned environment

I am trying to get the following to work MWE: \documentclass{article} \usepackage{tabularray} \usepackage{mathtools} \newcommand*{\tn}[1]{\textnormal{#1}} \newcommand*{\Utevolv}{\ensuremath{\hat{\...
Martin Dagleish's user avatar
1 vote
2 answers
55 views

Wrapping huge equation without template dependencies

I am trying to reproduce this huge equation and have it wrap around like so: https://arxiv.org/pdf/1907.09842.pdf (equation (3.18) on page 18 of the pdf file) Here is what the code looks like from ...
CarP24's user avatar
  • 175
1 vote
1 answer
179 views

\xhookrightarrow "undefined" even though I have mathtools loaded [duplicate]

Edit: turns out this is a duplicate question. There's a conflict with another package that undefines the \lhook command: Conflict between mathtools and MnSymbol Pretty simple question, though I don't ...
Ethan Dlugie's user avatar
3 votes
1 answer
77 views

Include empty delimiter in `\DeclarePairedDelimiter`

I want to define a restriction operator \restrict{f}{X} which is capable of resizing in the style of mathtools's \DeclarePairedDelimiter options. For example: \restrict*{f}{X} should resize ...
Phrohlych's user avatar
  • 205
2 votes
1 answer
120 views

How to typeset this equation?

This equation from some math book, position 1 and position 2 is in the same column, I tried \begin{align} x_n&=\begin{aligned}[t] &\left(1 + \frac{1}{n}\right)^n = \binom{n}{0}\left(\...
yanpengl's user avatar
  • 2,721
1 vote
0 answers
76 views

Creating math symbols with links (mathtools)

I am trying to write a command that writes linkable mathematical symbols. In particular, I want to write something like the following but that could work with the package mathtools: \newcommand{\...
mathlover19's user avatar
1 vote
0 answers
79 views

How to discourage a page break without completely prohibiting it in a block of formulas?

Feeding \documentclass{article} \predisplaypenalty=0%%% that's what our class svmono.cls from a nonminimal example (not given here) does. \usepackage[helvratio=.9]{newtxtext} \usepackage[slantedGreek,...
user avatar
3 votes
2 answers
127 views

How to combine two lines into one line using closing brackets in a case environment with 3 lines?

For example, in LaTeX, I have three conditions in one "cases" environment. Then I could get a new condition from the combination of the first and the second conditions, so I want to use a ...
Hao Ren's user avatar
  • 33
4 votes
1 answer
217 views

Using \ifblank to check more than one parameter

I have been reading through mathtools' docs, and they provide an example that declared a paired delimiter that has a default behaviour if blank, using etoolbox: \DeclarePairedDelimiterX\norm[1]\lVert\...
TimeTravelPenguin'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
3 votes
1 answer
78 views

Different space above and below mathtools \intertext

Is there a command like \intertext or \shortintertext that has different vertical space above and below the "intertext"? It would be nice in situations such as a few of those in the example ...
Fredrik P's user avatar
  • 1,418
2 votes
2 answers
235 views

Trouble with \splitfrac{}{} from mathtools

I have trouble with the following code which stems from my somehow faulty use of the \splitfrac environment. Can someone help? \item $p_{(lon_i,lat_r,jul_a)} = \frac{1}{\splitfrac{1 + e^{-(\beta_0 + \...
RibbitRibbit's user avatar
0 votes
1 answer
109 views

Define coloneq (def) with redefined \=

For my own convenience, I tried to define some short-cut key for ``define'' as \usepackage{mathtools} \NewCommandCopy{\tmp}{\=} \AtBeginDocument{% \DeclareRobustCommand{\=}{\ =\ }% } \def\:={\ \...
Seung Hyeon Yu's user avatar
0 votes
1 answer
46 views

Spacing problem with subscripts by using math symbols within glossary

I have a problem by using glossary. E.g. i define a math symbol as follows: \newglossaryentry{spannungsvektor}{% name= Spannungsvektor, description=Spannungsvektor, sort=t, user1={$\...
Dr_Waan's user avatar
  • 21
2 votes
1 answer
132 views

alignment of subnumcases in the page

I want to label each case in cases so I used subnumcases environment. However, it seems like what is centered is the first letter, not the entire chunk. I made a MWE with the packages I need for my ...
Sam Bach's user avatar
0 votes
2 answers
93 views

Need to write an equation exactly in the same way as in the picture [closed]

I have written my research paper in Ms word, but now I need it written in Latex, I am writing an equation of brier score which is as in the attached picture, that is, the bracket I want to be bigger ...
Basheer's user avatar
  • 11
0 votes
1 answer
115 views

Why smash doesn't suppress the horizontal space of subscript with sum?

I try to understand the smash command, and I made a simple example : \documentclass{article} \usepackage{amsmath,amssymb, amsfonts, mathtools} \begin{document} \begin{equation*} \sum_{\...
mahaaaham's user avatar
0 votes
1 answer
49 views

Interaction of „Showonlyref“ and „Subequations“ Workaround?

A workaround suggested by Daleif (see below) solves the problem of incorrect numbering when e.g. one set of subequations is not referenced. However, if none of the equations of a specific set of ...
user288158's user avatar
0 votes
1 answer
68 views

Subequations in combination with showonlyrefs does not work

subequations in combination with showonlyrefs does not work. Is there a workaround. \documentclass[a4paper]{article} \usepackage{mathtools} \mathtoolsset{showonlyrefs=true} \begin{document} \noindent ...
user288158's user avatar
2 votes
3 answers
239 views

Multiline text above arrow or relation symbol

One way of writing text above an arrow symbol is to use \xrightarrow from mathtools: \documentclass[a4paper, 12pt]{article} \usepackage{mathtools} \begin{document} \begin{equation*} \dfrac{...
orion2112's user avatar
  • 145
9 votes
2 answers
266 views

mismath.sty bug?

With the mismath.sty package loaded, the following source causes error: ./mismath_paired_delim_bug.tex:14: Missing { inserted. <to be read again> \futurelet l.14 $\eqclass{0}...
murray's user avatar
  • 8,692
1 vote
2 answers
45 views

special vector denote by Zero having extra line

I want to show the vector of (0,0,...,0) by 0 that have extra line. How can I do it? I want to use this vector as special. so I use a lot of this notation. I currently denote the vectors $(0,0,\dots‎ ,...
Touba Parsa's user avatar
2 votes
0 answers
183 views

Very weird interaction between lineno and mathtools

The following: \documentclass{article} \usepackage{lineno} \modulolinenumbers[1] \usepackage{mathtools} \begin{document} \linenumbers Test, hi! \end{document} gives multiple errors about e.g., \...
Clément's user avatar
  • 5,651

1
2 3 4 5
11