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
15 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
42 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
35 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
42 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
45 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
28 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
75 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....
2
votes
1answer
40 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
43 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
47 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
61 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
61 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
88 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
53 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
636 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
36 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)}=\...
0
votes
0answers
19 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
66 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,...
6
votes
2answers
342 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{.....
4
votes
3answers
573 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
28 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 ...
2
votes
3answers
77 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
60 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
34 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.
1
vote
0answers
23 views

`\adjustlimits` does different things if different order

The MWE \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \[ \adjustlimits\lim_{x\rightarrow 1^-}\lim_{n\rightarrow\infty}\,\sum_{k=0}^n a_kx^k =\...
2
votes
1answer
56 views

Adding spacing in mathtools' `set` command

In the mathtools documentation, page 27, a command \Set* (along with \Set) is defined to stretch according to the large input inside: \providecommand\given{} \newcommand\SetSymbol[1][]{ \...
0
votes
1answer
25 views

insert a array (e.g. a stencil) inside an array (e.g. a tabular)

I would like to insert a array (e.g. a stencil) inside an array (e.g. a tabular), in a cell next to the formula. Is there a way to do it? \documentclass[a4paper, 12pt]{book} \usepackage{amssymb, ...
3
votes
1answer
60 views

In the figure form, adjust the whole size of “text” and “math” format at once (II): from \twocolumngrid to \onecolumngrid

This follows from a previous post In the figure form, how to adjust the whole size of "text" and "math" format at once?, In the figure form, how to adjust the whole size of "...
1
vote
1answer
18 views

Fixing the appearance of the vector while keeping pas-math and mathptmx in any order?

This is MWE. It works fine if I delete mathptmx. But I want to use that font as well. Please let me know if you find any solution for me. \documentclass{article} \usepackage{mathptmx} \usepackage{...
2
votes
2answers
88 views

Make paired delimiter with prefix for Re and Im

I'm trying to make a new command for something like this: \operatorname{Re}\left\lbrace\num{1+2i}\right\rbrace Because I'm using the mathtools package already I tried to do something like this: (And ...
6
votes
1answer
68 views

Missing space with DeclarePairedDelimiter

I’m trying to define an abs command for absolute values using DeclarePairedDelimiter from the mathtools package, but I’m running into some spacing issues. I’d normall write \sup_n \abs{a_n} defined ...
0
votes
1answer
42 views

How to kern kpfont integrals? [duplicate]

kpfont integrals have a lot of empty space both on the left and on the right ever with smashoperator: How do I kern the function "into" the integral and reduce the white space of the left document-...
1
vote
1answer
32 views

Problem with side by side equation tag and custom tag style

Consider the following MWE: \documentclass{article} \usepackage{mathtools} \usepackage{amsmath} \newtagform{brackets}{[}{]} \usetagform{brackets} \AtBeginDocument{\let\latexlabel\label} \...
1
vote
2answers
293 views

Combining itemize and aligned: first line to the left and remaining lines to the right

Does any know how I can combine itemize and aligned (with argument [t]) -- or another multi-line mathematical environment -- in order to obtain a multi-line equation whose first line is aligned to the ...
0
votes
1answer
40 views

ntheorem + showonlyrefs

I like the showonlyrefs option provided by mathtools. I also would like to use ntheorem. But they seem difficult to use together. Applying the various recommendations in the related manuals (including ...
0
votes
1answer
43 views

Separate labels in dcases lines and then reference to them [duplicate]

I use of mathtools package and dcases environment. Ideally, I would like to be able to write something like below: ‎\documentclass[12pt,a4paper]{article}‎ ‎\usepackage{amsthm,amssymb,amsmath,mathrsfs}...
3
votes
1answer
40 views

Reusing of DeclarePairedDelimiter in a foreach manner

I'd like to reuse mathtools DeclarePairedDelimiter in a foreach loop manner, but I have never done any low-level (La)TeXing before. Here is my code: \documentclass{article} \usepackage{mathtools} \...
1
vote
0answers
157 views

Left sub/superscript in exponents

I have a small problem with left sub- and superscripts. In my work, I have two regularly occurring indices, that should be distinct from one another. As I have to use exponents of some of these ...
0
votes
1answer
50 views

italic after math equation: how to solve (not solved with $) [duplicate]

I am not an expert with equations on latex. I have wrote these ones within a chapter of a book, but I missed how to write the label on the left with the equation number. Moreover, the text after the ...
4
votes
1answer
162 views

\splitfrac producing extra '1' characters

I am having the exact same problem as this (closed) question - but I have ideas as to what might be causing the problem in my case \documentclass[12pt,a4paper]{article} \usepackage{mathtools} \begin{...
4
votes
4answers
246 views

How to typeset an invisible paired delimiter, preferably using MathTools?

I'm trying to typeset the simplification/expansion of a fraction using the notation below, but I would like the numerator to be centered and the 5\cdot 4) to be to the left and above of the entire ...
3
votes
0answers
114 views

vertical alignment when using \underbrace for Matrix

I want to vertical align the underbrace symbol. It looks like now: supposed to be like MME: \documentclass{article} \usepackage{mathtools} \usepackage[no-math]{fontspec} \usepackage{unicode-math} ...
2
votes
0answers
26 views

Custom size delimters [duplicate]

I am in the situation where I want delimiters that are bigger that \big, but smaller than \Big (see example). \documentclass{article} \usepackage{mathtools} \usepackage[libertine]{newtxmath} \begin{...
1
vote
1answer
65 views

colortbl, multicolumn and settototalheight don't work together

I have a script that generates super-complicated tables, which need individual cells with coloured backgrounds. At the moment I'm using my own macro to generate the coloured cells, but I would rather ...
5
votes
2answers
131 views

pre-subscript alignment with tensor package

I am trying to typeset the hypergeometric function 2F3 with subscript 2 and 3. Specifically, I want the correct alignment of the pre-subscript 2, like in this example: \documentclass{article} \...
3
votes
1answer
71 views

\dots=\bot behaves in mathtools/amsmath differently than in pure LaTeX

Consider the following input: \documentclass{standalone} \usepackage{mathtools}%%% culprit. Same with amsmath \begin{document} The formulas of the form \(\dots=\bot\) and \(\bot=\dots\) can be ...
1
vote
1answer
24 views

Problem using \in within rcases

Consider the following MWE: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \label{eq:cond} \begin{rcases*} % this fails % ...
2
votes
2answers
91 views

Why won't my \mathrlap stay overlapping?

I've defined a \boxstar command as follows: \newcommand{\boxstar}{\mathrlap{\boxplus}\boxtimes} This looks quite nice on its own. However, when I have a line of boxstars and other symbols, the ...
5
votes
2answers
215 views

Labelled mapsto with two vertical bars

I would like to use a labeled mapsto (specifically, \xmapsto from \usepackage{mathtools}), but with two vertical bars (as in \Vdash from \usepackage{amsmath,amssymb}). I tried to adapt the answer ...
1
vote
1answer
61 views

Overwrite dcases* to work inside align (to use mtpro2 braces)

This is a direct follow-up question from my previous one: Overwrite matrix to work inside align (to use mtpro2 parentheses and braces). Although this question is self-contained, I encourage ...