[texhax] make minipage table in figure appear in lot?
Martin Heller
mr_heller at yahoo.dk
Sun Jun 29 00:40:13 CEST 2008
Bryan W. Lepore skrev:
> i have a minipage table inside a figure environment. the _figure_ appears
> in the list of figures (since \caption[this is a figure]{} is used).
> it'd be nice to have it appear in the list of tables also.
>
> is there a way to do that without revamping the table-inside-a-figure to a
> figure-inside-a-table?
\documentclass{article}
\usepackage{caption}
\begin{document}
\listoffigures
\listoftables
\begin{figure}[hb]
\begin{minipage}[b]{0.45\textwidth}
\centering
\begin{tabular}{ccc}
A & B & C \\
1 & 2 & 3
\end{tabular}
\captionof{table}{Table caption.}
\end{minipage}\hfill
\begin{minipage}[b]{0.45\textwidth}
\centering
\rule{3cm}{2cm}
\caption{Figure caption.}
\end{minipage}%
\end{figure}
\end{document}
More information about the texhax
mailing list