[vox-tech] sidewaystable

Henry House hajhouse at houseag.com
Thu Jul 26 18:00:16 PDT 2007


P=E5 2007-07-26, skrev Julie.Glasscock at csiro.au:
> =

> =

> Dear All,
> =

> I was wondering whether anyone knows how to fix the table numbering when
> using the "sidewaystable" environment? In the text, the references are
> all the same and indexed by the chapter e.g. Table 1.1, Table 1.1, Table
> 1.1 (in Chapter 1.1) instead of Table 1.1.1, Table 1.1.2, Table 1.1.3
> etc. The table numbers in the captions are different again. The table
> numbering when using the "table" or "tabular" environments is OK.
> Example code is shown below. Many thanks in advance.
> =

> Kind regards,
> =

> Julie
> =

> %-----------------------------------
> \begin{sidewaystable}[h]
> \begin{footnotesize}
> \begin{tabular}{p{3.5cm}p{3.5cm}p{3.5cm}p{3.5cm}p{3.5cm}}
> A & B & C & D & E\\ =

> F & G & H & I & J\\ =

> \end{tabular}
> \end{footnotesize}
> \label{label}
> \caption{Caption}
> \end{sidewaystable}
> %-----------------------------------

This problem is actually not with the sidewaystable environment
specifically --- you will get the section number instead of the table
number if you use plain table too.

The solution is to make the \label the very last line before
\end{sidewaystable}. Don't ask me why, but it doesn't work any other
way. Bad design? Probably.

-- =

Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature on this e-mail;
	please ignore if you do not have signature-checking
	software
Url : http://lists.lugod.org/pipermail/vox-tech/attachments/20070726/1d2d80=
d9/attachment.pgp


More information about the vox-tech mailing list