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

learn more… | top users | synonyms

2
votes
1answer
177 views

To have a question mark over an arrow [duplicate]

I want to have a question mark over the arrow "\to". I cannot use "\limits^{?}" command because "\to" is not a mathematical operator. How can you have a question mark over the arrow?
3
votes
2answers
64 views

raggedleft (right-aligned) entries in pmatrix? [duplicate]

I'm using pmatrix from amsmath package and would like the output to align all entries in the same column to be align on the right hand side, as shown here in the code: \[ \begin{pmatrix} -1 & ...
5
votes
4answers
121 views

Multiple alignment points in equations and no curly brackets for correcting spacing

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{alignat*}{5} &\text{Honning:}\qquad ...
6
votes
1answer
364 views

Using \left( & \right) around amsmath's align delimiter (“&”)

I want to align equations (using the align environment from the amsmath package) inside matching \left( and \right) commands. For example: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} ...
-1
votes
1answer
198 views

How do I write this mathematical equation?

I want to write the shown mathematical equation in LaTeX but I am getting an error. Here this is not eta but it is n. The code which I am writing is \begin{equation} \Delta {E} + \frac{\omega^2 ...
3
votes
1answer
90 views

Vertically aligned equation number with underbrace

I would like to vertically aling an equation number for the following MWE: \documentclass{scrartcl} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{align} \begin{aligned} a ...
9
votes
2answers
304 views

Cleveref: Parentheses around references to subequations using \labelcref

Using the Cleveref package (v0.19) i have a problem with missing parentheses when referencing to subequations, using the \labelcref command. Here is a MWE: \documentclass{article} ...
5
votes
2answers
171 views

Extend box around equation to the entire line

My question is simple: I use \boxed from the amsmath package and so far so good. The single issue I have is that I use the boxed environment on its own line, but the box is only around the equation, ...
6
votes
2answers
143 views

Reference to subequation forces serif font; how to work around?

I'm using the subequations environment in a book in which some text is in sans serif font. When I have a reference to a subequation, the reference comes out in a serif font, even if the surrounding ...
4
votes
2answers
232 views

How to reduce the size of fractions typed in align environment?

When digit fractions align environment, this goes with a size \displaystyle. But I want the size is like the one shown in a paragraph. I tried with \scriptstyle but I get letters too small and the ...
1
vote
1answer
151 views

Why isn't eqref working?

I am trying to use \eqref as in the following, but instead of (1), I get a set of blank parentheses as the result. Could anyone help me fix the problem? \documentclass[10pt]{article} ...
3
votes
2answers
113 views

Aligning several \begin{align} blocks in LaTeX [duplicate]

Just a quick question regarding aligning equations in LaTeX. Basically, this is a snippet of my source code: \begin{align*} dU&=\partial Q - \partial W \\ \partial Q &= dU + \partial W ...
4
votes
1answer
97 views

`split` not working with self-defined command

I have defined a handy little macro to typeset matrix elements in braket-notation and now want to align the next line to a part of this matrix element, because the equations are really long and ...
4
votes
1answer
65 views

How to get a bigger bracket? I have tried \left and \right

I have the following code. The problem is the outer brackets are the same size as the inner bracket so it doesn't look that nice. I have tried \left and \right and it doesn't make a difference. The ...
12
votes
3answers
389 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
4
votes
2answers
249 views

Help me input a column vector

I'm trying to input an arrow vector (a column vector, see the picture) in an align environment, but it reports an error. Can someone show me the TeX code of it in an align environment?
6
votes
1answer
630 views

\atop vs. \substack for multiple lines under a sum

I did a search trying to find out how one can typeset multiple lines under a sum and found out that there is the possibility to use \atop or \substack together with a remark that one shouldn't use ...
7
votes
1answer
121 views

problem on the parentheses direction in equations

I recently installed a MacTex version and I faced a problem with the direction of parentheses both in the enumeration and the text reference using \eqref. I use XeLaTeX to compile the tex files. Since ...
3
votes
1answer
124 views

Mathsymbol in the documentclass memoir

I write a thesis with \documentclass{memoir} and included the ams packages by usepackage{amsmath,amssymb,amsfonts,mathrsfs,datetime} However there is the difference in using bolt math sign. Here ...
15
votes
3answers
706 views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
1
vote
0answers
142 views

\to or \longrightarrow and \mapsto or \longrightarrow in functions? [closed]

I'm typing up a research project and I am not sure which ones I should use when I'm defining functions. I personally prefer \longrightarrow and \longmapsto but I see a lot of people use \to and ...
9
votes
3answers
864 views

To write this norm equation better?

I have this norm \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \lVert f \rVert_{L_{2}(\Omega)} = \text{sup}_{ \begin{cases} v \in L_{2}(\Omega) \\ v \not= 0 ...
8
votes
2answers
110 views

Please help me input the following formula correctly

This is the formula I want to be made in LaTeX. The problem is to make this formula aligned. I've made something like this \begin{gather} 1 = \cos \, (\bar x, \bar x) = \cos^2 \, (\bar x, x) + ...
4
votes
1answer
173 views

Widetilde and prime (derivative) position

I need to write something like {\widetilde f}' in my text, but the result looks rather ugly since the prime (derivative) sign is too low. It looks like \widetilde{f'}. Is there any way to do this ...
4
votes
1answer
234 views

Aligning piecewise functions and function definition maths

I am unsure how to align the following so that \mathbb{N} is aligned with the n in f(n). I have tried \begin{align*} but that just gave me a bunch of errors. Any help will be much appreciated! It ...
5
votes
2answers
92 views

How to format a multi-line statement with a label

I am trying to format a multi-line statement with a label. \documentclass{article} \usepackage{amsmath} \usepackage[showframe,pass]{geometry} \begin{document} Let $P(n)$ denote the statement that ...
4
votes
1answer
181 views

To have script-like S for Schwartz space

I want this symbol My tex \documentclass{article} \usepackage{mathrsfs} % for \mathscr{S} \usepackage{amsmath, amsfonts, amssymb, textcomp} \usepackage[T4, OT1]{fontenc} ...
3
votes
1answer
392 views

How to make the equations at the center

(I'm using LyX). When I'm writing multiline equations, with \aligned the align of the equations is right, how can I make it to be center? For example: Here how it looks when I writing at math ...
3
votes
1answer
46 views

To align line of 3 units equispaced

My tex \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} x(\alpha) = \lim_{x \to a^{+}} x(t) & \text{ and } & x(\beta) = \lim_{x \to \beta^{-}} x(t) &. ...
5
votes
1answer
56 views

Using a macro with ifx inside of a bmatrix

The following code does not compile if I don't have the extra braces around the entries of the matrix, and I don't know why. Can I modify \switcher to obviate the need for these extra braces? ...
4
votes
1answer
116 views

smartref package: Problems when referencing from math mode \text{}

I'm getting errors when using smartref's \sectionref command (or similar) from inside amsmath's \text{...} environment inside math mode. MWE: \documentclass{article} \usepackage{amsmath} ...
5
votes
1answer
735 views

`missing $ inserted` Error when not putting $ before and after array environment

Considering this answer I added $ before and after the array, i. e. before \begin{array} and after \end{array} in the following code. Then the former missing $ inserted Error was gone. ...
8
votes
3answers
210 views

Control the alignment of each “cell” in amsmath's aligned environment

In amsmath's aligned environment, the alignment of each "cell", or each "column" is predetermined, and seems to work in the following way: the first "column" is aligned to the right, the second to the ...
5
votes
2answers
100 views

How to create a math environment with one row on one side, and two on the other?

I have the following math equations: \begin{align*} &\mathcal{H} = \mathcal{H}^{(0)} + \mathcal{H}^{(1)} \\ &\mathcal{H}^{(0)} = -\frac{\hbar^2}{2m}(\nabla_{1}^{2} + \nabla_{2}^{2}) - ...
4
votes
2answers
616 views

Maths, functions in latex, really basic

I am trying to code the following; f:X->Y   x|->f(x) where -> is \longrightarrow and |-> is \longmapsto. However, my problem is that I am unable to get the x directly underneath the X. ...
2
votes
2answers
245 views

File ended while scanning use of \\definition

LaTeX noob here. Basically I get the following message in sharetex: main.tex: File ended while scanning use of \\definition. <inserted text> \par <*> main.tex I suspect you have ...
7
votes
2answers
236 views

Color fraction bar

What would be the easiest way to create a fraction whose bar can be coloured as desired? I know one can use the \genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator} command ...
1
vote
1answer
129 views

IEEEeqnarray: \tag-like command?

Is there a IEEEtrantools command equivalent to amsmath's \tag? Example: Consider the well-known functor laws: \begin{IEEEeqnarray}{rCl} F(f \circ g) &=& F(f) \circ F(g) \tag{Fu1} \\ F(id) ...
3
votes
3answers
135 views

Changing theorem number systems mid document

I have a numbering system setup for most of my document using: \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} Which produces ...
2
votes
1answer
64 views

How to combine thmmarks with addtag for \[\]?

I have the problem, that I have quite a few equations in my text. As I am oftenly unsure if I will need them later as a reference, I searched for a way to avoid exchanging \[...\] with and equation ...
4
votes
2answers
112 views

Name of the section

I would like the following, which I have been unable to resolve: the section title should be of the form Section Sectionnumber. Sectiontitle (E. g. Section 1. On a theorem of Euler.) I have tried ...
4
votes
1answer
432 views

Equation reference undefined when using \cref and package{amsmath}

When I attempt to reference an equation using \cref{..} while also using the package amsmath the references appear as ?? in the outputted pdf. For example \documentclass[]{article} ...
5
votes
1answer
277 views

Changing the vertical alignment of `multlined` from the mathtools package

Package mathtools provides the vertical alignments top, center, and bottom: \documentclass{report} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \makeatletter ...
4
votes
1answer
749 views

What does “Limit controls must follow a math operator” mean?

When I try to compile this: \documentclass{article} \usepackage{amsmath} \usepackage{nath} \DeclareMathOperator{\argmin}{arg\,min} \begin{document} \begin{equation} \argmin ...
2
votes
3answers
115 views

How to type dots whose slope is 1? [duplicate]

We know how to typeset the commonly used diagonal dots, i.e., \ddots, whose slope is -1. Now I want to produce dots with slope 1, which is perpendicular to \ddots. Does anyone know how to do it?
3
votes
1answer
90 views

How to wrap text with flalign*?

I am trying to left align some text as shown below: But the problem here is that the line is almost exceeding the page (shown by red arrow).What I want is somewhat shown in the blue line which ...
6
votes
1answer
285 views

alignment of equations in align environment with itemize

I am using amsmath environment and I want to align equations with multiple align environment. An example can be seen in the figure: Now what i want is shown in arrows. I want i=0,..2n in eq 2.4.2 to ...
9
votes
1answer
339 views

How to typeset row operations on augmented matrix

I would like to typeset row operations on a augmented matrix, but the "gauss"-package does not seem to support the vertical line just before the last column, any way to do this? Thanks!
6
votes
1answer
142 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
5
votes
4answers
186 views

Exam Class: how to avoid question going beyond margin

I'm able to create question paper using LaTeX code mentioned below: \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...