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
2 answers
147 views

Trouble with \splitfrac{}{} from mathtools

I have trouble with the following code which stems from my somehow faulty use of the \splitfrac environment. Can someone help? \item $p_{(lon_i,lat_r,jul_a)} = \frac{1}{\splitfrac{1 + e^{-(\beta_0 + \...
0 votes
1 answer
40 views

Define coloneq (def) with redefined \=

For my own convenience, I tried to define some short-cut key for ``define'' as \usepackage{mathtools} \NewCommandCopy{\tmp}{\=} \AtBeginDocument{% \DeclareRobustCommand{\=}{\ =\ }% } \def\:={\ \...
1 vote
0 answers
63 views

How best to write the linear systems: best practises [closed]

I must to write a test on system of linear equations for my high school students. I know there are a myriad of ways to write a (the) system(s) and there are also support packages. Which one is the ...
  • 49.6k
0 votes
1 answer
37 views

Spacing problem with subscripts by using math symbols within glossary

I have a problem by using glossary. E.g. i define a math symbol as follows: \newglossaryentry{spannungsvektor}{% name= Spannungsvektor, description=Spannungsvektor, sort=t, user1={$\...
  • 21
2 votes
1 answer
33 views

alignment of subnumcases in the page

I want to label each case in cases so I used subnumcases environment. However, it seems like what is centered is the first letter, not the entire chunk. I made a MWE with the packages I need for my ...
0 votes
2 answers
61 views

Need to write an equation exactly in the same way as in the picture [closed]

I have written my research paper in Ms word, but now I need it written in Latex, I am writing an equation of brier score which is as in the attached picture, that is, the bracket I want to be bigger ...
  • 11
0 votes
1 answer
35 views

Why smash doesn't suppress the horizontal space of subscript with sum?

I try to understand the smash command, and I made a simple example : \documentclass{article} \usepackage{amsmath,amssymb, amsfonts, mathtools} \begin{document} \begin{equation*} \sum_{\...
0 votes
1 answer
27 views

Interaction of „Showonlyref“ and „Subequations“ Workaround?

A workaround suggested by Daleif (see below) solves the problem of incorrect numbering when e.g. one set of subequations is not referenced. However, if none of the equations of a specific set of ...
0 votes
1 answer
47 views

Subequations in combination with showonlyrefs does not work

subequations in combination with showonlyrefs does not work. Is there a workaround. \documentclass[a4paper]{article} \usepackage{mathtools} \mathtoolsset{showonlyrefs=true} \begin{document} \noindent ...
2 votes
3 answers
134 views

Multiline text above arrow or relation symbol

One way of writing text above an arrow symbol is to use \xrightarrow from mathtools: \documentclass[a4paper, 12pt]{article} \usepackage{mathtools} \begin{document} \begin{equation*} \dfrac{...
  • 145
9 votes
2 answers
209 views

mismath.sty bug?

With the mismath.sty package loaded, the following source causes error: ./mismath_paired_delim_bug.tex:14: Missing { inserted. <to be read again> \futurelet l.14 $\eqclass{0}...
  • 7,350
1 vote
2 answers
30 views

special vector denote by Zero having extra line

I want to show the vector of (0,0,...,0) by 0 that have extra line. How can I do it? I want to use this vector as special. so I use a lot of this notation. I currently denote the vectors $(0,0,\dots‎ ,...
2 votes
0 answers
130 views

Very weird interaction between lineno and mathtools

The following: \documentclass{article} \usepackage{lineno} \modulolinenumbers[1] \usepackage{mathtools} \begin{document} \linenumbers Test, hi! \end{document} gives multiple errors about e.g., \...
  • 5,041
5 votes
1 answer
62 views

Reproduce a Snippet from a Japanese Learning book (using rcases?)

I use Anki, which supports generating LATEX images for usage during study sessions. I would like to reproduce this snippet of text: I have been trying to drink from the firehose that is Latex for 2 ...
4 votes
1 answer
50 views

strange extensible arrows with kpfonts

The extensible arrows from amsmath/mathtools do not give proper spacing or symbols when used with kpfonts. Here's the correct behavior with Computer Modern. \documentclass{article} \usepackage{...
  • 1,317
3 votes
1 answer
68 views

Align to the right second and following lines of a group of long equations

following the chat messages of yesterday I open a question on the main site. So I need to write long equations, and for readability I prefer to use multline and multlined over align. The equations are ...
  • 71
0 votes
1 answer
24 views

"align" and "flalign" undefined even when amsmath and mathtool packages are already included

I'm trying to align two equation on the same line, both sharing the same label as: \begin{falign*} \begin{equation} \rho(\mathbf {r'}) = -\nabla \cdot \mathbf M(\mathbf {r'}) \qquad \text{and} \...
  • 11
2 votes
0 answers
52 views

Including mathtools changes page layout with XeLaTeX and LuaLaTeX

I have a package s5paper (below) not written by me that sets up a Swedish paper format S5 with a page layout with margins and such. But when I build with XeLaTeX or LuaLaTex the page layout changes ...
  • 938
5 votes
1 answer
86 views

How to make \underset and \stackrel distances equal?

Here is the code: \documentclass{article} \usepackage{mathtools} \begin{document} $[ \underset{\scriptscriptstyle [[[[]]]]} {\stackrel{\mathclap{\scriptscriptstyle [[[[]]]]}}{[[[[]]]]}} ]$ \\ \end{...
  • 11.1k
2 votes
1 answer
37 views

Why does esint clash when I include it in my package?

I am trying to write my own package, but I can not include esint without getting errors. Here is an MWE of my package: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{zyy}[2021/08/14 Yiyu's preamble for ...
  • 2,036
0 votes
1 answer
64 views

Why 'split' environment conflicts with my counter?

Here is the code: \documentclass{article} \usepackage{mathtools} \begin{document} \newcounter{rule} \newcommand\jrule{ \refstepcounter{rule} \label{foo} \text{R\ref{foo}}} \section{Intro} \...
  • 11.1k
3 votes
4 answers
70 views

How do I center this horizontal line in equation mode?

\documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \usepackage{chemformula} \begin{document} \begin{equation} \begin{split} \ch{ADP(aq) + P_i (aq) -> ATP(aq) + H2O (l)} \...
  • 379
1 vote
0 answers
31 views

Incompatibility of amsmath, ntheorem, and mathtools with option showonlyrefs

In the minimal example \documentclass{article} \usepackage{amsmath} \usepackage[amsmath,thmmarks]{ntheorem} \theoremsymbol{$\diamondsuit$} \newtheorem{defi}{Definition} \usepackage{mathtools} \...
5 votes
1 answer
68 views

aligned in multline*, gather*, or align* produces superfluous space

Somewhat related to aligned in multlined produces superfluous space , there is superfluous space inside multline*, gather*, or align* if its contents contains aligned with at least two columns. Namely,...
2 votes
2 answers
37 views

aligned in multlined produces superfluous space

Feeding \documentclass{article} \pagestyle{empty} \usepackage{mathtools} \begin{document} \[ \begin{multlined}[c] \text{Line}\ 1\\ \begin{aligned}[c] &\text{Line}\ 2.1\\ ...
5 votes
2 answers
105 views

Determine the length of the rest of a math display line for multlined

\documentclass{article} \pagestyle{empty} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum[1] \[ \text{beginning}\land \begin{multlined}[t][\linewidth] (\text{extremely long ...
1 vote
2 answers
89 views

How to write this math equation in latex?

I am new to Latex and I am struggling to write math equations. Does anybody know how to write this equation and the equation on the next line?
1 vote
3 answers
129 views

How can I include the red-circled paragraph in the math mode? [closed]

I am facing a problem when trying to include the following red-circled paragraph like math text under math mode: How can this be resolved?
3 votes
1 answer
220 views

Wrapping long numerator

I have a long square root equation that walks off the edge of the page. See the following picture where the end of the equation is cutoff. \[ S=\sqrt{\frac{306.250+240.250+156.250+110.250+90.250+56....
  • 165
3 votes
1 answer
115 views

Warning when unicode-math and mathtools are loaded [duplicate]

This is a follow-up question to "Switching from PDFLaTeX to LuaLaTeX". Consider the following MWE: \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \begin{document} ...
2 votes
2 answers
60 views

Declare custom formatted delimiters mathtools

First I want to thank mathtools package maintainers. Issue Description The issue is about declaring paired delimiters with \DeclarePairedDelimiter(X): if I want to e.g. colour the delimiters (with ...
  • 23
1 vote
1 answer
30 views

Reference Request

I want to know and read about Latex mathematics . I thought to know and understand about Latex mathematics by reading some books relating to Latex . I failed to find out exact and suitable books . ...
3 votes
1 answer
166 views

How to show simple summing with tex

I want to show simple summing like in the picture, without using colors. But I've no idea, that's not a undercase command.
  • 43
0 votes
1 answer
81 views

Vertical alignment of limits in sums

I try to find a solution to align the subscript limits of three subsequent sums for my thesis. The code for the problem looks like this: \documentclass{standalone} \usepackage{mathtools} \begin{...
  • 2,182
2 votes
1 answer
54 views

amsmath's align* or gather* followed by \ifmmode = 🗲

Feeding \documentclass{article} \usepackage{mathtools}%%% or amsmath \begin{document} \begin{gather*} \ifmmode Math\else Text\fi \end{gather*} \end{document} to any of the four LaTeX processors (...
user avatar
0 votes
0 answers
62 views

mathtools and hyperref badly interacting?

I would like to: (a) have no equation numbers for non-referenced equations; (b) have hyperlinks on equations and other constructs (lemmas/theorems/etc.); (c) use autoref so that the string for the ...
  • 9,302
2 votes
2 answers
151 views

automating a quadratic equation

I have updated my recent post am I am trying to automate it but need help with a method, I have read all the macro books I can but can not find an answer. \documentclass{article} \usepackage{mathtools}...
  • 657
3 votes
5 answers
241 views

Moving the equation to the left in "align"

Is it possible to move the equation a little bit to the left in the align environment? For example, how to move the following equation to the left so that \simeq is approximately on the center? (I ...
  • 7,380
0 votes
1 answer
48 views

Failed to use TikZ to draw lines matching \delimsize

In this answer @egreg proposed a method to use dashed line in the notation of sets. In a similar way, I would like to use TikZ to draw the separation line. The idea is also to measure the height of $\...
  • 7,380
2 votes
1 answer
147 views

What is `\mathopen{}` for?

On mathtools manual, page 27, there is an example defining a command \Set: % just to make sure it exists \providecommand\given{} % can be useful to refer to this outside \Set \newcommand\SetSymbol[1][]...
  • 7,380
1 vote
1 answer
55 views

Regarding the separation line in the expression of sets

I defined a command \set[<size>]{<first>}{<second>} with \DeclarePairedDelimiterX from mathtools for typesetting (mathematical) sets, which accepts one optional argument and two ...
  • 7,380
1 vote
4 answers
84 views

Numbered equation, alignedat enviroment, tall curly brace [duplicate]

I want to get a single equation number for this multiple equation with \label I need for cross referencing. Also, I need a tall curly brace prior to the equation number.
0 votes
3 answers
117 views

elementary school-like math operation

I'd like to write an equation formatted like this Term can be writted with siunitx package, but to align them like this? \flalign{} doesn't do exactly what I ask. Any idea?
0 votes
0 answers
106 views

How to type "nicely" the following math expression using libertinust1math math font

Using the following packages, i.e. libertinust1math in particular, how can I type nicely subscripts of \mathbf expressions? \documentclass[12pt]{book} \usepackage{cmap} \usepackage[utf8]{inputenc} \...
  • 61
1 vote
1 answer
48 views

Split doesn't work in align with multiple tab stops

I have equations in an align environment with multiple tab stops, and I'd like to use split to render just one equation number for multiple lines of equations. However, if I have more than one tab ...
1 vote
1 answer
43 views

Placing symbol over relation without changing where superscripts are placed

I would like to place a symbol over a relation without changing where superscript are placed. \documentclass{article} \usepackage{mathtools} \usepackage{amssymb} \usepackage{accents} \newcommand{\rel}...
  • 765
0 votes
0 answers
28 views

How can I type this formula in LaTex [duplicate]

![] I'm writing my thesis and I need help on how I can type the following equation in LaTex.
0 votes
1 answer
193 views

Conflict of mathtools and amsmath?

I was using this template: https://www.overleaf.com/latex/templates/university-of-michigan-dissertation-template-unofficial/tpnjzndnrzmf As long as I add \usepackage{mathtools} in package.tex, there ...
  • 307
10 votes
1 answer
227 views

When to use which alignment environment?

There seem to be a whopping align, aligned, alignedat, alignat, xalignat, xxalignat and falign in amsmath / mathtools - some also in there starred version. I just find sloppy statements like: "...
  • 853
1 vote
0 answers
31 views

Is hvfloat incompatible with mathtools and cellspace?

I notice strange interaction between the hvfloat package and the cellspace and mathtools packages. It happens when I want to split an image (png or pdf) on two pages via the command \hvFloat[...
  • 435

1
2 3 4 5
10