Stack Exchange Network

Stack Exchange network consists of 175 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 [amsmath]

{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.

0
votes
0answers
24 views

How to include Amsmath and amssymb packages in html [closed]

I am very new to amsmath and amssymb, so just wanted to know whether we can use these packages in ui applications by including them through npm or using script tag in html. And if yes then can you ...
0
votes
1answer
35 views

amsmath: How to make inline tags, with and without labels?

I have a follow-up question to @egregs answer: At the command \usepackage{xparse} % \tagx[shown text, optional]{label-name} \makeatletter \NewDocumentCommand{\tagx}{om}{% \IfNoValueTF{#1} {% ...
3
votes
2answers
156 views

amsmath: How can I use the equation numbering and label manually and anywhere?

I want to use the accustomed equation numbering and label manually and anywhere; for example in an array. With the command \newcommand{\tagx}[1][]{\refstepcounter{equation}(\theequation)\label{#1}} ...
4
votes
1answer
34 views

centering / aligning arbitrary amsmath objects

See how the little ^\frown ⌢ symbols are aligned (on the last 3 lines) ? That's what I want. But see how it's just a concatenation symbol for (C_\alpha) (Cα) and (C_\beta) (Cβ) ? I want to make ...
4
votes
3answers
171 views

tikzcd diagram within an array

I am trying do make this looking better: namely: curly brackets enclosing everything, tikzcd diagram vertically centered compared to the two other lines. Any suggestion? \documentclass[letter, ...
3
votes
1answer
50 views

Algorithm writing in latex

How can I write this algorithm in left align latex of 2 column? I have tried this but its not working \textit{repeat till convergence} \begin{equation}\small \label{eq_04} { W_{i+1} = W_i - \...
1
vote
1answer
27 views

Cleverref reference not working in custom environment

I have a custom environment defined in a style file, for which I am trying to create a specific cref counter. Here is my environment and the code in mystyle.sty \newcounter{exampleCtr} \setcounter{...
1
vote
1answer
34 views

Recurring decimal within an aligned array

I am having some issues with representing recurring decimals (using \overline{}) within an aligned array I am using to represent a matrix. \documentclass{article} \usepackage{gensymb} \usepackage{...
2
votes
2answers
26 views

Aligning an array with text beside it

I am trying to create a 'matrix' using the array environment. I have multiple of these lines each with text besides it of varying length. I would like to have the array aligned; however, in example ...
5
votes
2answers
103 views

How to get my matrix to fit inside the width of the text block?

New to LaTeX here. This is what I have so far: \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} $$ A = \begin{bmatrix} 0 & \cos(\theta_{1})\sin(\phi_{1})\sin(\tau_{1}) & ...
1
vote
1answer
17 views

How to type an arbitrary glyph in the font tables of msam and msbm?

I thought that the font encoding of msam is U. When I TeXed \fontfamily{msam}\fontencoding{U}\selectfont\char"39 I got 9 which is clearly from cmr (encoding: OT1). Does anyone know how to TeX that ...
1
vote
1answer
36 views

Create a math environment inside itemize

I would like to portray a list of text, were on of these blocks of text needs a centered Summation equation inside of one item of the list. is that possible? I have very little experience in Latex, ...
0
votes
1answer
26 views

How to properly align math cases and make them less compact?

I have the following code that produces this result: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \[ F(X) = \left\{\begin{array}{lr} 0, & \text{...
0
votes
0answers
42 views

cloze package: Clozes in math mode have stopped working

I recently updated my MacTeX distribution via Tex Live Utility. Before that clozes from the cloze package have also worked in math mode, e.g. in amsmath's align environment. But that does not seem ...
2
votes
1answer
49 views

Why \underbrace and \overbrace create brackets with gaps?

I noticed that when we use \underbrace and \overbrace, it creates a bracket that is assembled by several parts, please see the picture below demonstrating what I mean: If we zoom in, we can see: And ...
3
votes
2answers
73 views

Undefined Control Sequence for my 0-norm

I'm new to latex and am using some stuff from a document my professor sent out. I'm trying to define something in a paper I'm writing. Here is what I have: \documentclass[11pt]{amsart} \usepackage{...
3
votes
3answers
50 views

How to get vertical-mode math-expression inside tikz node?

I am aware that \boxed automatically invokes display-mode math, so \boxed{2+2=4} is equivalent to frame drawn around $2+2=4$. But how do I get vertical-mode math expression inside tikzpicture node to ...
3
votes
1answer
272 views

Missing { and } inserted. Can't find mismatch

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{gather} \omega_{\max} = \left(\left(\frac{9\pi^5\sigma h_{0\mathrm{Re}}}{8h^2\rho^2Q^2_\bar\...
2
votes
2answers
88 views

How to get rid of (or make even) vertical space above and below math mode (`\[…\]` and `\begin{equation}`)?

I have difficulty removing spaces (or making them even, or setting them to custom values) above and below vertical math mode. This is a re-write of the previous question whose code contained hrule's ...
2
votes
1answer
33 views

Custom theorem style: Why do I get “Underfull \hbox ” warning?

Why does the following code produce Underfull \hbox (badness 10000) in paragraph at lines ... warning? \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \newtheoremstyle{solutionstyle}...
1
vote
1answer
34 views

Why my math equation showing errors?

why this code showing error for this equation i usd this code \begin{equation} Y_k\big(p+1\big) = \begin{cases} +1 \;\;\; if W_k $>$ 0 \\ -1 \;\;\; if W_k $<$ = 0 \end{cases} \end{...
2
votes
1answer
23 views

Environment to nullify the use of label

Why does the following code, meant to nullify the action of the label command, only work if I don't include the amsmath package? \documentclass{article} % \usepackage{amsmath} \usepackage{amsthm} \...
2
votes
2answers
75 views

amsmath: getting an error while using math mode to define piecewise function

I have the following Latex code: \begin{center} $\beta(u)$ = \[ \begin{cases} 1 & $|u_{j}| \leq \frac{1}{2}$ \\ 0 & else \end{cases} \] \end{center} On the 3rd line, Latex ...
2
votes
1answer
69 views

Options leqno, reqno for documentclass or exist another option?

I consider these simple MWE \documentclass[12pt,leqno]{article} \usepackage{amsmath} \begin{document} \begin{equation} x^n + y^n = z^n \end{equation} \end{document} With the option leqno we ...
3
votes
2answers
31 views

AMSMath align breaks feynmp-auto

When compiled with pdflatex -shell-escape, the following MCVE (shamelessly taken from another answer and adapted to my problem) fails with an empty mp file, and mpost wait for user input. I have to ...
3
votes
1answer
41 views

Disappearing left side of `aligned`

The following code \documentclass{amsart} \begin{document} \[ \begin{aligned} [E^dx,y]&=E^k[E^{d-k}x,y]-kE^{k-1}[E^{d-k}x,Ey]\\ &+\binom k2E^{k-2}[E^{d-k}x,E^2y]-...\\ &+(-1)^j\binom ...
1
vote
3answers
48 views

Aligning equation numbers vertically

I am trying to align my equation number to be vertically centre to the equation. How can I go about doing this? I have attached a screenshot of my output. I am using pdfLaTex+MakeIndex+BibTeX as me ...
2
votes
0answers
48 views

LuaLaTeX and \binom [closed]

When compiling the following MWE with lualatex, \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \[\binom{5}{3}\] \end{document} the numbers inside the binomial coefficient are not ...
0
votes
1answer
53 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
84 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 ...
0
votes
0answers
32 views

One way implication, one way no implication

I would like to make 2 implication arrows on top of one another, facing opposite directions, such that the bottom one is actually a not implies. I would also like to be able to label these arrows with ...
0
votes
0answers
22 views

ntheorem and LyX (with amsmath)

Recently, I tried to use the ntheorem package with LyX and amsmath, but when compiling (pdflatex format) it complains: "! Package ntheorem Error: Theorem style plain already defined." When exporting ...
0
votes
3answers
34 views

Tilde in section title + amsmath & hyperef & silence leads to crash

I stumbled upon a LaTeX crash (capacity exceeded, parameter stack size=10000) and condensed it into the minimal working example below. I assume this is a bug in one of these packages? Can anyone ...
4
votes
1answer
30 views

How to increase the vertical offset of exponent terms with increasing size of parentheses?

I want to be able to write the following expression: But have not been able to do so, since all I can get is: I do not use the fraction of P/E, but rather just the psi. Can you help? EDIT: After ...
3
votes
2answers
49 views

How to align braces and \mid in a set in order to get the same height

Main question How to align braces and \mid in a set in order to get the same height? Code: My following code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{...
2
votes
1answer
23 views

Cleveref and equations label package conflict

I'm using this template http://www.latextemplates.com/template/masters-doctoral-thesis \documentclass[ 11pt, % The default document font size, options: 10pt, 11pt, 12pt english, % ngerman for German ...
0
votes
1answer
47 views

How can I change the default space between columns in case environment?

Building off of this question, I would like to change the default space between the two columns of the amsmath cases environment to be a \qquad rather than a quad. I tried just copying the code on ...
1
vote
2answers
23 views

Append text to equation tags

I want to append the current section to equation tags, even if I use the \tag command to override it. I would guess this entails creating some custom command like \appendtag. I know I can use \...
0
votes
2answers
25 views

How to have “local” numbering for amsmath align environments?

I am trying to re-start the numbering in amsmath align environment. My MWE is as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} The following ...
2
votes
1answer
21 views

How to control spacing in formulas inside a table?

I have the following table: \documentclass[12pt, twoside]{report} \usepackage[a4paper,width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm]{geometry} \usepackage[backend=biber,style=numeric,hyperref=...
1
vote
1answer
35 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)}=\...
1
vote
2answers
28 views

I want to make something like a custom \dfrac

I use the amsmath package. To increase the vertical space in the denominator I usually add \vphantom{\overline{THING}} as in \dfrac{this is a}{\vphantom{\overline{fraction}}fraction} How can I ...
1
vote
2answers
56 views

How to put asterisk over a letter [duplicate]

How can I write an asterisk symbol over a letter? Thank you very much
0
votes
0answers
56 views

mathtools + unicode-math + DeclareMathOperator + mathrm + glossaries-extra + xelatex +makeindex = “Undefined control sequence”

Running xelatex file && makeindex -s file.ist -t file.nlg -o file.not file.ntn && xelatex file on file.tex containing \documentclass{article} \usepackage{mathtools} \usepackage{...
2
votes
2answers
45 views

Align multiple equations at multiple points with \alignat

I'm trying to generate an aligned pair of equations with the alignat environment. However, I have two major problems: There is extra horizontal space before my aligned points. The euqation numbers ...
2
votes
1answer
25 views

Use the amsmath \looparrowright in a tikz-cd

I would like to render a commutative diagram involving some topological immersions; these are referred to elsewhere using G\looparrowright B with the arrow coming from amsmath. I've had a heck of a ...
5
votes
1answer
83 views

Parentheses between \big and \Big

Is there a way to create parentheses in math mode that have an extension between that of the commands \big (too small) and \Big (too big)? The amsmath package documentation defines the delimiters in ...
0
votes
1answer
22 views

Subnumbering equations while also aligning them

Using AMSMATH's gather environment I can subnumber equations, hoewever I am also losing the alignment at the "=". Is there a way to have both, alignment and subnumbering? \documentclass{article} \...
-1
votes
1answer
24 views

change equation label with amsmath

I would like to change equation number from style (N) to (N.). I can do this by redefining \def\@eqnnum{{\normalfont \normalcolor (\theequation.)}} ...
0
votes
1answer
38 views

IOP Publication amsmath

I'm using iopart.cls file and need to define arg max operator. So I defined the following: \newcommand{\argmax}[1]{\underset{#1}{\operatorname{arg}\,\operatorname{max}}\;} This needs amsmath but ...