[texhax] RefMan refart class table fullpage maxipage
Ron RJF Fehd
ron.fehd.macro.maven at gmail.com
Fri Sep 6 17:16:10 CEST 2013
Hi folks
I just spent a head-scratching day figuring out what this message means
! LaTeX Error: Not in outer par mode.
Here is an example of the correct usage:
\documentclass{refart}
\title{\jobname}\author{R.J. Fehd}\date{draft of \today}
\usepackage{fancyvrb,hyperref}
\begin{document}\maketitle
\section*{Abstract}This document is a demonstration of the
\href{http://www.ctan.org/pkg/refman}{Reference Manual}
\texttt{refart} class with illustrations of the correct usage of:
\begin{itemize}
\item table maxipage tabular
\item fullpage table tabular
\end{itemize}
Note: Placing a table with a maxipage generates an error:
\begin{verbatim}
\begin{maxipage}
\begin{table}[h]\caption{This does not work!}
\begin{tabular}{lllllllllllllll}
This&is&a&very&wide&table&with&many&columns&used&as&a&demonstration
\end{tabular}
\end{table}
\end{maxipage}
\end{verbatim}
The error is:
\begin{verbatim}
! LaTeX Error: Not in outer par mode.
l.10 \begin{table}[h]
\caption{Whoa! fullpage worked like this!}
\end{verbatim}
\hrulefill
\tableofcontents\listoftables
\section{Table contains maxipage}
This section has a table containing a tabular inside a maxipage.
%\maxipagerulefalse %turns off hrulefill before and after maxipage
\begin{table}[h]\caption{Maxipage containing tabular}
\begin{maxipage}
\begin{tabular}{lllllllllllllll}
This&is&a&very&wide&table&with&many&columns&used&as&a&demonstration
\end{tabular}
\end{maxipage}
\end{table}
The next section is on the next page.
\hrulefill
\begin{fullpage}%generates \newpage
\section{Fullpage contains Table}
\begin{table}[h]\caption{Fullpage containing table and tabular}
\begin{tabular}{lllllllllllllll}
This&is&a&very&wide&table&with&many&columns&used&as&a&demonstration\\
\end{tabular}
\end{table}
Note the \texttt{hrulefill} extends across the whole page.
\hrulefill
\end{fullpage}%continued on next page: normal layout
\section{Last Page}
This page intentionally left blank to show \texttt{newpage} is unneeded.
\hrulefill
\end{document}
Ron Fehd {SAS} macro maven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20130906/8e5e29c7/attachment.html>
More information about the texhax
mailing list