Martin Jørgensen
2004-10-24 13:52:41 UTC
Hello everybody.
I´m trying to learn a bit of Latex from time to time. I´m getting an
error message, which appeared when I tried to experiment with the
example in the lshort2e.pdf, page 88 (I´m trying to extend the example
with minipages, side by side). Please explain to me what I´m doing wrong.
The error says:
l.73 \fbox
{\parbox[c][\height+\baselineskip][s]{40mm}{
?
! LaTeX Error: Illegal character in array arg.
It worked before I tried to add the minipage side-by-side-code.
I found something on google with minipages in a tabular environment, but
that lead to the parbox error (which wasn´t there before).
I have this:
\documentclass{article}
\usepackage{amsmath,verbatim,calc}
\begin{document}
.....
\begin{table}
% MINIPAGE LEFT
\begin{minipage}[t]{\textwidth/2-1cm}
\caption{Left table. Compare with the other one.}
\begin{tabular}
\fbox{\parbox[c][\height+\baselineskip][s]{40mm}{
%\raisebox{0pt}[0pt][0pt]{\Large%
\textbf{Aaaa\raisebox{-0.3ex}{a}%
\raisebox{-0.7ex}{aa}%
\raisebox{-1.2ex}{r}%
\raisebox{-2.2ex}{g}%
\raisebox{-4.5ex}{h}}%}
he shouted but not even the next
one in line noticed that something
terrible had happened to her.
}}
\end{tabular}
\end{minipage}
\hfill
% MINIPAGE RIGHT
\begin{minipage}[t]{\textwidth/2-5ex}
\caption{Right table. Compare with the first one.}
\begin{tabular}
\fbox{\parbox[c][\height+\baselineskip][s]{40mm}{
\raisebox{0pt}[0pt][0pt]{\Large%
\textbf{Aaaa\raisebox{-0.3ex}{a}%
\raisebox{-0.7ex}{aa}%
\raisebox{-1.2ex}{r}%
\raisebox{-2.2ex}{g}%
\raisebox{-4.5ex}{h}}}
he shouted but not even the next
one in line noticed that something
terrible had happened to her.
}}
\end{tabular}
\end{minipage}
\end{table}
\end{document}
How do I make the two boxes appear side by side??? I´m not even sure
that the table/tabular environment is the right thing to do but without
it, the minipages were on top of each other...
Regards,
Martin Jørgensen
I´m trying to learn a bit of Latex from time to time. I´m getting an
error message, which appeared when I tried to experiment with the
example in the lshort2e.pdf, page 88 (I´m trying to extend the example
with minipages, side by side). Please explain to me what I´m doing wrong.
The error says:
l.73 \fbox
{\parbox[c][\height+\baselineskip][s]{40mm}{
?
! LaTeX Error: Illegal character in array arg.
It worked before I tried to add the minipage side-by-side-code.
I found something on google with minipages in a tabular environment, but
that lead to the parbox error (which wasn´t there before).
I have this:
\documentclass{article}
\usepackage{amsmath,verbatim,calc}
\begin{document}
.....
\begin{table}
% MINIPAGE LEFT
\begin{minipage}[t]{\textwidth/2-1cm}
\caption{Left table. Compare with the other one.}
\begin{tabular}
\fbox{\parbox[c][\height+\baselineskip][s]{40mm}{
%\raisebox{0pt}[0pt][0pt]{\Large%
\textbf{Aaaa\raisebox{-0.3ex}{a}%
\raisebox{-0.7ex}{aa}%
\raisebox{-1.2ex}{r}%
\raisebox{-2.2ex}{g}%
\raisebox{-4.5ex}{h}}%}
he shouted but not even the next
one in line noticed that something
terrible had happened to her.
}}
\end{tabular}
\end{minipage}
\hfill
% MINIPAGE RIGHT
\begin{minipage}[t]{\textwidth/2-5ex}
\caption{Right table. Compare with the first one.}
\begin{tabular}
\fbox{\parbox[c][\height+\baselineskip][s]{40mm}{
\raisebox{0pt}[0pt][0pt]{\Large%
\textbf{Aaaa\raisebox{-0.3ex}{a}%
\raisebox{-0.7ex}{aa}%
\raisebox{-1.2ex}{r}%
\raisebox{-2.2ex}{g}%
\raisebox{-4.5ex}{h}}}
he shouted but not even the next
one in line noticed that something
terrible had happened to her.
}}
\end{tabular}
\end{minipage}
\end{table}
\end{document}
How do I make the two boxes appear side by side??? I´m not even sure
that the table/tabular environment is the right thing to do but without
it, the minipages were on top of each other...
Regards,
Martin Jørgensen
--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk