{equations} is about the various environments to typeset displaystyle mathematics, e.g. equation and {align}. For general questions about mathematical typesetting use {math-mode}. Both tags are possible on the same question.

learn more… | top users | synonyms (1)

49
votes
1answer
27k views

Is it possible to pagebreak aligned equations?

The report I'm writting features a lot of long, multiple lines equations. To reduce visual polution I've been using an aligned environment nested inside equation. This way (unlike just using an align ...
9
votes
2answers
2k views

Avoid addition of spaces when using colorbox in equations

Colorbox adds some spaces when I use it in equations. E.g. in \documentclass[12pt]{article} \usepackage{xcolor} \begin{document} \colorbox{yellow}{${a^2}+b^2=c^2$} ...
3
votes
2answers
3k views

Alignement in columns and spacing between columns of an equations environment

(Too) Long ago, I had some problems with some equation. I wanted them to look like this (this is how they looked in LyX), but when compiled they looked like this: . What botheres me compared to ...
4
votes
1answer
5k views

How to force left alignment in an aligned array of formulas?

So I try \begin{equation}\label{eq2} \left.\begin{aligned} \Phi (z)=-\frac{{\rm 1}}{{\rm 2\pi}{i}} \int _{-\infty }^{+\infty }\frac{N-iT}{x-z} dx ,\\ {\rm \Psi }(z)=-\frac{{\rm 1}}{{\rm 2\pi }{i}} ...
2
votes
1answer
168 views

How to say in tex “missing T = 0” (that would mean there was no such T == 0)? [closed]

I think about trying $T=0$ but it seems kind of wrong because we do not assign but check for value == to... So what is the correct way to say that somewhere there was no such variable (say named T) ...
9
votes
1answer
6k views

Adjust space between displayed equation and the following text

I often have displayed equations in the middle of a paragraph, so that the following text of the equation does not start on a new line but follows with a space. In such situations, I would like to ...
9
votes
1answer
442 views

Spacing issue for newenvironment wrapper of equation environment

If I create a custom environment based on the equation environment, I get a spacing issue: the next line of text after my environment closes doesn't start on the left margin. Example code: ...
4
votes
1answer
1k views

Is it possible to flush left equations using “numcases” or “subnumcases”?

I am wondering if it is possible in LaTeX to flush left equations when using the numcases or subnumcases environment provided by the cases package. Hereafter I include a bit of code to explain the ...
11
votes
1answer
3k views

Coloured equation number (without changing colour of reference using hyperref)

I am working on a file where I am using the package hyperref so that the references to equations are linked and coloured. Here is a MWE: \documentclass{article} \usepackage{amsmath} ...
11
votes
3answers
26k views

Using \gather and \align together

I'm very picky regarding alignment inside my proofs. What's frustrating me right now is that I have some lines that I want to be center-aligned (using \begin{gather}) and others that I wish to align ...
6
votes
2answers
8k views

Argument of align has an extra '}'

Okay, this was compiling just fine yesterday. I've since been making some changes, and now get the following error: ! Argument of \align has an extra }. <inserted text> \par l.85 f(t) = ...
27
votes
3answers
5k views

How to make a standalone document with one equation?

I was surprised to find that standalone package can not compile a document with an equation: \documentclass{standalone} \begin{document} \begin{equation} % not working! F(V, T) = E(V) + D(T) ...
4
votes
4answers
1k views

How can I avoid widows and orphans after displayed equations?

Edit: The original title of this question was "How can I avoid widows and orphans with the geometry package?" However, as egreg pointed out, the geometry package was not the cause of the problem. ...
5
votes
1answer
8k views

How to align right within equation array

Suppose I have something like the following: \begin{eqnarray*} \mathrm{gcd}(x^3 + 6x^2 + 5x + 5, x^3 + 13x^2 + 6x + 3) &=& 102x^2 + 108x + 2 \ \mathrm{with} \ p = 109 \\ \mathrm{gcd}(x^3 ...
3
votes
3answers
1k views

Weird error with eqnarray

The following piece of code \begin{eqnarray*} \expval[\mathcal{N}] &= \frac{\rho_0}{\rho_1} ~, & \var(\mathcal{N}) &= \frac{\rho_0}{\rho_1} + 0.280 \, \frac{\rho_0^2}{\rho_1^2} ~, \\ ...
15
votes
2answers
16k views

Linebreak between \left and \right [duplicate]

Possible Duplicate: How to make \left, \right pairs of delimiter work over multiple lines? I would like to type something like this: \begin{equation} \begin{split} \left( ba ba ba ...
10
votes
2answers
3k views

Equations and Double Spacing

If a document (in any class) is double spaced, how do you redefine the spacing around centered equations as if there was single spacing? Whenever I use double spacing, I feel like the space before and ...
7
votes
1answer
1k views

Why should I ever use equation when I can always use align? [duplicate]

Possible Duplicate: align vs equation Is there any reason why I should use equation when I align seems to produce the same output? The reason I am asking is that I like solving math using ...
4
votes
2answers
709 views

Varying number of columns in multi-equation environment

Consider the following document: \documentclass{article} \usepackage{amsmath} \newcommand{\expr}[1]{\begin{pmatrix}x_#1\\y_#1\end{pmatrix}} \begin{document} \begin{equation} c = a \cdot b ...
12
votes
2answers
8k views

Putting equations in \intertext to annotate a proof

I'm trying to typeset a proof with Latex. When I do proofs, I like to alternate between a line of text, to explain each step, and the resulting equation. I also like to have the equations align at the ...
13
votes
2answers
536 views

Which packages/practices are relevant for writing Structured Derivations? (similar to Dijkstra's calculational style of proofs)

Does anyone know of any packages that support this style of writing proofs? The only things that I've found are: tex-ewd, a bunch of plain TeX macros on CTAN written specifically with Dijkstra in ...
3
votes
4answers
6k views

equation number problem

I'm relatively new to TeX/LaTeX, writing classroom notes. here's what I got: \begin{equation} \label{eqn:constantspeed} v=\frac{s}{t} \end{equation} It is very important to remember that Equation ...
1
vote
1answer
262 views

Correct format of an equation

I have this equation: \begin{equation} B_{1} = 0.9(B_{2}) + \\ \bigg[ \sqrt{(x_{1}^2 + y_{1}^2 + z_{1}^2)}-\sqrt{(x_{2}^2 + y_{2}^2 + z_{2}^2)} \bigg] \end{equation} I heard the B_{1} is ...
22
votes
1answer
6k views

What is the difference between \notag and \nonumber in align environment?

I use \notag or \nonumber in align environment but there seems no any difference when display. What is the difference between these two commands?
5
votes
1answer
950 views

how to set the left margin for all formulas in the text?

My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it ...
1
vote
0answers
44 views

Indicator function [duplicate]

Possible Duplicate: How to look up a symbol? How do you represent Indicator function in LaTeX? I would like to use something like \mathbb or \mathcal on the "1" character; is it possible? ...
8
votes
2answers
9k views

How do I keep a string of text together without it doing a line break?

I'm writing up a long paper, in which in prose I have various equations. However, I do not want a line break to occur within the equation - I want the equation to stick together. I want to do this ...
2
votes
2answers
268 views

How to place two line of text in front of the sum sign?

So I have this \[ min\sum_{i=1}^{n} \] which results in What should I change to get this:
3
votes
3answers
1k views

Vertically Aligning Multiple Symbols in Each Row

In the following MWE, I want the \implies symbols to be aligned, and both \leq symbols on each row to be aligned (adding space between everything as necessary). How can I add & symbols in the ...
4
votes
1answer
982 views

\noindent won't work for stopping indentation after a math formula

In this minimal working example: \documentclass{article} \begin{document} \begin{description} \item [{a)}] \begin{flushleft} test1 test1 test1 test1 test2 test2 test2 test2 \[ x^2+x+1=0 \] % ...
6
votes
1answer
545 views

How do I create an automatic break in long math expressions

Is there a way to allow long math expressions to break automatically, whenever (and only) in situations where they extend beyond the body text of a document? For example, I would like something like ...
4
votes
2answers
477 views

How can I add size of Tikz drawing into size of equation?

This is slightly modified code from Frédéric's answer to How can I add clips above matrix? \documentclass{mwrep} \usepackage{amsmath} \usepackage{tikz} ...
1
vote
2answers
3k views

How to left align a text in IEEEeqnarray environment?

I am using IEEEeqnarray environment and want to left align a text. How to do that? \documentclass[a4paper, 10pt, conference]{ieeeconf} \usepackage{amsmath} % assumes amsmath package installed ...
72
votes
2answers
83k views

How to write conditional equations with one-sided curly brackets [duplicate]

I want to write a conditional expression such as the following. What is the best way to express such conditional expressions in Latex?
2
votes
1answer
2k views

Positioning of equations

I am trying to position my equations as in the image below, but I cant seem to get it to work (mainly because I cant get the line breaks to work). How would I position my equation like in the image ...
4
votes
2answers
545 views

Numbering Last Equation in List of Equations

I am using the following code to create a list of equations, \begin{equation} \begin{array}{rcll} \| \hat{\textbf{v}}_{i}^{*} \|^{2} & = & \left\| \hat{\textbf{v}}_{i}^{*} + ...
11
votes
1answer
449 views

What would be the appropriate technique for typesetting a “where” list of variable specifications after an equation?

I'm often finding I need to lay out an equation in a manner resembling the following source: \begin{align*} x = y + z \end{align*} where $y = $ the value of $y$; $z = $ the value of $z$. ...
2
votes
3answers
413 views

Customizing theorem environments, eqnarray, and equation

I almost always use the following environments: equation, eqnarray and environments that are defined in the preamble with the command \newtheorem (i.e. definition, theme, Theorema, proposition etc ...
1
vote
1answer
643 views

Inserting new line under \exists in math mode [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? Minimal example of my document. I'm using redesigned exists. \documentclass{article} ...
14
votes
3answers
29k views

Two sets of aligned equations in two columns?

Say I have a set of equations: (1) \begin{align} wx&=u\\ wy&=v\\ w&=10 \end{align} (2) \begin{align} x&=u/w\\ y&=v/w\\ \end{align} How can I do the following: put (1) and ...
5
votes
1answer
2k views

Customize the way eqref works with tags

I'd like to have a version of \eqref that treats equations with a custom tag differently from the usual numbered equation. In particular, if I assign a tag to an equation, I'd like \eqref not to put ...
8
votes
6answers
4k views

Setting a single equation in a paragraph in a smaller font

I'm trying to figure out the best way of making a single equation just a little bit smaller. Of course, I could try and break up the equation into pieces and proceed that way, but I'd like to ...
1
vote
1answer
718 views

I need help aligning my equations to the left

Here is my working code: I want my equation to be aligned to the left, does anyone see how? I want each \iff sign to be under an \iff sign. \begin{eqnarray*} e^z &=& e^w \\ \iff log(e^z) ...
19
votes
6answers
7k views

Multiline equation with LHS alone on first line?

I would like my multiline equations to look like this: Left-hand-side of my equation = right-hand-side number 1 = right-hand-side number 2 = etc. I know there is a simple way to do ...
5
votes
1answer
734 views

Using cleveref with tagged equations

In my document I have a tagged equation, something that goes like \begin{equation}\tag{$\dagger$}\label{whatever} \end{equation} Then latter I want to refer to it using \eqref{whatever}. But ...
34
votes
6answers
90k views

How to align a set of multiline equations

I am trying to align a set of long equations, that are themselves align environments as most of them are spreading on multiple lines. Currently I just have a sequence of align environments, with ...
4
votes
1answer
555 views

Align equation with a better method than {split}?

I've got the following code that I'm using and wondered if there was a way to get the minus sign (-) of the third term to align with the minus sign of the second term, or if there was a nicer way to ...
13
votes
5answers
3k views

Help me to write Long LaTeX equations fast with colours and possibly with other aids

I am too slow LaTeX-typist, for example with the equations below I cannot find where I am missing some bracket. Could someone offer me some computational method? I use Vim but I am happy with any ...
7
votes
2answers
819 views

Excess vertical space in mdframed ending with display math environment

When the mdframed environment ends with an align there is excess vertical spacing at the bottom. I would like to adjust the MyBoxedEnvironment environment such that the vertical space at the bottom ...
8
votes
2answers
10k views

Horizontal spacing after equation

I have the following snipped in my LaTeX document: \begin{align} \sum_{j=1}^{m}x_{ij} &= 1 \text{ for } i = 1,2,...,n \sum_{i \in P_k}x_{ij} &\leq 1 \text{ for } j = 1,2,...,m \text{; } ...