Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to ask how in align environment to number only one of the equations.

\begin{aligned}
\mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,\\
\mathsf{E}\big[[W^{i}_{t}-W^{i}_{s}][W^{j}_{t}-W^{j}_{s}]\big]&=q_{ij}(t-s),\quad
1\le i,j\le n,\, 0\le s<t.
\end{aligned}

One more question. (The first one has already been sorted out). How can I break page in the align environment?

share|improve this question
3  
Place a \notag command in each line that you do not wish numbered. –  azetina Jul 2 '12 at 19:08
    
Also, your exampled uses the aligned environment, did you mean to use align instead? –  Peter Grill Jul 2 '12 at 19:11
    
Try \allowdisplaybreaks in the preamble to allow page breaks. –  azetina Jul 2 '12 at 20:14
add comment

1 Answer

up vote 5 down vote accepted

The aligned environment is a subsidiary math environment and thus can be used within another math environment. For example:

\begin{equation}
\begin{aligned}
\mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,\\
\mathsf{E}\big[[W^{i}_{t}-W^{i}_{s}][W^{j}_{t}-W^{j}_{s}]\big]&=q_{ij}(t-s),\quad
1\le i,j\le n,\, 0\le s<t.
\end{aligned}
\end{equation}

This automatically numbers the entire aligned group. But if you are just using it within $ $ or \[ \] there is no numbering. Hence, to get the numbering right, rather use the the align environment as follows:

\documentclass[letterpaper]{article}
\usepackage{amsmath,amssymb}
\begin{document}

\begin{align}
\mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,\\
\mathsf{E}\big[[W^{i}_{t}-W^{i}_{s}][W^{j}_{t}-W^{j}_{s}]\big]&=q_{ij}(t-s),\quad
1\le i,j\le n,\, 0\le s<t. \notag \\
\mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,
\end{align}

\end{document}

Notice the employment of the \notag command to remove the numbering on desired lines.

This yields:

enter image description here

To work with the page breaks for the align environment, one can use \allowdisplaybreaks. For example:

\documentclass[letterpaper]{article}
\usepackage{amsmath,amssymb,lipsum}
\begin{document}
\lipsum[2-6]
{\allowdisplaybreaks
\begin{align}
\mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,\\
\mathsf{E}\big[[W^{i}_{t}-W^{i}_{s}][W^{j}_{t}-W^{j}_{s}]\big]&=q_{ij}(t-s),\quad
1\le i,j\le n,\, 0\le s<t. \notag \\
\mathsf{E}[W^{i}_{t}-W^{i}_{s}]&=0,
\end{align}}
\end{document}

This gives:

enter image description here

share|improve this answer
    
Thank you for your answer. It works fine now. –  Jane Jul 2 '12 at 20:12
    
@Jane You are most welcome. If you ever need further clarifications ask. –  azetina Jul 2 '12 at 20:14
    
I do. I modified the question. as well, I would need to break page in the align environment. –  Jane Jul 2 '12 at 20:16
    
Did \allowdisplaybreaks work for you? You can use it also in the form {\allowdisplaybreaks **align content here**} –  azetina Jul 2 '12 at 20:19
    
No, it doesn't work. Maybe i don't use it in the right way. However, I would prefer an automatic solution. –  Jane Jul 2 '12 at 20:27
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.