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 have a document with subfigures that are printed sideways with rotating. I need to scale that figure (with subfigures) to fit to page.

%% LyX 1.6.7 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


\makeatother

\usepackage{babel}

\begin{document}

\begin{sidewaysfigure}

\captcont{Gene Ontology analysis of cancer marked control overexpressed
genes}

\subfigure{ 

\label{fig:cncrUniqMrkdCntrlOvrExp} 

\includegraphics[width=1\\linewidth,height=12cm]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cncrUniqMrkdCntrlOvrExp}

}

\captcont{Gene Ontology analysis of cancer marked cancer overexpressed
genes}

\subfigure{ 

\label{fig:go_cncrUniqMrkdCncrOvrExp} 

\includegraphics[width=1\\linewidth,height=12cm]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cncrUniqMrkdCncrOvrExp}

} 

\end{sidewaysfigure}

\end{document}

What variables should I use for width and height?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

The figures begin used are probably long without rotating them, that is why rotating is used. Thus the width of the figures is what we what to control and we want the width to be equal to the height of the page (because we are rotating).

\includegraphics[width=\textheight]
share|improve this answer
    
should be \textheight –  Marin Jan 11 '11 at 19:28
    
true thanks @Marin –  denilw Jan 12 '11 at 0:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.