Graphics, Figures & Tablesfltpage indents figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
geois
Posts: 11
Joined: Tue Apr 06, 2010 8:47 am

fltpage indents figure

Post by geois »

Hi,

In answering my own question (http://www.latex-community.org/forum/vi ... =45&t=9958) I noticed that fltpage seems to indent figures slightly (by perhaps ~1 mm), compared to figures inserted using a simple figure environment.

I realise that fltpage is considered experimental, but was wondering if this is expected behaviour, or is perhaps just limited to my setup (MiKTeX 2.8, pdfLaTeX, Windows XP Pro). It's not such a big deal, it just grates on me a bit, so I just thought I'd ask.

Here is an example image comprised from screen shots taken from the MWE, below. Figure 1 is from an FPfigure, while Figure 2 is from a regular figure environment.
fltpage_indent_test1_Page_2.png
fltpage_indent_test1_Page_2.png (14.79 KiB) Viewed 2379 times

Code: Select all

\documentclass{report}
\usepackage{fltpage}

\begin{document}

\begin{FPfigure}
  \caption{A caption alone ... figure without a caption!}
  \fbox{\rule[-10cm]{0pt}{\textheight}Figure 1\hspace{5cm}}
\end{FPfigure}

\begin{figure}
  \fbox{\rule[-10cm]{0pt}{\textheight}Figure 2\hspace{5cm}}
\end{figure}

\end{document}
Thanks,

Alastair.
Last edited by geois on Wed Sep 01, 2010 8:44 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

fltpage indents figure

Post by sommerfee »

It seems to be a bug in the fltpage package: The space after \caption is not suppressed. If one suppresses it manually it works fine:

Code: Select all

\documentclass{report}
\usepackage{fltpage}

\begin{document}

\begin{FPfigure}
  \caption{A caption alone ... figure without a caption!}% <= THIS % ADDED
  \fbox{\rule[-10cm]{0pt}{\textheight}Figure 1\hspace{5cm}}
\end{FPfigure}

\begin{figure}
  \fbox{\rule[-10cm]{0pt}{\textheight}Figure 2\hspace{5cm}}
\end{figure}

\end{document}
HTH,
Axel
geois
Posts: 11
Joined: Tue Apr 06, 2010 8:47 am

Re: fltpage indents figure

Post by geois »

Great, thank-you for your help Axel.

Cheers,

Alastair.
Post Reply