Label in align*-environment

I want to label an alignat* environment and refer to it. It works with the alignat environment but not with alignat*.

Does anyone know what the problem is?


The "star" environments (such as align*, eqn*, and others) are made to suppress labels. To create a label, you'll need to use the standard form of the environment (align, eqn).

If you're only interested in referencing the page, you could use the traditional LaTeX \label just before the alignat*, from which you can extract the \pageref:


Perhaps using the traditional \label - modified by amsmath to \[email protected] - inside should also work for you:

Label in align*-environment



\newcommand{\labelpage}[1]{\[email protected]{#1}}


See pages~\pageref{eq:first} and~\pageref{eq:second}.

  f(x) &= ax^2 + bx + c \label{eq:first}


  f(x) &= ax^2 + bx + c \labelpage{eq:second}


It's not possible to use \label in starred display environments (align*, alignat*, flalign*, gather* and multline*) unless the equation we want to refer to has a \tag.

Conversely, \label can go in any line of a non-starred display environment.

So you have a couple of alternatives, if you insist in not numbering equations.



Some aligned and not numbered equations, but for one that has
a tag to which we can refer with the standard reference system
\verb|\eqref| getting \eqref{test-tag}
a &= b \\
c &= d \tag{a}\label{test-tag}

Another strategy might be using the page reference, but in
this case the \verb|\label| must go between the text and
the display environment\label{test-page}
x &= y \\
u &= v
and we can then refer to the page with the standard
\verb|\pageref|, getting \pageref{test-page}.


Label in align*-environment

Category: cross referencing Time: 2016-07-28 Views: 0

Related post

  • Multiple labels in aligned environment 2013-03-23

    I would like to format an optimization problem by \documentclass{article} \usepackage{amsmath} \begin{document} We want to label each line separately. The inserted text and formulas have to be aligned like in this example: \begin{equation} \begin{ali

  • \ref counter for equation off by one for labels in align environment 2014-05-07

    I'm having an issue where the \ref command typesets a number 1 higher than it should be for equations in align; equations are numbered correctly but the references are off.A \ref call to the last equation in align just prints ??. The equation environ

  • Brackets and label in align environment 2014-01-16

    This question already has an answer here: Separate labels in cases 4 answers I want to write a little system of two equations with a left bracket over the two lines. Moreover I want to label each of these equations in order to refer to them. I wrote

  • How to control equation labelling in "align" environment? 2014-02-03

    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 equations to have "normal" equation numbering, but the last lin

  • \label inside an align environment 2010-11-18

    It seems like whenever I use \label{an-label} inside the align environment, and then use to refer to it using \refeq{an-label}, I get the section number instead of the equation number. This does not happen when I use the equation environment. For exa

  • In align environment, how can you label some (but not all) of the equations? 2011-08-24

    I know that the align environment labels all the lines, while the align* environment labels none of the lines. Is there a way to have the align environment label only some of the lines? For example, suppose I have something like this: \begin{align} x

  • Labeling math symbols used in align environment 2011-09-25

    I have a long chain of inequalities and I would like to add some explanation for some of the steps under those inequalities. I have seen people do this like \stackrel{(i)}{\leq}. This is what I would like but I would like to have a counter that does

  • How to redefine \label command in align environment 2011-12-16

    I have a problem with the redefinition of \label inside of the align environment. The goal is to allow a different behavior of the label command inside of the align environment than outside of it (e.g. for figures and section). This example does not

  • How can I label two equations within the same align environment? 2013-05-06

    Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations. How can the left equations be numbered using subequations? See also the question side-by-side equations, with equa

  • equation labels inside a nested align and aligned environment 2013-08-14

    I'd like to have several equations aligned pair-wise in, essentially, two columns, but with individual labels for each equation and/or for each line (where one line displays two equations). I have achieved the desired alignments by nesting aligned en

  • Labels on left in align environment 2014-06-19

    This question already has an answer here: How can I position equation numbers always to the left side? 1 answer I am using the align environment, but wish my numbering of equations to be on the left-hand side of the page. Is there an easy way to do t

  • How can I use cross-references and hyperlinks to parts of an align environment? 2011-03-06

    I'm writing an exercise book, and in some exercises I'll have several numbered equations in an align environment, e.g., (1) x^2+x+1=0, (2) ax^3+2x=0, (3) x^5=2i, (4) x^4=-i, (5) x-1/x=2, (6) cosh(x)=3. (I'll want them to be aligned with respect to th

  • Clash between aligned environment and TikZ? 2011-12-09

    The following code mis-renders the multi-line label: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} \begin{equation} \begin{aligned} \begin{tikzpicture} \node (A) at (0,0) {A}; \node (B) at (0,2) {B}; \draw (A) to nod

  • Resetting alignment in the align environment 2011-12-12

    I have a few aligned lists of coefficients. One set of coefficients has three columns and the other has four. At the moment I display them with two align environments: \begin{align} \gamma_1 &= 8/15 & \gamma_2 &= 5/12 & \gamma_3 &= 3/4

  • Combine itemize/enumerate list and align environment 2012-03-03

    I have 2 parts (i) and (ii) that I am trying to write out, but I can't seem to get the (i) and (ii) it look nicely, i.e. itemised. I tried using the \begin{enumerate} command but it doesnt seem to work together with the align environment? How would I

  • Access every cell of amsmath's align environment 2012-04-06

    I'd like to create an environment that basically behaves like amsmath's (v. 2.13) align environment, i.e. line numbering, \label, \tag, \intertext ... are available. Since I don't want to reinvent the wheel I naively thought I could just use a modifi

  • Too much spacing of the paragraph before a long equation in Align environment 2012-04-12

    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 environment) I get only a single label for all the

  • Conditional linebreak in align environment 2013-07-01

    I have a large document to typeset in two different page formats. Some of the equation lines are too long in the small format so I wanted to break some equation lines conditioned on whether the macro \usesmallformat is defined: \documentclass{article

  • Leaving out section numbers in LaTeX align environment 2013-09-16

    This question already has an answer here: Continuous v. per-chapter/section numbering of figures, tables, and other document elements 2 answers I'm writing in the document class, and using the align environment from the amsmath package. My align envi

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.341 (s). 13 q(s)