Herbert Voss wrote:
> Roberto Hernandez wrote:
> 
>>> what did you use? lscape, sideways or rotating?
>>
>>
>>
>> I tried with \begin{lscape} and \begin{sidewaysfigure} (which is an 
>> environment thats defined in the rotating package). In either of the 
>> two cases I have the same problem with the caption...
> 
> 
> 
> give a short examplefile.

I've been playing with that for a while and I figured out the problem. 
The thing is when you insert a figure using Insert -> Figure and specify 
the figure dimensions as %Page, the dimensions are going to be reversed. 
Suppose I insert a figure and specify a height of 80% Page and default 
width (to maintain the aspect ratio), then I'll get something like:

\includegraphics[height=0.8\textheight,width=!]{imagenes/STFT_Bloques.eps}

Since the figure is rotated, what I really need is:

\includegraphics[height=0.8\textwidth,width=!]{imagenes/STFT_Bloques.eps}

If the right scaling is chosen, the caption doesn't invade the margins. 
I ended up solving the problem by writing the following in ERT:

\begin{sidewaysfigure}[ht]
\centerline{\includegraphics[height=!,width=0.9\textheight]{imagenes/STFT_Bloques.eps}}
\caption{Bloques de STFT\label{fig:stft_bloques}}
\end{sidewaysfigure}

BTW, the [ht] after sidewaysfigure doesn't seem to be working correctly. 
 From what I understand, the figure should be included right here and if 
that's not possible at the top of the next page. Since sidewaysfigures 
are always on a page of their own, I thought specifying [ht] would 
insert the figure on the page that comes after the ERT listed above, but 
that doesn't happen.

Regards,
Roberto


Reply via email to