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

learn more… | top users | synonyms

5
votes
1answer
114 views

How to get proper spacing when typesetting an expression such as $f\left(\frac{y}{2}\right)

I am trying to typeset the value of a function $f$ for $x = \frac{y}{2}$ (or something other which requires more vertical space). To get properly sized parentheses I tried: f\left(\frac{y}{2}\right) ...
5
votes
1answer
101 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 ...
5
votes
3answers
312 views

Conflict between amsmath and ntheorem, or, how I fell into an infinite troubleshooting loop

There are similar questions on this site, but nothing quite fixed this problem for me. When using amsmath with ntheorem I get either a missing end of theorem symbol (when my theorem ends with an ...
5
votes
2answers
657 views

LuaLaTeX AMS-Typesetting bug with sum\limits under sqrt

it looks as if there is a bug in math-typeseeting with lualatex using ams. An minimum example showing this is \documentclass[12pt]{report} \usepackage{amsmath} \begin{document} This looks OK, but ...
5
votes
1answer
3k views

Bad math environment delimiter: ntheorem with thmmarks, Display math and split

Using a combination of \usepackage[amsmath,thmmarks]{ntheorem}, display math enclosed in \[ \] and a \begin{split} environment inside it, pdflatex freaks out completely: ! LaTeX Error: Bad math ...
5
votes
1answer
201 views

Can anyone explain why setting \lineskiplimit breaks align?

OK, so this is a follow-up to one of my previous questions: If you uncomment the \lineskiplimit line, LaTeX goes crazy. Why? Does anyone have an idea how to fix it (without manually changing ...
5
votes
1answer
145 views

Centering item along several nodes in bmatrix

How can I position X exactly in the middle of space between a and d column? \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} a & b & c & d & e \\ ...
5
votes
2answers
640 views

Theorem environment - centered line

\begin{theorem} Let apples be fruits and let tomatos be a veg. Then the following is true: \centerline{apples are veg} \end{theorem} I just read that one shouldn't use centerline because it's TeX ...
5
votes
1answer
638 views

Use displaymath shorthand \[ \] for align and other amsmath environments

This question is closely related to this one: Using the displaymath shorthand \[ \] for equation or align instead. I use Multimarkdown (MMD) to generate my LaTeX documents. MMD uses the escape ...
5
votes
1answer
2k views

How to change the way theorems are displayed with LyX?

The theorems are currently all displayed in bold, but I would like to display them in small-caps. My question is much like this one. However, I am using LyX with an AMS style document class, and was ...
5
votes
1answer
600 views

How to write centered multi-line conclusion in inference rule?

I'm using the semantic package to write inference rules and I have trouble with the following: \usepackage[inference]{semantic} \usepackage{amsmath} \begin{equation} \inference{ expr }{ ...
5
votes
1answer
107 views

Show integration limits above & below the integral

Well considering this code, the "E" is shown after the integral: \begin{equation} m = \iiint_E \rho \ \mathrm{d}V \end{equation} The limit is shown slightly behind the number, how can I place it in ...
5
votes
1answer
47 views

Align after \therefore

If I place my alignment ampersand after a therefore symbol (from amssymb), the proper spacing between the therefore and the rest of the equation is lost. Is there a way to prevent this from happening? ...
5
votes
2answers
107 views

How can I DeclareMathOperator* with spacing after it, preserving the alignment?

In the context of optimization problems, I'm using \usepackage{amsmath} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} to declare some operators ...
5
votes
1answer
99 views

I can't use some binary operators

I'm using the amsmath package, and i want to put in a sentence, the not similar binary operator. I tried this: ... bla bla $ a \nsim b $ bla bla ... I get the error: "Undefined control sequence". ...
5
votes
2answers
105 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}) - ...
5
votes
1answer
155 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, ...
5
votes
1answer
2k views

Amsart: footnote for the author

Assume the following code: \usepackage{amssymb} \usepackage{graphicx} % if you want to include graphics files \usepackage{amsmath} \usepackage{amsthm}\begin{document} ...
5
votes
2answers
758 views

Aligned multline

I want to show the derivation of a formula where I encounter long formulae. Unfortunately the derivation is very complex, so I have to show some intermediate steps. My problem is, that I want to mix ...
5
votes
1answer
768 views

using \marginnote inside a math environment in tufte-book

I've recently started using tufte-book for typesetting solutions to math problems. I like it very much that you're encouraged to use the margin, which is very nice for giving hints, pointers and ...
5
votes
1answer
264 views

The font of operator names: the size

A while ago, I asked what was the correct way of changing the font used to set operator names. I stabilized at: \DeclareSymbolFont{sfoperators}{OT1}{cmss}{m}{n} ...
5
votes
1answer
959 views

\listoffigures chokes on inline math delimiters in captions. What is going on?

I'm working on my thesis, and I've realized that, any time I try to use \( \)-type inline delimiters in captions, that pdflatex breaks. While I can weasel out of actually \needing\ math in my ...
5
votes
2answers
65 views

How to make \dots from amsmath and ellipsis work together

The amsmath package changes the \dots command to have different vertical alignment depending on context (I'm not sure if it does anything else to it). The ellipsis package changes the \dots command to ...
5
votes
1answer
145 views

LuaLaTeX - Linux libertine (math and pgfplots)

I have some problems using Linux libertine font within equations or pgfplots and tried this answer but it doesn't work. \documentclass{article} \usepackage{fontspec} \usepackage{pgfplots} ...
5
votes
1answer
59 views

AMSMath \implies and a superscript symbol

I would like to have a superscript symbol attached to the implies-arrow, i.e., something like that \[ \implies^f \] However, this does not work. A similar question was asked here: question But ...
5
votes
1answer
59 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? ...
5
votes
1answer
264 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.
5
votes
1answer
90 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 ...
5
votes
1answer
301 views

Annotated equations

I need many of my equations to have annotations stating their domain of validity, or certain conditions for which the equation is true. Preferably, these would be flush right against the equation ...
5
votes
1answer
76 views

But why are the two sets of absolute parentheses different sizes?

Silly question maybe - but why are the two sets of absolute different sizes? Is there an easy way to set the size locally - or globally? \documentclass{article} \usepackage{amsmath} ...
5
votes
1answer
436 views

font name with a space, using XeLaTeX and fontspec

I use XeLaTeX, amsmath, fontspec, unicode-math and standalone to create a pdf containing one single equation which I then import to Inkscape for a poster. When using font names with a space in it, ...
5
votes
1answer
267 views

Unicode math with amsmath, new error

After applying the most recent ctan updates, the following MWE does not compile with lualuatex. There is an error given ending with \cs_set_nopar:Npx that I can't make sense of. ...
5
votes
1answer
301 views

Access every cell of amsmath's align environment

I'd like to create an environment that basically behaves like amsmath's (v. 2.13) align environment, i.e. line numbering, \label, \tag, \intertext ... are available. Since I don't want to reinvent ...
5
votes
1answer
781 views

How to redefine \label command in align environment

I have a problem with the redefinition of \label inside of the align environment. The goal is to allow a different behavior of the label command inside of the align environment than outside of it ...
5
votes
2answers
532 views

pmatrix without changing font size

In Plain TeX with the amstex package, is there a way to tell \pmatrix to NOT change font size? E.g. when I do: \sum_{\pmatrix a \\ b \\ c \endpmatrix} I end up having to insert \scriptstyle three ...
5
votes
1answer
557 views

AMSsymb in ConTeXt

Where can I find some of the functionality, namely the symbols, from the LaTeX package AMSSymb in ConTeXt? For example, how do I place a \blacksquare? Is there an equivalent in ConTeXt? I didn't find ...
5
votes
2answers
191 views

How to redefine the colon-symbol with unicode-math (spacing problem)

I want to change the usual role of : and \colon. Consider the following code \documentclass{scrreprt} \usepackage{amsmath} \usepackage{unicode-math} %\unimathsetup{colon=literal} ...
5
votes
1answer
176 views

Trouble creating properly aligned matrix within a matrix

I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this: \begin{equation} \begin{bmatrix} \begin{matrix} 0 & 0 \\ 0 & \omega_0 ...
5
votes
1answer
2k views

\alert within align in Beamer

I am trying to use alert within the AMS-math align environment, so that sets of equations uncover sequentially and are highlighted. I would expect something like this to work: \begin{align} ...
5
votes
1answer
587 views

Automatic linebreak in align environment in macros

I have given a selfdefined command like \newcommand{\AND}[2]{\left(#1 \vee #2 \right)} which makes sure that I always give the correct number of parameters to my formula and which handles the ...
5
votes
1answer
304 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 ...
5
votes
0answers
69 views

Is using DeclareMathOperator for functions the right thing to do?

I'm wondering if I use the \DeclareMathOperator for the wrong things. For example I have a cost function cost(x,y) which takes two arguments. I would declare it as \DeclareMathOperator*{\cost}{cost} ...
5
votes
0answers
364 views

Miktex amsfont problem: \scriptfont is undefined [duplicate]

Today, After updating Miktex system, I have trouble with error \scriptfont is undefined. So I tried to reinstall Miktex 2.9.4813 (32 bit version). Everything OK, but again after updating, problem is ...
4
votes
3answers
126 views

Keep numerator inline with rest of equation

In the following example, I would like to to keep the Q''(p) on the same line as the rest of the equation, and put the vinculum and 2 underneath. \documentclass[12pt,reqno]{amsart} ...
4
votes
2answers
142 views

About \def\b*{\begin{align*}}

I want to make the code shorter. I defined the following pair of macros: \def\b*{\begin{align*}} \def\e*{\end{align*}} My point is that I saw this is a document, with \def\b*{\begin{eqnarray*}} ...
4
votes
5answers
411 views

Right superscript dot

I would like to achieve the following: a dot right of an expression with this minimal example \documentclass{article} \usepackage{amsmath} \usepackage{accents} \newcommand{\dotr}[1]{% ...
4
votes
2answers
7k views

Theorem environment - line break after label [duplicate]

Possible Duplicate: ntheorem environment with indentation Skipping line after “Proof” in proof environment \begin{theorem}[label] The theorem text. \end{theorem} I want to ...
4
votes
2answers
111 views

Spacing numbers in two equations equally

I have this weird requirement, to align two sets of numbers, one under another, in groups of three. Here is how it should look: I tried the following: \begin{align*} x_F &= 1.368 &808 ...
4
votes
2answers
111 views

Setting vertical margins on top and below align* environment

I'm using the amsmath align* environment to format multi line formulas. Unfortunately, the environment adds a lot of margin before and below the formula. I found only one solution to get rid of this ...
4
votes
3answers
171 views

Large equation goes out of margin, want to centre it? [duplicate]

I have a large equation \begin{document} \begin{gather} W = \frac{1}{2\mu_0}(\frac{\Psi'^2 \pi^2}{b^2} \sum_{m,n} a_{mn}^2 n^2 (ab/4) + \frac{\Psi'^2 \pi^2}{a^2} \sum_{m,n} a_{mn}^2 m^2 (ab/4) + ...