Graphics, Figures & Tablesfltpage - Caption on TOP of page and not BOTTOM?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gwenywar
Posts: 5
Joined: Thu Sep 11, 2014 4:48 pm

fltpage - Caption on TOP of page and not BOTTOM?

Post by gwenywar »

Hello,

I have a large image which covers the whole page. I have used the fltpage package to deal with the caption. It all works fine, the figure is on the first page and the caption is on the next page and in the correct format etc.

However it is at the BOTTOM of the page - how do I get it to the TOP? Searched for ages now but can't find the answer anywhere :(

I use Texmaker 4.1.1 under Windows 7.

I cropped my lengthy code to this, this should work (altough it does refer to my graphics path):

Code: Select all

\documentclass[12pt,a4paper,oneside]{scrreprt}
\usepackage[pdftex]{graphicx}
\usepackage[labelfont=bf]{caption}
\usepackage[leftFloats,CaptionAfterwards]{fltpage}
\captionsetup[FPfigure]{format=plain, font=small, labelfont=bf}


%set directory for graphics
\graphicspath{{Allfigures/}}


\begin{document}

\begin{FPfigure}
\includegraphics[scale=1.1]{test.PNG}
\caption[Bin number]{\textbf{Test}.Add some text here}
\end{FPfigure}

\end{document}

Recommended reading 2024:

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

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

gwenywar
Posts: 5
Joined: Thu Sep 11, 2014 4:48 pm

Re: fltpage - Caption on TOP of page and not BOTTOM?

Post by gwenywar »

Has noone got any idea :(??
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

fltpage - Caption on TOP of page and not BOTTOM?

Post by Johannes_B »

The package is not included in TeX Live, so most helpers (most use TeX Live) have to install the files manually. But no problem there.
The following might help you. This changes the behaviour globally, so if you want some captions at the top and other at the bottom, this approach won't work.

Code: Select all

\documentclass[12pt,a4paper,oneside]{scrreprt}
\usepackage[%pdftex%JB: Better drop the option
]{graphicx}
\usepackage[leftFloats,CaptionAfterwards]{fltpage}
\usepackage{mwe}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\FP@floatEnd}{%
	\begin{\@captype}[b!]%
}{%
	\begin{\@captype}[t!]%
}%
{}{}
\makeatother
\begin{document}
\blindtext[4]

\begin{FPfigure}
	\includegraphics[width=.8\textwidth]{example-image-10x16}
	\caption[Bin number]{\textbf{Test}.Add some text here}
\end{FPfigure}

\blindtext[2]

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply