Generalblank lines in the code inside gather environment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
daviddoria
Posts: 60
Joined: Tue Sep 30, 2008 9:24 pm

blank lines in the code inside gather environment

Post by daviddoria »

If I have several complicated equations, I have been putting them in a gather group.

Is there a way to put blank lines in the code so it is more readable to edit?

For example, the following gives a "paragraph ended before gather was complete" error.

Code: Select all

\begin{gather}
q_1 = \begin{pmatrix}
P_{\mbox{11}} & P_{\mbox{12}} & P_{\mbox{13}} \\
\end{pmatrix}\\

q_1 = \begin{pmatrix}
P_{\mbox{21}} & P_{\mbox{22}} & P_{\mbox{23}} \\
\end{pmatrix}
\end{gather}
Thanks,

Dave

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: blank lines in the code inside gather environment

Post by Stefan Kottwitz »

Hi Dave,

you could use a % symbol at the beginning of the otherwise empty line.

Stefan
LaTeX.org admin
daviddoria
Posts: 60
Joined: Tue Sep 30, 2008 9:24 pm

Re: blank lines in the code inside gather environment

Post by daviddoria »

bah - so easy!

thanks
Post Reply