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

learn more… | top users | synonyms

8
votes
1answer
184 views

\cee command (from mhchem package) doesn't allow \\[10pt]

when using \cee command (from mhchem package) within align environment, \\[10pt] doesn't work. It works in align environment without \cee. Is there a workaround? here is a MWE: ...
1
vote
2answers
87 views

amsmath, vec and if not working together

I am trying to define some macros in which I need an "if" which test contains an argument of the macro. The issue arises when this argument is \vec{<arg>} and the amsmath package is loaded. Here ...
9
votes
1answer
468 views

How do I rescale an align environment on a beamer slide?

I'm trying to resize an equation on a beamer slide to make it larger. However, the usual approach of using \scalebox doesn't seem to work: \begin{frame} \scalebox{2}{ \begin{align} x &= y\\ y ...
1
vote
1answer
111 views

Force equation number to be right aligned

I'm trying to typeset some basic equations with proper numbering. I simply want a single equation to have a right aligned number in the two column environment that I'm using. I tried three approaches, ...
1
vote
0answers
24 views

What package must I load to be able to write \mathbb{Z}? [duplicate]

Downloaded TeXworks a couple weeks ago and have been using it to type my mathematics homework in LaTeX. I keep having to write sentences such as: Let $n$ be an integer. There are times when I would ...
9
votes
2answers
316 views

Center one equation of many in align?

I have the following align enviroment: \documentclass[12pt]{memoir} \usepackage{amsmath} \begin{document} Here we see \begin{align} \text{cat} &= \text{dog}\\ \text{dog} &= cute ...
6
votes
3answers
116 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). ...
5
votes
1answer
99 views

I can't use some 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 sequence". ...
2
votes
1answer
116 views

How can I write the number set of positive rationals in LaTeX2e?

How to write this in latex2e, the set of all rational numbers.
4
votes
2answers
126 views

Designing medcirc and circledtimes symbols

It would be great to use only \medcirc and \circledtimes from the pxfonts or to design the similar symbols by other techniques. The symbols from pxfonts are quite well but when I connect the ...
2
votes
1answer
106 views

tex4ht compile error using mathml switch using multline with pmatrix and easybmat

It took me a long time to find this and be able to make a MWE. I hope someone has an idea what is causing it and if there is a work around. This problem shows up in this small example, only when I use ...
3
votes
2answers
137 views

is it possible to add dashed lines between rows/column of pmatrix from amsmath?

I wish these packages from amsmath have more options! Is there a way to add a macro to add dashed lines between rows and columns for a matrix typeset using pmatrix? Similar to what is being asked ...
2
votes
4answers
165 views

How to modify eqnarray?

I'm currently writing a maths undergrad dissertation using Texmaker, and when I use eqnarray. It keeps justifying all of the equations to the right but still in the center? How do I change this so ...
6
votes
3answers
199 views

align* not aligning properly with \sqrt

Using this, everything is aligned properly: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} 16x^2&=144&\text{| }&\text{sqrt}\\ 4x&=12&\text{| ...
3
votes
1answer
113 views

Lyx handling of \begin{align} and duplicate \tag with amsmath?

I am trying Lyx. I started Lyx and asked it to import this plain Latex file: \documentclass[12pt]{article}% \usepackage{amsmath} \begin{document} \begin{align} A &= B+C \tag{33}\\ D &= ...
1
vote
1answer
63 views

Common numbering for theorems and definitions

I use the amsmath environment and I put the following code in the preamble: \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} \newtheorem{cor}{Corollary}[section] ...
1
vote
1answer
133 views

The meaning of $\rightsquigarrow$? [closed]

Perhaps this is not the good place to ask this question. In order to write a scientific paper, I would like to use the symbol $\rightsquigarrow$ (works also with $\leadsto$ which has a clearer ...
6
votes
1answer
125 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: ...
4
votes
3answers
75 views

How can I make a single-aligned row under two double-aligned rows in an equation?

I have an equation that I would like to align like this (the x is actually \times): A = BBBBB CCCCCCC x DDDDD = EEEEEEE FFFFF I have tried the align environment, align with nested ...
2
votes
1answer
192 views

To have a question mark over an arrow [duplicate]

I want to have a question mark over the arrow "\to". I cannot use "\limits^{?}" command because "\to" is not a mathematical operator. How can you have a question mark over the arrow?
3
votes
2answers
69 views

raggedleft (right-aligned) entries in pmatrix? [duplicate]

I'm using pmatrix from amsmath package and would like the output to align all entries in the same column to be align on the right hand side, as shown here in the code: \[ \begin{pmatrix} -1 & ...
5
votes
4answers
122 views

Multiple alignment points in equations and no curly brackets for correcting spacing

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{alignat*}{5} &\text{Honning:}\qquad ...
6
votes
1answer
517 views

Using \left( & \right) around amsmath's align delimiter (“&”)

I want to align equations (using the align environment from the amsmath package) inside matching \left( and \right) commands. For example: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} ...
-1
votes
1answer
199 views

How do I write this mathematical equation?

I want to write the shown mathematical equation in LaTeX but I am getting an error. Here this is not eta but it is n. The code which I am writing is \begin{equation} \Delta {E} + \frac{\omega^2 ...
3
votes
1answer
96 views

Vertically aligned equation number with underbrace

I would like to vertically aling an equation number for the following MWE: \documentclass{scrartcl} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{align} \begin{aligned} a ...
9
votes
2answers
360 views

Cleveref: Parentheses around references to subequations using \labelcref

Using the Cleveref package (v0.19) i have a problem with missing parentheses when referencing to subequations, using the \labelcref command. Here is a MWE: \documentclass{article} ...
5
votes
2answers
184 views

Extend box around equation to the entire line

My question is simple: I use \boxed from the amsmath package and so far so good. The single issue I have is that I use the boxed environment on its own line, but the box is only around the equation, ...
6
votes
2answers
146 views

Reference to subequation forces serif font; how to work around?

I'm using the subequations environment in a book in which some text is in sans serif font. When I have a reference to a subequation, the reference comes out in a serif font, even if the surrounding ...
4
votes
2answers
241 views

How to reduce the size of fractions typed in align environment?

When digit fractions align environment, this goes with a size \displaystyle. But I want the size is like the one shown in a paragraph. I tried with \scriptstyle but I get letters too small and the ...
1
vote
1answer
189 views

Why isn't eqref working?

I am trying to use \eqref as in the following, but instead of (1), I get a set of blank parentheses as the result. Could anyone help me fix the problem? \documentclass[10pt]{article} ...
3
votes
2answers
133 views

Aligning several \begin{align} blocks in LaTeX [duplicate]

Just a quick question regarding aligning equations in LaTeX. Basically, this is a snippet of my source code: \begin{align*} dU&=\partial Q - \partial W \\ \partial Q &= dU + \partial W ...
4
votes
1answer
105 views

`split` not working with self-defined command

I have defined a handy little macro to typeset matrix elements in braket-notation and now want to align the next line to a part of this matrix element, because the equations are really long and ...
4
votes
1answer
67 views

How to get a bigger bracket? I have tried \left and \right

I have the following code. The problem is the outer brackets are the same size as the inner bracket so it doesn't look that nice. I have tried \left and \right and it doesn't make a difference. The ...
12
votes
3answers
419 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
4
votes
2answers
264 views

Help me input a column vector

I'm trying to input an arrow vector (a column vector, see the picture) in an align environment, but it reports an error. Can someone show me the TeX code of it in an align environment?
6
votes
1answer
934 views

\atop vs. \substack for multiple lines under a sum

I did a search trying to find out how one can typeset multiple lines under a sum and found out that there is the possibility to use \atop or \substack together with a remark that one shouldn't use ...
7
votes
1answer
123 views

problem on the parentheses direction in equations

I recently installed a MacTex version and I faced a problem with the direction of parentheses both in the enumeration and the text reference using \eqref. I use XeLaTeX to compile the tex files. Since ...
3
votes
1answer
135 views

Mathsymbol in the documentclass memoir

I write a thesis with \documentclass{memoir} and included the ams packages by usepackage{amsmath,amssymb,amsfonts,mathrsfs,datetime} However there is the difference in using bolt math sign. Here ...
15
votes
3answers
843 views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
1
vote
0answers
151 views

\to or \longrightarrow and \mapsto or \longrightarrow in functions? [closed]

I'm typing up a research project and I am not sure which ones I should use when I'm defining functions. I personally prefer \longrightarrow and \longmapsto but I see a lot of people use \to and ...
10
votes
3answers
1k views

To write this norm equation better?

I have this norm \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \lVert f \rVert_{L_{2}(\Omega)} = \text{sup}_{ \begin{cases} v \in L_{2}(\Omega) \\ v \not= 0 ...
8
votes
2answers
114 views

Please help me input the following formula correctly

This is the formula I want to be made in LaTeX. The problem is to make this formula aligned. I've made something like this \begin{gather} 1 = \cos \, (\bar x, \bar x) = \cos^2 \, (\bar x, x) + ...
4
votes
1answer
192 views

Widetilde and prime (derivative) position

I need to write something like {\widetilde f}' in my text, but the result looks rather ugly since the prime (derivative) sign is too low. It looks like \widetilde{f'}. Is there any way to do this ...
4
votes
1answer
281 views

Aligning piecewise functions and function definition maths

I am unsure how to align the following so that \mathbb{N} is aligned with the n in f(n). I have tried \begin{align*} but that just gave me a bunch of errors. Any help will be much appreciated! It ...
5
votes
2answers
98 views

How to format a multi-line statement with a label

I am trying to format a multi-line statement with a label. \documentclass{article} \usepackage{amsmath} \usepackage[showframe,pass]{geometry} \begin{document} Let $P(n)$ denote the statement that ...
4
votes
1answer
201 views

To have script-like S for Schwartz space

I want this symbol My tex \documentclass{article} \usepackage{mathrsfs} % for \mathscr{S} \usepackage{amsmath, amsfonts, amssymb, textcomp} \usepackage[T4, OT1]{fontenc} ...
3
votes
1answer
446 views

How to make the equations at the center

(I'm using LyX). When I'm writing multiline equations, with \aligned the align of the equations is right, how can I make it to be center? For example: Here how it looks when I writing at math ...
3
votes
1answer
47 views

To align line of 3 units equispaced

My tex \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} x(\alpha) = \lim_{x \to a^{+}} x(t) & \text{ and } & x(\beta) = \lim_{x \to \beta^{-}} x(t) &. ...
5
votes
1answer
59 views

Using a macro with ifx inside of a bmatrix

The following code does not compile if I don't have the extra braces around the entries of the matrix, and I don't know why. Can I modify \switcher to obviate the need for these extra braces? ...
4
votes
1answer
120 views

smartref package: Problems when referencing from math mode \text{}

I'm getting errors when using smartref's \sectionref command (or similar) from inside amsmath's \text{...} environment inside math mode. MWE: \documentclass{article} \usepackage{amsmath} ...