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

learn more… | top users | synonyms

12
votes
3answers
344 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. ...
1
vote
1answer
112 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
82 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
88 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
62 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 ...
4
votes
2answers
226 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?
5
votes
1answer
449 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 ...
12
votes
4answers
863 views

Printing labels along with equation numbers

Working with documents with huge amount of equations it becomes cumbersome to go back and remind yourself what you labeled a certain equation to (I try to name them in a smart way, but there are too ...
10
votes
4answers
2k views

\qed or \qedhere at the end of split environment

While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
3
votes
1answer
100 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 ...
13
votes
2answers
501 views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
4
votes
1answer
258 views

“Too many math alphabets” with Beamer and DeclareSymbolFont

The following is a near-minimal example of my problem: \documentclass[dvipsnames]{beamer} \usepackage{stmaryrd} \usepackage{MnSymbol} \DeclareSymbolFont{bbsymbol}{U}{bbold}{m}{n} ...
58
votes
4answers
7k views

Is there a preference of when to use \text and \mathrm?

I'm unsure of when it is preferable to use \text versus \mathrm, is there some unwritten rule about the use of these? For example, I saw the following code in a math post: ...
5
votes
1answer
379 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. ...
1
vote
0answers
124 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
420 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
106 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
157 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
164 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
82 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
159 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
299 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
42 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
53 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
109 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} ...
8
votes
3answers
200 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 ...
7
votes
2answers
225 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 ...
5
votes
2answers
97 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
408 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
203 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 ...
1
vote
1answer
113 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) ...
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 ...
3
votes
3answers
113 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 ...
4
votes
2answers
103 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 ...
5
votes
1answer
239 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 ...
3
votes
1answer
301 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} ...
4
votes
3answers
4k views

amsmath - multiple labels in one equation

I would like to use multiple labels in the same equation when using amsmath. Basic latex already has this feature, but not amsmath, which seems to manipulate labels in complicated ways. Is it possible ...
4
votes
1answer
607 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 ...
5
votes
4answers
173 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} ...
2
votes
3answers
104 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
82 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
223 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
254 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!
7
votes
1answer
166 views

How to remove the unwanted space on the left side of the following gather*?

\documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax \begin{gather*} 6x^2-30x+36=0\\ 6(x^2-5x+6)=0\\ 6(x-2)(x-3)=0\\ x-2=0 \quad ...
6
votes
1answer
125 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 ...
6
votes
1answer
138 views

Issue with bm and breqn packages - is there a way to use a package in only part of a document?

I am a long time stack exchange reader. I always found useful information here. This is however my first post. I have a little issue that I am working on that maybe someone can provide a quicker ...
3
votes
2answers
73 views

\newcommand for bmatrix of features using pgffor throws missing \endgroup error

There are two parts to this question. Mainly, I'm interested in implementing a \newcommand that can take an arbitrary number of arguments to be set in a single column of a matrix. I tried the ...
3
votes
1answer
133 views

Indicator at end of theorem

I'm writing a text with some very long theorem-environments in it and I find the italicised theorems visually not pleasing when they are rather longish. So I'm using the definition theorem style most ...
6
votes
4answers
191 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
1
vote
0answers
171 views

Failed to display math formula in beamer [closed]

This is my preamble for a beamer \documentclass{beamer} \usepackage{beamerthemesplit} \usepackage{graphicx} \usepackage{verbatim} \mode<presentation> { \usetheme{Boadilla} % Pretty neat, ...