Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

BigFigureOrTable

Categories: Tag me, Figure
<< | Page list | >>

Using an empty pagestyle for a big figure or table

The text below is included from FAQ.UnfloatingFigureOnEmptyPage and the example files that are referred to are listed at the bottom of this page.


How can I get an empty pagestyle on a page where I have a big float?

You have a big picuture so you can't afford to have headers or footers on that page. However, you still want a figure caption with number and all that. Herber recommends using \pagebreak and the nonfloat-package. Dekel suggested the package floatpag.

Below are my notes on how I used it with Lyx and and how it worked out. Example files can be found here.

Using the \nonfloat-package

Add this to the preamble:

 \usepackage{nonfloat}
  

the package nonfloat can be found on CTAN, here for instance. I installed it by downloading the files into a separate catalog and there executing the command:

 latex nonfloat.ins   then I copied the nonfloat.sty-file to somewhere in the TEX-path.

Now, instead of using the normal float, you insert the following as ERT.

 \pagebreak%
\thispagestyle{empty}%
\begin{minipage}{\linewidth}%
\begin{center}%
\includegraphics[angle=90]{my_figure.eps}%
\figcaption{A figure with a lot of text that will go on for
rows so that I can see if it runs into the page number or so. 
seems I'll need a lot more of text than I have right now. Well 
I'll just write until it starts to bleed etc... bla adsf asfas }%
\labe{fig:some-label}
\end{center}
\end{minipage}
  

Using the floatpag package

Add this to the preamble:

 \usepackage{floatpag}
\floatpagestyle{fancy}% Default page style for pages with only flloats
  

the package floatpag can be found on CTAN, or for instance here. I just put it somewhere latex could find it. Then to use it, I inserted this in ERT in the float:

 \thisfloatpagestyle{empty}
\vspace{-\headsep}
  

before the actual graphics inset.

where the \vspace command moves the image a bit higher up.

Conclusions

Both methods work, but the \floatpag-package requires less ERT and it's easier to control the vertical position of the image.

Tag me


Example files

Figure

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2006-09-16 11:51 UTC