1
vote
2answers
38 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? ...
8
votes
1answer
100 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: ...
5
votes
4answers
105 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 ...
12
votes
3answers
269 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. ...
6
votes
1answer
95 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
1
vote
1answer
84 views

Very wide equation ruins consecutive side edges

I've just created a set of equations in matrix form which looks fine. It also seems to fit in the space of my document, but in the following space after the equation, the side edge is suddenly gone, ...
0
votes
0answers
30 views

Remove extra space to the left of aligned environment [duplicate]

To typeset a collection of equations with alignment, I am using align* from amsmath. Some of these equations have right-hand sides that have multiple lines that should be indented. So far I am using ...
8
votes
1answer
133 views

How to increase the vertical space surrounding mathematical equations?

How can I, in a systematic way, increase the vertical space surrounding mathematical equations? \documentclass{article} \RequirePackage[ansinew]{inputenc} \usepackage{amsmath} \begin{document} Ah, ...
8
votes
3answers
170 views

Reduce space between 'genfrac' and indices

\documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \DeclareRobustCommand{\eulerian}{\genfrac<>{0pt}{}} \begin{document} % Source: ...
5
votes
1answer
100 views

How to get proper spacing when typesetting an expression such as $f\left(\frac{y}{2}\right)

I am trying to typeset the value of a function $f$ for $x = \frac{y}{2}$ (or something other which requires more vertical space). To get properly sized parentheses I tried: f\left(\frac{y}{2}\right) ...
4
votes
1answer
79 views

Spacing within equation

I've got the following equation: \begin{align*} y_{i} &= f(x_{i}) + \epsilon_{i} \nonumber \\ &\approx \underbrace{f(x_{0})}_\text{=$\beta_{0}$} + ...
12
votes
3answers
201 views

Multiple letters without spacing in Math [duplicate]

Is there something I can add to the preamble of my document such that multiple letters without spacing in a Math environment (such as $NP$) do not have extra spacing between them and are not ...
6
votes
1answer
95 views

Hyperref, amsmath, and horizontal spacing at start of a numbered equation

When amsmath is loaded before hyperref (which I thought was the preferred order), spacing within the equation environment is altered: \documentclass{article} \usepackage{amsmath} ...
8
votes
2answers
177 views

Underarrow with smaller depth, shorter minimum length, and smaller arrow head?

I am using underarrows from amsmath to decorate messages with their direction, as in $\underleftarrow{\mathsf{msg}}$ () and $\underrightarrow{\mathsf{msg}}$ (). I am looking for a better underarrow, ...
2
votes
2answers
548 views

Split environment alters spacing around binary operators

I've been using split environment from amsmath. A problem that I've run into is that if an & for alignment is placed next to a binary operator, the spacing on that side of the operator is reduced ...
4
votes
1answer
59 views

Alignment in math environment

Consider the following piece of code \documentclass[twocolumn]{article} \usepackage{amsmath} \begin{document} \begin{align*} A_i &= B_i + C_i\\ &= D_i + E_i+F_i + G_i + H_i\\ &= I_i + ...
2
votes
2answers
142 views

How to get rid of extra space before align and gather envronments, but allow page breaks?

I am editing a rather long text which contains many equations and floats, and encountered a problem with the align and gather environments. MWE: \documentclass[preview]{standalone} ...
6
votes
3answers
426 views

Multiline equation with specific indentation style

I have a multiline equation of the following type: \begin{equation} \begin{split} f(x,y) & =a\\ & =b\\ & +c\\ & +d. \end{split} \end{equation} But the output I would like to have is ...
7
votes
1answer
152 views

How to remove the unwanted space on the left side of the following gather*?

\documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax \begin{gather*} 6x^2-30x+36=0\\ 6(x^2-5x+6)=0\\ 6(x-2)(x-3)=0\\ x-2=0 \quad ...
5
votes
2answers
168 views

Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$

I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
4
votes
1answer
586 views

Remove unnecessary horizontal space from amsmath align between two &

How do you remove unnecessary horizontal space in an amsmath align environment between two &? Consider: \documentclass{article} \usepackage{amsmath} \begin{document} Version 1: \begin{align*} ...
3
votes
1answer
776 views

Spacing between equation and text inconsistent due to large equations

I've read through answers to similar question but I still have the same problem. Essentially, I have some large equations and they are in the form \documentclass{article} \usepackage{amsmath} ...
3
votes
1answer
95 views

Text inside Math

I tried doing this: \usepackage{amsmath} $x^2 \text{something} y^2$ but that just came out like: x^2somethingy^2 Anyone know how to fix this issue? I need to have text inside my math ...
9
votes
2answers
233 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
38
votes
2answers
594 views

Why is there a \, space at the beginning of the “aligned” environment?

Near the beginning of the definition of the amsmath environments aligned and gathered (and also mathtools' multlined) there's an explicit thin space \,. This often has to be cancelled with \!, as ...
5
votes
1answer
454 views

Seeking advice for my clumsy math homework template [closed]

I typed my math homework with LaTeX. This was my first try on making some document with LaTeX. I can Google for math symbols, so it's okay, but the overall structure is really clumsy; especially ...
15
votes
2answers
341 views

How to remove an unwanted white space at the last end of a horizontal curly brace?

You can see there is an unwanted white space at the last term below. \documentclass[border=12pt]{standalone} \usepackage{amsmath} \begin{document} $ ...
6
votes
2answers
194 views

Space added after \right

I have a problem regarding the space added by \right.. I have read this answer regarding the topic, where @egreg proposes a macro that deletes this space. However, when using this in my own ...
5
votes
2answers
716 views

How to get align or similar equation environment to use the whole line instead of centering around the equality sign

I'm creating a Beamer presentation in which a line in the equation environment should fill the whole screen and should not only be centered arround the equality sign. I think this looks nicer and is ...
4
votes
1answer
122 views

Make a postfix operator with suppressable spacing?

I would like to create a postfix unary operator that normally leaves \medmuskip between the operand and postfix operator. It's easy enough to do this using, for example, ...
9
votes
5answers
749 views

parenthesis around underbrace too big

I have the problem that I want to have an equation with underbrace but the surrounding parenthesis shall not include the underbrace, i.e. should have the size as if the underbrace wasn't there. Here ...
3
votes
1answer
68 views

Add spacing before and after `\hline` in an array in an equation

I'm trying to add a little bit of space before and after the \hline in this matrix: \documentclass[a4paper,journal]{IEEEtran} \usepackage[cmex10]{amsmath} \interdisplaylinepenalty=2500 ...
1
vote
2answers
210 views

Spacing of consecutive equation versus a single gather

I know the spacing produced by the following two approaches is slightly different. So my question is which one should I choose? Is it about personal preference? With 3 consecutive equation ...
9
votes
1answer
2k views

Vertical spacing before and after equation environment: empty line or not?

The vertical spacing in front of and behind the amsmath equation environment is different whether I insert a blank line or not (im using KOMA-Script with parskip=half if this is important). I'd like ...
6
votes
1answer
283 views

Equation spacing issue with fleqn (amsmath) and frenchb (Babel)

This is a follow-up to this question. Here is an exemple of the code I wrote to add a light gray background to important equations: \documentclass{article} \usepackage[fleqn]{amsmath} % ...
8
votes
2answers
770 views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
27
votes
1answer
11k views

Vertical Spacing within align environment accounting for fractions

The default vertical spacing within an align environment seems very tight when there are fractions in the lines. I am aware of three manual tweaks that can be applied: Adjust the value \jot. ...
8
votes
3answers
1k views

Why doesn't lineno number a paragraph when it is followed by an “align” equation environment without a space?

lineno skips the line numbering in this case: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{lineno} \linenumbers \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
5
votes
2answers
940 views

Relation spacing error using =& in aligned equations

The middle equation in the following example seems to have wrong spacing around the = sign. The only difference is that I used =& for aligning around the = sign rather than &=. This worries ...
8
votes
1answer
467 views

ignoring vertical space due to overbraces in cases environment

In the following formula, I would like to change the rendering such that the lower end of the "cases" brace looks as if there were no underbraces. Is that possible? I already tried \smash and negative ...
9
votes
2answers
1k views

Compact collapsing of equations and paragraphs

I want to duplicate the compact look of G. K. Batchelor's fluid dynamics book. Where a paragraph terminates such that the mathematical expression can collapse up into the vertical space of the ...
9
votes
2answers
5k views

Normal subgroups

To typeset that H is a normal subgroup of G, I would use H\unlhd G. However, the result doesn't satisfy myself, since the G seems too close to the triangle: Adding a space \ makes "too much ...
3
votes
2answers
629 views

Amsmath, spacing, left alignment

It was recommended that I include amsmath package to use \tag{} (which works). When I do this however, it somehow changes my predefined spacing; I would like everything to be left aligned, no left ...
1
vote
2answers
3k views

Narrower columns in align environment

How to set the column width in the align environment. I've got a align environment to demonstrate how to do division by hand so the columns always contain only one number, but the columns are much ...
3
votes
2answers
478 views

Adjust vspace between multiple align environments

I am using some independant align environments directly one after the other one and it produces some nasty space between them. Is there any workaround to shrink the size of the space a little bit? ...
3
votes
3answers
888 views

Too much space between full paragraph and subequations env

I have a document using subequations and the parskip package. If the paragraph before a subequations environment is completely filled up to the last line, then additional vertical whitespace is ...
8
votes
2answers
1k views

\mathrel conflict with \left,\right,\middle

I refer to this question and particularly to this answer. I defined \set by \usepackage{mathtools} ... \DeclarePairedDelimiterX\set[2]{\{}{\}}{#1 \mathrel{\delimsize|} #2} where ...
24
votes
4answers
3k views

Using display style fraction in a matrix environment

I'd like use the \dfrac command in a bmatrix environment as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} \dfrac{\partial f}{\partial x} \\ ...
1
vote
1answer
387 views

Using \jot crashes \intertext’s spacing

As mentioned in Intertext vertical spacing, there seems to be some inconsistencies in spacing around AMS’ macro \intertext, even without changing the length of \jot. But if I’m using a longer \jot to ...
7
votes
3answers
1k views

Extra space above boxed multi-line equation

Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time. However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...