{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.
6
votes
1answer
115 views
Breaking equation in align enviroment to put textwidth matrix in separate line
I have to put a textwidth pmatrix into an align environment. When using split, it destroys the centered alignment of the other equation.
Pseudocode:
\begin{align}
\vec{a} &= \vec{b} + \vec{c} ...
3
votes
1answer
160 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 ...
3
votes
2answers
87 views
alignment and numbering of math formulas
I have 3 formulas which should be aligned at the = sign and numbered (1) to (3).
Seems a simple task but trying both \being{equation} with \begin{split} and \being{align} did not work out. I alwasy ...
3
votes
1answer
445 views
How to left align a set of equations in LyX
How can I left align an AMS flalign block in LyX?
The answers in Use flalign or alignat or align or similar environment to align to the left say that to left align a set of equations one should use
...
7
votes
2answers
444 views
In exponents, parenthesis too small, \big too big
When something big (a fraction, a sum, an integral...) appears within a pair of parenthesis, one can typically use \left(...\right) to get delimiters large enough to surround the contents. The ...
2
votes
1answer
192 views
How can long formulas be written more beautifully?
How do you write a long formula in a more beautiful manner
for the better, all my formulas in lines with the same length.
formulas are long with slightly smaller text.
Is it better to be done ...
6
votes
1answer
127 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 ...
1
vote
0answers
153 views
Avoid eqnarray! Lars Madsen [closed]
eqnarray or align?!
http://www.tug.org/TUGboat/tb33-1/tb103madsen.pdf
Whenever the eqnarray environment appears in a
question or example of a problem on comp.text.
tex, tex.stackexchange.com or ...
6
votes
1answer
112 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 ...
5
votes
1answer
103 views
Declaring a newcommand for a single letter in mathcal
I am trying to enter a command that references the \mathcal font for single letter in LaTeX. Below is what I am trying and it doesn't seem to work, would appreciate any help.
\newcommand {\until} ...
4
votes
2answers
161 views
Equation does NOT go new lines, while using \newline
I've been trying to typset an equation which, at a certain point, spans several lines, but is a single step (so no numbering may occur). For this I used newline, but this doesn't seem to work. How do ...
8
votes
5answers
390 views
parenthesis around underbrace too big
I have the problem that I want to have an equation with underbrace but the surrounding parenthesis shall not include the underbrace, i.e. should have the size as if the underbrace wasn't there. Here ...
4
votes
1answer
153 views
ConTeXt equivalent of AMSmath's \substack
The Plain TeX
$$ \sum_{i \in S \atop j \in T} i $$
seems to be usually typeset mathematically in LaTeX using the \substack macro from the AMS maths macros (accessed using \usepackage{amsmath})
\[ ...
5
votes
2answers
147 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}
...
2
votes
1answer
124 views
\numberwithin makes the first equation unnumbered
I might be doing something stupid, but the following code produces a document with the first equation unnumbered (only an empty set of parentheses is given). The second equation is correctly numbered ...
3
votes
1answer
115 views
Using subequations without amsmath
Following on from my previous question regarding the use of align and aligned without 'amsmath', I am currently working on a proceedings paper, and have realised after finishing it that only specific ...
4
votes
2answers
146 views
Using aligned and align without amsmath
I am currently working on a proceedings paper, and have realised after finishing it that only specific packages are permitted - one of which is not amsmath. As a result, many of the nice equations ...
1
vote
1answer
134 views
How can I write a long equation in multi line scaled to text width?
I want to write a long equation over several lines, but result looks highly irregular.
How can write this equation better, preferably with all equation occupying the same wide?
...
8
votes
1answer
161 views
What causes this strange interaction between glossaries and amsmath?
MWE: greatly trimmed from a large document; XeLaTeX; full TeXLive2012 completely up-to-date:
\documentclass{memoir}
\usepackage{fixltx2e}
\usepackage{amsmath}
\usepackage{mathspec}
...
6
votes
1answer
221 views
Is there any AMS TeX or LaTeX macro for background color in math-mode
Is there any way to display math expressions with a background color (highlight) using AMS-Tex or AMS-LaTeX . For example, using AMS-TeX/LaTeX, we can display a math expression in font color using ...
4
votes
2answers
165 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, ...
3
votes
1answer
145 views
How to manipulate font size “within” an align environment
I'm using the align package for multiple-row equations. Some rows the equations are just a bit longer than the textwidth (I'm using double column). I only want to reduce the fontsize of those ...
8
votes
2answers
197 views
Revtex's tensor macro interferes with nested amsmath split and align environments
I've encountered a strange collision between RevTeX and AMSLaTeX. If I nest a split environment inside an align environment, it works as it should, but then the next time I use the RevTeX \tensor{} ...
0
votes
1answer
115 views
Amsmath error occurs
I have error
! Missing } inserted.
}
l.9 { -1+2/[1+3\exp(-2|J|/k_BT)],&
$T
MWE
\documentclass{article}
\usepackage{amsmath}
...
3
votes
1answer
47 views
Add spacing before and after `\hline` in an array in an equation
I'm trying to add a little bit of space before and after the \hline in this matrix:
\documentclass[a4paper,journal]{IEEEtran}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
...
9
votes
1answer
62 views
\@ifnextchar inside pmatrix?
I created a function which handles a superscript followed after the function. I do that by using \@ifnextchar^. Everything works well, except in any pmatrix environment. Why?
As a quick-and-dirty ...
12
votes
4answers
313 views
How do I get this strange alignment?
I would like to get a nonstandard alignment in the following code:
\begin{align}
\text{First left hand side} & = \text{First right hand side} \\
\text{Second left hand side} & = ...
6
votes
3answers
185 views
amsmath - bidi - siunitx possible bug?
MWE:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{fontspec}
\usepackage[detect-all]{siunitx}
\usepackage{amsmath}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
...
5
votes
1answer
125 views
How to replace $$ .. $$ by \[…\] [duplicate]
Possible Duplicate:
replace often used Tex-Literals ($ and $$) for math regions into \( or \) and \[ or \]
When I started using latex, I wrote mathematical formulae separated from ...
8
votes
2answers
166 views
minipage is wider than I wanted
Occasionally, the width of a minipage environment seems to be ignored. I've not kept accurate records of when this has happened. But below is purely illustrative code that shows the issue.
...
6
votes
2answers
173 views
Nested Environ's give “! Argument of … has an extra }” error
I tried using two Environ's in a nested fashion, but I get the
! Argument of \marray has an extra }
error. Any idea why this happens?
\documentclass{minimal}
\usepackage{amsmath,environ}
...
2
votes
0answers
21 views
flushing lines in gather environment [duplicate]
Possible Duplicate:
How can I add left aligned text to an equation?
I need to write a system with sub-items looking like this:
\begin{subequations}
\begin{gather}
\text{
{\textit{First ...
9
votes
2answers
228 views
Footnote in align enviroment
It appears that one is not supposed to use \footnote in math mode as per this appropriately named question: Footnote in math mode. However, it appears that I can get it to work without having to ...
9
votes
1answer
154 views
Correct usage of \ifmmode
Seems that there is some subtlety in using \ifmmode that I am not aware of. For some reason, using:
\newcommand{\hlcodeA}[1]{\ifmmode\else\small\fi\texttt{\hilight{#1}}}%
is not quite identical ...
7
votes
3answers
195 views
How do I make the \min and max bold?
Refering to this question
How to make the table fit into the column?
How should I make the \min and \max bold?
6
votes
3answers
395 views
alignat makes 3 good alignments and 1 bad
I'm having a problem with the alignat environment. This code:
\begin{alignat*}{9}
&X_{12}&+X_{13}& & & & & & & &=1 ...
2
votes
2answers
303 views
Unwanted space before flalign
Why is there so much vertical space between the subsection heading and the equation in the following example. How do I get rid of it?
\documentclass{article}
\usepackage{mathtools}
\begin{document}
...
3
votes
2answers
342 views
Why does \mathrm{\varphi} work, but \text{\varphi} does not?
This:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\mathrm{\varphi}$
\end{document}
Versus:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\text{\varphi}$
...
6
votes
2answers
242 views
A medium dot in math mode
Is there a nice way to produce a medium-sized dot to use in a formula like this:
$x_{i\cdot} = \sum_{j} x_{ij}$
The \cdot is not very visible.
1
vote
2answers
109 views
Spacing of consecutive equation versus a single gather
I know the spacing produced by the following two approaches is slightly different. So my question is which one should I choose? Is it about personal preference?
With 3 consecutive equation ...
2
votes
1answer
143 views
Displaying numbers above each other (like a fraction), but without horizontal line and with less vertical space between them
I want to have a 2x2 matrix of arrows (\uparrow and \downarrow) to illustrate electronic spins. I've managed to get a fraction without the horizontal line using \genfrac, but I can't figure out how to ...
9
votes
2answers
370 views
Nesting subequations within align
subequations seems to only work outside environments such as align and equation. What if I want to preserve the alignment of the equal signs using align while also would like subequations numbering ...
11
votes
1answer
123 views
Compatibility between amsmath and exscale
Both the amsmath package and the exscale package define the delimiter macros \big, \Big, \bigg and \Bigg based on the internal macro \bBigg@. However, as the following minimal example reveals the ...
8
votes
1answer
474 views
Is there a left-handed equivalent of \implies?
I’m aware of and use the \implies and \iff commands to denote right-handed implication and if and only if (so A=>B and A<=>B). I’ve been looking for a similar command for left-handed implication ...
5
votes
1answer
60 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}
...
4
votes
1answer
74 views
Global inline formula breaks configuration
How I can configure inline formula breaks globally without changing original formulas? What package can help me?
I saw this post, but the trick with comma does not work.
UPDATE
The formulas look ...
4
votes
3answers
173 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 ...
6
votes
1answer
224 views
svmono+amsmath causes a warning
\documentclass{svmono}
\usepackage{amsmath}
\begin{document}
\end{document}
generates the warning
Package amsmath Warning: Unable to redefine math accent \vec.
Is there any way to remove this ...
2
votes
1answer
91 views
How to define a new math operator with \mathclap in its arguments?
I would like to define a math operator with \mathop and I would like its arguments to be automatically put in a zero width box with \mathclap. Defining an operator, e.g. \sum, with \newcommand
...
7
votes
1answer
368 views
Vertical spacing before and after equation environment: empty line or not?
The vertical spacing in front of and behind the amsmath equation environment is different whether I insert a blank line or not (im using KOMA-Script with parskip=half if this is important). I'd like ...



