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 seen the possibilities of formatting captions with caption, but I can't find a variable indicating whether the float is on a floatpage of a textpage.

Is it possible to use automatically standard textsize in captions on floatpages, and a smaller textsize in captions on textpages?

If so, how?

If not, I would also accept a short explanation why.

\documentclass{book}
%\usepackage{caption} %might solve part of my problem
\usepackage{lipsum}
\usepackage{hyperref}

\begin{document}
\lipsum

\begin{figure}[htb]
\rule{10cm}{10cm}
\caption{caption should be small}
\label{fig:label1}
\end{figure}

\lipsum

\begin{figure}[p]
\rule{10cm}{10cm}
\caption{caption should be textsize}
\label{fig:label2}
\end{figure}

\listoffigures
\end{document}

A positive answer should also work with placement specifiers mixing p and [htb].

share|improve this question

1 Answer 1

up vote 3 down vote accepted

This is likely to be more trouble than it is worth. The placement algorithm needs to know the total size of each figure (including the caption) in advance, so they are assembled and stored in a queue before they are placed. I don't think there is any way to predict whether a figure will end up on a float page without reprogramming a large and very complex part of the kernel (even using a [p] placement specifier won't work because LaTeX may decide to ignore it).

share|improve this answer

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.