Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with sidewaysfigure

1,147 views
Skip to first unread message

ma

unread,
Jan 5, 2006, 7:44:40 AM1/5/06
to
Hello,

I add rotate package to my document and then used the following
commands:

\begin{sidewaysfigure}
\centering
\includegraphics{figs/system_block_diagram.jpg}
\caption{System block diagram}
\label{fig:system_block_diagram}
\end{sidewaysfigure}

but I am getting the following eroor message:

! Undefined control sequence.
\@tempf ... \@parboxrestore \normalsize \@fs@capt
{\@nameuse
{fnum@#1}}{\ign...
l.33 \caption{System block diagram}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

The error apparently related to caption. But I don't know why this is
happening.

Would you please help me to find the source of problem?

Should I add rotate after all of the packages? Or before all? Is it matter
where I add this package?

Best regards


Lars Madsen

unread,
Jan 5, 2006, 8:09:49 AM1/5/06
to
[snip]

for sidewaysfigure you should load the rotating-package not 'rotate'

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal working examples.

Axel Sommerfeldt

unread,
Jan 5, 2006, 8:15:25 AM1/5/06
to
"ma" <m...@nowhere.com> wrote:

> I add rotate package to my document and then used the following
> commands:
>
> \begin{sidewaysfigure}
> \centering
> \includegraphics{figs/system_block_diagram.jpg}
> \caption{System block diagram}
> \label{fig:system_block_diagram}
> \end{sidewaysfigure}
>
> but I am getting the following eroor message:
>
> ! Undefined control sequence.
> \@tempf ... \@parboxrestore \normalsize \@fs@capt
> {\@nameuse
> {fnum@#1}}{\ign...
> l.33 \caption{System block diagram}

You have restyled the "figure" environment using \restylefloat{figure}
offered by the float package. But floats restyled this way do not work
together with the rotating package.

There are 2 things you can do now:

1. Why have you restyled the "figure" environment? If this is just to get
the [H] float placement working, the solution is very easy: Remove the
\restylefloat{figure}. I know that some documentations tell you that this
is necessary to get [H] working but this information is *wrong*. If you
are not sure if you need the \restylefloat{figure} or not, try also
removing this line.

-or-

2. If you really need the \restylefloat{figure} (e.g. because you want to
have these floats a different layout), replace \usepackage{rotating} with
\usepackage{rotfloat}. The rotfloat package loads the rotating package
and patches it, so it works together with the float package as well.
(Please make sure you have the rotfloat package version 1.2)

HTH,
Axel

ma

unread,
Jan 5, 2006, 8:48:07 AM1/5/06
to
Thanks Alex,
I removed rotating package and add rotfloat instead but the problem didn't
go away.
What can I do now? Any new suggestion?
I am using miketex.

Best regards

"Axel Sommerfeldt" <somm...@despammed.com> wrote in message
news:Xns9742919D2...@sommerfeldt.net...

Axel Sommerfeldt

unread,
Jan 5, 2006, 9:56:08 AM1/5/06
to
"ma" <m...@nowhere.com> wrote:

> I removed rotating package and add rotfloat instead but the problem
> didn't go away.

That's strange.

> What can I do now? Any new suggestion?

I forgot to say that the \restylefloat command must be placed after
loading the rotfloat package (because the rotfloat package adapts the
\restylefloat command), so something like

\usepackage{float}
\floatstyle{...}
\restylefloat{figure}
...
\usepackage{rotfloat}

is wrong and must be replaced by

\usepackage{float,rotfloat}
\floatstyle{...}
\restylefloat{figure}
...

or simply

\usepackage{rotfloat}
\floatstyle{...}
\restylefloat{figure}
...

(Since the rotfloat package automatically loads both, the float and the
rotating package.)

If this is still not working, please put a \listfiles command at the very
beginning of your document. Afterwards you get a list of the used
document class and packages in your log file. If you post this list here
afterwards I could see what other packages hack into the \caption command
and could cause the trouble you have.

Even better would be a minimal document so I can evaluate the error here
at my own PC. See

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

HTH,
Axel

ma

unread,
Jan 5, 2006, 12:10:12 PM1/5/06
to
Thanks.
I move loaging of the rotfloat before restylefloat and the problem gone.

Best regards

"Axel Sommerfeldt" <somm...@despammed.com> wrote in message

news:Xns9742A2B53...@sommerfeldt.net...

0 new messages