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

learn more… | top users | synonyms

20
votes
3answers
316 views

How to get the cases brace to be a link

I copied the cases code form amsmath.sty and tried to wrap the \lbrace within a macro and added a \left. to get this to compile. This of course loses the size info so the brace is not the correct ...
4
votes
1answer
62 views

How to do an equation correctly if the formula won't accept it?

I do have two formulas in my text and the only way I could make them work is in a way with a lot of escaping commands. Now the formula looks correct but whenever I try to add an equation to make it ...
3
votes
1answer
44 views

Vanishing math font styles in unicode-math due to a mess of mathtools, mathtt and using math fonts with ranges

I’m using TeXLive 2015. Okay, so I have some sort of poltergeist in the following code. I compile it with either XeLaTeX or LuaLaTeX. \documentclass{article} \usepackage{ fontspec, % mathtools,...
1
vote
2answers
87 views

Beamer Presentation compile error

I'm trying to do a presentation doing a Beamer template. I've loaded the following packages: \usepackage{graphicx} \usepackage{booktabs} \usepackage{bm} \usepackage{mathtools} \usepackage[utf8]{...
3
votes
1answer
42 views

Making my equation flush left

I am trying to make the first 3 lines of this equation flush left. How can I do so? Also, is there an easier way to enter the parentheses and have the size I want? If I don't use the \left( and \right ...
0
votes
1answer
41 views

Bumpy / uneven arrows in mathtools, mhchem, etc

This is very nitpicky, but in using \xrightleftharpoons in mathtools, the arrows it outputs can look rather uneven or bumpy: This is, of course, particularly visible for long arrows. It happens ...
2
votes
1answer
22 views

Bad math environment delimiter error

I want my math equation aligned at the center BUT!! \item Vo is calculated as shown: \begin{equation} Vo = (1 + R1 \(\div\) R2) + (Iadj \(\ast\) R2) \end{equation} Because Iadj ...
2
votes
2answers
61 views

Combine several math symbols in one symbol properly

How to put several math symbols together in one and make it work as a single math symbol? It should be invulnerable to font size and scaling. For example I want to have this weird symbol: and I ...
2
votes
1answer
46 views

\DeclarePairedDelimiter with a name that is already defined [duplicate]

How do I introduce a paired delimiter with \DeclarePairedDelimiter from mathtools, if the name that I want to use for the delimiter is already declared by some other package? For example: \...
2
votes
1answer
41 views

Make cramped style ignore non-sub- and superscripts

The mathtools package provides the wonderful \cramped command to force a cramped style for sub- and superscripts. Maybe it's a bad habit, but I tend to wrap entire inline formulas in that command when ...
3
votes
0answers
114 views

XeLaTeX: mathtools, unicode-math and \text spoil \mathtt

I work on a big XeLaTeX document and encountered a rendering bug(?) with my MiKTeX installation (all packages are updated as per April 10, 2016). Here is a minimal example: \documentclass{article} \...
0
votes
0answers
67 views

Binom/frac the way I need them

I have been trying to get this equation to work in my Latex file for over an hour now and I wasn't able to get it to look the same way. Can anyone help me and let me know what the correct commands ...
3
votes
1answer
41 views

Left-right spacing of parentheses with DeclarePairedDelimiter

I know that \big and similar commands cause an incorrect spacing between the delimiter and their contents, and they should be replaced with \bigl and so on. I've defined some commands with \...
3
votes
5answers
80 views

Align vdots in equation

I want my vdots to fall under the expressions and not at the end as its now. I found solutions online for equations by using &=, but this is not applicable for me because I don't use the equal ...
2
votes
1answer
61 views

error: tipa in combination with \DeclarePairedDelimiterXPP

I would like to use phonetic spelling and found the tipa package. Somehow it seems to produce an error combined with a command I use to set conditional probability distributions: \documentclass{...
2
votes
2answers
113 views

Installing Mathtools package in TexMaker

I'm a newbie...and have started using TexMaker recently. I use it pretty sporadically (so I'm no expert). I found the following error while trying to install the package mathtools: LaTeX Error: File `...
4
votes
4answers
284 views

\norm symbol have different sizes in equation

in the MWE below, the norm symbol appears in different sizes in the denominator like this: I would like the \norm lines to be the same length in the denominator. Thanks for your help. Here is the ...
2
votes
1answer
90 views

Wrong to delete/replace equation by using changes package

I am using changes package to check the changing in my latex file. For changing in sentence, it works well. However, it showed some wrong/unexpected result when I change equation. This is my problem ...
4
votes
1answer
37 views

Is there a way to set the default alignment for mathtools matrices?

I have a lot of mathtools matrices in my document that require right alignment (and others that have other alignment): \begin{bmatrix*}[r] 1 & 0 & 0 \\ 7 & 1 & 0 \\ \end{bmatrix*} ...
0
votes
1answer
21 views

Erroneous nesting of equation structure & Extra }

I do not know what is wrong with my code I serve the web but could not find why I am having lots of errors in this small code. Please someone help \documentclass{article} \usepackage{mathtools} \...
2
votes
0answers
33 views

adjust length of \leadsto arrow to the text above [duplicate]

I am having really hard time to figure out how to adjust the length of \leadsto arrow in order to match the text above it. The command I am using is \newcommand{\transitb}[1]{\stackrel{#1}{\...
2
votes
2answers
91 views

Horizontal positioning of vertical arrows between lines in an alignment

I'm trying to get a construction like \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \begin{align*} a &= b \\ &\Downarrow \\ a &= c \end{align*} \end{...
5
votes
2answers
435 views

Best Practice: Package for Mathematical Documents - amsmath and Beyond

I am aware that best practice questions are not always appreciated since there there's not "one size that fits all". I am going to give a LaTeX introduction for phd students at my company. All of ...
0
votes
0answers
8 views

how to refer to an equation so that its label appears with mathtools? [duplicate]

I am using showonlyrefs=true with mathtools, so only references with refeq actually appear in the document. However, there is one case in which I want to have an equation include a (x.y) label, even ...
2
votes
1answer
58 views

Force the numbering of a specific equation when mathtools showonlyrefs is true

In order to don't waste time in adding/removing *-caracters to number or not equations, I use \mathtools{showonlyrefs=true} in the preamble. Nevertheless, sometimes I'd like to number unreferenced ...
0
votes
1answer
31 views

Limits set with \mathclap are invisible in final pdf

I have a strange problem when typesetting sums, integrals etc. with long limits. Using the \mathclap command from mathtools, I want to type something like this $ A = \int\limits_{\text{a very long ...
6
votes
1answer
83 views

Purpose of DOTSB in definition of \iff

What exactly is the purpose of the \DTOSB in the definition of \iff? There is a mention in Is there a left-handed equivalent of \implies? that the \DOTSB makes \iff "dots aware". But, when I try to ...
4
votes
1answer
81 views

Reference equations with \eqref while using different tag forms throughout document

I'm trying to reference equation by \eqref when I use different tags form throughout document, but the output can't display the tag form that I want. As mentioned in mathtools package usage, "be ...
2
votes
1answer
130 views

Vertical space command which is between \intertext and \shortintertext

Is there a way to define a command like \notsoshortintertext with two parameters to define the vertical space before and after it? The problem I have is that \intertext is to wide on a specific page ...
0
votes
0answers
22 views

How to typset $:\iff$ (logical equivalence)? [duplicate]

How shall I typeset ":<=>" in Latex which means "is logical equivalent"? After typing A :\iff B I get Comparing it with A \coloneqq B (cf. How to typeset $:=$ correctly? ): We see that there ...
6
votes
3answers
183 views

Cause DeclarePairedDelimiter to switch starred and nonstarred versions

I've made lots of use of the answer here, which shows how to switch the starred and nonstarred versions of a paired delimiter command (causing the regular version to automatically size the delimiters)....
3
votes
2answers
110 views

Overbrace and superscripts

Using pdflatex, the command $e^{a\overbrace{+b+c}}$ results in a bigger size font of the part +b+c under the brace. If I do: $e^{a\overbrace{\scriptstyle +b+c}}$ the size of +b+c is fixed but ...
2
votes
1answer
79 views

How to write a particular mathematical expression

I am trying to write an equation which is: Now wrote something like this: $\Delta_w_{k} = p\Delta_w_{k-1} + \Alpha_p$ I wrote it partly as I wanted to check whether I was doing the right ...
5
votes
1answer
94 views

multlined breaks \substack?

I have some long equations to deal with that don't fit into one line, and love the multlined-environment from mathtools to fit them into (e.g.) an align-environment, particularly if I want to package ...
1
vote
1answer
48 views

Foonotes in multlined equations inside minipages

I am having the exact same problem as describe in this question. Unfortunately, however, the solutions listed there do not seem to work for the multlined environment as well. A MWE is the following. ...
2
votes
0answers
116 views

breqn and \coloneq

The breqn documentation says (pg. 10) • The notation := must be written with the command \coloneq. Otherwise the : and the = will be treated as two separate relation symbols with an “empty RHS” ...
0
votes
0answers
26 views

Why gap in linenumbering with this Math case? [duplicate]

Code where I follow a piece of advice from this answer How to show linenumbers for IEEE proof as one column? \documentclass{article} \usepackage{mathtools} \usepackage[mathlines]{lineno} % http://tex....
4
votes
1answer
110 views

automatic numbering of labeled equations

Since autonum doesn't play nicely with cleveref (nor does the mathtools automatic numbering option work for me), I'm looking for a simpler solution. I'd like equations to be numbered automatically if ...
4
votes
1answer
82 views

Subscript overlap issue with \mathclap

I wanted to use \mathclap (from mathtools) to make more compact the appearance of \documentclass[12pt]{report} \usepackage{mathtools} \begin{document} \[ \lim_{(x,y)\to (0,0)} f(x,y) \] \end{...
5
votes
1answer
65 views

\newcommand and \prescript aren't working together

The code \newcommand{\AMod}[1]{\prescript{}{#1}\text{Mod}} \AMod{A} causes the following error: ! Argument of \text@ has an extra }. The error does not occur when I replace the \prescript ...
12
votes
1answer
454 views

mathtools brackets larger than \Bigg

I'd like to use the syntax of the mathtools package to generate brackets larger than \Bigg. One can create larger brackets than \Bigg of specified size using About big parenthesis larger than Bigg ...
2
votes
1answer
253 views

In MikTeX, `mathtools` package not found even if it is installed

I have installed mathools package from MikTeX packahe manager (both normal and admin). However, MikTeX still tries to find it in the mh bundle and does not find it as a separate package. How do I ...
3
votes
1answer
137 views

Intertext causes overfull hbox in align* environment

\documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} a & =b & & \text{if } \begin{dcases*} ...
2
votes
1answer
159 views

Using TEX in Mathtype

I use Mathtypeto insert mathematical equations in MS world. Today I understood that there's no built-in symbol for $\mathscr(F)$ in MathType so I searched for a way of using LaTex codes in MathType. ...
2
votes
0answers
87 views

How to install mathtools in Texworks

I would like to install mathtools in Texworks on windows 7. How can I do this task?
9
votes
5answers
883 views

How to change all \vec{} to \bf{}

I'm writing a paper and I used \vec{} to express all vectors. Now, I changed my mind and want to write them in bold letters using \bf{} for instance. Is there a fast way to change all that's been ...
7
votes
3answers
89 views

Vertical spacing in mathtools

When using mathtools with the option showonlyrefs I find a spurious vertical spacing. I have found a similar question but the issue there was a long equation, which is not my case. Consider the MWE \...
1
vote
0answers
259 views

Problem in installing mathtools.sty

After performing above procedure Permission denied: C:\Users\Sheetal\AppData\Local\MiKTeX\2.9\miktex/data/le\df2c24cb21984fa85003c1ecc818ff83.fndb is the error
0
votes
0answers
23 views

Can't install 'mh' in Miktex 2.9.5 [duplicate]

I'm having trouble with the 'mh' package installation to get at the mathtools. I just checked out the most appropriate link How to install mathtools package? but I get 'Error response from server: 404'...
6
votes
3answers
540 views

Centering in dcases environment

How would I go about centering the zero within the column for the following dcases MWE: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} T = \begin{dcases} ...