feat: Support tables in floatlefttextright
This commit is contained in:
parent
1d3803d6ea
commit
447b03797c
|
@ -15,16 +15,13 @@
|
||||||
\newcommand{\flstop}{
|
\newcommand{\flstop}{
|
||||||
\boolfalse{flcontinue}
|
\boolfalse{flcontinue}
|
||||||
}
|
}
|
||||||
\newcommand\@fladdfig{\relax}
|
\newcommand\@fladdfloat{\relax}
|
||||||
\newcommand\fladdfig[1]{\global\long\def\@fladdfig{#1}}
|
\newcommand\fladdfloat[1]{\global\long\def\@fladdfloat{#1}}
|
||||||
\newcommand\@flputfig{\@fladdfig\fladdfig{\relax}}
|
\newcommand\@flputfloat{\@fladdfloat\fladdfloat{\relax}}
|
||||||
\newcommand\flblankpage{%
|
\newcommand\flblankpage{%
|
||||||
\null
|
\null
|
||||||
\vfill
|
\vfill
|
||||||
\begin{figure}[H]
|
\@flputfloat%
|
||||||
\centering
|
|
||||||
\@flputfig%
|
|
||||||
\end{figure}
|
|
||||||
\vfill
|
\vfill
|
||||||
%\thispagestyle{empty}%
|
%\thispagestyle{empty}%
|
||||||
\clearpage%
|
\clearpage%
|
||||||
|
@ -34,19 +31,39 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newcommand{\fladdfig}[1]{
|
||||||
|
\fladdfloat{
|
||||||
|
\begin{figure}[H]
|
||||||
|
\centering
|
||||||
|
#1
|
||||||
|
\end{figure}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\fladdtab}[1]{
|
||||||
|
\fladdfloat{
|
||||||
|
\begin{table}[H]
|
||||||
|
\centering
|
||||||
|
#1
|
||||||
|
\end{table}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
\iffalse
|
\iffalse
|
||||||
% Example
|
% Example
|
||||||
|
|
||||||
% Add this at the beggining of the document (typically after the titlepage)
|
% Add this at the beginning of the document (typically after the titlepage)
|
||||||
\flstart
|
\flstart
|
||||||
|
|
||||||
% Then for each new figure you want to add, add the following
|
% Then for each new figure you want to add, add the following
|
||||||
\fladdfig{%
|
\fladdfloat{%
|
||||||
\includegraphics[scale=1]{Image1}
|
\begin{figure}[H]
|
||||||
\caption{Test}
|
\includegraphics[scale=1]{Image1}
|
||||||
\label{Ima1}
|
\caption{Test}
|
||||||
|
\label{Ima1}
|
||||||
|
\end{figure}
|
||||||
}
|
}
|
||||||
|
|
||||||
% At the end of the document, to avoid a unwanted late terminated loop of empty page creation, add the following
|
% At the end of the document, to avoid a unwanted late terminated loop of empty page creation, add the following
|
||||||
flstop
|
\flstop
|
||||||
\fi
|
\fi
|
||||||
|
|
Loading…
Reference in New Issue