{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
8k 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 ...
6
votes
2answers
82 views

What does amsmath do to \@currentlabel?

Can someone explain what amsmath does to \@currentlabel in the align environments? Better yet: if I want to write what would be expected to be the \@currentlabel together with some other information ...
6
votes
2answers
716 views

Ignore Greek letters using `\mathcal`

I want to define various styles using commands, so that I can globally change them later if necessary. For example I want all sets to written using \mathcal{...}. This worked until I needed to use a ...
6
votes
1answer
265 views

Standard for typesetting mathematical objects other than variables

Is there a standard in mathematics for typesetting the textual (not symbolic) identifiers of mathematical objects other than variables? Textual identifiers of mathematical objects other than ...
6
votes
3answers
258 views

How do I make \widefbox bigger in the vertical direction?

I want to enclose some equations in a widebox, but I need to make the box bigger the the y-direction/vertical direction. How is this done? A sample code is given below (taken from the empheq manual). ...
6
votes
2answers
5k views

Break Large Equation Between Parenthesis Using Multline

I have a very large equation that I need to write in multiple lines, but multiline is not working between parenthesis. This is my LaTeX code: \begin{multline} e^{-y \lambda_n} \left( -\frac{...
6
votes
1answer
2k views

Why does \dot over \vec over {\bf E} gives a tilde?

When using AMSmath and trying to put a \dot over a \vec of a bold symbol it works, but subsequent instances have a tilde instead of a vector over the bold symbol, and strangely my partial wrt become ...
6
votes
1answer
66 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
168 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
365 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
5k views

How to get align or similar equation environment to use the whole line instead of centering around the equality sign

I'm creating a Beamer presentation in which a line in the equation environment should fill the whole screen and should not only be centered arround the equality sign. I think this looks nicer and is ...
6
votes
2answers
394 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
1answer
107 views

Incompatibility of zref-perpage and amsmath

If amsmath is loaded after zref-perpage, zref-perpage will not reset counters in each page. What should be done to fix this except changing the loading order: \documentclass{article} \usepackage{zref-...
6
votes
2answers
937 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
344 views

Centering first line of an align environment (Simulating \multicolumn{2}{c})

I often need align environments where the first line is centered, e.g., when first introducing the types of the functions to be defined, then defining them. I essentially want to obtain the effect ...
6
votes
1answer
519 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
984 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
213 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
101 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
256 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
76 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
101 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
435 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
98 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
374 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
271 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

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) = x\;\forall\;...
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
839 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
4k 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
701 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
116 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
193 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
130 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
130 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
360 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
585 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[...