{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 question about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.

learn more… | top users | synonyms

9
votes
3answers
110 views

what is the correct way to typeset equations with a leading indicator/marker on each

I am using \begin{align*} to typeset set of equations. I want to say that the first one applies to case of dimension [T] (time), and the second for [L] (length) and the third for [M] (mass). I want ...
6
votes
3answers
161 views

align* not aligning properly with \sqrt

Using this, everything is aligned properly: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} 16x^2&=144&\text{| }&\text{sqrt}\\ 4x&=12&\text{| ...
8
votes
2answers
115 views

Errors when trying to define a custom align environment

I'm currently trying to create a custom environment with its own counter. \documentclass[a4paper,11pt]{report} \usepackage[fleqn]{amsmath} \newcounter{grammarcounter} \newenvironment{grammar}{ ...
3
votes
2answers
45 views

How to align terms in alignat environment (follow-up)

This is follow-up on the similar question. I still cannot figure out where to put ampersands on alignat environments. :( Here is what I generated. To enhace the readability, I want to customize ...
8
votes
4answers
308 views

How to align 'implies that' symbols neatly in equation array

The following is an equation array I have: \begin{eqnarray} \Rightarrow\eta_t &=& \eta_x(\omega \eta-(\varphi_x)_s) + (\varphi_y)_s\notag\\ \Rightarrow\eta_t\,(\varphi_y)_s &=& ...
5
votes
1answer
48 views

align* and wrapping command

For school we have to deliver all math with double lines under the result. I have made a command that makes this easy. It looks like this: \newcommand*{\uul}[1]{ \underline{\underline{#1}} } It ...
7
votes
3answers
248 views

How can I align this equation?

I want to align this equation. I tried \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{fourier} ...
4
votes
4answers
250 views

Breaking and aligning equations

I have the following MWE \documentclass[10pt, a4paper]{article} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \sum_i{ c_i} &= \cos \sin\cos \sin\cos ...
6
votes
1answer
67 views

How can I split and align this series of equations?

I know this is an issue that comes up frequently, but I keep running into issues using all the suggested examples (breqn, amsmath; split, align, etc). Here's what I have: ...
5
votes
1answer
59 views

Aligning equations across slides (/only)

Goodday, I am currently working on a presentation on the Calculus of Variations. In it I present a proof for the Euler equation. Currently I use the following Latex code: \begin{frame} ...
0
votes
0answers
35 views

Number all equations in align [duplicate]

In the align environment you can put two (or more) equations on one line: \begin{align} x+y &= 1 & x+z &= 1 \\ x+w &= 1 & w+z &= 1 \end{align} By default this results in ...
7
votes
2answers
116 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 ...
4
votes
3answers
64 views

How can I make a single-aligned row under two double-aligned rows in an equation?

I have an equation that I would like to align like this (the x is actually \times): A = BBBBB CCCCCCC x DDDDD = EEEEEEE FFFFF I have tried the align environment, align with nested ...
4
votes
1answer
66 views

Using \left( & \right) around amsmath's align delimiter (“&”)

I want to align equations (using the align environment from the amsmath package) inside matching \left( and \right) commands. For example: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} ...
5
votes
3answers
120 views

How to align the middle of some words

I want to align the middle of a "word" with something else. Let me explain. The following is what I have. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a&:=b\\ ...
2
votes
0answers
31 views

How can I label two equations within the same align environment? [duplicate]

How can I references equations that are on the same line? Here is an example: \begin{align} & a_{11} = b_{11}, & a_{12} = b_{12}, \label{eq1} \\ & a_{21} = b_{21}, ...
33
votes
4answers
2k views

What does a double ampersand (&&) mean in LaTeX?

I've seen several answers that use the double ampersand, but I can't figure out exactly what it does. I tried this out: \begin{align*} \frac{3x + y}{7} &= 9 & \text{given} \\ 3x + y ...
7
votes
1answer
43 views

Automatically reference a set of equations in align

Is there a way to automatically refer to a set of equations in an align environment? E.G. I would like this to read "From Eqs.(1-3), we can clearly see..." \documentclass{article} ...
9
votes
5answers
269 views

Left align in math environment with every element over each other

I would like the elements in my math environment to be left aligned, so that each element stands over each other, like in the given example below. I have managed it using \hspace and \qquad, but ...
3
votes
3answers
128 views

How do I horizontally align equations with graphical calculus?

I have a graphical proof in category theory that I wrote with TikZ and the align environment (Thanks to Henri's answer in this question). The diagrams on each line have a recurring feature, a vertical ...
4
votes
1answer
44 views

Horizontal alignment with align and cases

I have a cases environment inside an align environment, and I'm trying to align part of one line of the align environment with part of the cases environment via an ugly \phantom command. Here's a ...
2
votes
0answers
27 views

How can I use align inside itemize without a newline? [duplicate]

I would like to use align inside of itemize as an item, but without a newline. How can I do this? MWE \documentclass[a5paper]{scrartcl} \usepackage{amssymb, amsmath} % needed for math ...
3
votes
1answer
65 views

How to control equation labelling in “align” environment?

I would like to write something of the form: \begin{align} c_1 & = 1 \\ c_2 & = 1 + 2 \\ c_3 & = 1 + 2 + 3 \\ & \; \; \vdots \end{align} I would like the first three ...
5
votes
3answers
72 views

left alignment for equation by using aligned

I used equation to write my Comment set. But when I used aligned, it doesn't show a left alignment. This is my code : \begin{equation} \begin{aligned} Comments=\{\{7322,{""}\},\{7424,\text{"remove ...
1
vote
1answer
38 views

Auto align is not straight

I have this code: \documentclass[11pt,a4paper]{report} \usepackage[utf8x]{inputenc} \newcommand{\lt}{\latintext} \newcommand{\gt}{\greektext} \usepackage[english,greek]{babel} \begin{document} ...
1
vote
3answers
90 views

How can I reference a formula with an on going numbering?

I work with LaTeX for long time and I used eqnarry. But that's obsolete so I gave equation and aligned a try. The problem is, that if I reference to my equation it shows the chapter numbering (?), but ...
1
vote
1answer
82 views

Text in flalign/align

My code sets my equations weirdly to the left. I the equations to be on middle and text on put to right. \begin{flalign*} &&I&= LA&& \text{ $I$ voidaan myös laskea kaavalla} ...
4
votes
2answers
148 views

How to reduce the size of fractions typed in align environment?

When digit fractions align environment, this goes with a size \displaystyle. But I want the size is like the one shown in a paragraph. I tried with \scriptstyle but I get letters too small and the ...
9
votes
2answers
153 views

How to add equations on top of arrows?

I have the following matrix: $$ \left[ \begin{array}{ccc|c} -4&2&-2&10 \\ 1&0&1&-3 \\ 3&-1&1&-8 \end{array} \right] \sim $$ I want to have something like this: ...
3
votes
2answers
42 views

Aligning several \begin{align} blocks in LaTeX [duplicate]

Just a quick question regarding aligning equations in LaTeX. Basically, this is a snippet of my source code: \begin{align*} dU&=\partial Q - \partial W \\ \partial Q &= dU + \partial W ...
3
votes
1answer
126 views

How to combine paragraphs of text with equations using \shortintertext and 'align'

I commented that I'm solving problems to make a book of basic math (or precalculus). In the environment or region of solving an exercise I want to combine paragraphs of text (using \shortintertext) ...
8
votes
3answers
166 views

Align matrices problem

I have an equation of matrices and I want to align the dimensions of the matrices below the equation of matrices. However, I produce something very ugly. Can someone advise how to make it look better ...
8
votes
2answers
78 views

Is there a way to set character align in the preamble

So I haven't been able to find an answer to this and sorry if it's actually simple and I'm kind of an idiot for not finding a solution but I can't find anything in any of the wiki's for the align ...
4
votes
2answers
59 views

clean, breakable left-aligned array-like environment

The centered, yet left-aligned aspect of \begin{array}{lll} ... \end{array} is what I usually go with to give a list of conditions. My only problem with it, is that it is not breakable, so I try to ...
2
votes
0answers
33 views

Wrapfigs adds delta's to intertext

I'm trying to use a wrapfig in my text an paragraph before an align*-envirement but by doing so, my intertexts all get a delta-sign. Here's my code: \documentclass{report} ...
3
votes
3answers
77 views

Aligning a set of equations

I'm currently writing a dissertation on TexMaker and I'm fairly new to it! I have a set of three equations that I want to align so that they all start underneath each other on the left: I have tried ...
1
vote
1answer
24 views

Incorrect alignment when using aligned

I'm trying to TeX some nice equations but there is a strange behaviour when I use an aligned-environment in an align*-environment. I think one little example makes my problem clear: \begin{align*} ...
4
votes
1answer
47 views

Why align environement does not work with “extract ”package?

I'm using the package extract and I'm facing the following problem: I try to extract only equation in align environnement (only A and not B, see the code), but it does not work. I have read the ...
4
votes
1answer
71 views

A very complicated multiple lines problem in the align environment

I have a very complicated multiple lines problem in the align environment to solve. See the code below and the pdf file https://docs.google.com/file/d/0B1kX_CbBVoMteHU2MmFlZWJNWDg/edit?pli=1 . ...
5
votes
2answers
89 views

How to change the style of the braces around equation numbers in the align-environment

I would like to change the braces in the align-environment from the normal braces ( ) to rectangular braces [ ],
4
votes
2answers
125 views

Right align in eqnarray

I have a MWE where I use eqnarray for multiline equations. I want to right align those two text, but \hfill is not working here. I think I may use align, but here just want to know how to do it with ...
7
votes
2answers
858 views

How to align terms in alignat environment

These are my math equations. To enhance readability, I'd like the third column to be aligned around the + sign; that is, I wish to place some horizontal blank in front of $n\mathbf{A}_0$ (not ...
5
votes
2answers
62 views

replacing eqnarray when several alignment tabs are present

I have three mathematical equations which I would like to have typeset in one block such that they are aligned at the equality sign = and the following comment. Up until now, I've been using eqnarray ...
6
votes
2answers
54 views

Place table based on position of column break

I have a table with two columns of different widths. I want to place my table in my page such that the line between the two columns falls on the center of the page. If the columns were the same size ...
6
votes
1answer
105 views

Reference equation in align* environment with cleveref

In order to control equations numbering I use the Align* environment where I put \numberthis at the end of the equation that I want to number. After, I label the numbered equation but when I want to ...
7
votes
2answers
79 views

Check if in an align* environment

I want to use different styles of matrices if TeX is in an align* environment or in a normal math environment. I already found a solution for checking if it is in math mode (\ifmmode) but not ...
2
votes
0answers
52 views

Can't align list of equations uniformly after “subequations” break, why? [closed]

I'm trying to write a list of equations from a chapter of my textbook, each one preceded by a \label{} command so that I can refer to it in the rest of the text. However after the 1st \begin{align} ...
6
votes
1answer
73 views

Environment definition gives an error

\documentclass{scrreprt} \usepackage{fontspec} \setmainfont{Linux Libertine O} \usepackage{graphicx} \usepackage{polyglossia} \setdefaultlanguage[babelshorthands=true]{german} % align in enumerate ...
2
votes
2answers
220 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 ...
9
votes
2answers
107 views

Custom pagebreak in align equation

I got the following problem: Right now I am checking my equations, which are usually written in align. This looks great in most of the cases, but sometimes the pagebreaks are weird, ie there is a lot ...