{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
196 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
48 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
363 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
2answers
815 views

Unhelpful, misleading errors in amsmath environments

With the simple equation environment; \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} a \foo b \end{equation} \end{document} you can see a helpful error message, ...
4
votes
3answers
124 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
133 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
311 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
100 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
6k 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
83 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
134 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) + ...
4
votes
2answers
3k views

Must be equal and other stacked math symbols

Several times already I wanted to express something like ! A = B or n->0 X ------> oo in a math environment. How do I achieve this? On a related note: What is the correct term for ...
4
votes
2answers
215 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?
4
votes
2answers
203 views

How to make the amsxtra \accentedsymbol work with subscripts etc.?

The amsxtra package provides the \accentedsymbol command which typesets the argument and stores the result. This can speed up LaTeX compilation significantly if lots of accents etc. are used ...
4
votes
4answers
671 views

Tagging equations with three \ast

I want to tag some equations with \ast, for \ast and \ast \ast it's good, but for the third I would like to have the three \ast placed like in a triangle, so two \ast at the bottom and the third in ...
4
votes
2answers
336 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. ...
4
votes
3answers
124 views

Misalignment of equations using amsmath

I would like all my equations to be aligned to the left on the same margin ie. move the first one forwards or the other two backwards. The second 2 equations are inside an enumerate package though: ...
4
votes
2answers
2k views

On \atop again: how to obtain the same result without warning

I know this question has been already discussed but the answer does not seem to work in my case. I am using the \atop command with the amsmath package to stack two symbols (more specifically $a=x$ ...
4
votes
3answers
227 views

Aligning multiple binary operators

Objective I want to align the following: expr_a1 <= expr_a2 <= expr_a3 \\ expr_b2 <= expr_b2 <= expr_b3 \\ Now, I want the <= to be aligned with each other; the expr_*2 to be ...
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
3answers
6k views

Clean-Looking Piecewise-Defined Functions

I want to write a clean-looking piecewise defined function. There's a similar post here: How to write a function (piecewise) with bracket outside?, but I have follow-up questions. The two options I ...
4
votes
2answers
100 views

How to break a line in a long equation?

I am using a class named abntex2 and I don't know how to break an equation. I've tried inserting a package amsmath, breqn, mathtools, but it does not work. I type: \usepackage{amsmath} ... and ...
4
votes
2answers
108 views

Designing medcirc and circledtimes symbols

It would be great to use only \medcirc and \circledtimes from the pxfonts or to design the similar symbols by other techniques. The symbols from pxfonts are quite well but when I connect the ...
4
votes
5answers
7k views

Real numbers symbol in XeTeX

How can I get the 'real number' sign (something like \mathbb{R} with the amssymb package in LaTeX) in XeTeX?
4
votes
1answer
243 views

How to have a matrix aligned with the rest of an equation?

When I include a matrix in an equation, the first part of the equation is separated off to the left of the page, while the matrix is spaced away in its own centred area on its own line. Here is what ...
4
votes
3answers
233 views

Why don't the curly braces and the mid bar become bigger?

I'm having the following code: \documentclass[11pt]{article} \usepackage{amssymb,amsthm,amsmath} \newcommand{\abs}[1]{\lvert #1 \rvert} \newcommand{\N}{\mathbb N} \newcommand{\K}{\mathbb K} ...
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 ...
4
votes
1answer
3k views

Equations didn't fit

I created a presentation with University of Hamburg beamer theme, which can be found here. However, in a slide, I wrote long equations but they did not fit and I cannot fix this problem. This is the ...
4
votes
2answers
4k views

Problem with \sum subscript

When I use the code below the subscript j appears to the side of the sum symbol, not underneath. Has anyone got any idea what I'm doing wrong? \begin{equation} ...
4
votes
2answers
381 views

Creating a \precneq symbol

Going through the comprehensive symbols list, and also Detexify, we see that through various packages (mostly amssymb) we can get the symbols \prec Precedes. Unicode U+227A: ≺ \preceq Precedes or ...
4
votes
1answer
855 views

How to typeset elementary combinatorics?

How would one typeset basic combinatorics, like variation and combination? For example, when using \(V'_n^k\) for variation with repetition, n and k are not vertically aligned. Something like ...
4
votes
3answers
229 views

Format math definition

$$ A = \{ x_{1}y_{1}z_{1}...x_{k}y_{k}z_{k} : x_{i}, y_{i}, z_{i} \in \{0, 1\}, k \geq 1, \text{ and } x < y < z \text{ where } x = x_{1}...x_{k}, y = y_{1}...y_{k}, \text{ and } z = ...
4
votes
4answers
94 views

! Missing $ inserted (normal text in Bmatrix)

\begin{Bmatrix}\text{Of what nacion.}\\text{Of what countrée.}\\text{Of what auncetours.}\\text{Of what parentes.}\end{Bmatrix} Apparently, I'm supposed to insert $ but I don't know where.
4
votes
1answer
147 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 ...
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 ...
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 ...
4
votes
3answers
111 views

Alignment problem between multiple line “bmatrices”

I'm having problems trying to align single and multiple line bmatrices: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align*} x = &\begin{bmatrix} ...
4
votes
1answer
2k views

Making large substack more readable?

I have the following code: \[\mathcal{I}(A,B) = \inf_{\substack{h : M\times I\rightarrow M\\ h(\cdot,t) \;homeomorphism\\ h(x,0) = ...
4
votes
1answer
2k views

how to write maximize over multiple conditions

All, I know how to write an equation if I am maximizing over one condition. For example, $\max_{0 \leq x \leq 1} f(x)$ But I an not sure how to write it if I have to maximize the function over two ...
4
votes
2answers
464 views

Big forward slash in math

I have a equation in from of a=VERYBIGSTUFF / VERYBIGSTUFF And I would like to have a "verybig" forward slash in the middle of them. I dont like \frac mode, as I would like to have them ...
4
votes
1answer
58 views

\hslash with other letter

I would like to know how to make a character like \hslash, but with a 'd' instead of an 'h'. I know that \hbar is defined using \mathchar'26, might there be a similar character for the slash in ...
4
votes
2answers
188 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 ...
4
votes
1answer
83 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
59 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
1answer
144 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} ...
4
votes
1answer
513 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 ...
4
votes
2answers
136 views

equations inside matrix/array — aligning on charater

Suppose I have a system of equations I'd like to present as a vector. Using amsmath, something like \begin{equation} \begin{pmatrix} (2)(2)+(-1)(-3) \\ (4)(2)+(3)(-3) \end{pmatrix} \end{equation} ...
4
votes
1answer
61 views

Alignment in math environment

Consider the following piece of code \documentclass[twocolumn]{article} \usepackage{amsmath} \begin{document} \begin{align*} A_i &= B_i + C_i\\ &= D_i + E_i+F_i + G_i + H_i\\ &= I_i + ...
4
votes
1answer
132 views

Make a postfix operator with suppressable spacing?

I would like to create a postfix unary operator that normally leaves \medmuskip between the operand and postfix operator. It's easy enough to do this using, for example, ...
4
votes
3answers
222 views

Command to uppercase the first letter of a maths command

This question is a bit similar to Command to uppercase the first letter of each word in a sentence. What I want is to build a new command for being used just at math mode, using the ...