Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having trouble with 'sidewaysfigure'. It simply isn't recognized and says ' Missing number, treated as zero'

my code is

\begin{sidewaysfigure}[hbtp]
\setlength{\abovecaptionskip}{0.01pt} % Chosen fairly arbitrarily
\centering 
\includegraphics[width=\paperwidth-3cm,height=\paperheight-3cm]{cd4neutral.eps}
\caption{Variables in \textbf{CD4}-dataset}
\label{cd4neutral}
\end{sidewaysfigure}

and my preamble

\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage[version=3]{mhchem}
%   \usepackage{chemarrow}
%   \usepackage{array}
\usepackage{float}
\usepackage{subfigure}
\usepackage{subfloat}
\usepackage{listings}
\usepackage{dsfont}
% indexing
\usepackage{makeidx}
\usepackage{nomencl}
\usepackage{float} % needs to be "fixed" by hyperref
\usepackage{placeins} % float placement, defines \FloatBarrier
\usepackage{setspace}
\usepackage{txfonts}  
\usepackage{booktabs}
\usepackage[toc,page]{appendix}
\usepackage[T1]{fontenc}
\usepackage{titlesec, blindtext, color}
\usepackage{pdflscape}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{epsfig} 
\definecolor{gray75}{gray}{0.75}

does anyone see why this isn't working for me??

share|improve this question

closed as too localized by lockstep, Thorsten, Stefan Kottwitz May 11 '13 at 13:33

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Welcome to TeX.sx! –  texenthusiast Apr 9 '13 at 5:09
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). –  topskip Apr 9 '13 at 5:12
1  
sidewaysfigure has no optional argument. However, create a complete example document which shows the error. With your preamble and your example code it works for me. –  Herbert Apr 9 '13 at 6:36
1  
Please always post a complete (small) document that shows the problem. Your preamble shows some strange things but nothing that would generate an error. don't load epsfig (use graphicx) don't load lscape and pdflscape don't load setspace twice no ned to load amsfonts as you load amssymb –  David Carlisle Apr 9 '13 at 7:02
    
note that you might surprise yourself with \includegraphics[width=\paperwidth-3cm,height=\paperheight-3cm]{whatever} inside a sidewaysfigure environment; the width and height settings aren't changed inside a sidewaysfigure, so your settings should take account of the rotation: \includegraphics[width=\paperheight-3cm,height=\paperwidth-3cm]{whatever} –  wasteofspace Apr 9 '13 at 11:22

Browse other questions tagged or ask your own question.