Tagged Questions

{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
58 views

How to show a wide bar over a letter?

I want to have a wide bar over XY but it just shows a small bar. Any idea? \item In the standard $(x,y)$ coordinate plane, point $X$ has coordinates $(-4,0)$ and point $Y$ has coordinates $(0,-8)$. ...
1
vote
1answer
119 views

Make font size of numerator the same as denominator?

I have a simple question, I would like to make the font-size of the numerator the same as that of my denominator. For example, something like this: e^{-j \frac{2 \pi n k}{K_F}} gives me an ugly ...
5
votes
1answer
56 views

AMSMath \implies and a superscript symbol

I would like to have a superscript symbol attached to the implies-arrow, i.e., something like that \[ \implies^f \] However, this does not work. A similar question was asked here: question But ...
3
votes
1answer
75 views

How can I adjust the position of multiple \vdots after multiple \begin{cases}?

Here's a MWE: \documentclass[12pt]{article} \usepackage{amsfonts, amsthm, amsmath, amssymb} %===== \begin{document} \begin{multline*} \\ % \text{Text} \begin{cases} AAA\\ AAA \end{cases}\\ % ...
3
votes
1answer
74 views

\bigl( \bigr) in inline mode and in align environment

The following, I believe, is a strange behavior of \bigl(<math content>\bigr) in inline math mode and in the align environment. Consider the following MWE: ...
4
votes
3answers
61 views

Creation of enumerate-like enviroment in gather and align environments

I use the gather and align-aligned environments of amsmath package and I want to create a list inside them like the one created with the enumerate environment. How can I achieve that? A MWE would be ...
0
votes
1answer
49 views

Add vertical space in aligned environment and explanation of the unequal space between two gather/align environments

I want to leave some space between the aligned environments and some below the texts in the environments so to have a nicer output. How can I do that? \documentclass[12pt]{article} ...
4
votes
3answers
169 views

Large equation goes out of margin, want to centre it? [duplicate]

I have a large equation \begin{document} \begin{gather} W = \frac{1}{2\mu_0}(\frac{\Psi'^2 \pi^2}{b^2} \sum_{m,n} a_{mn}^2 n^2 (ab/4) + \frac{\Psi'^2 \pi^2}{a^2} \sum_{m,n} a_{mn}^2 m^2 (ab/4) + ...
6
votes
1answer
65 views

Failure of \text within theorem environment

I have an equation within the statement of one of my theorems. Within this equation, I have some text to name a function. However, when this equation appears within the theorem environment, the ...
2
votes
0answers
49 views

“latex missing } inserted” error message in equation [closed]

I have a slightly complex, long section of equations in my latex document, but from what I can see I think it is programmed correctly. When I compile the document, I get the error ...
4
votes
1answer
48 views

\ref counter for equation off by one for labels in align environment

I'm having an issue where the \ref command typesets a number 1 higher than it should be for equations in align; equations are numbered correctly but the references are off.A \ref call to the last ...
11
votes
2answers
213 views

Why must \DeclareMathOperator be in the preamble?

What is the rationale for requiring \DeclareMathOperator to be in the preamble? Why are users not allowed to restrict the scope of an operator definition to a particular chapter or environment, like ...
1
vote
0answers
53 views

Wrong and ugly output of an arrow

I have a weird output regarding xrightarrow{}. Why is that happening? How can I fix it? \documentclass[12pt]{article} \usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry} ...
1
vote
1answer
46 views

Numbered equation with inline text

I am quite new to LaTeX so please excuse me for my ignorance. I can not figure out how to write a numbered equation with inline text. Can someone please tell me why this does not work? I use ...
2
votes
2answers
89 views

Compiling snippets without extra clutter

Assuming that I have some equations in latex A_{m,n} = \begin{pmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\ \vdots & ...
5
votes
1answer
135 views

Why does \begin{align} &&&\cr \end{align} give “Missing number”?

Consider the following MWE: \documentclass{article} \usepackage{amsmath,bbm} \begin{document} \begin{align} &&&\cr \end{align} \end{document} It generates both the "Missing number, ...
7
votes
4answers
143 views

Multiple alignments within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{x}_2 = \dot{x}_{2,0}&+\frac{\partial f_2(x_1)}{\partial x_1} \bigg|_{x_1=x_{1,0}} ...
0
votes
1answer
77 views

Define shorthand command

I use a lot of times the following code: \begin{gather} \begin{aligned} Math here \end{aligned} \end{gather} Is there a way to define a new shorthand command like the following: \SC { Math here } ...
3
votes
1answer
114 views

XeLaTeX hang when using specific math symbols

I am using XeLaTeX in conjunction with amsmath and unicode-math for my reports. After a while, I ran into a weird problem in which compilation would just hang indefinitely. I found out the culprit was ...
5
votes
2answers
174 views

Add equation name besides equation number (so that \eqref inserts only the number)

I am trying to add equation names besides the equation numbers but, in addition, in such a way that \eqref inserts just the number. Inspired by the top answer in Add equation name underneath equation ...
0
votes
2answers
111 views

How to create a mathematics LaTeX document [duplicate]

Ok, this is a complete newbie question: How does one create a methematics paper using LaTeX for a PDF? Specifically, I need help knowing: What to write the document in How to render the Latex How ...
6
votes
2answers
180 views

Components of Vectors

How do I represent the ordered pair representing a vector, without the usual open/close parentheses? My calculus textbook uses these:
2
votes
1answer
62 views

qed symbol not correctly aligned when ending a proof with a diagram

I know there is a myriad of questions about the alignment of the tombstone symbol, but I couldn't see any one that addresses this little issue. Say you end your proof with a diagram such as the ...
4
votes
1answer
104 views

Necessity of nested \text within math mode for proper \mathchoice-based scaling

Quick summary: \text can be used to ensure proper scaling with respect to the correct math style. When exactly should one use it for that purpose? What need is there for nested invocations of \text ...
13
votes
3answers
411 views

Force latex to show a square matrix as square

How can i force latex to print out square matrix as a square matrix with equal width and height in math-mode? I also read amsmath documentation, but don't found any useful help on it. For example ...
3
votes
2answers
130 views

Problem with amsmath's `gather` environment

I have a lot of math to write so I tried to use align inside gather. When the column was over I was getting badboxes. So I used two gather environments and the output is weird. What is happening and ...
1
vote
2answers
249 views

Remove extra vertical space in amsmath's align environment [duplicate]

If I use \begin{align*}...\end{align*} and out of it I write a text then there is a big vertical space between the text and the mentioned environment. Why is there that space? And how can I erase it? ...
2
votes
1answer
121 views

latex typesetting multiline alignment with flalign

I'm trying to align the second line equation below the integral in the first line. How do I go about doing that? I have used \right. commands to be able to move onto the next lines. I didn't have to ...
4
votes
2answers
236 views

Serious problem with \widebar

I met across a serious problem using the widebar math command defined by Hendrik Vogt as an answer to question 16337. It worked fine until I used \(wide)hat in its argument. Here is a M(non)WE: ...
3
votes
1answer
82 views

bmatrix no new row [closed]

I use: \[ M= \begin{bmatrix} 1 & 2 & 3 & 4 & 5\\ 3 & 4 & 5 & 6 & 7\\ \end{bmatrix} \] and as a result i have only one row. 1 is combined with 3, 2 with ...
4
votes
2answers
142 views

About \def\b*{\begin{align*}}

I want to make the code shorter. I defined the following pair of macros: \def\b*{\begin{align*}} \def\e*{\end{align*}} My point is that I saw this is a document, with \def\b*{\begin{eqnarray*}} ...
2
votes
0answers
15 views

Error using split within an equation [duplicate]

I am getting multiple errors for using split within an equation. I use this command in a number of other places throughout my LaTeX document, but there is one case in which many errors are given ...
1
vote
1answer
176 views

Customized equation number not in same line in Beamer

I have the following code beamer, but I can not understand why the number of my equations are not on the same line when using \ tag. The column are "plenty" of space. \documentclass{beamer} ...
0
votes
1answer
67 views

Math in a table

Im trying to put some \times and \power in a table, but it isn't quite working. \usepackage{mathtools} \usepackage{amsmath} \begin{tabular}{| p{3cm} | p{9cm} } \hline \bf hardware & \bf ...
0
votes
1answer
48 views

Align formula with amsmath

I know similar questions have already been asked, but still I couldn't get the alignment to work. I know that align is supposed to replace eqnarray, but I just don't manage to achieve the same ...
2
votes
2answers
1k views

LaTeX Error: \mathbb allowed only in math mode.

I'm writing a package which, among other things, gives abbreviations for \mathbb, as follows: \newcommand{\A}{\mathbb A} \def\B{\mathbb B} \def\C{\mathbb C} \newcommand{\D}{\mathbb D} ...
1
vote
1answer
54 views

Bracket extending on two lines

I need to write something like this in latex: I can use \Big\{ or \bigg\{, but the problem is that all I write next goes on a single line. I need to embed the bracket into two lines, how to do ...
4
votes
1answer
117 views

\hslash with other letter

I would like to know how to make a character like \hslash, but with a 'd' instead of an 'h'. I know that \hbar is defined using \mathchar'26, might there be a similar character for the slash in ...
7
votes
1answer
128 views

Left aligning equations without align character

I realise that this has been asked many times before, but no answers I've found seem to provide a solution to my question. I'd like to left align all text in an align block, in: ...
3
votes
3answers
136 views

\raisetag not working with alignedat environment

It seems the amsmath \raisetag macro does not work in combination with the alignedat environment. See the MWE below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
1
vote
0answers
35 views

How can I make braket's \Set work with align* and htlatex/tex4ht

I have the following test.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{amsmath} \usepackage{braket} \begin{document} \begin{align*} \Set{|} \end{align*} \end{document} When I ...
1
vote
1answer
62 views

How can I get htlatex to work with amsmath's align and cleveref?

I have a document test.tex: \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \AtEndPreamble{\usepackage{cleveref}} \begin{document} \begin{align} . \end{align} \end{document} It ...
1
vote
0answers
31 views

numbering of equations in a cases-like environment [duplicate]

I'd like to get exactly the output generated by \begin{gather} \left\{ \begin{aligned} a &= b,\\ c & = d. \end{aligned} \right. \end{gather} except that I'd like separate numbers for each ...
2
votes
1answer
54 views

Are the \[ and \begin{equation} used interchangeably?

When I use double dollar signs $$ or \[ and \] to begin and end math mode I have no problem compiling the file. When I substitute them with \begin{equation} and \end{equation} correspondingly I get an ...
6
votes
3answers
150 views

Define a \dots-aware command

edit: changed the MWE to show the problem with french babel So, I was wondering about in TeX.sx and came upon this question How do magic \dots work in amsmath?, I wanted to do the same thing (have a ...
7
votes
1answer
39 views

Is it OK to use a macro for an operator, or a macro defined by `\DeclareMathOperator`, as a non-operator?

Macros like \det, I believe, is intended to be used before some expression, but sometimes I wish to use them as in \det \in \mathbf{VP}. Is it acceptable to use them like this instead of using ...
2
votes
1answer
64 views

\tag{} causes line break in align environment. how to prevent?

while using the leqno and fleqn options of amsmath package tags tend to cause line-breaks: MWE: \documentclass{article} \usepackage[leqno, fleqn]{amsmath} \usepackage{mhchem} \begin{document} ...
4
votes
2answers
111 views

How to break a line in a long equation?

I am using a class named abntex2 and I don't know how to break an equation. I've tried inserting a package amsmath, breqn, mathtools, but it does not work. I type: \usepackage{amsmath} ... and ...
6
votes
2answers
66 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 ...
8
votes
1answer
183 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: ...