Generalarray -- embedded normal lines

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
The_Watcher
Posts: 5
Joined: Mon Jul 09, 2007 8:01 pm

array -- embedded normal lines

Post by The_Watcher »

:geek:

Hi,

I specific question regarding arrary environment. I want to write out a mathematical table with colomns of numbers, but exceptionally I want a 'normal' line of text. For example,

1 2 3 4 5 6
2 3 4 5 6 7
This is odd
3 4 5 6 7 8

I know how to do a normal table, viz

$$
\begin{array}{ ccc ccc}
&1 &2 &3 &4 &5 &6 \\
&2 &3 &4 &5 &6 &7 \\
&3 &4 &5 &6 &7 &8
\end{array}
$$


But how do I get the exceptional "This is odd" line in between?

Thanks
The Watcher
London

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

array -- embedded normal lines

Post by Stefan Kottwitz »

Hi,

you could use \multicolumn:

Code: Select all

\[
\begin{array}{ ccc ccc}
  1 &2 &3 &4 &5 &6 \\
  2 &3 &4 &5 &6 &7 \\
  \multicolumn{6}{l}{\mbox{This is odd}} \\
  3 &4 &5 &6 &7 &8
\end{array}
\]
Use \[ ... \] instead of $$ ... $$, see the guide Obsolete commands and packages 1.6 Separating maths formulae from continuous text for an explanation.

Stefan
LaTeX.org admin
The_Watcher
Posts: 5
Joined: Mon Jul 09, 2007 8:01 pm

Re: array -- embedded normal lines

Post by The_Watcher »

Thanks, that's great. :)
The Watcher
London
Post Reply