Re: Quick Latex question
On Thu, 18 Nov 1999, Rob Mahurin wrote:
> On Thu, Nov 18, 1999 at 11:33:34AM +0000, Jose Marin wrote:
> >
> > Just use the minipage environment for each of the tables. Do something
> > like this: (for instance)
> >
> > \begin{minipage}{0.4\textwidth}
> > \begin{table}[t]
> > \begin{center}
> > \begin{tabular}[]{}
> > % Table entries here
> > \end{tabular}
> > \caption{Table on the left}
> > \label{tab:left}
> > \end{center}
> > \end{table}
> > \end{minipage}
> >
> > \hfill % Stretchable spacing
> >
> >[duplicate above]
>
> This gives this error:
>
>
> ! LaTeX Error: Not in outer par mode.
Ooops! Yes, the "table" environment can't go inside a minipage; it should
be the other way around: a table environment engulfing two minipages, each
containing just a tabular environment. And if you don't want to make it
"float", just remove the table environment (and the label and caption)
altogether.
Oh, and I shouldn't have left blanks between the two minipages!
See below.
Jose
----------------------------------------------------------------------
Jose L Marin jose@ma.hw.ac.uk
Dept of Mathematics marin@wanda.unizar.es
Heriot-Watt University
Edinburgh EH14 4AS, U.K.
Phone: +44 131 451 3893
Fax: +44 131 451 3249
----------------------------------------------------------------------
\documentclass{article}
\begin{document}
This should work\ldots
\begin{table}[t]
\begin{center}
\begin{minipage}{0.4\textwidth}
\begin{center}
\begin{tabular}[t]{||l|r||}
\hline
\emph{type} & \emph{style} \\ \hline
big & good \\
small & bad \\
better & worse \\
\hline
\end{tabular}
\end{center}
\end{minipage}
\hfill % Stretchable spacing
\begin{minipage}{0.4\textwidth}
\begin{center}
\begin{tabular}[t]{||l|r||}
\hline
\emph{type} & \emph{style} \\ \hline
big & good \\
small & bad \\
better & worse \\
\hline
\end{tabular}
\end{center}
\end{minipage}
\caption{Tables showing blah...}
\label{tab:mytables}
\end{center}
\end{table}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
Reply to: