summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/apa/APAendfloat.cfg
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/apa/APAendfloat.cfg
Initial commit
Diffstat (limited to 'macros/latex/contrib/apa/APAendfloat.cfg')
-rw-r--r--macros/latex/contrib/apa/APAendfloat.cfg86
1 files changed, 86 insertions, 0 deletions
diff --git a/macros/latex/contrib/apa/APAendfloat.cfg b/macros/latex/contrib/apa/APAendfloat.cfg
new file mode 100644
index 0000000000..8584249f13
--- /dev/null
+++ b/macros/latex/contrib/apa/APAendfloat.cfg
@@ -0,0 +1,86 @@
+%%
+%% This is file `endfloat.cfg',
+%% modifed from the original supplied with the endfloat package
+%% to handle both sideways floats and longtable
+%%
+%% Athanassios Protopapas <protopap@ilsp.gr>
+%% July 2005
+%%
+%% Original authors: James Darrell McCauley <jdm5548@diamond.tamu.edu>,
+%% Jeff Goldberg <j.goldberg@cranfield.ac.uk>
+%% Original version: Version 2.4i <October 1995>
+%%
+\RequirePackage{rotating}
+\let\efsaved@sidewaysfigure\sidewaysfigure
+\let\efsaved@sidewaystable\sidewaystable
+\let\efsaved@longtable\longtable
+\AtBeginTables{\let\sidewaystable=\efsaved@sidewaystable\relax}
+\AtBeginTables{\let\longtable=\efsaved@longtable\relax}
+\AtBeginFigures{\let\sidewaysfigure=\efsaved@sidewaysfigure\relax}
+\def\sidewaystable{\efloat@condopen{ttt}
+ \efloat@iwrite{ttt}{\string\begin{sidewaystable}}%
+ \if@domarkers
+ \addtocounter{posttbl}{1}
+ \tableplace
+ \fi
+ \def\@currenvir{efloat@float}%
+ \begingroup
+ \let\do\ef@makeinnocent \dospecials
+ \ef@makeinnocent\^^L% and whatever other special cases
+ \endlinechar`\^^M \catcode`\^^M=12 \ef@xsidetable}
+{\catcode`\^^M=12 \endlinechar=-1 %
+ \gdef\ef@xsidetable#1^^M{\def\test{#1}
+ \ifx\test\ef@endsidetabletest
+ \efloat@foundend{ttt}{sidewaystable}
+ \else
+ \efloat@iwrite{ttt}{#1}%
+ \let\next\ef@xsidetable
+ \fi \next}
+}
+\def\sidewaysfigure{\efloat@condopen{fff}
+ \efloat@iwrite{fff}{\string\begin{sidewaysfigure}}%
+ \if@domarkers
+ \addtocounter{postfig}{1}
+ \figureplace
+ \fi
+ \def\@currenvir{efloat@float}%
+ \begingroup
+ \let\do\ef@makeinnocent \dospecials
+ \ef@makeinnocent\^^L% and whatever other special cases
+ \endlinechar`\^^M \catcode`\^^M=12 \ef@xsidefigure}
+{\catcode`\^^M=12 \endlinechar=-1 %
+ \gdef\ef@xsidefigure#1^^M{\def\test{#1}
+ \ifx\test\ef@endsidefiguretest
+ \efloat@foundend{fff}{sidewaysfigure}
+ \else
+ \efloat@iwrite{fff}{#1}%
+ \let\next\ef@xsidefigure
+ \fi \next}
+}
+\def\longtable{\efloat@condopen{ttt}
+ \efloat@iwrite{ttt}{\string\begin{longtable}}%
+ \if@domarkers
+ \addtocounter{posttbl}{1}
+ \tableplace
+ \fi
+ \def\@currenvir{efloat@float}%
+ \begingroup
+ \let\do\ef@makeinnocent \dospecials
+ \ef@makeinnocent\^^L% and whatever other special cases
+ \endlinechar`\^^M \catcode`\^^M=12 \ef@xlongtable}
+{\catcode`\^^M=12 \endlinechar=-1 %
+ \gdef\ef@xlongtable#1^^M{\def\test{#1}
+ \ifx\test\ef@endlongtabletest
+ \efloat@foundend{ttt}{longtable}
+ \else
+ \efloat@iwrite{ttt}{#1}%
+ \let\next\ef@xlongtable
+ \fi \next}
+}
+{\escapechar=-1%
+ \xdef\ef@endsidefiguretest{\string\\end\string\{sidewaysfigure\string\}}%
+ \xdef\ef@endsidetabletest{\string\\end\string\{sidewaystable\string\}}
+ \xdef\ef@endlongtabletest{\string\\end\string\{longtable\string\}}}%
+\endinput
+%%
+%% End of file `endfloat.cfg'.