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 have the following format :

\documentclass[12pt]{book}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}

%\usepackage{graphicx}

\usepackage[total={7in,10in},top=1in, left=0.6in,right=0.6in, includefoot]{geometry}.
\newpage

\newcommand{\matrix}[1]{\begin{array}{ccc}#1\end{array}}
\newcommand{\dbkt}[1]{\left|#1\right>}
\newcommand{\bkt}[3]{\left#1 #2\right#3}
\newcommand{\eqnn}[2]{\begin{equation}#1\label{eq:#2}\end{equation}}
\newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}}
\begin{document}

\begin{array}{ll}
blaaah !!\\

&\begin{array}{l}
blaah !!
\end{array}

\end{array}
\end{document}\\

I don't understand why the body doesn't get extended into the next page. Thanks in advance.

share|improve this question
1  
Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  karlkoeller Jul 10 '13 at 16:17
1  
Welcome to TeX.SX! Please provide us a good minimal working example (MWE), i.e. code that is both compilable, starting with \documentclass{...} and ending with \end{document}, and minimal. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. –  Xavier Jul 10 '13 at 16:21
    
Apart from the problem you've mentioned, there are several errors in your code. Can you remove them so one can know exactly what you are referring to? –  karlkoeller Jul 10 '13 at 16:23
1  
The environment array requires math mode. –  egreg Jul 10 '13 at 16:25

1 Answer 1

LaTeX reports many errors when you run your example. In such a case it really isn't worth asking why the output looks any particular way: any output is essentially accidental.

If you fix the reported errors:

\documentclass[12pt]{book}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}

%\usepackage{graphicx}

\usepackage[total={7in,10in},top=1in, left=0.6in,right=0.6in, includefoot]{geometry}


%\newcommand{\matrix}[1]{\begin{array}{ccc}#1\end{array}}
\newcommand{\dbkt}[1]{\left|#1\right>}
\newcommand{\bkt}[3]{\left#1 #2\right#3}
\newcommand{\eqnn}[2]{\begin{equation}#1\label{eq:#2}\end{equation}}
\newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}}
\begin{document}

$\begin{array}{ll}
blaaah !!\\

&\begin{array}{l}
blaah !!
\end{array}

\end{array}$
\end{document}

you get

enter image description here

share|improve this answer

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.