summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/apa/endfloat.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/apa/endfloat.cfg')
-rw-r--r--Master/texmf-dist/source/latex/apa/endfloat.cfg31
1 files changed, 31 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/apa/endfloat.cfg b/Master/texmf-dist/source/latex/apa/endfloat.cfg
new file mode 100644
index 00000000000..39c67896e30
--- /dev/null
+++ b/Master/texmf-dist/source/latex/apa/endfloat.cfg
@@ -0,0 +1,31 @@
+%
+% endfloat configuration file for long tables, to be used with apa.cls
+%
+
+\let\efsaved@longtable\longtable
+\AtBeginTables{\let\longtable=\efsaved@longtable\relax}
+
+\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@endlongtabletest{\string\\end\string\{longtable\string\}}}%
+\endinput