0
votes
0answers
37 views

Irrelevant spacing for equations

I have some problem with spacing. In the right column there are so many irrelevant space before and after my equations, and also after my picture. \documentclass{article} ...
13
votes
1answer
111 views

How can we detect that we are right after display math mode? (for vertical spacing)

I need a "\smartmedskip" feature/macro in plain TeX which is in usual identical to \medskip, however, if we are right after display math mode, then it should be just "disabled", i.e. it should then ...
7
votes
2answers
113 views

Align equations with conditions

I am using the following equation with boundary conditions, I would like to position the equation centrally aligned and would like to keep the boundary condition to the right. But the equation is a ...
3
votes
3answers
125 views

Fit equations as same size of the text fonts

An inline equation is written with the sentence appears, It can be noticed the line spacing has been locally increased for that particular sentence containing the variable E. How to shrink the ...
5
votes
2answers
149 views

Unit spacing with siunitx in an equation

I'm just starting to get to grips with the siunitx package, but I've noticed that there seems to be some issues with regards to unit notation spacing in an equation. With siunitx it is possible to ...
2
votes
0answers
61 views

Eqnarray vs align environments [duplicate]

I keep reading that \begin{align} is preferred to \begin{eqnarray}. Unfortunately, I can't get align to justify rcl. I'll change between align and eqnarray, and the rightmost column is right ...
0
votes
1answer
69 views

Changing vertical spacing between equations

I'd like to reduce vertical spacing between dmath equations. I don't know how spacing works here. I tried changing line spacing with setspace but to no effect. This is meant to be a formula sheet with ...
1
vote
0answers
30 views

Starting a theorem or a proof with an equation and vertical spacing

Is it bad practice to begin the statement of a theorem or of a proof with an equation? If it is acceptable, what is your opinion on the resulting spacing in the three cases, in the code below? In the ...
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. ...
0
votes
0answers
34 views

Is there a way to compact equations? [duplicate]

I know you can compact titles using: \usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{0pt}{0pt} I want to do something similar with equations, I have a lot of whitespace below and ...
2
votes
2answers
210 views

Vertical space between align and alignat environments

I have a problem with the vertical space between align (1) and alignat (2). How can I reduce this space to the same vertical space as before (1)? How can I completely erase the vertical space? I know ...
1
vote
0answers
54 views

Extra spacing before an equation when line nearly breaks

I am having difficulty with producing an MWE, but let me describe the issue. I have a large document with tons of equations and run into issues with spacing. Most of the time it is fine, everything ...
1
vote
1answer
146 views

how to change spacing between align environments and equation environments?

I am using align and environment for various equations. There is some space that comes before and after the equations that I would like to minimize. Is there a single command that could be used to ...
28
votes
6answers
2k views

How to make an equation more compact?

I have an equation that wastes a lot of space around the union symbol: \documentclass{article} \usepackage[cmex10]{amsmath} \usepackage{amssymb} \begin{document} \begin{equation} RA_U \left ( new ...
4
votes
2answers
79 views

Spacing and alignment in equations

I didn't find a solution about how to add units to equations. I have my code \begin{equation} \eta = \frac{\Phi}{P} [lm \cdot W^{-1}] \label{eq:mv} \end{equation} which is centered by ...
0
votes
2answers
77 views

Decrease the space between formula and text, and the formula position of align environment

Please see the picture first. My two questions are described in the picture. As known to us, when we use "\begin{align}", it will appear at the next line automatically. Could I just move it just be ...
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 ...
2
votes
0answers
42 views

How to modify horizontal spacing between equation elements globally, or for a single equation? [duplicate]

I've noticed that by default, the horizontal spacing between equation elements is pretty tight, and that I can use commands for horizontal spacing between elements in an equation. Still, I don't ...
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, ...
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}$} + ...
4
votes
3answers
156 views

First column of multicol lower than the rest

Using the multicol package, I get a layout like this: I would like all columns to be aligned properly. I have tried using tables and arrays, but they won't allow my equations to be numbered. (I need ...
7
votes
1answer
735 views

Different space between \align and \equation

Why produce the align and the equation environment different space between the text. And what can I do, that it have the same? \documentclass{article} \usepackage{amsmath} \begin{document} Long ...
1
vote
1answer
60 views

Question about the underbrace in combination with the array

I'm trying to use the \underbrace option, and I kind of managed to make it work with the following code: \begin{equation} \begin{array}{rcl} \left(\Lambda_1 \Lambda_2\right)^T G \left(\Lambda_1 ...
2
votes
1answer
49 views

How to set the equation no with quad space to equation

How to set the equation no with quad space to equation content (centered) like below Sample Text Sample Text Sample Text (1.1) A + b = 20 Sample Text Can anyone suggest how to ...
11
votes
1answer
109 views

Aligning two fractions in the split environment

I have two equations: \begin{equation} \begin{split} d_1 & =\frac{aaaaaaaaaa}{b}\\ d_2 & =\frac{aaaaaa}{b} \end{split} \end{equation} I want the fraction lines to ...
2
votes
0answers
34 views

How can I reduce spacing between parenthesis [duplicate]

How can I reduce space between parenthesis? For example: How can I reduce the space marked by the red?
7
votes
1answer
93 views

Equation-Environment creates unequally large white space

Consider the following example: \documentclass{article} \begin{document} Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida \begin{equation} ...
2
votes
2answers
744 views

Too much white space when using the align-environment

Consider the following example: \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{align} \prod a+bm && \text{is a square in} && \mathbb{R}\\ ...
7
votes
3answers
141 views

Correctly typesetting a relation

I'm trying to typeset a relation. The following should read "< equals {...}", just in the same sense as one would use "x = {...}". \documentclass{article} \begin{document} $< = \{(x, y), (y, ...
5
votes
1answer
80 views

Where is this whitespace coming from in align*?

I am trying to align 2 simple equations using the align* environment: \begin{align*} \phi(\gedge{\tilde{v}_{i_1}}{\tilde{u}_i}) & = \phi(\gedge{\tilde{v}_{i_2}}{\tilde{u}_i}) & = \gedge{v}{u} ...
6
votes
3answers
416 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
106 views

Globally changing math line spacing

In multiline formulas, I often find myself inserting extra vertical space (\\[...]) between lines (especially when there are many superscripts and subscripts). I guess a certain amount of manual ...
5
votes
1answer
127 views

fleqn option and long text lines

When the fleqn option is used, the vertical spacing before an equation placed right after a "long" text line (exactly \linewidth I would say) is improperly set up. See below: From the mathmode user ...
2
votes
3answers
119 views

Formatting an equation

\begin{align} \frac{1}{2} (1-\varepsilon^2)\left(\partial_\tau \phi\right)^2 = \frac{1}{2} \left(1-\epsilon ^2\right) \left( -\frac{S \epsilon \sin\tau }{\sqrt{\lambda }} -\frac{\text{g2} S^2 ...
7
votes
2answers
94 views

Wrong vertical space in theorem environment closed by an equation

It happens that LaTeX, to fill a page vertically, adds extra spaces around equation environments (and other vertical spaces). Now suppose I have a theorem environment (using amsthm) which ends with an ...
5
votes
1answer
138 views

Edit space for overbraces in equation

I would like to use \overbraces and \underbraces in my equation. However, when I make the text for \overbraces too long, the \overbrace doesn't contain the correct part. ...
5
votes
1answer
876 views

`\hfill`-like spacing in math mode without using `align`

In question 83509, a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some ...
1
vote
2answers
197 views

Spacing between a special character and text

Why do I get output like this ? Why is the alignment varying if I embed the special characters like lambda and eta ? code sample 1: \begin{gather} \label{eq:Highest spatial frequency} \frac{2 ...
7
votes
2answers
1k views

Equations and defining equation variables

I have a main equation that should be numbered and now I want to define the variables of the equations which may contain another set of equations. For example please have a look; code: \begin{align} ...
3
votes
1answer
1k views

Adding tabs between two parts of one equation

I need to add a tab between after the semicolon in the equation shown below: \begin{equation} Thr = 4\sigma_n;\sigma_n = median \left(\frac{|x|}{0.6745}\right) \end{equation} How can I do this?
2
votes
2answers
107 views

The multi-line equation with explanation is too wide

The original question provides a good answer for how to add explanations to the multi-line equations. However, my problem is that the explanations have too long space to the corresponding equations, ...
3
votes
1answer
770 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} ...
4
votes
1answer
168 views

Add \par only if last paragraph did not end with displayed math

Background: I have named "sections" (sections for rest of this question) which are conditionally displayed or suppressed based on parameters. To simplify the test case below, these are controlled by ...
2
votes
1answer
104 views

Equal spacing between equations on a page

I am writing a short quiz for my students in LaTeX, however I am having trouble with the spacing. The two equations I have are: $\int sin^3(x)cos^{\frac{3}{2}}(x)dx$ \vspace{20pc} $\int ...
1
vote
1answer
292 views

Latex: Equal spacing between equations on a page [duplicate]

I am writing a short quiz for my students in latex, however I am having trouble with the spacing. The two equations I have are: $\int sin^3(x)cos^{\frac{3}{2}}(x)dx$ \vspace{20pc} $\int ...
6
votes
1answer
284 views

How to remove unnecessary space after flalign* environment

I was wondering whether it would be possible to remove some unnecessary space after flalign* environment. I tried using \belowdisplayskip, but to no avail. Below is the sample input. ...
3
votes
1answer
81 views

Alignment spacing for negatives - Why am I unable to properly align my equations?

Although I searched the Web and indeed found an answer here, I still seem unable to address my issue of aligning two rows in my step-by-step process for solving a very basic equation. Just in case it ...
4
votes
1answer
66 views

How can I move an equation without affecting the label?

I am having an issue with the automatic LaTeX equation and label formatting on one of my longer equations (see results below). Minimum Working Example \documentclass[11pt]{article} ...
0
votes
1answer
372 views

Spacing in multiline equations

Please help me to figure out how to produce with that: I have the following code: $$ gcd(0,0) = 0 $$ $$ gcd(u,v) = gcd(v,u) $$ $$ gcd(u,v) = gcd(-u,v) $$ $$ gcd(u,0) = |u| $$ $$ 2^{x^3} = ...