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

learn more… | top users | synonyms

6
votes
1answer
65 views

Having regular text within a lemma

I want the following lemma: Given k\"ahler metric $g_{\al \overline{\be}}$ with associated Ricci curvature $ \text{Ric} =R_{\al \overline{\be}}$ the Ricci form defined by \begin{equation*} \p (X,Y)...
6
votes
2answers
2k views

Number of Equation: 1, 1a, 1b

Following Problem: I have a PDE and two boundary conditions what i actually want is: PDE (1) BC1 (1a) BC2 (1b) and what i have is: PDE (1) BC1 (2a) BC2 (2b) is there something which provides a ...
6
votes
1answer
3k 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 \log(\sum_{x=1}...
6
votes
1answer
165 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 u_{r}}{\...
6
votes
2answers
363 views

Space added after \right

I have a problem regarding the space added by \right.. I have read this answer regarding the topic, where @egreg proposes a macro that deletes this space. However, when using this in my own ...
6
votes
2answers
387 views

colortbl and amsmath conflict

I have a problem with colortbl and amsmath. Is someone here aware of a conflict between these two packages? \documentclass[10pt]{article} \usepackage{amsmath} %\usepackage{colortbl} \begin{document} ...
6
votes
2answers
930 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 ...
6
votes
1answer
509 views

error while using amsmath package

I try to run this: \documentclass{article} \usepackage{amsmath} \renewcommand\thesection{\arabic{section}.} \makeatletter \renewcommand{\section}{ \@startsection ...
6
votes
1answer
1k views

Using \leftroot{}, \uproot{} with closed square root symbol

As mentioned in this answer to Nice-looking p-th roots the amsmath package provides \leftroot{} and \uproot{} which allow you to move the position of the root to the left, and up in small increments. ...
6
votes
1answer
976 views

Trouble with hyperref when resetting the counter for equations (specifically with the align environment)

I am trying to reset a counter to zero; however hyperref tries to reference previous equations. I am using: \setcounter{equation}{0} And if I have labels in say align environments: \documentclass{...
6
votes
1answer
1k views

Turn off numbering on unused equations [duplicate]

Possible Duplicate: How do I number equations only if they are referred to in the text? While I am writing a document, I like to use align rather than align* and label them for all equations ...
6
votes
1answer
4k views

How to move the whole block of {align*} to the left?

I use {align*} a lot, it seems that the block of {align*} are automatically centered. How could I move the block to the left margin?
6
votes
2answers
208 views

How to draw a vertical bar on top of a math symbol?

I can do $_\tau^{|}$ which renders: What I don't like is: The tau becomes under the baseline I can't control the line's length Can someone help me? Thanks!
6
votes
3answers
97 views

How to align equations in two columns?

Well, my problem is I'm trying to find a way to write many equations and divide these into columns as you would when writing on paper, cut in some part and continue. I have achieved almost using the ...
6
votes
2answers
252 views

Brackets not tall enough with smallmatrix from amsmath

The following MWE shows that when I typeset a matrix using the smallmatrix environment from amsmath, and wrap it in a \left( \right), the parentheses generated are not big enough to reach the top/...
6
votes
2answers
74 views

Expand arrows within an array

Any ideia of how I can expand the \xrightarrow so that they all have the same size? (for aesthetics) \documentclass{article} \usepackage{amsmath} % \text nas equacoes \usepackage{mathrsfs} \begin{...
6
votes
2answers
99 views

How to mimic spacing around \bullet with \DeclareMathOperator?

I'm trying to define \conjunction by means of \textbullet instead of \bullet, since the latter looks too big in logical formulas. How can I make the spacing around \conjunction to behave like the ...
6
votes
1answer
2k 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 equation....
6
votes
1answer
423 views

Why can't split with curly-brace be inside align but it can be inside gather?

The following code snippet will guide you through the issue chronologically. \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \begin{document} \section*{gather+aligned} \...
6
votes
2answers
97 views

Relational Operator spacing problem with alignat

I have not asked a really embarrassing question in a while, so thought it was time :-). I am stumped as to why the spacing around the = on the third line is incorrect: Notes: I realize I am ...
6
votes
1answer
373 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
6
votes
1answer
264 views

Automatic way to match matrix heights

I have a simple matrix equation, but one of the matrices has subscripts and superscripts on both lines: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{...
6
votes
1answer
3k views

amsmath “\substack”-command in section title

I do use the \substack-command in text for creating a small (2,1)-Vector. Unfortunately it does not work in the title of a section. Here a minimal example, which does not work: \documentclass{...
6
votes
2answers
829 views

Multiple split equations

I find myself again and again using a combination of the gather and aligned environments. So it would be nice to not have to write so much. In particular, it is often only clear after writing the ...
6
votes
1answer
3k views

In LyX, what is the most standard way to type a system of equations?

I have a system of equations and would like the alignment to be done on the equal sign. phi_{t+1} = F\xi_{t} y_t = A'X_t \theta_t = \mu + \epsilon_t What is the most standard way ...
6
votes
1answer
211 views

Using \tag in unnumbered versions

According to the amsmath documentation (section 3.1, page 7) \tag and \tag* can also be used within the unnumbered versions of all the amsmath alignment structures It provides no examples (...
6
votes
1answer
110 views

Use a symbol in a formula that's been defined over elsewhere

In my document preamble, I'm using: \usepackage{fancyvrb} \DefineShortVerb{\|} It means I can indicate that things are to be rendered as code with |This_is_monospaced|, but now I'm trying to use ...
6
votes
1answer
2k views

unicode-math and amsmath environments

I'd like to use unicode-math but I've run into some problems. The following mwe, compiles without problems. The aligned environment is used \documentclass{article} \usepackage{amsmath} \usepackage{...
6
votes
1answer
695 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 }{ \begin{...
6
votes
1answer
53 views

Passing alignment tab character to \ifx

I have the following macro \usepackage{xintexpr} \newcommand\seq[4] %length, delimiter, generating func, last term {% \def\s##1{\def\n{##1} #3} \xintListWithSep{#2} {% \xintApply{\s}{\...
6
votes
1answer
112 views

pmatrix not rendering correctly — possibly a wileySix problem

Original post below A couple of people asked for a whole document: \documentclass{wileySix} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \[ \mathbf{y}= \...
6
votes
1answer
186 views

How to get LaTeX to ignore a specific warning?

I use \over even though it is a bad practice (yes, yes, I know I shouldn't). Whenever I compile a LaTeX file using it, I get the message: Foreign command \over; \frac or \genfrac should be used ...
6
votes
1answer
2k 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? ...
6
votes
1answer
1k views

Can't use some AMS 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 ...
6
votes
1answer
129 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} \usepackage{hyperref}...
6
votes
1answer
124 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 \...
6
votes
1answer
6k views

Aligning equations with using fleqn

I use fleqn as a document class, but now I solve problem, how to align few equations to the center and few to the right. I've tried \setlength{\mathindent}{1cm} but after that is the problem that I ...
6
votes
1answer
356 views

Horizontal array of enumerated equations

This is for use in work assignments for math students. I'd like to post multiple parts for a given question, without sacrificing too much space for this. So I want a bunch of equations arrayed ...
6
votes
1answer
580 views

Equation spacing issue with fleqn (amsmath) and frenchb (Babel)

This is a follow-up to this question. Here is an exemple of the code I wrote to add a light gray background to important equations: \documentclass{article} \usepackage[fleqn]{amsmath} % \usepackage[...
6
votes
2answers
113 views

Using \ensuremath inside \text

Using \ensuremath inside \text works fine and gives good results. However, I realized that the spacing in superscripts changes. I tried working with \mathchoice, but that doesn't know that it is in a ...
6
votes
3answers
562 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 ...
6
votes
1answer
228 views

Issue with bm and breqn packages - is there a way to use a package in only part of a document?

I am a long time stack exchange reader. I always found useful information here. This is however my first post. I have a little issue that I am working on that maybe someone can provide a quicker fix....
6
votes
1answer
226 views

Match upper horizontal line of two fractions with different roots

I'm learning LaTeX and encountered a problem which I'm not able to solve after reading several related problems (e.g.: Align \sqrt with baseline of other mathematical input). I will present my actual ...
6
votes
1answer
440 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.
6
votes
2answers
556 views

Equation environment for centered, equally-spaced columns of expressions

I want a environment for displaying rows and columns of mathematical expressions, such that the contents of each column is centered, and the columns are equally spaced. Rows must have optional ...
6
votes
1answer
3k 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} \alert<...
6
votes
1answer
80 views

Purpose of DOTSB in definition of \iff

What exactly is the purpose of the \DTOSB in the definition of \iff? There is a mention in Is there a left-handed equivalent of \implies? that the \DOTSB makes \iff "dots aware". But, when I try to ...
6
votes
2answers
160 views

vertical spacing in nested fraction

I have complicated math expression: Vertical spacing between text and fraction line is too small. I tried to define new \frac command (with amsmath package) with adjustable vertical spaces. As you ...
6
votes
2answers
214 views

reduce vertical space for \xrightarrow

I find the vertical spacing of amsmath's \xrightarrow too large for the underset. Is there an easy way to reduce it (i.e. put "below" close to the arrow, in the example)? \documentclass{minimal} \...
6
votes
1answer
253 views

How can I split and align this series of equations?

I know this is an issue that comes up frequently, but I keep running into issues using all the suggested examples (breqn, amsmath; split, align, etc). Here's what I have: \documentclass[11pt]{...