{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

5
votes
3answers
396 views

Aligning equations in multiple places

I have an equation environment where most equation lines start with an arrow, which I have aligned in the align* environment, using &. The second line in the example below is too long for the page ...
10
votes
4answers
3k views

Centering equations within alignat command

I want to centre the formula inside the equals. So far I have \begin{alignat*}{2} v_2(16)&=\frac{2}{5}[v_3(32)+v_3(8)] &&= 0, \\ v_2(4)&=\frac{2}{5}[v_3(8)+v_3(2)] &&= 1....
1
vote
0answers
4k views

“File ended while scanning use of \align*” [closed]

This is really odd. I have ended all environments. Triple checked them. When I add this last bit of equations using the align* environment, all kinds of errors appear. Predominantly, in this case ...
5
votes
2answers
101 views

Title over align columns

Using the align environment I have two columns, one for derivation, and another for the rule that was used to create the derivation. However I'm pretty sure that there's a better way to do this? Here ...
0
votes
1answer
224 views

Error message because of eqnarray, footnotes, tables or caption?

I know this is not a minimal example, but I have to have this much code, in order to create my error. I had this error already several times and I cannot get rid of it?! I don't know where the problem ...
0
votes
1answer
173 views

Aligning an array in align*

I was trying to make a 3 point list with a brace next to 2 of the items with text next to it and than a brace that covered all three again with text next to it. I had never used an array before but I ...
3
votes
1answer
76 views

Add space in `brqalign`

Some time ago David Carlisle wrote an awesome brqalign function in this answer: http://tex.stackexchange.com/a/51543/4011. See the cited code below. How can I add space between the rows of brqalign? ...
4
votes
2answers
579 views

Right-align the prebreak symbol in a listings environment

I’m using the breaklines and prebreak option with listings, but I find it visually not very pleasing that the prebreak-symbols are not vertically aligned. I’d prefer if they were all on the very right ...
1
vote
1answer
119 views

Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image: ...
3
votes
2answers
823 views

Multicolumn proofs, align within tabular?

I want to condense my assignment by laying out each solution as a table with a picture on one side and the proof on the other. To make matters worse, I need to be able to include some equation ...
3
votes
1answer
339 views

How to use math mode inside align* [closed]

Why does this give an error? \begin{align*} $\sum_{i=0}^K n_{\text{i}} * P * 1000$ \end{align*} Why can't I use align* for my math formula which includes a summation?
4
votes
0answers
57 views

Block environment with empty title in Beamer: how to reduce empty space at the top [duplicate]

I'm using the LaTeX beamer class to write a presentation. I'm placing vertically aligned equations inside a block environment without a title. When I do this, I get extra empty space at the top of the ...
3
votes
1answer
126 views

Problem with using multline and align

I am LaTeX begginer and when I run this equation, I am getting the error: ! Argument \align* has an extra {. Here is the equation. \begin{multline} \begin{align*} C_s & = \displaystyle \max_{...
4
votes
2answers
121 views

Spacing numbers in two equations equally

I have this weird requirement, to align two sets of numbers, one under another, in groups of three. Here is how it should look: I tried the following: \begin{align*} x_F &= 1.368 &808 &...
2
votes
1answer
379 views

Spacing in flalign affected by mathpazo

I got the following (partly shorted) equation: I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side. \documentclass[ a4paper, ...
1
vote
1answer
114 views

Is it possible to break up an align environment and keep the tab positions? [duplicate]

I'd like to take notes for a math class such that I can typeset a series of equations with the \align environment and make some text notes in between some of the lines. As far as I can tell, though... ...
1
vote
1answer
232 views

alignat not correctly aligning

I have the following code: \begin{alignat}{4} \sum_{r}\sum_{p} & X_{i,m,r,p} & = d_m \quad & \forall i, m\\ \sum_{q=0}^{d_{m}-1} & X_{i,m,r,(p+q)} ...
11
votes
2answers
357 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 ...
4
votes
1answer
245 views

Inlining aligned tabular material in block of text

Edit. Some comments might be outdated. I would like to do the following: The blue parts should be treated as normal paragraph text, with normal automatic hyphenation. The green part is what you ...
1
vote
1answer
204 views

Mathematical statement problem

I want to write a mathematical statement which also has to be numbered. For example : The function f is bounded (1.1) However, the align environment does not work. Any hints?
2
votes
1answer
2k views

amsmath split environment results in error “Missing } inserted.”

The following compiles fine, but outputs a pdf with a line too long. \documentclass{article} \usepackage{amsmath} \def\group#1{\left ( #1 \right )} \begin{document} $$ %\begin{split} \group{\neg (...
3
votes
1answer
291 views

Placing a tikzpicture next to an align

I have a tikzpicture with an accompanying explanation in a math align environment. The tikzpicture is small enough that I'd like the explanation to appear next to (specifically, to the right) the ...
8
votes
2answers
527 views

What is wrong with defining \bal as \begin{align}?

I'm trying to define two commands \bal and \eal instead of inserting \begin{align} and \end{align} in my document, but in the code below, I'll get some errors. What is wrong with it? \documentclass{...
0
votes
0answers
26 views

How can I get vdots align horizontally in my equations? [duplicate]

I'm trying to make vertical dots align as in the following picture: But the best one I could get is this: Here is my LaTex code: \begin{align*} x_{t} &= \phi x_{t-1} + \epsilon_{t} = \phi(\...
10
votes
2answers
14k views

Enumerate formulas

I'm writing a math paper in LaTeX and for math formulas I'm just using $$math formula$$. Is is possible to numerate formulas? Or do I have to you use some specific commands such as align?
8
votes
2answers
4k views

Aligned multline

I want to show the derivation of a formula where I encounter long formulae. Unfortunately the derivation is very complex, so I have to show some intermediate steps. My problem is, that I want to mix ...
3
votes
0answers
36 views

Why does an extra line of space before \end{align} throw up an error? [duplicate]

I often add extra spaces in my TeX file for readability, and I find this error cropping up whenever there is an empty line before \end{align}. What is the reason for the error and is there a way to ...
0
votes
1answer
1k 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} = x+...
0
votes
1answer
914 views

remove italics from align

\begin{align*} P2P &- Peer-to-Peer Network\\ %..... \end{align*} I have a Abbreviation page in my PDF. For aligning all the '-' I am using align*. All the content inside align shows up in ...
1
vote
1answer
3k views

Equation numbering problem, `alignat`

When using the alignat environment I encounter a strange equation numbering problem. It's rather hard to describe, but here is an MWE. I describe the output below. \documentclass[]{memoir} \...
4
votes
2answers
217 views

I can't use & tabs in the `align` environment while using it inside a custom environment

I've got a custom environment made for problem sets, and it uses a tabular to align the question number and question body. When I try to use & to group parts of an equation together - like if I ...
9
votes
1answer
777 views

\marginpar and \begin{align}

I want to use \marginpar directly beside a formula within a \begin{align} statement. I tried: \begin{align} E^2 \end{align} \marginpar{Not correct} but the 'Not correct' statement is written ...
0
votes
1answer
126 views

Where is the error that i can not run? [closed]

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm \topmargin=-1.0cm \textheight=24.5cm \newcommand{\...
1
vote
1answer
186 views

Latex equation positioning problem

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm \topmargin=-1.0cm \textheight=24.5cm \newcommand{\...
4
votes
1answer
736 views

Use of align for multiple alignments needing right-alignment

I am currently having issues with the display of this equation below. The code I have inserted is using align but I have also tried using eqnarray, (which has right-alignment but is deprecated), and ...
10
votes
2answers
545 views

Modify eqnarray to match that of amsmath's align

This is a follow-up question to \eqnarray vs \align. Sadly, some journals (and their accompanying document classes) still require the use of eqnarray to arrange a number of equations in a single ...
6
votes
2answers
267 views

Alignment between material inside and outside a cases environment

In the code below, I'd like to make the i=0,\ldots,n. line up, in the output, with the cases in the first part of the definition. Ideally, the full-stop would align with the semicolons and comma. \...
8
votes
2answers
643 views

Aberrant vertical spacing with {align} and friends?

Consider documents with the following preamble: \documentclass[12pt]{article} \usepackage{amsmath} Question #1. Why do we get bad alignment with the following code? \noindent $-3x$\\[-\...
2
votes
1answer
2k views

change the color of an align environment

regarding this documentation ftp://ftp.dante.de/pub/tex/info/math/voss/mathCol/mathCol.pdf it should be easy to change the color of an align environment like this: \documentclass{article} \...
5
votes
2answers
2k views

How can I use align environment in conjuction with iopart.cls class?

I would like to use align environment over eqnarray for typesetting my equations. However the publisher forces to use the iopart.cls as the article class file which, as they mentioned, is incompatible ...
15
votes
5answers
5k views

What is the difference between aligned in displayed mode and starred align?

I am confused in choosing one of the following approaches. \documentclass{article} \usepackage{siunitx} %\sisetup{detect-all} \usepackage{amsmath} \parindent=0pt\relax \begin{document} The following ...
6
votes
2answers
5k 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
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
2k 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
545 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} \begin{...
17
votes
1answer
11k 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
1k 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
117 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? \begin{...