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
1 vote
1 answer
55 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
  • 54.4k
0 votes
0 answers
56 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
170 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
54 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,305
7 votes
1 answer
189 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
  • 276
0 votes
0 answers
48 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]{(...
richardIII's user avatar
4 votes
3 answers
130 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
  • 227
2 votes
2 answers
270 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
58 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
  • 411
1 vote
1 answer
55 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
  • 715
1 vote
1 answer
68 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
202 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
81 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
166 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
  • 10k
1 vote
1 answer
44 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
127 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
95 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
57 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
32 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
66 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
0 votes
0 answers
29 views

Lualatex and mathtools warnings [duplicate]

I just moved from PDFlatex to Lualatex and I have warnig messages after compilation. Here is a MWE: \documentclass[10pt,a4paper,french]{article} \usepackage{mathtools} \usepackage{babel} \usepackage{...
Didier's user avatar
  • 1,321
1 vote
1 answer
43 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
53 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
0 votes
0 answers
37 views

Set interpretation with break line

I want to write the following set \begin{align*} \{ d \in \mathcal{D}^* | \begin{split} F(S_1,\ldots,S_k) \land \bigwedge_{i = 1}^k S_i = \set{ n \in \N ; \varphi_i(d(n)) } \land \\ \exists \overline{...
user1868607's user avatar
1 vote
1 answer
140 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
75 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
114 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,701
1 vote
0 answers
70 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
75 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
106 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
187 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
118 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
76 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
220 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
93 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
112 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
92 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
99 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
46 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
64 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
229 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
263 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
  • 7,964
1 vote
2 answers
43 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
177 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,601
5 votes
1 answer
81 views

Reproduce a Snippet from a Japanese Learning book (using rcases?)

I use Anki, which supports generating LATEX images for usage during study sessions. I would like to reproduce this snippet of text: I have been trying to drink from the firehose that is Latex for 2 ...
MamboDee's user avatar
4 votes
1 answer
65 views

strange extensible arrows with kpfonts

The extensible arrows from amsmath/mathtools do not give proper spacing or symbols when used with kpfonts. Here's the correct behavior with Computer Modern. \documentclass{article} \usepackage{...
mbert's user avatar
  • 4,226
3 votes
1 answer
74 views

Align to the right second and following lines of a group of long equations

following the chat messages of yesterday I open a question on the main site. So I need to write long equations, and for readability I prefer to use multline and multlined over align. The equations are ...
john's user avatar
  • 163
0 votes
1 answer
143 views

"align" and "flalign" undefined even when amsmath and mathtool packages are already included

I'm trying to align two equation on the same line, both sharing the same label as: \begin{falign*} \begin{equation} \rho(\mathbf {r'}) = -\nabla \cdot \mathbf M(\mathbf {r'}) \qquad \text{and} \...
Valeria's user avatar
  • 11
2 votes
0 answers
64 views

Including mathtools changes page layout with XeLaTeX and LuaLaTeX

I have a package s5paper (below) not written by me that sets up a Swedish paper format S5 with a page layout with margins and such. But when I build with XeLaTeX or LuaLaTex the page layout changes ...
Fredrik P's user avatar
  • 1,418

1
2 3 4 5
11