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
0answers
19 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
52 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
104 views

How to define loss function in Latex [duplicate]

I want to define my loss function as following picture How can i do this?
1
vote
1answer
35 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 ...
5
votes
2answers
115 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
24 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
36 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 ...
3
votes
2answers
63 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' ...
-1
votes
2answers
74 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
42 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
40 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} \...
5
votes
0answers
137 views

Spacing, delimiter, and Libertinus Math

I would like to have a command that stretches the common delimiters according to the content. The standard \sin\left( is known to have a bad spacing, the packages https://ctan.org/pkg/mathtools and ...
2
votes
1answer
31 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
51 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
50 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 ...
8
votes
3answers
823 views

mathabx + mathtools -> extremely odd underbrace behaviour… how to fix?

This following code produce very strange result: \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{amsmath} \usepackage{mathabx} \...
24
votes
4answers
14k views

How to break a long expression in the denominator of a fraction?

I used the split command to break my equation but I receive the error: ! Missing } inserted. <inserted text> } l. \end {split} The code in .tex file is as follows: \begin{...
3
votes
0answers
47 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}{...
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
1answer
38 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
312 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) \...
0
votes
0answers
52 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}...
7
votes
3answers
1k views

Mathtools: using substack to align limits

I want to align the limits of a sequence at the equal sign but have an optional modifier before the substack. When I add this optional modifier, the limits are distorted since the modifier is placed ...
2
votes
2answers
747 views

What does this error mean in Mathtools-colon?

I have not been able to produce the minimal example, but I get this error * LaTeX warning: "xparse/redefine-command" * * Redefining document command \oldstylenums with arg. spec. 'm' on line 128. ****...
0
votes
1answer
19 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
58 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
38 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
53 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
52 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
44 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
98 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
61 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
70 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?
2
votes
2answers
56 views

extensible \vzigzag

Below is some code adapted from the mathtools documentation. I'd like to have extensible versions of the \vzigzag command such that the second line in the command below works as expected. What would ...
1
vote
1answer
95 views

Splitting the denominator of fraction into more than two lines

I wish to split the denominator of the following fraction into more than 2 lines. For splitting into two lines, splitfraccan be used. But how to split the denominator into three lines? \documentclass{...
0
votes
1answer
70 views

How to typeset \left \right parenthesis in LuaLaTeX in 2019?

With pdflatex I often used \left( and \right) to scale the parenthesis of a function as in \[\exp\left(\frac{a}{b}\right) \] But this method was not perfect, because the code is difficult to read ...
4
votes
1answer
105 views

Which fixes from mathtools were merged to the AMS packages already?

mathtools aims to fix bugs and problems with the AMS package set. Quote from the AMS site http://www.ams.org/publications/authors/tex/amslatex: In 2016, LuaTeX version 1 was released, and ...
2
votes
2answers
78 views

Wrapping text with mathclap

How can I wrap the text from \mathclap so that the text doesn't spill over like the picture? \usepackage{mathtools} \makeatletter% From https://tex.stackexchange.com/a/419690/156344 \def\...
4
votes
3answers
711 views

Set the symbol horizontally \square (and more closer) using mtpro2

My question is very short and it is not a duplicate because I want the symbol \square with a better position using mtpro2 package which it is not perfect. Infact if I use the symbol \square for the ...
1
vote
1answer
38 views

How do I make a term more proportionate?

The following code: In order to find $A_{0}^1$: \begin{equation} A_{0}^{1} = \lim_{z \rightarrow -1}\dfrac{d^0}{dz^0}\Bigg[\dfrac{(z+1)z}{(z+1)(z-2)}\Bigg]=\lim_{z \rightarrow -1}\dfrac{z}{(z-2)}=\...
6
votes
2answers
407 views

Several mode to write the symbol of a vector

When I use the command \overrightarrow{...} I observe that the space between the two lines increases due to the presence of this command. I often use the command \widebar{...}, \bar{...} or \overbar{.....
0
votes
0answers
21 views

Bad environment delimiter in a seemingly simple case

I keep getting 'bad environment delimiter, extra $ inserted' here, but I cannot pinpoint the error. \documentclass[10pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage{...
2
votes
1answer
100 views

A best aesthetics to indicate the angle between two vectors

For my book I'm using this code with (mtpro2[lite] package) to indicate the angle between two vectors, \documentclass[12pt,a4paper]{article} \usepackage{newtxtext,newtxmath} \usepackage{mathtools,...
4
votes
3answers
733 views

Complex fractions

How to make this more adequate ('beatifuller' :))? 2 needs to be better shown as being in the power of n-1, but the current representation just smothers it. \frac{1}{1-\sum_{2}^{n} \frac{1}{{\frac{r}{...
0
votes
0answers
63 views

error “mathtools.sty not found” in ubuntu although it is there in the folder

I found that the file mathtools.sty is present in the folder: usr->local->texlive->2018->texmf-dist->tex->latex->mathtools But when I am trying to use the mathtools package on Texmaker, it gives me ...
1
vote
1answer
116 views

How can I denote column and row names in a matrix and align equations with that matrix?

I want to typeset a large matrix that represents a generalized case of something. I have difficulty doing the following: Typing a set of letters near columns and rows that identify them The matrix is ...
2
votes
3answers
82 views

Trouble with long equation in LaTeX

I'm using the following packages: \usepackage{mathrsfs} \usepackage{mathtools} \usepackage{amsmath,latexsym} in order to write the following equation. \begin{eqnarray*} \frac{\partial\mathscr{L}}{\...
0
votes
1answer
84 views

Align doesn´t align equations at equal sign [closed]

I´m trying to align multiple equations below each other using align. However the equations are aligned at the right end instead of centered and aligned at the equal sign. My Latex code looks like ...
1
vote
1answer
37 views

How to ensure the statement about 'a' does not become centered and moved from “For every”

I wrote this in latex and the 'a' contained in (0.1) became centered and I need it to remain part of the sentence. Please help if possible. Thank you.
4
votes
3answers
202 views

\adjustlimits for more than two consecutive operators

I know I can use \adjustlimits to align limits of two consecutive operators. Is there any way to align limits of more than two consecutive operators? For example, think of the case \begin{equation*} ...