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

learn more… | top users | synonyms

2
votes
1answer
104 views

missing $ inserted on code

I am certainly new to latex and have this error in a high frequency in my code. The error is claiming I have a missing $ sign in many places, and I imagine that my syntax usage of $ is off. My ...
1
vote
2answers
42 views

How can I typeset this optimisation problem?

I need to reproduce the following equation: I've tried the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{aligned} & \text{minimize} ...
6
votes
2answers
1k views

Aligned multline

I want to show the derivation of a formula where I encounter long formulae. Unfortunately the derivation is very complex, so I have to show some intermediate steps. My problem is, that I want to mix ...
3
votes
1answer
47 views

New command: Hypothesis

I'm new with Latex and trying to get four hypotheses in the following style: Hypothesis 1 (H1): This is my first hypothesis. I'm using the amsmath package and the following code: ...
0
votes
2answers
23 views

Long set description

I want to define the following set whose description is too long. How do I break it into two? $L_4 =\lbrace{ w \mid w \text{ every } 1 \text{ in } w \text{ is either preceeded or followed (not ...
3
votes
3answers
68 views

Arrange long multiple equations with texts between them

I have aligned the equations in the following way but using multiple \qquad. I don't think it is a good practice to do so. Moreover the equations should fit within the width of the document. What I ...
4
votes
1answer
106 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 ...
2
votes
1answer
22 views

Fixing the spacing of overbrace and underbrace contents relative to large brackets

Consider the code for the MnWE: \documentclass{article} \usepackage{physics} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \begin{equation} \norm{f - L}_{\infty} = ...
2
votes
1answer
24 views

Command \* already defined

I have included the package amsmath as required to defined a new theorem/corollary (without number), but I keep having the following error: ! LaTeX Error: Command \* already defined. Now, ...
0
votes
2answers
35 views

Aligning Multiline Matrix Equations

I need to align two equations, one of which spans two lines. I've tried the solution here, but this isn't for matrix equations, and it doesn't seem to work with these. My minimized code is: ...
1
vote
1answer
35 views

Looking for a more elegant (correct) way of creating a formula

I wanted to achieve the following: And I did but my code looks like it was in a major accident: \documentclass{article} \usepackage{amsmath} \usepackage{stackengine} \begin{document} ...
3
votes
3answers
54 views

Alignment of formular after linebreak in amsmath (flalign)

I am trying to achieve something like this: in amsmath. The best I could come up with so far is the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{flalign*} ...
4
votes
1answer
35 views

Subequations with varioref and cleverref

Can somebody tell me why the references don't work in this example? \documentclass{article} \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} \usepackage{amsmath} \begin{document} ...
3
votes
3answers
67 views

Adjusting the description about an equation in Latex

I have to write the "Where" text about an equation as shown the given picture. The "Where" text appears to the left side which seems a little awkward as per the standards. Please suggest me, how can I ...
10
votes
2answers
2k views

Why doesn't lineno number a paragraph when it is followed by an indented equation?

While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when a space is included, e.g. the ...
2
votes
1answer
35 views

Making \xrightarrow longer but without using spaces

I have this table, and as you can see I make the last arrow longer with loads of spaces. Is there a better way to make it as long as the other \plusarrows but at the same time with a centered text ...
0
votes
1answer
65 views

minus sign in mathematical typing

i can't have a minus sign in this "equation": thanks \documentclass[french,12pt,oneside,openright]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
1
vote
1answer
43 views

Appropiate size of mathmatical formula in a text

I used this code to inset a mathematical formula in my two-columns text. ($Prob_{SVM}-Prob_{MLP}$) Comparing to normal text, Isn't it a little big and inappropriate? How can i fix it?
1
vote
1answer
45 views

Even vertical spacing in multline and gather environments

Using fractions or expressions with sub- and superscripts may lead to uneven vertical spacing in math environments spanning several lines (i.e., align, gather, multline,...). A fix for align was ...
4
votes
1answer
64 views

Symbols for left and right limits

I am using lualatex, are there symbols for left and right limits, like small "-" and "+" to put above the numbers? For now I use \documentclass[a4paper,12pt]{book} \usepackage{fontspec} ...
65
votes
5answers
10k views

Is there a preference of when to use \text and \mathrm?

I'm unsure of when it is preferable to use \text versus \mathrm, is there some unwritten rule about the use of these? For example, I saw the following code in a math post: ...
6
votes
1answer
315 views

commath and \ifinner

The commath package use the TeX command \ifinner to select between inline math mode and display math mode. Because of this, it fail to work properly with some display math environments. In the breqn ...
3
votes
1answer
50 views

Using \qedhere automatically in every proof

I'm currently using \qedhere at the end of my proof every time since I'm really satisfied with the positioning of the qed mark. The problem is, I use it so often that I want to make the qed mark ...
4
votes
3answers
42 views

Align an aligned environment nested into split

I want to align the lines inside an aligned that is nested inside a split with the rest of the equation. This is an example: \usepackage{amsmath} \begin{equation} \begin{split} \text{max:} ...
2
votes
0answers
19 views

Put parentheses by default when referencing an equation [duplicate]

I have this equation: \begin{equation} \label{eq:helicsol} x = y \end{equation} and then I have: As we can observe, the solution of \ref{eq:helicsol} and I get: As we can observe, the ...
5
votes
2answers
91 views

Missing number, treated as zero with amsmath and calc

This simple code produces "Missing number, treated as zero" \documentclass{article} \newcounter{test} \newcounter{testtwo} \usepackage{calc} \usepackage{amsmath} \begin{document} ...
5
votes
1answer
76 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 ...
3
votes
1answer
50 views

How to move amsmath equation label into LHS margin?

I am using amsmath and I would like to move the equation label into the left hand side margin aligned with the top of the equation. I have looked through the documentation but I can't find anything on ...
1
vote
0answers
41 views

Collection of all definitions, theorems, etc. as flash cards

Is there a way to collect all definitions, theorems, corollary etc. at the end of an document as flash cards in din a6 in landscape? Without copying all the data again? So that the document contains ...
2
votes
2answers
46 views

How to box aligned equations

\boxed{ \begin{align*} x &= 1 \\ y &= 1 \end{align*} } obviously doesn't work/compile.. \begin{framed} \begin{align*} x &= 1 \\ y &= 1 \end{align*} \end{framed} sort of work, but ...
2
votes
1answer
900 views

Getting AUCTeX and amsmath to work with multiple files

I'm using Emacs 23.1.1, with AUCTeX plugged in, to edit my .tex files, but I'm having a small problem with my amsmath environments. The current document I'm editing is divided into multiple files. ...
3
votes
3answers
489 views

Preceding a command by an argument

\usepackage{amsmath,amssymb,amsopn}% read amsldoc.pdf for more details %\genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator} %\newcommand{\frac}[2]{\genfrac{}{}{}{}{#1}{#2}} ...
27
votes
1answer
5k views

Problem with qedhere

In a paper I'm writing, I end a proof with a displayed equation that has some cases in it. The relevant code looks something like the following: \[f(x) = \begin{cases} 2x & \text{if $x<0$}\ ...
7
votes
4answers
104 views

Aligned underbraces between amsmath equations

I have an \amsmath aligned environment containing some equations aligned with &=. I want to be able to place underbraces between the equations in such a way that that both the contents and “point” ...
19
votes
3answers
2k views

How do magic \dots work in amsmath?

The amsmath package redefines the \dots command so that it "guesses" the correct height of the dots with respect to its context. For example $x, \dots, y$ will produce three lowered dots, aligned ...
6
votes
2answers
121 views

Define certain letter in math-mode to be always non-italic - using unicode-math in lualatex

I once had this question a while ago, asking about how to set the letter j always to be non-italic j in math mode without using \mathrm. The provided solution was: ...
3
votes
1answer
50 views

\begin{align} not working as expected

In this small snippet of code, I'm doing quick derivation to arrive at an equation to be used later in the analysis: $ |\vec{F}|=q|\vec{v}||\vec{B}|sin(\theta)\\ m\frac{v^2}{r}=qvB\\ ...
1
vote
1answer
47 views

Extra alignment tab has been changed to \cr. <recently read> \endtemplate [duplicate]

I need to insert a 19x19 matrix in my article, but when I try this code: \begin{vmatrix} 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 ...
19
votes
2answers
5k views

How to use more than 10 tab stops in \bmatrix?

I'm using bmatrix environment from the amsmath package, and I'm trying to do something like this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
3
votes
1answer
43 views

Missing } inserted. \end{alignat}? why this error keeps on popping up?

here is a part of my code, which I am trying to run. \begin{alignat}{2} [M]: \max_&Z ~ \label{eqnP27}\\ \mbox{s.t.}~ %capacity constraints & \sum_{k \in H} y_{k} \leq ...
13
votes
2answers
1k 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 ...
2
votes
1answer
54 views

Why are \colon and \mathpunct{:} not equivalent? [duplicate]

According to this answer, \colon is of type \mathpunct. But in the MWE below, the outputs of the two lines are not identical. Why not? \documentclass{article} \usepackage{amsmath} \begin{document} ...
3
votes
1answer
93 views

Trigonometric function script? [duplicate]

Is there a script for the sinc function analogous to \sin for sinus? If not, what method should I use to insert it in a equation?
10
votes
3answers
377 views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} ...
0
votes
0answers
36 views

Typesetting system question related to amsmath [duplicate]

After consulting the existing questions and answers related to packages for Mathematical Equations, I found this recommendation, given by @cmhughes, advising to use amsmath. After including it in the ...
1
vote
2answers
41 views

Equation and math system on same line

To add a math system into a LaTeX document, I add to preambol \newenvironment{sistema}% {\left\lbrace\begin{array}{@{}l@{}}}% {\end{array}\right.} then in the document I do something like ...
1
vote
1answer
97 views

Epsilon and log functions

I m trying this T(n) \epsilon \left(\Theta(n^\log_22$\right) = $\Theta(n^\log_22 )$ = $\Theta(n)$ but i want below result. Is E sign is epsilon only . And also log bracket not coming properly and ...
6
votes
3answers
297 views

How to typeset piecewise functions [duplicate]

I don't know what the big { thing is called so can't search and when tried and write in LaTeX and didn't find this expression or structure in word either.
4
votes
1answer
64 views

Extra vertical space when using align and no numbering

I think I've found a small bug in the way the showonlyrefs=true option in mathtools works. Consider this semi-minimal example: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} % UFT8 - ...
4
votes
2answers
1k views

How can I use align environment in conjuction with iopart.cls class?

I would like to use align environment over eqnarray for typesetting my equations. However the publisher forces to use the iopart.cls as the article class file which, as they mentioned, is incompatible ...