Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amsmath]

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

2
votes
2answers
73 views

align optimization problem with multiple conditions

I am using the following environment to align optimization problem statements from Typesetting an optimisation problem \documentclass{report} \usepackage{amsmath} \newcommand{\norm}[1]{\lVert#1\...
1
vote
0answers
35 views

Some basic questions about LaTeX/Advice on how to learn [duplicate]

I want to learn how to write math using LaTeX. I have a mac and have downloaded MacTex. I have used https://math.stackexchange.com and have learned the very basics of writing with MathJax and I liked ...
1
vote
1answer
69 views

Strike out an arrow with a small oblique segment like with \nrightarrow

I'm looking for a way to strike out an arrow in the same style (or idiscernible) as predefined struck arrows, with short, slightly-oblique segments, like for instance \nrightarrow. Using \not or \...
0
votes
0answers
57 views

Path integral with TeX [duplicate]

Is there an already existing way to display directionality in a path integral? \oint works fine to indicate that you have a path integral, but (at least for the 2D case) directionality is important. ...
0
votes
1answer
69 views

How to use multiple \label across multiple \align* environments?

For long calculations, I have two align* environments for two equations. I have as an example \documentclass{article} \usepackage{amsmath} \usepackage{nccmath} \begin{document} \begin{align*} \...
0
votes
0answers
41 views

Colouring aligned math text with macros

I would like to have coloured text-generating macros that i can use inside an align* environment. However, the two seem conflicting. Here's a MWE describing the issue. \documentclass{article} \...
0
votes
3answers
72 views

How to make fractions and exponents larger?

In an align environment in the amsmath package, sometimes an exponent like e^{...} is too small and a fraction like \frac{1}{2} is too small. I can use \tfrac to make fractions smaller, but for some ...
6
votes
3answers
463 views

how to write a formula that branches into two?

I would like to write a formula (see the picture), how can i fix the arrows? This is my code: \documentclass[a4paper,12pt]{article}[12pt] \usepackage[italian]{babel} \usepackage[T1]{fontenc} \...
3
votes
4answers
80 views

Inline column vectors appear too big [duplicate]

When I use a vector within the text, the vector appears too big - how can I make it smaller? Example: \documentclass[12pt]{scrartcl} \usepackage{amsmath} \usepackage{amssymb} \begin{document} One ...
10
votes
1answer
155 views

Improving alignment of signed fractions in table

I would like to find a way to better align signed fractions in a table. Take the following example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \begin{document} \begin{table}...
3
votes
2answers
51 views

Why isn't \ddots working while \vdots works?

I have the following matrix \usepackage{amsmath} \usepackage{amssymb} $$ M=\begin{bmatrix} \frac{\partial f_1}{\partial x_1}(p) & \frac{\partial f_1}{\partial x_2}(p) & \cdots & \frac{\...
9
votes
1answer
57 views

align* has extra leading vertical space in mdframed

The problem Inside an mdframed environment, placing align* at the start of the environment produces extra vertical space above, whereas using \[\] instead does not create as much vertical space. ...
1
vote
2answers
38 views

Shifting one equation to the height of two others

Assume the following MWE \documentclass[12pt]{scrartcl} \usepackage{amsmath} \begin{document} \begin{equation} \begin{aligned} y_{it} = \beta_0 + \beta_1 \times X \times W + \alpha_i + \epsilon_{it} ...
2
votes
1answer
54 views

smallmatrix between brackets `[]` instead of parentheses `()`

I'm trying to write a math cheat sheet and have to write matrix in a compact way. I saw a very nice piece of answer there. What I want to do know is to set the matrix in brackets [] instead of ...
1
vote
2answers
38 views

let aligned blocks float left in align*

I'm using align* to comment some equations: \begin{align*} &loooooooooooooooooooooooooooooooong \\ &short, &comment 1 \\ &not\; so\; short, &comment 2 \\ \end{align*} It produces ...
0
votes
0answers
21 views

A lot of unwanted vertical space before, and after pmatrix [duplicate]

I have this code: یک بردار را در فضای $ R^3 $ به صورت زیر نشان میدهیم: \[ \vec{V} = \begin{pmatrix} X \\ Y \\ Z \end{pmatrix} \] همه ی قوانین $ R^2 $ برای $ R^3 $ برقرار است. مثلا به بردار ...
0
votes
2answers
23 views

Missing bracket [duplicate]

I'm having a hard time to figure out what is wrong with the follwoing MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \langle n,l',l_s',m',m_s'\vert H_{\rm SO}\vert n,...
4
votes
3answers
57 views

alignat align two sums under each other

This \begin{alignat*}{2} f(a) &= \lim_{s} \frac{1}{2 z} \int_{-w}^{+e}\int_{-r}^{+t} g(q)\cdot h(q) d x d y &\\ &= \lim_{s} \frac{1}{3s} &\Bigg\{ \sum_{w} \int_{-r}^{+t} g(q+e)\...
3
votes
3answers
78 views

equal spacing for 'ordinary' limit and one-sided limit

The problem is that one-sided limits have subscripted symbols above $a$. I tried adding a blank subscript to the 'ordinary' limit, but that didn't seem to even out spacing. \underline{Theorem:} $\...
2
votes
0answers
59 views

Automatically convert math written in .tex into a canonical form that retains all the math information

I believe what I'm going to describe can be done accurately. However I'm not sure about how hard this will be. Basically my motivation is to standardize the math part in most existing math papers so ...
6
votes
3answers
187 views

Multiline equation with some characters that span all lines

I'm attempting to create a multiline equation with some characters than span both lines. I've come closer by using the amsmath package \begin{multline*} Pr[X\leftarrow DECODE(\Delta;r_1,...,r_\ell) |...
3
votes
2answers
136 views

How to properly align Tikz pictures in Latex fraction environment

How to properly align Tikz pictures in Latex environment to get the following picture? My trial code does not compile, \documentclass[preview]{standalone} \usepackage{tikz} \usepackage{amsmath} \...
2
votes
0answers
39 views

Fonts in math operators not matching in XeLaTeX [duplicate]

Using XeLaTeX I have changed the body and math fonts to Gill Sans. However, the operators defined using DeclareMathOperator still appear in Computer Modern. How do I edit my configuration to make ...
1
vote
2answers
35 views

Latex label right and left side of augmented matrix

How do I label both the right and left side of a augmented matrix ? begin{document} \[ \left[ \begin{array}{ccc|c} a & b & c & d\\ a & b & c & d\\ a & b & c &...
1
vote
1answer
22 views

How to create the correct formatting for T(n) time complexity notation of two outcomes.

How can i create the following notation from Introduction to Algorithms, Cormen, et al, i've been trying the following, but the Omega is indented and the \textnormal is quite sketchy in my opinion, is ...
2
votes
2answers
35 views

Changing the spacing in align environment

I want to change the spacing when using \align. My current code is: \documentclass{article} \usepackage{amsmath} \begin{document} These are defined as: \begin{align} &\text{(Identity)} &d(p,...
1
vote
1answer
38 views

Making Inequalities Neat

How do I make my inequalities neat? I find the horizontal spacing between all my < symbols horrendous. And I feel the same way about the vertical distorition caused by \cfrac. Suppose $\delta &...
5
votes
3answers
136 views

Aligning formula problem

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} y ={}& \frac{1}{n!} \left\lbrace \int + f(a) \right. \\ &\left. \vphantom{\int} + [h(u)+\phi(x)] + C \right\...
0
votes
1answer
39 views

Strange amsmath + multicol empty space at the beginning of first column

I need to use multicol environment to write equations in 2 columns on the page, but for some reason it looks like it's inserting a newline in first column. Any way to avoid this? \documentclass[...
2
votes
1answer
33 views

`\let\openbox\relax` doesn't work in the case of `aa.cls`

The journal who owns aa.cls asks the authors to use \usepackage[varg]{txfonts}. However, there is a clash between that package and amsmath to define \openbox: Command \openbox already defined. \vrule\...
3
votes
2answers
68 views

How to shift subequations environment horizontally

How can I shift a subequations environment to the left? \hspace*{} didn't work. \documentclass[journal]{IEEEtran} \usepackage{mathtools} \usepackage[overload]{empheq} \begin{document} \title{...} \...
1
vote
1answer
61 views

Write conversion factors in LaTeX

I would like to write the following conversion factor in LaTeX, I've been looking in different manuals and I can't find anything. I hope you can help me. I have come to the following, but the problem ...
9
votes
1answer
185 views

Customize cases environment

I usually use the cases environment in the amsmath package - it is very good: \documentclass{article} \usepackage{amsmath} \begin{document} \[\begin{cases} x+y=2 \\ 2x+3y=4 \end{cases}\] \end{...
3
votes
0answers
214 views

Simple LaTeX document sticks all consecutive words together (ignoring spaces) both inside and outside of `\text` [closed]

\listfiles\documentclass[varwidth]{standalone} \usepackage{lmodern} \usepackage{amsmath, amsthm, amssymb} \begin{document}\fontsize{30}{36}\selectfont Let $a$ be a symbol. \end{document} The result ...
1
vote
1answer
63 views

Notation of Ring Factor

I can't make this expression Anyone can help me to make this expression?
1
vote
1answer
26 views

How to typeset an array

I would like to produce the following: what is the error? \documentclass{article} \usepackage{tikz} \usepackage{float} \usepackage{amsmath} \usepackage{copyrightbox} \begin{document} ...
2
votes
1answer
63 views

Vertical space before align environment is smaller than before displayed math

The result of the following code is strange: vertical space before align environment is smaller than displayed math. What is the problem with align environment? Edit: I want the same vertical space ...
3
votes
2answers
261 views

Forgotten brace error when I use \left and \right

I've a simple formula: \documentclass[]{article} \usepackage{mathtools} \newcommand\norm[1]{\left\lVert#1\right\rVert} \begin{document} \begin{equation*} \displaystyle\sum\limits_{\...
3
votes
1answer
25 views

Typeset sign similar to n choose k, but with curly braces [duplicate]

Question I am looking for a way to typeset two variables over each other similar to \binom{n}{k} or {n \choose k}. The only difference is that it should be surrounded in curly braces instead of round ...
1
vote
1answer
37 views

Multiline math environment that allows for individually tagged equations grouped by brace as rhs

I'm looking for a math environment that would allow me to write two lines/equations, that needn't be aligned per se, but in which one of the lines looks like this: a = {a(x), where a(x) is a system of ...
4
votes
1answer
59 views

Make \curvearrowright longer

When I use the arc symbol in LaTeX, I use this piece of code (adding to the preamble): \usepackage{scalerel} \usepackage{stackengine} \stackMath \newsavebox\tmpbox \newcommand\reallywidefrown[1]{ ...
4
votes
2answers
109 views

How to use lineno with amsmath align?

Is there a way to have lineno show line numbers for a paragraph that uses the align environment? In the following example, the (first) paragraph that ends with \begin{align} ... \end{align} does not ...
2
votes
1answer
82 views

$k$-largest eigenvalues symbol

how can i achieve this in LaTeX to denote the $k$-largest eigenvalue of a Matrix?
1
vote
1answer
59 views

How should I represent the conjugate of a term in the denominator?

Using \overline for a term in the denominator creates a cluttered look, and \Bar results in a really faint line. Also I only know how to use \Bar over one letter at a time. \documentclass{article} \...
0
votes
2answers
86 views

Why do I get a “! Missing \right. inserted.” message?

What's wrong with this? Error message: "! Missing \right. inserted." (But I don't see it. Everythink works!) \begin{multline} U=\sum\limits_{n=0}^{\infty}\sum\limits_{k=0}^{\infty}\left[(a_{nk}\cos ...
2
votes
2answers
36 views

Why do I get an “Extra alignment tab has been changed to \cr” error message?

What's wrong with the following equation? \begin{multline} D^n(uv)=uD^nv+\frac{n}{n!}DuD^{n-1}v+\frac{n(n-1)}{2!}D^2uD^{n-2}v+\ldots \ &+\frac{n(n-1)\ldots (n-m+1)}{m!}D^muD^{n-m}v+\ldots + D^nuv,...
1
vote
2answers
29 views

Aligning two separate equations without \intertext

How do I align the \Rightarrow commands of these separate equations? Please note that the \hspace{7.5cm} commands of the second equation are my attempt at manual adjustment. Also, I know that there ...
0
votes
2answers
41 views

left and right subscript and arrow beneath variable

Alright, here goes, first I know that my title is somewhat vague, but an image is worth a thousand words, here's what I'm trying to achieve : Now this is the code that I came up with : \...
1
vote
2answers
49 views

left align an alignedat environment

now I am trying to get this output aligned to the left of my document This is the code that I am using to achieve it : \documentclass{article} \usepackage{amsmath} \begin{document} \begin{flalign*} ...
7
votes
3answers
260 views

Force placement of sum operands over index

I want to force the operands of a sum to be placed above an "extended" (longer than usual) index, instead of increasing the width of the sum (in the example, see the sums in (2), which are much wider ...