[texhax] subtables within a table on different pages

Arvind Marathe bahuroopi at gmail.com
Tue Jun 17 14:25:14 CEST 2008


On Tue, Jun 17, 2008 at 9:51 AM, Nina Mazumdar <nina.mazumdar at gmail.com> wrote:
> <nina.mazumdar at gmail.com> wrote:
>> On Tue, Jun 17, 2008 at 3:54 AM, Tim McKenzie <tjm1983 at gmail.com> wrote:
>>> 2008/6/17 Arvind Marathe <bahuroopi at gmail.com>:
>>>> They are 4 separate tables, but i want them to be numbered as say
>>>> table(1a), table(1b), table(1c), table(1d). So i want each of them as
>>>> a subtable in table 1. The subtable package does this, but it tries to
>>>> squeeze all 4 subtables into a single page. \pagebreak does not work
>>>> within a table. Nor do i see any option to have \subtable and/or
>>>> \pagebreak within a \longtable.
>>>
>>> Personally, I've never used them, but it looks like either sublabel or
>>> subfloat could be a useful package for you. On my TeXLive 2007
>>> installation, sublabel seems to have more documentation.
>
> If you modify the quick and dirty solution in my previous post to the
> following, it will be much more elegant:
>
> \usepackage{subfloat}
>
> \begin{subtables}
>
>  \begin{table}
>  \caption{Whatever}
>  \begin{tabular}{lcr}
>  ...
>  \end{tabular}
>  \end{table}
>
>  \clearpage
>
>  \begin{table}
>  \caption{Whatever}
>  \begin{tabular}{lcr}
>  ...
>  \end{tabular}
>  \end{table}
>
>  \clearpage
>
>  \begin{table}
>  \caption{Whatever}
>  \begin{tabular}{lcr}
>  ...
>  \end{tabular}
>  \end{table}
>
>  \clearpage
>
>  \begin{table}
>  \caption{Whatever}
>  \begin{tabular}{lcr}
>  ...
>  \end{tabular}
>  \end{table}
>
> \end{subtables}

Thanks a lot Nina. This seems to work. Only a small doubt, is it
possible to have a caption for the whole \subtables?
Right now, I have something like:

Table 1a: Caption whatever
Table 1b: Caption whatever
Table 1c: Caption whatever
Table 1d: Caption whatever

I would also like to have, after "Table 1d: Caption whatever", another
common caption for all the tables, something like:

Table 1: The 4 tables describe blah blah blah

Is that possible? I am not able to put a caption outside the last
\end{table} and \end{subtables}. If a put a caption before the last
\end{table}, it numbers it as Table 1e: and not as Table 1.

Thank you once again.

Regards,
Arvind


More information about the texhax mailing list