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

learn more… | top users | synonyms

3
votes
1answer
15 views

Clash between amsmath, atbegshi, and texpower packages?

Consider this document: \documentclass{article} \usepackage{amsmath} \usepackage{texpower} \usepackage{picture} \usepackage{atbegshi} \setbox0\hbox{\textbf{TEXT}} \AtBeginShipout{% ...
0
votes
1answer
43 views

Align environment immediately after section break

When I use an align environment immediately after a new section, there is a significantly increased line break between the section and the equation, too large for my taste. Is there a way to make this ...
3
votes
1answer
51 views

mathrm doesn't change back pdflatex (pre-install of texmaker)

I'm having the problem, that commands like \mathrm, \mathbf, ... change the look of the entire line of the equation and not only the code that is wrapped by the braces. I'm using the IEEEAerospaceCLS ...
2
votes
2answers
16 views

How can I use \underrightarrow command with iopart.cls class?

I would like to use \underrightarrow command which is included in amsmath.sty package. But, the publisher forces to use iopart.cls class, which is incompatible with amsmath.sty. Any alternative ...
4
votes
1answer
86 views

Difference between align and alignat environments

What is the difference between align and alignat environments?
0
votes
0answers
19 views

Referring to a complete subequation environment. Is there a recommended style?

I have a subequations environment which is labelled and inside it I have an alignat environment which has a label for each line. Would you say it is ok to refer to the complete model as I do it in ...
4
votes
2answers
65 views

Smashoperator for the vertical space?

I would like to vertically smash a summation sign in a way that the line has a vertical space as if the summation sign wouldn't be there. To illustrate it please see the MWE. The space between the ...
2
votes
1answer
77 views

Can I write $\log^2{x}$ in skmath?

Standard LaTeX has the opportunity to write things like $\log^2{x}$. This is however no longer possible when loading the skmath package, because skmath expects the logarithm to be entered ...
1
vote
1answer
73 views

problem with math equations

I want to use calibri in text and cambria math fonts for equations, with lualatex. When there are no equations to my file everything works ok, but when I add an equation I get an error message ...
7
votes
2answers
94 views

Defining new split environment with reduced spacing

this is my first stackexchange question so apologies for any bad etiquette. I'm writing a document in double spacing. I don't wants the gaps between the lines of a multi-line equation to be that ...
0
votes
2answers
24 views

Mathematical indices error in latex

I am new to LaTeX. I have a long paragraph which includes some mathematics symbols (indices and exponents). According to documents, I can use ^ and _ for both functions. However, they fail until I add ...
0
votes
0answers
67 views

Help with Australian Method Coding

Hi I want to write a topic on factoring by using the Australian method. Do anyone know how to code that in latex? A picture of what I mean:
8
votes
2answers
371 views

Interaction between \hdotsfor and colortbl: Bug/Feature?

When using package colortbl, the command \hdotsfor fails (partially), leaving too much white space before and after the dotted part. The mwe \documentclass{book} \usepackage{colortbl} ...
3
votes
1answer
44 views

Spacing around align environments

I first learnt to use LaTeX using the equation environment, and liked to set out my .tex document with spacing around equations. Now that I use the align environment, putting this additional space ...
5
votes
1answer
69 views

How can I align the first row of these equations?

\documentclass[ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} ...
14
votes
3answers
6k views

Aligning across 'aligned' equation blocks

I'd like to format two groups of equations such that all their equal signs line up and such that I can put a big brace to the right of each block to annotate that block. The last part is easily ...
1
vote
0answers
40 views

Displayed equation is not centered

I'm planning to send my research paper to a journal using the provided template. However, i found that displayed math is not centered (paper publish in the journal have equation centered). Below i ...
6
votes
2answers
96 views

Align equations over multiple sections

Is there a way to make the math mode "align" work over multiple sections? Here is the code example: section*{Polynomials} Do the following polynomial devisions \begin{align} &(x^7 - x^4 - 21x^2 + ...
4
votes
1answer
40 views

Center some lines within an alignat environment nested in subequations environment

For typesetting a mathematical program I use the subequations environment to number the equations. The restrictions are aligned using the alignat environment (see MWE1). What I would like to achieve ...
15
votes
4answers
951 views

Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used

The problem I'm writing a document where all of my equations are labeled, not by numbers, but by names, which I provide with amsmath's \tag command. I also use cleveref for ease of ...
4
votes
1answer
36 views

math subarray/substack environment not working

I am trying to get stacked indices using subarray/substack using the following snippet, but I am not seeing stacking beneath the sum symbol. This is the type of output I am expecting, but this is ...
17
votes
2answers
7k views

\xRightarrow (text)

I know it's possible to have \xrightarrow (text), but if I try to do \xRightarrow (text) I get an error each time. Does anybody know if it's a syntax error or if there is a other way to produce the ...
1
vote
0answers
37 views

hyperref package within AMS latex environment

How can I use link references using hyperref package within AMS latex environment? Is it possible to use it with \cite{} or need to use anything else? When i try to create a dvi file I have an error ...
6
votes
1answer
58 views

Opposite of \allowdisplaybreaks

If i load the amsmath package it doesn't allows to break by default alignments across the pages in the multline, align, gather, alignat environments and their starred versions. Howewer it exists the ...
46
votes
4answers
7k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
5
votes
2answers
98 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 ...
2
votes
3answers
44 views

Adjust spacing between linebreaks

I would like to adjust the spacing between two lines within a gather environment. My MWE is this: \documentclass[]{scrreprt} \usepackage{amsmath} \begin{document} \chapter{Chapter 1} Lorem ipsum ...
2
votes
2answers
74 views

Keep margins in latex when using inline maths equations for small equations

So say I have the following paragraph \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $\hat{\sigma}_w(kn)$ Here are some ...
3
votes
2answers
90 views

returning maths values in a new command

So I'm trying to construct a command which calls another command to make typing easier, but for some reason I'm not able to get the commands to return things properly. Here is what I have ...
4
votes
1answer
58 views

amsmath undefined control sequence

I am using \documentclass{report} and \usepackage{amsmath}. My problem is relation symbols such as \backsim \lesssim \gnsim are not working. Everytime I try to use such symbols error ...
6
votes
1answer
138 views

How to achieve no indentation for a single equation?

I'd like to have a single equation without indentation at all. I know I can set it globally with \setlength{\mathindent}{0cm} But I don't know how to return to the default value after the ...
6
votes
1answer
64 views

Failure of \text within theorem environment

I have an equation within the statement of one of my theorems. Within this equation, I have some text to name a function. However, when this equation appears within the theorem environment, the ...
4
votes
4answers
110 views

Dividing Long Equation using Split

I have a long equation as below, As the equation is too long, I am working to split it. Unfortunately it was not successful. Confused where could be the mistake. Could you assist to point it. MWE: ...
4
votes
3answers
59 views

Alignment using an alignat{2} environment

In the following code, I have the appropriate alignment. All the equal signs are aligned. There is one expression that is written on two lines; I wanted the first plus signs aligned. I used an ...
5
votes
2answers
286 views

How to produce aligned math with an extra symbol on the left.

In school, our teacher requires us to put a ⇔ sign on the left of our equations, when we do a tranformation on the equation. Usually, I use an align context to format multiple transformations of an ...
3
votes
2answers
3k views

AMS align: Left aligned text/math plus multicolumn align

This question is basically a combination of two previous posts: Adding left aligned text to an equation. and AMS align / Align multiple “=”, too much space (the latter being my own question). What I ...
4
votes
2answers
825 views

Multi-column delimiter in align

I want to set the following, but with all the <'s aligned horizontally Source of this failed attempt: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
4
votes
4answers
5k views

Centering split equation

I am quite new to TeX. I want that each line in the following equation be centered, but I cannot find how to do it. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
10
votes
2answers
185 views

Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $ \mymacro $ should lead to A while \begin{align} \mymacro ...
9
votes
1answer
2k views

Blank lines in align environment

Is there a way to insert a blank line between two equations in align environment? From what I understand a blank line is interpreted as \par and \par is not allowed in align. Can I disable this ...
1
vote
1answer
58 views

How to align numbering for equations

I can't seem to align the numberings on my equations. If anyone can help that would great! Here are my codes: \begin{multialign} \item 4x - 2 &< 3 && \\ 4x - 2 + 2 &< 3+2 ...
5
votes
2answers
311 views

Combined use of [fleqn] and \qedhere

It seems there is an issue within the ams packages, which results in an incompatibility between the fleqn option, and the \qedhere command. If those are used together, the qed symbol is flushed to ...
6
votes
1answer
179 views

Typesetting mathematical constants

Is there any command for typesetting constants in mathematical formulas? I would imagine something similar to \operatorname or \DeclareMathOperator, but for constants. I want the constant to be ...
4
votes
3answers
132 views

Align without display math?

Is it possible to use the align environment without the display math? For example, I would like \sum to look as if it were inline. The solution given here does not work, insofar as the summation ...
2
votes
1answer
39 views

aligning equations with a tag

\documentclass{article} \usepackage[a4paper, total={6in, 8in}]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{mathtools} \usepackage{amsmath} ...
9
votes
2answers
150 views

Kerning and long subscripts or superscripts

For really long sub(super)scripts, does it look bad to decrease the kerning? i.e. \lim_{n\to\infty}{\dfrac{1}{s_n^2}\sum_{i=1}^n \int_{|x-\mu_i|>\varepsilon s_n} (x-\mu_i)^2f_i(x)dx}=0 ...
12
votes
3answers
7k views

Define pretty sets in LaTeX; esp., how to do the condition-separator?

E.g., I have this set: \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* \} Here, I use | as the separator for the condition part. ...
3
votes
2answers
44 views

break an long line in an algorithm

I have a long line in an algorithm and want to break it into two lines. For similar case in equations, split can be used. How do I do this within an algorithm? \documentclass{article} ...
4
votes
2answers
88 views

Change numbering level for one chapter only

Apologies if this is duplicate but couldn't find it. I have a document using amsmath for chapter, section & subsection numbering, & everything (theorems, lemmas etc) uses the same numbering ...
3
votes
1answer
59 views

Change vertical space in overset

How can I decrease the space in overset? I found this solution online, but it doesn't look quite like the original overset (note I know it is difficult to come up with a solution to handle all cases ...