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

learn more… | top users | synonyms

4
votes
1answer
352 views

How to place the QED symbol at the end of equation using IEEEproof environment?

I was wondering how one can place the QED symbol at the end of an equation when using the IEEEproof environment? With the standard proof environment of amsthm this is done by simply placing \qedhere ...
5
votes
3answers
90 views

How to get for to stand separate in an equation?

I have the following equation: \begin{equation} C_k = \frac{1}{N}\sum\limits_{n=1}^N k_n for k \in {1,\dots,K} \end{equation} How can I get the for, and everything after it, to stand ...
8
votes
2answers
184 views

Glossaries in Align Environment

Using glossaries commands in align environment seems to screw up the tag alignment. How can I use gls{...} commands in align environments without the tag position being altered? Consider the ...
3
votes
2answers
55 views

Make limit in inline mode same position as display mode

If I use: $$\lim_{x\to3}f(x)$$ Then the x to 3 is placed below the limit. But if I write: Given $f(x)=x^2$, evaluate $\lim_{x\to 2}f(x)$, ... Then the limit is put below right of the limit ...
6
votes
1answer
108 views

Long formula in align environment

Usually, if I have a very long formula, I will use two lines in the align environment and \qquad to space things out nicely. For example, \begin{align*} % First line \rho\left(\frac{\partial ...
1
vote
1answer
198 views

Changing align environment tag styles and colors [duplicate]

I'm using amsmath and amsfonts to typeset my homework, and since it will be read on a screen, I would like to make \tag{comments inside equations} differently colored, and optimally downsize them by a ...
0
votes
0answers
29 views

How can I create multiple lines of equations in flashcards? [duplicate]

I have flashcards that work perfectly, but on a few of my flashcards I want to be able to give 2 equations on separate lines. Normally I know how to do this....such as using gather or align but when I ...
14
votes
1answer
238 views

align* environment left-aligned with LuaTeX and RTL math direction

When using LuaLaTeX, with the math direction set right-to-left, the contents of an align* environment is left-aligned instead of centered. Why does this happens? How can I fix it? ...
2
votes
1answer
69 views

Hyperlinks to repeated & variant equations with \tag{} don't work

Suppose I have the following equation (42), a variant version of it (42ᵇⁱˢ), and then a repeated version of (42). Here is how I would express them in my document: Original equation: \begin{equation} ...
1
vote
0answers
104 views

autonum, amsmath and \qedhere

I have a weird behavior of the \qedhere command while using amsmath in combination with autonum. Consider the minimal (not working) example below: In unreferenced equation with \qedhere (Theorem 2) ...
4
votes
1answer
121 views

How to use lineno with \intertext?

I would like to number all lines of a document to help its reviewing. The lineno package is working fine, except for the \intertext{...} paragraphs that I use between aligned equations. ...
3
votes
1answer
392 views

Using Linux Libertine fonts for math without newtxmath

I'm trying to use Linux Libertine as the math (and main) font, and I used this answer to set the math fonts. However, the math output is still CM. \documentclass{minimal} \usepackage{amsmath, ...
1
vote
1answer
171 views

Increasing margin of left side tag/number in amsmath align enviroment

I asked this on the lyx user list but haven't got an answer (http://marc.info/?l=lyx-users&m=137891444218650&w=2). I would like to include text lines in align environment using 'leqno' option ...
0
votes
1answer
127 views

cases-like without brace

I want to know if there is a cases-like environment which has no braces? I want to do the following without a curly brace: \documentclass[12pt]{scrartcl} \usepackage{amsmath} \usepackage{mathtools} ...
7
votes
1answer
88 views

\hat and \bar compatibility issue EDIT: It's a bug, workaround provided

I have two \newcommand defined as follows: \newcommand{\hvar}[1]{\hat{\delta #1}} \newcommand{\gbp}{{{\bar{\gamma}}_p}} And they look like this: \hvar{X} \gbp The problem is that, if I use ...
7
votes
2answers
327 views

Equation number with an apostrophe

I am writing two equations in an align environment: \begin{align} x^2+y^2=z^2, \\ x^2=7, \end{align} I would like the first equation to be labelled with e.g. (1.1) and the second equation to be ...
5
votes
2answers
321 views

How to number each equation of simultaneous equations grouped by a left curly brace?

Consider the following MWE. \documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax \begin{equation} \begin{cases} ax + by =c \\ px ...
3
votes
2answers
628 views

! Package amsmath Error: \tag not allowed here

I want to use \tag in my LaTex file at https://www.sharelatex.com/. For example, I want to do: If $x \equiv x' \pmod{N}$ and $y \equiv y' \pmod{N}$, then: $xy \equiv x'y' \pmod{N}\tag{Substitution ...
5
votes
1answer
132 views

Amsmath and tikz - conflict?

I have a problem with: \documentclass{minimal} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{amsmath} \usepackage{tikz} \begin{document} \pgfmathparse{ifthenelse(1<0, ...
6
votes
1answer
227 views

Create multiline fraction

How to create an equation like in the image below. I tried to use \cfraq and \hline but with no success. I am asking for the layout only, not the formulae.
2
votes
2answers
173 views

Equation conditions

I am in doubt of how to properly write (multiple) conditions to an equation. Right now I have a+b=c,\quad a>0,b\ge 0 Which gives But I dont think it looks very nice. How can I make it look ...
4
votes
2answers
2k views

How to put the QED symbol of a proof at the right place inside align?

When a proof ends with a formula in equation or equation* environment, putting \qedhere after the equation would cause the QED symbol to appear in the right place. I.e. at the end of the line in which ...
2
votes
1answer
179 views

Equation numbers under equations

I have three similar equations which I want on a same line. I put them in tabular environment nested within subequations following this: subequation in tabular. Now I have this code: ...
30
votes
2answers
810 views

Equation connected by lines

I have written a code that defines a new environment in which aligned equation are connected by lines as in the image: I think it is useful when, inside the align environment, there is the need of ...
4
votes
2answers
106 views

Text to the right of piecewise equation

I have the following piecewise functions: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} K(u) &= \begin{cases} \frac{1}{2} & -1 \leq u \leq 1 \\ 0 & ...
12
votes
3answers
536 views

Multiple letters without spacing in Math [duplicate]

Is there something I can add to the preamble of my document such that multiple letters without spacing in a Math environment (such as $NP$) do not have extra spacing between them and are not ...
0
votes
1answer
767 views

How to Copy Latex from MS Equation Editor 3.0 [closed]

I've one word document having equations typed using MS Equation Editor 3.0 ; One Sample Screenshot is mentioned below: How can I get underlying AMS-Latex code for equation added using MS Equation ...
2
votes
1answer
62 views

How to indent the equation number a bit to the left?

How can I add space after the equation numbering? MWE: \documentclass{book} \usepackage{amsmath} \begin{document} \begin{align} a = b + c \end{align} \end{document} So I want to move the ...
5
votes
1answer
204 views

Sequential equation numbering when using 'report' class [duplicate]

I would like to use sequential equation numbering but I am using the report class which defaults to numbering equations within chapters. I would really appreciate if someone could help me with this.
3
votes
1answer
3k views

“!Missing $ inserted” error using amsmath environments

I am trying to compile a document with equations but whenever I use \begin{eqnarray}..\end{eqnarray} or \begin{align}...\end{align} or anything like this I get the error msg !Missing $ ...
4
votes
2answers
1k views

Equation: How to create nested/multiple cases in LaTeX to align the qualifiers

I am having trouble with a particular equation as the cases are nested within a case. It would also be cool if I could align the qualifiers. I tried to post an image of the equation but I could not ...
17
votes
3answers
2k views

Add equation name underneath equation number

I am wondering if it is possible (and if so how) to add names to equations just underneath the equation number. I am just using the standard equation environment to display the equation centered in ...
5
votes
3answers
118 views

Aligning Summations Over Differing Numbers of Sets

I'm trying to align a set of constraints for a linear program formulation. The issue I'm having is that some of the summations are over two (or more) sets, while others are only over one. This makes ...
5
votes
1answer
95 views

Horizontal alignment of long equations

I hope that the following question is not a duplicate but I could not find a definite answer. I'm trying to obtain the the same result as Formula (1) in the picture next, but I feel that my approach ...
6
votes
3answers
634 views

\everymath, AMS equations, beamer, and tikz not working together

In a beamer document, I have $ expressions embedded in displayed equations (using tikz to make, e.g., colored boxes around some expressions). I put \everymath{\displaystyle} in the preamble so that ...
1
vote
3answers
240 views

To show something are appearing n-times!

Suppose I want to write that the sequence 1,1,...,1 appear n-times. How will I do this? Usually in mathematics we use a braces at the bottom and write "n-times" below the brace.
1
vote
1answer
104 views

Lowering two expressions in an equation

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} %the argument for d specifies the maximum number of decimal ...
5
votes
1answer
89 views

Changing the size of the braces from the cases environment

I have created the following picture using the cases environment. For this picture I have two questions. 1) I would like to limit the size of the braces created by the cases environment to ...
6
votes
2answers
96 views

Amsmath: Using \tag{name} when you have a long name

When the name is long, the centering of the equations is off even though the tagged name wouldn't overlap the content. How can I center equations with a long name? \documentclass{article} ...
14
votes
3answers
578 views

Create \eqref* (\eqref without link, i.e. starred eqref)

I want to create a command \eqref*, which is the same like \eqref, but without a clickable link. There are similar commands for \ref (\ref*) and \autoref (\autoref*) which achieve this behaviour, but ...
2
votes
2answers
680 views

Break Large Equation Between Parenthesis Using Multline

I have a very large equation that I need to write in multiple lines, but multiline is not working between parenthesis. This is my LaTeX code: \begin{multline} e^{-y \lambda_n} \left( ...
3
votes
1answer
158 views

Align multiline RHS

I have the following MWE: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} L_W&=\frac{L}{W} & \text{words per line}&=\frac{\text{bytes per ...
6
votes
1answer
101 views

Hyperref, amsmath, and horizontal spacing at start of a numbered equation

When amsmath is loaded before hyperref (which I thought was the preferred order), spacing within the equation environment is altered: \documentclass{article} \usepackage{amsmath} ...
3
votes
0answers
172 views

\bigg Is not working for left parenthesis [closed]

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} %the argument for d specifies the maximum number of decimal ...
8
votes
2answers
191 views

How to align multiple symbols for a long equation?

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} %the argument for d specifies the maximum number of decimal ...
2
votes
1answer
87 views

Is there a subsitute for subequations?

Is there substitute for the subequations environment? For instance, we can use align instead of the equations environment. What is the complement of subequations that would yield the same numbering ...
8
votes
2answers
197 views

Underarrow with smaller depth, shorter minimum length, and smaller arrow head?

I am using underarrows from amsmath to decorate messages with their direction, as in $\underleftarrow{\mathsf{msg}}$ () and $\underrightarrow{\mathsf{msg}}$ (). I am looking for a better underarrow, ...
2
votes
1answer
154 views

Problem with amsmath+fontspec+ulem

I have a problem when I tried to compile this using XeLaTeX. \documentclass{article} \usepackage{ulem,amsmath,fontspec} \begin{document} \[1+1=2\] \end{document} Is there any way to fix this?
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} ...
5
votes
3answers
120 views

Help with left align?

I was trying to left align this equation by using code $$\begin{equation} \begin{aligned} E_\theta(L(\delta_1(X)) &=& E_\theta[(1-\frac{b}{a+X^2}) X-\theta]^2\nonnumber\\ ...