2024-03-20 12:19:56 +01:00
|
|
|
% https://www.developpez.net/forums/d910711/autres-langages/autres-langages/latex/mise-forme/texte-recto-figures-verso/
|
2024-04-10 13:24:58 +02:00
|
|
|
% Solution by Martigan on Developpez.net, adapted
|
2024-03-20 12:19:56 +01:00
|
|
|
|
|
|
|
\RequirePackage{afterpage}
|
|
|
|
\RequirePackage{caption}
|
2024-04-10 13:24:58 +02:00
|
|
|
\RequirePackage{etoolbox}
|
|
|
|
\RequirePackage{environ}
|
2024-04-11 17:23:20 +02:00
|
|
|
\RequirePackage{float}
|
2024-04-10 13:24:58 +02:00
|
|
|
\newbool{flcontinue}
|
|
|
|
\newcommand{\flstart}{
|
|
|
|
\booltrue{flcontinue}
|
|
|
|
\afterpage{\flblankpage}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\flstop}{
|
|
|
|
\boolfalse{flcontinue}
|
|
|
|
}
|
|
|
|
\newcommand\@fladdfig{\relax}
|
|
|
|
\newcommand\fladdfig[1]{\global\long\def\@fladdfig{#1}}
|
|
|
|
\newcommand\@flputfig{\@fladdfig\fladdfig{\relax}}
|
2024-03-21 19:36:09 +01:00
|
|
|
\newcommand\flblankpage{%
|
2024-03-20 12:19:56 +01:00
|
|
|
\null
|
|
|
|
\vfill
|
2024-04-11 17:23:20 +02:00
|
|
|
\begin{figure}[H]
|
|
|
|
\centering
|
|
|
|
\@flputfig%
|
|
|
|
\end{figure}
|
2024-03-20 12:19:56 +01:00
|
|
|
\vfill
|
2024-04-10 13:24:58 +02:00
|
|
|
%\thispagestyle{empty}%
|
2024-03-20 12:19:56 +01:00
|
|
|
\clearpage%
|
2024-04-10 13:24:58 +02:00
|
|
|
% \addtocounter{page}{-1}
|
|
|
|
\ifbool{flcontinue}{
|
|
|
|
\afterpage{\flblankpage}
|
|
|
|
}
|
|
|
|
}
|
2024-03-21 19:36:09 +01:00
|
|
|
|
2024-03-20 12:19:56 +01:00
|
|
|
\iffalse
|
|
|
|
% Example
|
|
|
|
|
2024-03-21 19:36:09 +01:00
|
|
|
% Add this at the beggining of the document:
|
|
|
|
\afterpage{\flblankpage}
|
|
|
|
|
2024-04-10 13:24:58 +02:00
|
|
|
\fladdfig{%
|
2024-03-20 12:19:56 +01:00
|
|
|
\centering
|
|
|
|
\includegraphics[scale=1]{Image1}
|
|
|
|
\caption{Test}
|
|
|
|
\label{Ima1}
|
|
|
|
}
|
2024-04-11 17:23:20 +02:00
|
|
|
\fi
|