{align} is an environment provided by math packages that permits multiple related equations to be aligned at a common reference point, usually a sign of relation. For general questions about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.

learn more… | top users | synonyms

4
votes
2answers
1k views

Wrapping text within align

I am writing Flashcards for the upcomming finals. To describe the equations I use the align* environment like this: \begin{align*} x_+ &: \text{ Molenbruch von Enzymen, bei denen ...
4
votes
3answers
1k views

Inserting three minipages in the same line

I'm trying to insert three minipages, side by side, in a line, but I'm failing miserably. Here's what I've been able to do so far: % ...
5
votes
1answer
534 views

A piecewise function with fractions and without tiny text

I would like to create a piecewise function which includes fractions. But the solutions I have found so far squish the fractions in to tiny text that is nearly illegible. The cases environment ...
9
votes
1answer
158 views

How to avoid this undesired horizontal space?

In the following output, why do I get the undesired space before the (, and how to get rid of it globally? Here is my code: \documentclass{article} \usepackage{amsmath} \begin{document} ...
16
votes
1answer
10k views

Split expressions with parentheses in align environment

I am writing down a rather long expression, which has to be splitted in a align environment. The thing is that this expression has parentheses which have to be splitted too. I don't want to use ...
5
votes
1answer
972 views

Automatic linebreak in align environment in macros

I have given a selfdefined command like \newcommand{\AND}[2]{\left(#1 \vee #2 \right)} which makes sure that I always give the correct number of parameters to my formula and which handles the ...
6
votes
2answers
177 views

problem with align

i'm trying to typeset someting like this: \begin{align} f_{**p}(X_p,Y_p) = X_p(Y(f)) = \sum_{i,j = 1} ^n \alpha_i \beta_j E_{pi}(E_j(f)) f \end{align} short remark \begin{align} E_{pi}(E_j(f)) ...
3
votes
1answer
115 views

Spacing between align and list environement

How can I reduce the spacing between the align and the list environment? \begin{align*} {_C}\vOm=( 0, 0, 0 ) \end{align*} <=== THERE IS STILL SOME SPACING inbetween? ...
6
votes
1answer
7k views

Alternative to \text inside an align environment

Is there a way to write texts without resorting to using the \text macro every time I write something in the align enviroment? I am trying to write a proof and pretty much 90% requires me to write ...
6
votes
1answer
315 views

Breaking equation in align enviroment to put textwidth matrix in separate line

I have to put a textwidth pmatrix into an align environment. When using split, it destroys the centered alignment of the other equation. Pseudocode: \begin{align} \vec{a} &= \vec{b} + \vec{c} ...
3
votes
2answers
177 views

alignment and numbering of math formulas

I have 3 formulas which should be aligned at the = sign and numbered (1) to (3). Seems a simple task but trying both \being{equation} with \begin{split} and \being{align} did not work out. I alwasy ...
10
votes
2answers
6k views

Label one line in a begin align*

I have the following block of TeX: \begin{align*} m_n^+ = \dfrac{1}{n}\sum\limits_{k=N+1}^{n} =& \dfrac{1}{n}\sum\limits_{k=N+1}^{n}\left(a_k-L+L\right) \\ ...
4
votes
2answers
921 views

Using aligned and align without amsmath

I am currently working on a proceedings paper, and have realised after finishing it that only specific packages are permitted - one of which is not amsmath. As a result, many of the nice equations ...
4
votes
3answers
1k views

Problem with fraction and align environment - “&” symbol

I am new in LaTeX, thus I need your help. I want to align the \leq symbol under the + symbol. The problem is that the + symbol is contained inside a fraction, therefore, the ...
5
votes
3answers
495 views

Equation numbering

Suppose that when we write an equation in the align environment and we break the equation in two lines. There is only one equation number. How can I place this number not in the last equation line, ...
6
votes
2answers
110 views

How to set some lines right aligned in the align enviroments?

I have try some code like this: \begin{align*} Q(R)&=\bi(R,R)\\ &=\bi(R_I+R_{\Rico}+R_W,R_I+R_{\Rico}+R_W)\\ &=\bi(R_I,R_I)+2\bi(R_I,R_{\Rico})+2\bi(R_I,R_W)\\ ...
6
votes
1answer
758 views

Subequations inside align result in too wide equation

I want to create subequations and allign them such that nice 'inquality constraints' arise. My current code: \begin{subequations} \begin{align} a & \le b & \le c \label{eq:constr1}\\ d & ...
1
vote
1answer
1k views

How to align middle-align text in a parbox?

I am trying to add a frame around a text which would be centered and vertically aligned to the middle of the box but I can only center the text. What should I do to align the text to the middle of ...
7
votes
2answers
333 views

Passing an argument with the alignment operator (&) to a macro within another aligned environment

I am trying to write macros for quickly formatting matrices in math mode. Here is a simple, working example: \documentclass{article} \usepackage{amsmath} ...
8
votes
2answers
477 views

Revtex's tensor macro interferes with nested amsmath split and align environments

I've encountered a strange collision between RevTeX and AMSLaTeX. If I nest a split environment inside an align environment, it works as it should, but then the next time I use the RevTeX \tensor{} ...
2
votes
1answer
2k views

How to handle too long equations?

I have some equations that don't fit in one line. In addition, they have different heights. I think it looks awful. \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align*} ...
14
votes
4answers
704 views

How do I get this strange alignment?

I would like to get a nonstandard alignment in the following code: \begin{align} \text{First left hand side} & = \text{First right hand side} \\ \text{Second left hand side} & = ...
16
votes
2answers
2k views

How to align nested cases?

Please consider the code bellow: \begin{align*} function = \begin{cases} case1 &\mbox{if } n = 0 \\ \begin{cases} case2 &\mbox{if } n = 1 \\ ...
8
votes
3answers
2k views

Labeled linear program with labeled equations and wide objective function

Can anybody help me stating a linear program in latex with the following requirements? The LP itself shall be numbered on the left-hand side (although in the remaining document the equations' labels ...
1
vote
0answers
65 views

How to left align any LaTeX code? [duplicate]

Possible Duplicate: How to move the whole block of {align*} to the left? How can I make this simple code to appear left aligned? \begin{align} \frac{cos2A}{1-sin2A}=cot(45^o-A) \end{align} ...
1
vote
1answer
251 views

How do I typeset something like this (math - image below)?

I figured that that the exam class allows me to align the two parts of the lemma using the the \part command and also I could align the two lines of equation (3.11) using \begin{align*}, ...
6
votes
1answer
7k views

How do I left and right justify text within an align environment

I want to simultaneously have text left and right justified around an align environment. I'm able to do this, but my solution seems like a dreadful hack. I really don't want to prepend every line ...
7
votes
2answers
2k views

Why does aligning equations not work here?

\documentclass{minimal} \usepackage{amsmath} \newcommand*{\op}[1]{\operatorname{#1}} \begin{document} \begin{align*} \noalign{$\quad \op{f} * \op{r} = \op{c}_{\op{f}*\op{r}} (x_1,...,x_k) = ...
2
votes
1answer
244 views

Latex matrix not displaying right numbers

I've just started writing in latex to expose math problems to a forum. I am trying to display a matrix: \[ \begin{align*} \begin{matrix} 1 & -9 & 3 \\ 1 & 2 & -2 \\ -2 & ...
0
votes
1answer
211 views

exam class and align* environment [closed]

I wonder if there is a conflict between the align environment and the exam class. I have the following and it gives an error for \begin{align*} \documentclass[answers,11pt]{exam} ...
13
votes
2answers
3k views

Footnote in align environment

It appears that one is not supposed to use \footnote in math mode as per this appropriately named question: Footnote in math mode. However, it appears that I can get it to work without having to ...
3
votes
2answers
324 views

Multilines aligned to describe a set notation

I'm trying to write a set notation in multiple lines, for example: This is my code to get it. \usepackage{amsmath} \begin{document} ... \begin{align*} Lookup &= \{\, \langle C, A.m, B.m ...
5
votes
1answer
1k views

How to align bibliography to the left

I am using a custom bibliography style I created with makebst. For some reason, the references are not aligned to the left, only the first line is aligned to the left and the rest seems to be ...
15
votes
1answer
664 views

Correct usage of \ifmmode

Seems that there is some subtlety in using \ifmmode that I am not aware of. For some reason, using: \newcommand{\hlcodeA}[1]{\ifmmode\else\small\fi\texttt{\hilight{#1}}}% is not quite identical ...
8
votes
1answer
3k views

Altering fontsize in equations globally

I am trying to typeset all formulas in an article using \small font. If I use \DeclareMathSizes{9}{8}{6}{4}, then the size of in-line math in regular text is also changed. However, I want to redefine ...
7
votes
3answers
2k views

alignat makes 3 good alignments and 1 bad

I'm having a problem with the alignat environment. This code: \begin{alignat*}{9} &X_{12}&+X_{13}& & & & & & & &=1 ...
5
votes
1answer
81 views

align environment according to *first* character, rather than last

\begin{align*} abcd &= abcd &(abcdefghijk)\\ &= ab &(ab) \end{align*} After the first ampersand the equal signs are aligned. However, after the second ampersand, the ...
2
votes
2answers
1k views

Unwanted space before flalign

Why is there so much vertical space between the subsection heading and the equation in the following example. How do I get rid of it? \documentclass{article} \usepackage{mathtools} \begin{document} ...
2
votes
1answer
473 views

Interrupt environment with command

At the moment I'm trying to figure out how I could interrupt an environment. What I did so far... \documentclass{article} \usepackage{amsmath} \newenvironment{envnew} { \begingroup \csname ...
2
votes
2answers
756 views

\noalign without line break / additional spacing

I need a non-breaking version/redefinition of \noalign to use it at the end of an environment (in this case align). So far I searched for the standard definition of \noalign to write a redefinition ...
2
votes
1answer
287 views

conflict with pst-tree and align: auto-pst-pdf problems?

There appears to be a problem when using the pst-tree package together with the align environment and pdflatex (dvi-ps-pdf works, but there are reasons for me not to use it). Attached is a code ...
13
votes
1answer
370 views

What's the right space to right the alignment of a right aligned align environment?

As Hilbert would have put it, had he lived in the TeX-era: No one shall expel us from the Paradise that AMS has created. and one aspect of that paradise is release from the tyranny of eqnarray ...
3
votes
1answer
2k views

Right flush text in math environment

In my align* environment I have a bunch of lined up equations, but I would like to put some explanations of the steps done to the right of the equations. Currently it looks bad: \begin{align*} ...
13
votes
2answers
4k views

Nesting subequations within align

subequations seems to only work outside environments such as align and equation. What if I want to preserve the alignment of the equal signs using align while also would like subequations numbering ...
1
vote
0answers
457 views

Paragraph indent in \intertext of align [closed]

I have the following LaTeX code: \subsection{andere Ladungsdichte} Gegeben ist die Ladungsdichte: \[ \rho\del{\vec r} = - p \delta(x) \delta(y) \delta'(z) \] Durch Integration erhalte ich das ...
4
votes
2answers
1k views

proof format 2 columns [duplicate]

Possible Duplicate: How to correctly format (and align) a LaTeX proof? In my proofs I would like to have justifications of each step to the side of the numerical manipulation. For instance ...
3
votes
1answer
3k views

Error: Extra }, or forgotten \right in align environment

I'm getting errors in the align environment that I'm not getting for the exact same line that compiles without error in the equation one and I can't figure it out. Can someone shed some light on this? ...
8
votes
2answers
3k views

Underlining an equation in an align block

I'm trying to set up a system of equations and want to underline the last equation, but can't figure it out. Here's what I have: \begin{alignat*}{4} &F_n &- mg &- F_a\sin 32^\circ &= ...
15
votes
2answers
4k views

Align Equations Over Multiple Tabular Rows

I'm trying to set up a table with some equations in it, however I would like the equations on multiple rows to be aligned properly. So far I have \begin{tabular}{cc} \hline \multicolumn{1}{l}{Header ...
4
votes
3answers
718 views

Alignment in multiple locations of a single equation based on first line

I want to align a multi-line equation so that it basically looks like this: a = (b + c + d + e) f = g The requirements of this alignment are: The equal signs should be aligned. The beginning ...