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
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
75 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
149 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
107 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
256 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
68 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
576 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
302 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
216 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
43 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
107 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
120 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
40 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
299 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
128 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
126 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
329 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
78 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
4k 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
284 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
89 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
103 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
275 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
93 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
333 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
147 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
274 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
50 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 \\ ...
1
vote
1answer
248 views

Annotation on vertical arrow

I am illustrating the relation between some formulas. I need to add annotations on the iff arrow to refer them later. I know it can be done with \overset like: \[ A \overset{(1)}{\iff} B \overset{(2)}...
8
votes
2answers
647 views

Extensible triple-bracket delimiter with a new symbol

\DeclarePairedDelimiter allows one to define extensible delimiters (for example using the \big option). An example is provided below with double brackets. I need a similar delimiter with triple ...
1
vote
2answers
94 views

Superscripts and Subscripts with more than 1 letter

I`m trying to input the following formula in latex: So far I came up with: $Pr(Classe_i | Objeto) * Pr(Objeto) * IOU^{truth \_pred}= Pr(Classe_i)* IOU^{truth} \_{pred}$ But truth and pred end up ...
1
vote
1answer
106 views

How can I reduce the size of a whole equation without reducing the size of its numbering?

I have an equation that I need to reduce its size but it seems that the equation numbering gets smaller as well. How can I reduce its size while having normal size for its tag? My source code: \...
2
votes
1answer
87 views

split fraction is not working to split equation over multiple lines

I am trying to split a long fraction over multiple lines. I am using mathtools package and split fraction to split the long denominator. However, it doesn't seem to be working , see the attached image....
1
vote
1answer
100 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
1answer
156 views

Why does not subequations numbering work as intended when I customize it?

I am using IEEEtran for typesetting and it seems that subequations are cited appropriately when leaving their numbering to the default value. When I customize it, however, the equation numbering ...
0
votes
1answer
115 views

mathtools tagform labeling

So I'm using the lower version as in: How to force a special numbering for a specific equation switching between reactions and default with \usetagform{reaction} and \usetagform{default} The ...
4
votes
4answers
272 views

Macro for open balls similar to mathool's DeclarePairedDelimiterX

I would like to create a macro \openball[<optional size>]{<radius>}{<center>} producing \mathrm{B}_{<radius>}^\circ \lparen <center> \rparen if no optional argument is ...
3
votes
0answers
174 views

On a classic integral sign

In the attempt of imitating the typeset of some classic paper in the Philosophical Transactions (see e.g. Maxwell, Donkin, or Boole), I got stack when I had to find an integral sign that is close to ...
4
votes
2answers
327 views

Fancy box around equation in align environment

I am aware of both this and this questions. However, can we combine them? What I mean by this is can I enclose in a fancy box à la empheq part of an equation in an align environment? (I believe there ...
2
votes
1answer
195 views

Doubled parentheses, braces, brackets and angles

I need some doubled versions of the standard parentheses, namely parentheses, braces, brackets and angles. They should be scalable and the output should look roughly like this: \documentclass[border=...
6
votes
2answers
867 views

How to write the LaTeX code of this Meijer G function

Hi, I need some help on the LaTeX code of the Meijer G function on the right side of below equation. I want to know what is the LaTeX command for the function shown in the following image. For ...
3
votes
1answer
185 views

siunitx: Abbreviations are not printed with mathtools, fontspec and unicode-math [duplicate]

This code can print \si{\us} \RequirePackage{luatex85} \documentclass[border=1cm]{standalone} \usepackage{siunitx} \begin{document} Time \si{\us} \end{document} while this one doesn't print the ...
0
votes
3answers
140 views

mathtools brackets

Using DeclarePairedDelimiter from mathtools I have defined a command to enclose expressions with parenthesis. \DeclarePairedDelimiter\p{(}{)} Now, I want to defined a command for a function \...
1
vote
0answers
233 views

MongoDB to math Latex [closed]

I am working on math quiz application and I want to store the math equations in to database.How to save math equations into mongodb database ?
2
votes
1answer
285 views

\DeclareMathOperator conflicts with unicode-math

Consider the following MWE: \documentclass[preview]{standalone} \usepackage{fontspec} \usepackage[english]{babel} \usepackage[babel]{microtype} \usepackage{mathtools} \usepackage{amsthm} \...
1
vote
1answer
82 views

Random generating [duplicate]

I'm trying to make a randomly generated, say, square equations with integer coeffs. Like this 3x^2 - 6x + 8 = 0 But i want them to have integer roots too, so it would be way smarter to generate roots ...
2
votes
0answers
76 views

Showkeys: Omit optional argument of \label

I use cleveref and mathtools together with the showkeys package. However, since for some labels I'm using my own type, labels can get pretty long (in the following example the label will be [mytype]{...
4
votes
3answers
186 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*} ...