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

learn more… | top users | synonyms

20
votes
5answers
2k views

Huge matrix in my document. Possible ways to make it look better?

The following is the source for a matrix I'm using in my document: \documentclass{scrartcl} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} ...
6
votes
3answers
227 views

Using $1\over2$ instead of $\frac{1}{2}$ under amsmath

I know that you should use $\frac{1}{2}$ instead of $1\over2$ to prevent warnings when you're using amsmath. But do those two expressions print differently? I know why, according to the amsmath ...
2
votes
3answers
177 views

Defining operator symbols

I want to replace the circle in the symbol \circledast by a square. But i did not find the right command. It seems that the packages stmaryrd would help. But the package usually re-defines other basic ...
5
votes
0answers
361 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
99 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} ...
8
votes
2answers
153 views

Delimitershortfall in align environment

Can you explain why the \delimitershortfall cannot be modified inside a align environment? This is a MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
1
vote
1answer
2k views

Subequations and align environment

I am trying to use subequations with a complicated alignment. The alignment in the MWE is not satisfactory. I am seeking for a solution where I can specify lrc such as in array, but subequations ...
2
votes
1answer
101 views

breaking many long numbered equations

I am having trouble with listing a couple of hundreds of long equations. Most of them need to be broken. The equations should be numbered. I tried many things such as eqnarray in combination with ...
1
vote
3answers
911 views

Hat accent on bold greek letters in math mode

I would like to insert an hat accent on bold letters/symbols in math mode. For latin letters, e.g. the q char, I insert this commands in my preamble ...
8
votes
4answers
370 views

How to add partial horizontal lines in horizontally aligned math environments

I'm having trouble writing a proof of a theorem in LaTeX, where I need to sum a set of inequalities and continue the proof with this sum. The problem I have is that I'd like to introduce this step ...
0
votes
1answer
173 views

Collectively aligning multiple align environments [duplicate]

I am using amsmath, and I want to be able to break a mathematical derivation into multiple align environments while maintaining their collective alignment. In particular, I would like to horizontally ...
3
votes
1answer
85 views

amsmath's intertext and labeling

I have an align environement with intertext: \usepackage{amsmath,mathtools} \begin{align*} x&=f(z)\cos\alpha\\ y&=f(z)\sin\alpha \shortintertext{with} f(z)&=\ldots \end{align*} However ...
2
votes
2answers
110 views

TeX code of equations from IEEEXplore

Recently IEEE gives the TeX code for most of equations in the HTML full text view of the papers. This is very interesting for me that I can skip rewriting some long equations and use TeX code from the ...
3
votes
1answer
93 views

english number and ltr direction in xetex

I'm writing a document using xepersian and the text direction is right to left. Also I need to add formulas in the document. My problem is that all numbers in the formula are persian and if I add text ...
1
vote
1answer
146 views

Long Subequation in LaTeX

I'm using the amsmath package, in the subequations environment I have the following set of equations \begin{subequations} \begin{align} &\rho\left(u\frac{\partial u}{\partial x}+v\frac{\partial ...
3
votes
1answer
78 views

Aligned equation which can break through pages [duplicate]

I'm writing long sequences of aligned math equations, and LaTeX interprete them as single, unbreakable objects... which is Ok if the equation is nowhere near the end of the page. Q: Is there a way to ...
4
votes
2answers
964 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$ ...
1
vote
1answer
900 views

Undefined control sequence for equation

I am running into the error message !Undefined control sequence with the below explanation and can't figure out what I'm doing wrong. I am using Mactex and Texmaker. I am new to LaTeX and would really ...
1
vote
3answers
132 views

Equation line break up

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm \topmargin=-1.0cm \textheight=24.5cm ...
3
votes
1answer
95 views

wileysev document class messes up bmatrix etc. from amsmath

Consider the following example using wileysevdocument class (used for books by John Wiley, available in this zip file): \documentclass{wileysev} \usepackage{amsmath} \begin{document} ...
1
vote
2answers
87 views

Unable to split a long equation

I want this equation to break into different lines at each of the line breaks indicated below. f = c_{A1}x_{A1}+c_{A2}x_{A2}+c_{A3}x_{A3}+c_{B1}x_{B1}+c_{B2}x_{B2}+c_{B3}x_{B3} \\ + ...
5
votes
2answers
171 views

unicode-math breaks \DeclareMathOperator

Problem Statement I'd like to introduce a new math operator (the divergence operator). Unfortunately the macro I'd like to use is already defined, so I "free" it using \let\div\undefined and ...
8
votes
1answer
143 views

Adaptively sized delimiters that don't go beyond the size of \bigl and \bigr

I would like adaptively sized delimiters, but only up to \bigl/\bigr-size. That is, there is variation only between ordinary/normal size and one size higher. \documentclass{article} ...
1
vote
1answer
116 views

Math font for sets? [duplicate]

There is a somewhat conservative script font that's used for sets, contours, and for some different purposes in number theory. I'm sorry I can't describe it better; here are some examples: I'm ...
2
votes
1answer
745 views

What is the difference between ‎\ldots‎ and ‎\cdots‎?

What is the difference between ‍‍\ldots‎ and ‎\cdots‎? For example, To write a sequence of points which is best to use? a_1,\ldots,a_n Or a_1,\cdots,a_n. Couple of examples of the difference can be ...
7
votes
1answer
93 views

Formula label outside of formula

I want to label a block of equations like that: The "AB" should not inflict the central alignment of the formula. I saw it a lot, but do not succeed on my own. Do I need to build boxes? I used the ...
3
votes
1answer
47 views

Setting \predisplaypenalty to allow pages to have displayed equations at the top

If you're okay with letting pages have displayed equations at the top, what's a good value less than 10000 to set \predisplaypenalty to? I mean a value that allows pages to have displayed equations at ...
3
votes
2answers
125 views

Numbering of displayed math without using the equation environment

I know about align and equation environments, and tend to use them most of the time, but sometimes I like to have more flexibility within an array of equations, like better control on justification ...
0
votes
1answer
82 views

twocolumn article cases alignment issues

I use the following option twocolumn \documentclass[11pt, twocolumn]{article} Images and almost everything works nice. However I face an issue with the mathmode cases If my text is too long it ...
27
votes
3answers
1k views

How are big operators defined?

I would like to create a new "big operator", by which I mean something like the Σ character used for summations. I know about the \DeclareMathOperator* command, which creates an operator whose ...
2
votes
1answer
188 views

Backreferences for equations

I'd like to put a list of pages, hyperlinked to the position of the \eqref or \cref that point to it in the margin of each \labeled equation, like backref does for bibliographies and \cite. Both this ...
1
vote
0answers
53 views

\lesssim (and some others) not working [duplicate]

I'm writing a latex document and trying to use \lesssim (listed for example in here: http://en.wikipedia.org/wiki/Help:Displaying_a_formula#Relations ) in the text like this: $a \lesssim b$. However, ...
1
vote
0answers
122 views

Name of length for equation number indent if [leqno] is set [closed]

I got a weird phenomenon as shown in the picture below. The equation numbering is indented. I tried the same thing in a fresh document and it produces the result I am looking for. For the other ...
5
votes
1answer
73 views

How to refer to the number of an item in an enumerate environment inside a theorem

I have something that looks like this: \usepackage{amsmath} \begin{document} \begin{thm} The following are true: \begin{enumerate} \item \label{foo} Foo \item \label{bar} Bar \item \label{baz} Baz ...
7
votes
1answer
109 views

Ignoring specific ampersand formatting on a specific line of an align block

I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
7
votes
1answer
152 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 ...
4
votes
1answer
230 views

Underlining fractions

I need to be able to underline equations involving fractions, which are aligned using the alignedat environment from amsmath. To be able to underline at all, I'm using the solution from this question ...
2
votes
1answer
63 views

How to get to use {align} with an unusual document class?

So I'm required to use a particular documentclass, "llncs", which for some reason is preventing me from using {align}. Is there an alternative that I can use? The beginning of my tex file ...
12
votes
2answers
1k views

vertical dotted line in column vector / amsmath matrix

I would like to typeset the following set of equations: ... but with contiguous, vertical dotted lines in the column vectors, such that the top and bottom rows of the matrix and of the vectors are ...
4
votes
5answers
267 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]{% ...
2
votes
1answer
322 views

Aligning equality sign with overset text

I'm typing a logic definition within an align environment that uses \overset{def}{=} from the amsmath environment. However, the new sign is aligned vertically based on the equality sign, and not on ...
5
votes
2answers
169 views

Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$

I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
3
votes
2answers
6k views

How to simply center equations using eqnarray*?

So I have this code here: \begin{eqnarray*} x + (y - 2)^4 = w^2 \\ (x - 9)^2 + y_2^2 = w^2 \\ x + (y - 2)^4 = w^2 = (x - 9)^2 + y_2^2 \\ \end{eqnarray*} As you can see, I get the ...
7
votes
1answer
127 views

(Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages

This was brought to my attention by our colleague, Lover of Structure, but since it affects my scalerel package (which began using the mathstyle package to detect the current math style, as of version ...
5
votes
1answer
218 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 ...
0
votes
0answers
49 views

Is it possible to remove chapter number from align environment? [duplicate]

Basically I have written a proof using the align environment in a new .tex file and the numbers in the proof came like this (how I want them): Line1 (1) Line2 (2) Line3 (3) Now I've ...
12
votes
2answers
154 views

Input manually a number into \eqref

Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in ...
2
votes
0answers
171 views

LaTeX is not compiling consistently [closed]

I am really new to LaTeX, so it's possible I'm making some egregious error that I'm not aware of, but my documents are compiling inconsistently. By that I mean it compiles correctly maybe one in ...
9
votes
3answers
281 views

Numbering a set of horizontally distributed equations

Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations. How can the left equations be numbered using subequations? ...
2
votes
3answers
130 views

Grouping two lines inside align environment to put smth. to the left of them

I have an equation which is alligned at 1st equal sign like this: \begin{align} a &= b + c \nonumber\\ d &= e + f \label{eq1}\\ %this is row 1 g &= h + i \nonumber\\ %this is ...