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

learn more… | top users | synonyms

1
vote
1answer
37 views

\section* doesn't work with \renewcommand{\section}

I'd like to modify the \section command and I'd like to sometimes use \section*, but this doesn't work with amsmath package. The code below works fine without it, but I often need it: \documentclass[...
1
vote
1answer
19 views

How to annotate lines in split equation with left-justified comments?

I have an equation that is split into 4 lines using amsmath's split environment. How can I annotate individual lines with a text comment such that the comments are themselves left-justified and ...
3
votes
2answers
34 views

Bracket around some (not all) lines in an equation

I want to put a bracket around some lines of an equation and add some text to it. It should look like this: so the : of the texts should be aligned as well as the =. I tried this code: \begin{...
2
votes
2answers
52 views

how to align 2nd column in align environment?

This: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} s_yp&=s_zp && \Longleftrightarrow\\ S_yp &= S_zp &...
1
vote
2answers
121 views

What causes the problem when compiling a displayed equation with \overbrace and \underbrace?

$$ \left( \begin{array}{c} m+n\\ m \end{array} \right) = \frac{(m+n)!}{m!n!} = \frac{\overbrace{(m+n)(m+n-1)\cdots(n+1)}^\mbox{$m$ factors}}{\underbrace{m(m-1)\cdots 1}_\mbox{$m$ factors}} $$ I am ...
2
votes
1answer
59 views

vertical position of \dots

In this answer on math I wrote $\frac 12=0.50000\dots =0.499999\dots $ The dots after the 50000 came out higher on the screen than the ones after the 499999. Changing it to \ldots works fine. Why ...
2
votes
2answers
28 views

multline environment with multiple equation numbers

I would like a and b to have an equation number of their own, while maintaining the overall layout that multline offers. Is that possible? \documentclass{article} \usepackage{amsmath} \begin{document}...
12
votes
2answers
217 views
+500

Xparse k argument to parse options at end of environment

I am trying to combine the solutions from How to properly use \collect@body within align environment Xparse t argument type (underscore with optional parameter) to parse optional parameters ...
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 ...
1
vote
0answers
23 views

Showkey with cleveref and amsmath

I have the following problem with showkeys. When use in combination with cleveref and amsmath the label for equation get some extraneous curly brackets. For example im compile the following the label ...
8
votes
1answer
69 views

How to properly use \collect@body within align environment

The following code (an example of using \collect@body as a test case for this specific question) modified bmatrix to not add the surrounding [ and ]. This seems to work fine, but requires that I ...
1
vote
2answers
39 views

Issues with Formatting a Table for Integers Modulo 9

I'm having some trouble formatting a table in LaTeX. I'm trying to format a table for the addition of the Integers modulo 9, but it isn't working correctly. This is what I currently have: \begin{...
2
votes
1answer
58 views

Letter “c” appearing inside pmatrix environment with aastex

My journal recently updated its official class file, aastex, from version 5.2 to version 6.0. Apparently this was a major rewrite, as the journal abandoned its own class and based 6.0 off the ancient ...
2
votes
2answers
51 views

How do I represent a mathematical function in LaTeX? [duplicate]

I want to write something like F : X ----> Y x |---> 2x in LaTeX where the x |---> 2x appears directly below F : X ----> Y Any suggestions on how to do this?
3
votes
2answers
54 views

Math environments: Allow empty lines?

Compiling the following document will raise the errors Paragraph ended before \align was complete and Displaymath should end with $$ because par-breaks are not allowed in math environments/...
1
vote
0answers
20 views

\qedhere in line with the bottom of a \bigg) in a formula that ends a proof/example

This is a a follow-up question to this answer. Here there is a minor modification of the MWE provided by the user (where I put \bigg instead of \bigl/\bigr): \documentclass{article} \usepackage{...
0
votes
0answers
20 views

Well-behaved \qedsymbol like for example environment [duplicate]

I would like to have a symbol like \blacksquare at the end of the environment \newtheorem{example}{Example}. However, this symbol should be well-behaved in presence of formulae (i.e. no white space ...
0
votes
1answer
23 views

How can I reduce the size in array environment?

My code is \[ D_{k+1}(x_{k+1}) = \min_{\begin{array}{c} \text{all } x_k \text{ such that}\\ p_{{x_k}{x_{k+1}}} > 0 \end{array}} \left[ D_k(x_k)-\ln\left(p_{{x_{k-1}}{x_k}} ...
0
votes
1answer
37 views

Equation with condition [duplicate]

I'd like to create the following equation: Could you please give me a solution? Thank you.
0
votes
0answers
24 views

wrong output using \lim [duplicate]

I want to write an equation than contains a limit using the following MWE: \documentclass[a4paper,openright,12pt]{book} \usepackage[a4paper, total={165mm, 240mm}]{geometry} \usepackage{fancyhdr} \...
2
votes
1answer
47 views

Double Subscript in Math Mode

\usepackage{amsmath} \usepackage{siunitx} \begin{equation} 2I_{x}S_{z} \overset{\ang{90} \text{Pulse_{I_y}}}}{\rightarrow} \end{equation} For some reason this is not working. For the overset ...
20
votes
3answers
317 views

How to get the cases brace to be a link

I copied the cases code form amsmath.sty and tried to wrap the \lbrace within a macro and added a \left. to get this to compile. This of course loses the size info so the brace is not the correct ...
2
votes
0answers
40 views

siunitx changed something and when I comment it out, pdflatex freezes

I was using a latex template (provided by a journal) to write a paper with the journal's .cls file . These are the style files provided separately: AMSbsy; AMSfonts; AMSgen, AMSsymb, natbib, upmath ...
2
votes
0answers
43 views

maths symbols- don't appear [closed]

I have a problem with maths symbols. The \leg dosen't appear in PDF. \documentclass[12pt,a4paper,notitlepage]{report} \usepackage{polski} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \...
3
votes
2answers
115 views

Centering a big pmatrix

$$ \setcounter{MaxMatrixCols}{28} \setlength{\arraycolsep}{0.1pt} \renewcommand{\arraystretch}{0.5} \begin{pmatrix} \centering 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 ...
4
votes
1answer
94 views

Combine split and align environment

The split environment allows you to give one number to two equations, as in \begin{equation} \begin{split} a&=1+2+3+4\\ b&=5+6+7+8 \end{split} \end{equation} which gives Note that the ...
1
vote
1answer
68 views

Argument of \mathaccentV has an extra }

I am not able to locate the source of this error. ! Argument of \mathaccentV has an extra }. <inserted text> \par l.238 I've run across a `}' that doesn't seem to match anything. Latex tells ...
3
votes
2answers
126 views

Stop all symbols being changed to mathbb after specifying \mathbb

When using this format, I encountered very interesting phenomena, where \mathbb mode does not stop even after putting "}". By compiling the following, \documentstyle[amsfonts]{jcss} \begin{document} ...
0
votes
0answers
18 views

Difference in the three methods for unnumbered equation [duplicate]

What is the (subtle) difference between the three ways to typeset unnumbered equations (if any)? The first is the plain tex, $$ E = mc^2 $$ The second is the LaTeX \[ E = mc^2 \] And the third ...
0
votes
0answers
11 views

flalign is not aligning equations to the left [duplicate]

I'm trying to align my equations to the left, for this I'm using $\begin{flalign*}$, but as you see, below the matrices the equations are not being aligned, how can I fix this? This is the result I ...
6
votes
2answers
211 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!
2
votes
3answers
41 views

Aligning system of equilibrium equations

I would like to align equations on the right side to this imaginary red line (to the left). Also, it would be really nice to have just one number of the equation (just like in equation environment) ...
4
votes
1answer
62 views

How to do an equation correctly if the formula won't accept it?

I do have two formulas in my text and the only way I could make them work is in a way with a lot of escaping commands. Now the formula looks correct but whenever I try to add an equation to make it ...
3
votes
1answer
61 views

Blank lines in an equation and some other similar function

Why blank lines between equation makes error? there are a lot of commands in latex and almost for all of them these blank lines are not important, but why in this case is important and is there any ...
1
vote
1answer
40 views

Error missing $ and extra }

I typed the following code : \subsubsection{x....x} x..................x \textit{a} and \textit{a^{\dagger}} : This gives me the error missing $ inserted or extra }. Please tell me how to correct ...
5
votes
2answers
213 views

Should I keep using LaTeX to do my math homework?

My probability professor suggested us to try to use LaTeX for the homework. I have successfully wrote my first LaTeX project (5 pages). However, no one except me used LaTeX in that course. I spent 1 ...
4
votes
1answer
36 views

Abbreviations for align

I know from the Technical notes on the amsmath package that it is not possible to introduce direct abbreviations like \newcommand{\bal}{\begin{align}} % doesn't work \newcommand{\eal}{\end{align}} %...
8
votes
2answers
81 views

Number format in matrix, like siunitx

I'd like to know how to format numbers in matrix of amsmath without repeat sinuitx commands, like \num or exponencial expressions. I want to show numbers with grouped digits, and write engineering ...
0
votes
1answer
22 views

How to redefine \eqref output, keeping numbering but changing text and brackets?

I am looking for a macro to redefine \eqref{} output. Resulting in: (equation: 1.1) Thank you.
1
vote
2answers
87 views

Beamer Presentation compile error

I'm trying to do a presentation doing a Beamer template. I've loaded the following packages: \usepackage{graphicx} \usepackage{booktabs} \usepackage{bm} \usepackage{mathtools} \usepackage[utf8]{...
7
votes
2answers
99 views

What is the correct command to produce small wedges in differential forms?

In a differential form (see, for example, Definition 10.11 in Principles of Mathematical Analysis): there are wedge-like symbols. I found two plausible commands to produce them: \wedge and \land. ...
4
votes
2answers
57 views

Top alignment for multicolumn equations set

I need to align following equation set to top: \begin{equation} \begin{aligned} S_{1} &= \frac{11.0}{24.1} &= 0.46 \text{ пкФ}/{\%}; \\[1em] S_{2} &= \frac{25.6}{32.3} &= 0.79 ...
0
votes
1answer
29 views

Changing the top margin of the proof environment

In my opinion the proof environment has too big of a top margin. I'd like to have it visually closer to the proposition or theorem it refers to. I have verified that adding \vspace{-3ex} before a ...
3
votes
1answer
42 views

Making my equation flush left

I am trying to make the first 3 lines of this equation flush left. How can I do so? Also, is there an easier way to enter the parentheses and have the size I want? If I don't use the \left( and \right ...
2
votes
1answer
44 views

Matrices of nodes in Tikz alike to the ones in the amsmath package

I'm trying to work with matrices in Tikz. Specífically I would like to follow the amsmath package but I'm having a really hard time dealing with the overlay - remember picture thing. Here is the ...
2
votes
0answers
33 views

Conflict with amsmath, ntheorem, and showlabels

The code below does not produce the labels for either of the equations. (I mean the labels that should be shown by showlabels, not the equation numbers.) Removing either of the options to ntheorem ...
2
votes
0answers
100 views

Beamer presentation

I am trying to create a beamer presentation on TeXMaker and the problem that I'm having is that if I try to insert any type of equation into the presentation or just anything requiring $$, for example ...
1
vote
0answers
17 views

Cross-references to labels in subequations+gather environments fail to point to the correct place

The labels in my subequations+gather environments fail to point to the right place. See below. % Using MikTeX 2.9 on Windows 7. Compiling with TeXstudio 2.10.8 \documentclass{article} \usepackage{...
0
votes
0answers
16 views

Prevent gather* from creating new line [duplicate]

I've been trying to use the gather* environment for non-aligned centered equations within enumerate but I would like to prevent the new line that gather* inserts at the beginning of each item. Is ...
2
votes
1answer
91 views

How could I duplicate this example?

I am relatively new to LaTeX and have made a few (beautiful) documents with it. However, I ran into a brick wall today, I cannot seem for the life of me be able to replicate the example shown below. I ...