Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mathtools]

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

0
votes
1answer
44 views

Align doesn´t align equations at equal sign [on hold]

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
31 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
15 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
22 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
23 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
43 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
14 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
68 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
54 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
34 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
26 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
180 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
26 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
19 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
36 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
46 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
39 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
99 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
229 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
72 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
24 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{...
0
votes
1answer
41 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 ...
4
votes
2answers
77 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
60 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
22 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
59 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
155 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
57 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 ...
6
votes
2answers
355 views

\mathbb not working in \underset

I'm trying to put \mathbb{R} in an \underset of \sup in the following way: \underset{x \in \mathbb{R}}{\sup} However this sequence does not render as usual. I use following libraries: \usepackage{...
1
vote
2answers
134 views

Why does not `\shortintertext` command work if we load `nccmath` after `mathtools`?

If you load nccmath after mathtools and use \shortintertext, you will get an error message "Package amsmath Error: Invalid use of \shortintertext". If you load nccmath before mathtools, the error ...
3
votes
2answers
188 views

When using tikz math don't stay below in environment

I was having a similar problem as shown here, but when I put the matrix inside a tikz block, the Example environment don't skip a line and put everything in the same line. As in the similar problem, I'...
2
votes
0answers
29 views

Strange behavior of mathtools with showonlyrefs

With the following code : \documentclass{article} \usepackage{mathtools} \mathtoolsset{showonlyrefs} \begin{document} \begin{align} A & = B \label{eq:first}\\ & = C \tag{a} \end{align} ...
2
votes
0answers
73 views

Reducing the line spacing of math environments that support multi-lined contents

I’m trying to reduce the line spacing of “math environments that support multi-lined contents” back to singlespacing in a onehalfspacing document. I’m using the setspace and mathtools packages. Added:...
3
votes
3answers
97 views

Spacing problems (overlap) with DeclarePairedDelimiter

I'm have a defined a couple of math delimiters via \DeclarePairedDelimiter, however, they seem to create some problems with respect to the spacing with some fonts. For example the following codes ...
3
votes
1answer
35 views

How can I align symbol plus by using \shortintertext?

I am trying to align the symbol plus with \shortintertext I tried \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} \shortintertext{We have} 1 + 2 + 3 + \cdots + n &...
5
votes
1answer
204 views

Customizing square brackets

I am trying to modify LaTeX's brackets (\cases) to make something like the one on the left: I could only find code for square box and brackets (\cases), but not for this particular variant on any ...
2
votes
2answers
66 views

Paired delimiter made of several brackets

I want to define a stretchable delimiter made of several brackets, so that they are stretched to the same height, i. e. if I declare \DeclarePairedDelimiter{\double}{((}{))} then \double{...} should ...
1
vote
1answer
87 views

Nested matrices; inner matrices too tall when switching math font

I have used this answer https://tex.stackexchange.com/a/61290/46626 to adjust my matrices and it works fine with the standard font (Latin Modern Math) But when I use Cambria Math, the inner ...
6
votes
2answers
228 views

Blank delimiter in math mode

I'm using mathtools command \DeclarePairedDelimiters to create parentheses that stretches vertically: \DeclarePairedDelimiters{\paren}{\lparen}{\rparen} \paren*{\frac{a}{b}}_c For those who don't ...
1
vote
2answers
52 views

Alternative to \SwapAboveDisplaySkip for AMSmath equation environment?

I need to use the amsmath equation environment as the outer environment within which the inner aligned environment is used for 2 equations aligned at the = symbol. I did this to obtain a common/...
1
vote
1answer
2k views

Reduce space between equations and text

I am writing some sentences which contain numbered displayed equations in the middle, like this one: | Consider the relationship: | | EQUATION (1)| |where x is ... and y is ...
0
votes
3answers
118 views

Split equations inside align environment with amsmath and mathtools

I am using split inside align to align two equations, one of which is the splitted in two lines: \begin{align} \begin{split} X &= firstline =\\ &= secondline \end{split} XYZ &...
5
votes
2answers
83 views

pdflatex hangs on centercolon plus tikz

When using centercolon inside a tikz picture, pdflatex hangs without any error message. Example: \documentclass{article} \usepackage{mathtools} \usepackage{tikz} \DeclareMathSymbol{:}{{:}}{...
1
vote
1answer
73 views

Decrease the space between two or more integrals

How can I reduce the space between two or more integrals at least up to a quadruple integral, to accost them a little more, using the code below? It is compilable to many people/users. Thanks to ...
3
votes
1answer
223 views

Explain this code to me: Doubled delimiters

So a while ago I asked this question on doubled delimiters. I found this piece of code and adapted it into the following: \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiterX{\...
1
vote
1answer
58 views

Tabular: allow spillover and bump remaining columns to next line?

I'm in a situation where I have two tables, and for space reasons I need to show them beside each other. Most entries to each column of the table are short, but occasionally one is long. What I'd ...
2
votes
2answers
208 views

\mathclap does not center equation in align

I want to center an equation inside an align environment, since it otherwise would push the other equations too far to the right, outside of my tcolorbox. As suggested in this answer, one should be ...
2
votes
3answers
94 views

Cant have a new line inside a fraction in latex

Is it possible in latex to have a new line inside a fraction. I have this fraction and I want it to appear not in the same line. I have this formula but the \ break line after Disponibilidad doesnt ...
4
votes
2answers
185 views

font-size in colorbox inside psmallmatrix

I use \colorbox to highlight stuff with a background color. In normal text, this works great. I stumbled over an inconsistency of font-sizes when using \colorbox combined with psmallmatrix from the ...
1
vote
2answers
36 views

An empty extra line in multlined inside cases

If I put a multlined inside a cases environment, there appears an empty extra line. \[ \begin{cases} first row & aaa \\ second row & bbb \\ \begin{multlined}[b][10em] third row part 1 \\ ...