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
0
votes
1answer
29 views

Restoring missing space before large parentheses in `newtxmath`?

As shown by the difference between the two lines of the image below, for sufficiently large pairs of parentheses in newtxmath, the space in front of the left parenthesis disappears. This results in ...
3
votes
2answers
71 views

“Missing $ inserted” error when using “cases” inside an equation environment

I have the following piece of latex code \begin{equation*} G(z,w) = \begin{cases*} \frac{\rho (g_{\bar{\lambda}}(z),g_{\bar{\lambda}}(w))}{\rho (z,w)} & for z \neq w \\ |f'|_{\...
0
votes
1answer
23 views

Environment bmatrix undefined. \begin{bmatrix} in Latex

I've been using this thisspringer format latex document and wanted to add a matrix in the paper and I've been bumping into this error for a while now. \documentclass[a4paper]{article} \usepackage{...
1
vote
3answers
44 views

subscripted matrices operation

I need to manage how to work with several matrices in line, each one with its own left and right subscripts (like in the image). \prescript suited me for a single matrix, but didn't work with 2 ...
2
votes
2answers
51 views

Aligning and line-breaking a set of long equations in both single- and two-column modes with proportional vertical spacing

For the following set of long equations, how to 1- aesthetically align and line-break them in a single- and two-column modes without crossing the single column dedicated space and 2- separately ...
0
votes
1answer
27 views

How to properly halve the inter-line distance in a math block environment

... of amsmath or mathtools? In other words, how to properly halve \jot? Options: \setlength{\jot}{.5\jot\relax} \setlength{\jot}{\dimexpr.5\jot\relax} \setlength{\jot}{\dimexpr\jot*.5\relax} \...
1
vote
1answer
16 views

repair bad vertical spacing of underbrace label when using newtxtext, newtxmath, and mathtools

Feeding \documentclass{article} \pagestyle{empty} \usepackage{newtxtext,newtxmath} \usepackage{mathtools} \begin{document} For an arbitrary $n\in M^B$ we have $\varphi_M(\underbrace{\langle 0\rangle ...
3
votes
2answers
54 views

align multiline equations with labels

I have multiple equations with different labels (see below for MWE) that I would all like to align while being able to reference them separately. I have the following code: \documentclass{article} \...
0
votes
0answers
22 views

Alignment of matrix entries using physics package

I'm looking for a way to achieve the same output (regarding the alignment of matrix entries) using the physics package - or simply a conformation that will work only with mathtools (like here). Either ...
1
vote
3answers
51 views

Inequalities are going beyond the text width

Two of the inequalities written below(the ones right after \vdots) are going beyond the margins. Below is the MWE: \documentclass[12pt,a4paper]{report} \makeatletter % these two slashes-commands for ...
0
votes
3answers
55 views

Is it possible to make an equation with a explaination pointing each variable? [duplicate]

I was curious if there is a way to do an explanation like the image below shows for a variable? Currently, I have been making legends after showing the equation.
0
votes
0answers
23 views

Unable to manually resize absolute value bars

I would like to manually adjust the size of my absolute value bars so I don't end up with expressions that look like this: As per what I've read around here, I tried to include \...
2
votes
1answer
27 views

mathtools \xleftrightarrow command does not centre text

I would like to have text (maybe a bullet, maybe something else) above a left-right arrow, I would also like that text to be centred. I would also like the arrow to grow with the text. MWE: \...
0
votes
0answers
43 views

undefined control sequence, again :/ 2.0

I'm pretty new to LaTeX, and using an android device for it. But still, I would like the error to be pointed, I'm still a newcomer to logfiles, and they didn't get as objective with this error. Log ...
1
vote
2answers
58 views

is align right [r] no longer supported using bmatrix (or pmatrix, or…)?

Recently tried to compiled some files that used to compile perfectly, but now, generates an error whenever I try to align elements within bmatrix (same for pmatrix, or Vmatrix, etc.), using [] as the ...
2
votes
2answers
70 views

How do I change the way the colon is typeset?

In math, I exclusively use the colon : for punctuation, i.e. in the sense of \colon (compare this question). Hence I would like to change the way : is being typeset, so that it resembles \colon. Is ...
2
votes
2answers
73 views

Problem with \vdotswithin

I want to typeset a system of equations and set vertical dots between two rows centered at the equal sign. vdotswithin from 'mathtools' should do exactly that, but for some reason the following code \...
0
votes
1answer
60 views

\showonlyrefs command leaves a blank space after an unreferenced equation

When I don't reference a question, a blank space appeared after the equation. MWE: \documentclass[12pt,reqno]{amsart} \usepackage{graphicx} \usepackage{amssymb , amsthm} \theoremstyle{plain} %...
3
votes
2answers
224 views

Stix2 displays wrong symbols

I just recently switched from Windows 7 tu Ubuntu 18.04. Bevor i was working on a TeX document which worked all fine. But after i changed the OS and set MikTeX up again the stix2 package was causing ...
0
votes
1answer
35 views

Redundant definitions involving ASL class and the mathtools package

The following minimal (non-)working example illustrates a clash between the Association of Symbolic Logic class file asl.cls (link here) and mathtools package (both somewhat derived from AMS LaTeX): \...
0
votes
1answer
110 views

How to write this in TeX [closed]

Hi, can you help me to do this task.
1
vote
0answers
23 views

\xRightarrow in \item[…] [duplicate]

I would like to put a \xRightarrow into a list instead of a bullet, unfortunately I get ! Argument of \\xRightarrow has an extra }. <inserted text> \par l.8 \item[$\...
5
votes
1answer
74 views

How does \smashoperator clip the space of limit scripts?

There already are question about how to smash math operator limits horizontally, e.g. Improving typesetting of sums with long limits, with the conclusion "use the \smashoperator command from the ...
0
votes
3answers
1k views

How to define loss function in Latex [duplicate]

I want to define my loss function as following picture How can i do this?
5
votes
2answers
145 views

How do put \overbrace across an (aligned) equals sign?

I want to have several equations aligned by their equals signs. At the same time, I want to put an overbrace (or bracket) over the left- and right-hand sides of the first equal sign to write a ...
1
vote
1answer
28 views

Redefine align to include SwapAboveDisplaySkip by default

I have several documents that I am looking to reduce redundant whitespace in and am looking to redefine align to include SwapAboveDisplaySkip from mathtools by default. Since I want to use it almost ...
0
votes
0answers
38 views

Function composition table [duplicate]

I want to do a simple function composition table with arrows drawn from different sets to sets. Like textbooks show functions by using "blobs" and arrows emerging from the blobs. Can someone help me ...
1
vote
1answer
54 views

Mathtools and Mtpro2 curly brace

In the mathtools package there is the dcases environment by which mathematical expressions are presented in displaystyle mode in each row of the case environment, as shown in the first picture. With ...
-1
votes
2answers
80 views

How to type some special mathematical expressions or symbols

I have a problem with typing some special mathematical expressions or symbols. They are 1: 2: 3: and I need a refined form of in which the \right> is typed better than it is.
3
votes
2answers
70 views

Aligning and spaces for negative numbers and fractions in a matrix

As the title says, when I am writing my code the fractions are a little too close to eah others. \documentclass{article} \usepackage{mathtools,amsmath,amssymb,amsfonts} \begin{document} \[ \left(...
3
votes
1answer
51 views

Fancy \Aboxed without redefining it

I'd like to define a fancy box in align environments while keeping the \Aboxed command as it is defined by default. What I got so far \documentclass{article} \usepackage{mathtools,tcolorbox} \...
3
votes
2answers
218 views

Norm with triple vertical lines using `DeclarePairedDelimiter`

I would like to declare a paired delimiter for a "triple norm". A answer to this question already exists (cf. Spacing between triple vertical lines), however, as I'm already using mathtools' ...
2
votes
1answer
49 views

automated arrow length

I am looking for an automated way to fix arrows' length in an aligned arrangement. There are two-level approaches, such as https://tex.stackexchange.com/a/413486/195378, where the length of the second ...
-1
votes
1answer
68 views

How to type this complicated fraction in latex? [duplicate]

As shown in the below screenshot, how could I type this complicated fraction for x_n in problem 5?
3
votes
2answers
73 views

multlined environment creates too much vertical space when used in tabular

I would like to break my formula in a table into two lines. It seems good to use multlined environment. But the formula in table appears with a huge vertical space between two lines. The desired ...
0
votes
1answer
45 views

How to define a bracket function that allows line breaking and auto-adjusts size?

I want to define a bracket function that allows line breaking and auto-adjusts the size of the bracket like the normal method did. By normal method I mean using \left\{\right\}. According to this ...
5
votes
3answers
317 views

Another solution to create a set with two conditions

With this MWE \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{newtxtext} \usepackage{newtxmath} \begin{document} \[ Y_{\alpha\beta}=\left\{\eta\coloneq\eta(x,t) \...
4
votes
0answers
54 views

Not usual vertical alignment between \partial symbol and command \frac

Starting from this MWE: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{newtxtext} \usepackage[lite]{mtpro2} %%%%%%%%%%%%%%%%%%%%%% New \partial \DeclareFontFamily{U}{...
5
votes
0answers
215 views

Spacing, delimiter, and Libertinus Math

The issue is possibly going to be reviewed once the version of TeX Live has been installed. I would like to have a command that stretches the common delimiters according to the content. The standard ...
16
votes
4answers
2k views

How to create a summation symbol with a vertical bar?

I am trying to create this symbol: I have tryed to use this: \documentclass{article} \usepackage{mathtools} \makeatletter \newcommand{\superimpose}[2]{% {\ooalign{$#1\@firstoftwo#2$\cr\hfil$#1\@...
0
votes
0answers
191 views

How use \DeclarePairedDelimiterX after \providecommand* for same command?

The package mismath includes the definition: \providecommand*{\abs}[1]{\left\vert#1\right\vert} After loading mathtools, I want to redefine \abs by: \DeclarePairedDelimiterX{\abs}[1]\lvert\rvert{#1}...
0
votes
1answer
40 views

Autosizing for expectation with additional index

I was trying to define a new command for an expectation which scales the vertical dash (in case of conditional expectation) and parenthesis to the argument, respectively. Additionally, I want to have ...
2
votes
2answers
65 views

How do I achieve this alignment of multiple equations?

Consider the following example: \documentclass{article} \usepackage{amsmath, amsthm, amssymb, mathtools, thmtools, unicode-math} \begin{document} \begin{align*} \hphantom{\Leftrightarrow}Lf&...
0
votes
2answers
44 views

mathtools package destroys wordwrap latex

I have a latex document, something like this: \documentclass[6x9]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[paperheight=9in,paperwidth=6in,top=0.5in,bottom=1in,right=0.75in,...
2
votes
1answer
60 views

Vertical alignment of left/right subscripts

Using mathtools's \prescript, the subscripts in $\prescript{}{n}X_m$ are not vertically aligned. The problem does not seem to appear when using ${}_n X_m$, but this is undesirable for other reasons. ...
1
vote
0answers
75 views

Define \norm command and work in long table

Edit: Solution \norm requires an argument. Thanks to the commenters for pointing that out to me. Orig question: I have a \norm command defined that is simply the \lVert and \rVert symbols put on ...
1
vote
1answer
73 views

`evaluate at` delimiters

I am using the \DeclarePairedDelimiterXPP command from the mathtools package to declare some new delimiters, for which scaling can be turned on and off easily. Specifically, I want to declare the ...
3
votes
1answer
115 views

unicode-math + mathtools: sin, cos etc in mathitalic

Here it is my base file $ cat test_00.tex \documentclass{standalone} %usepackage{unicode-math} %usepackage{mathtools} \begin{document} $\sin(00)$ \end{document} $ and I have also the files test_01....
3
votes
1answer
103 views

Resolution of a problem concerning calligraphic fonts such as \mathcal or \pazocal

Although the question may seem very simple, I want to ask it because I wish to learn. I use a lot of packages for my book and unfortunately someone goes into conflict. For example, I can't use bm ...
2
votes
1answer
81 views

Enumeration indicator for number of arguments of a function

I'm trying to replicate this style of indicator for dotted enumeration as suggested below Can some one help me with this one?

1
2 3 4 5
8