I have a lot of my figures in floats, and LaTeX puts them on good places in the pdf. But for my students it would be great if I could produce a second pdf-version of the same text, without the figures in the text, and all the figures in a separate document. Why?
- figures are in colour, so students can print these figures on a better quality printer.
- Also, while studying, it is for some students more comfortable to have the figures separate to the text, because I often refer to a figure that appears a few pages earlier then the second or third reference in the text. Of course, the numbering (like "fig. 2.1") should be kept unchanged, so the numbering in both versions of the document stays the same.
I tried using endfloat, pushing all the floats to the end, but then all the numbers start with the number of the last chapter (e.g. 2.1, where it orig. was 1.1). In the example below, the "first version" (which is OK) is produced: the figures are placed in the text by LaTeX, and this placement is fine.
I'm trying to make the second version, just by uncommenting the two lines that are commented in the example. Then you'll see that figures in fact are pushed to the end as desired, but numbers change (undesired, because different from first version).
\documentclass[a4paper,oneside,dutch]{book}
%\usepackage[nomarkers, nolists]{endfloat} %these two lines should be uncommented
%\renewcommand{\efloatseparator}{\mbox{}} %these two lines should be uncommented
\begin{document}
\chapter{first chapter}
\section{first section}
Some text referring to this figure, with a number that shows the figure belongs to chapter one: fig.~\ref{fig: 050}.
\begin{figure}
\begin{centering}
{\fboxsep 14pt\fbox{}}
\par\end{centering}
\caption{\label{fig: 050}figure in chapter one}
\end{figure}
\section{second section\label{sec:Graad-van-hyperstaticiteit}}
Some other text referring to another figure int the same chapter: fig.~\ref{fig: 052}
\begin{figure}
\begin{centering}
{\fboxsep 14pt\fbox{}}
\par\end{centering}
\caption{\label{fig: 052}another figure in chapter one}
\end{figure}
\chapter{second chapter}
Some text in chapter two, so referring to a fig. with numbering that shows the figure is part of chapter two: fig.~\ref{fig: 054}.
\begin{figure}
\begin{centering}
{\fboxsep 14pt\fbox{}}
\par\end{centering}
\caption{\label{fig: 054}this figure belongs to chapter two}
\end{figure}
\end{document}
Is there a workaround? Or another simple way to achieve this? I've had a suggestion to use "preview", but this doesn't seem to solve my problem as a whole... Or is it wishfull thinking to be able to produce the two desired versions?