diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def | 1600 |
1 files changed, 1600 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def b/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def new file mode 100644 index 00000000000..eef353c8485 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def @@ -0,0 +1,1600 @@ +%% +%% This is file `extrafootnotefeatures.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bidi.dtx (with options: `extrafootnotefeatures.def') +%% +%% ______________________________________ +%% Copyright © 2009–2011 Vafa Khalighi +%% +%% License information appended. +%% +%% +\ProvidesFile{extrafootnotefeatures}[2011/03/01 v0.1 bidi extra footnote features for XeTeX engine] +\let\m@mold@footnotetext\@footnotetext +\let\m@mold@LTRfootnotetext\@LTRfootnotetext +\let\m@mold@RTLfootnotetext\@RTLfootnotetext +\let\m@mold@mpfootnotetext\@mpfootnotetext +\let\m@mold@mpLTRfootnotetext\@mpLTRfootnotetext +\let\m@mold@mpRTLfootnotetext\@mpRTLfootnotetext +\newcommand{\normalfootnotes}{% + \let\@footnotetext\m@mold@footnotetext + \let\@LTRfootnotetext\m@mold@LTRfootnotetext + \let\@RTLfootnotetext\m@mold@RTLfootnotetext + \let\@mpfootnotetext\m@mold@mpfootnotetext + \let\@mpLTRfootnotetext\m@mold@mpLTRfootnotetext + \let\@mpRTLfootnotetext\m@mold@mpRTLfootnotetext} +\newif\if@RTLcolumnfootnotes +\newcommand*{\RTLcolumnfootnotes}{\@RTLcolumnfootnotestrue} +\newcommand*{\LTRcolumnfootnotes}{\@RTLcolumnfootnotesfalse} +\g@addto@macro\document{\textwidthfootnoterule} +\newcommand*{\setSingleSpace}[1]{% + \def\m@m@singlespace{#1}% + \def\m@m@footnote@spacing{#1}% + \def\m@m@float@spacing{#1} % +} +\setSingleSpace{1} +\newinsert\sideins +\newcommand*{\multiplefootnotemarker}{3sp} +\newcommand*{\m@mmf@prepare}{% + \kern-\multiplefootnotemarker + \kern\multiplefootnotemarker\relax} +\newlength{\footmarkwidth} +\newlength{\footmarksep} +\newlength{\footparindent} +\newcommand*{\footmarkstyle}[1]{\def\footscript##1{#1}} +\newcommand{\footfootmark}{% + \ifdim\footmarkwidth < \z@ + \llap{\hb@xt@ -\footmarkwidth{% + \hss\normalfont\footscript{\@thefnmark}}% + \hspace*{-\footmarkwidth}}% + \else + \ifdim\footmarkwidth = \z@ + {\normalfont\footscript{\@thefnmark}}% + \else + \hb@xt@\footmarkwidth{\hss\normalfont\footscript{\@thefnmark}}% + \fi + \fi} +\footmarkstyle{\textsuperscript{#1}} +\setlength{\footmarkwidth}{1.8em} +\setlength{\footparindent}{1em} +\newcommand{\m@mdoextrafeet}{\extrafeetins} +\newcommand*{\extrafeetins}{% + \setbox\@outputbox \vbox{% + \boxmaxdepth \@maxdepth + \unvbox\@outputbox + \ifvoid\footinsv@r\else\@footstartv@r\@footgroupv@r\fi + \extrafeetinshook}} +\newcommand{\extrafeetinshook}{} +\newcommand{\foottextfont}{\footnotesize} +\newlength{\footinsdim} + \setlength{\footinsdim}{8in} % standard for \dimen\footins +\newcommand{\@preamfntext}{% + \interlinepenalty\interfootnotelinepenalty + \floatingpenalty \@MM + \splittopskip=\footnotesep + \splitmaxdepth=\dp\strutbox + \@parboxrestore} +\newcommand{\m@mdoextrafeetmini}{% + \extrafeetminihook} +\newcommand{\extrafeetendmini}{% + \ifvoid\@mpfootinsv@r\else + \vskip\skip\@mpfootins + \normalcolor\footnoterule\mp@footgroupv@r + \fi + \extrafeetendminihook} +\newcommand{\extrafeetendminihook}{} +\newcommand{\m@mdoextrafeetendmini}{\extrafeetendmini} +\def\endminipage{% + \par + \unskip + \ifvoid\@mpfootins\else + \vskip\skip\@mpfootins + \normalcolor + \footnoterule + \unvbox\@mpfootins + \fi + \m@mdoextrafeetendmini + \@minipagefalse + \color@endgroup + \egroup + \if@RTL\endL\fi + \egroup + \egroup + \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa\leavevmode}} +\newcommand{\m@make@footstart}[1]{% + \@namedef{@footstart#1}{% + \vskip\bigskipamount + \leftskip=\z@ + \rightskip=\z@ + \footnoterule}} +\newinsert\footinsv@r + \skip\footinsv@r\bigskipamount + \count\footinsv@r=1000 % no magnifcation + \dimen\footinsv@r=\footinsdim +\m@make@footstart{v@r} +\newcommand{\@footgroupv@r}{} +\newinsert\@mpfootinsv@r +\newcommand{\mp@footgroupv@r}{} +\newcount\m@m@k \newdimen\m@m@h +\newcommand*{\m@mrigidbalance}[3]{\setbox0=\box#1 \m@m@k=#2 \m@m@h=#3 + \@@line{\if@RTLcolumnfootnotes\beginR\fi\splittopskip=\m@m@h \vbadness=\@M \hfilneg + \valign{##\vfill\cr\m@mdosplits}\if@RTLcolumnfootnotes\endR\fi}} +\newcommand*{\m@mdosplits}{\ifnum\m@m@k>0 \noalign{\hfil}\m@msplitoff + \global\advance\m@m@k-1\cr\m@mdosplits\fi} +\newcommand*{\m@msplitoff}{\dimen0=\ht0 + \divide\dimen0 by\m@m@k \advance\dimen0 by\m@m@h + \setbox2 \vsplit0 to \dimen0 + \unvbox2 } +\newcommand{\twocolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@twocolfootnotetext + \let\@LTRfootnotetext\@twocolLTRfootnotetext + \let\@RTLfootnotetext\@twocolRTLfootnotetext + \dimen\footinsv@r=2\footinsdim + \count\footinsv@r=500\relax + \m@make@twocol@footgroup{v@r}% + \let\@footgroupv@r\@twocol@footgroupv@r + \let\@mpfootnotetext\@mptwocolfootnotetext + \let\@mpLTRfootnotetext\@mptwocolLTRfootnotetext + \let\@mpRTLfootnotetext\@mptwocolRTLfootnotetext + \m@make@mptwocol@footgroup{v@r}% + \let\mp@footgroupv@r\@mptwocol@footgroupv@r} +\newcommand{\@twocolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@twocolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@twocolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@twocolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@twocolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@twocolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamtwofmt}{% + \hsize .45\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@twocolfootfmt}[1]{% + \@preamtwofmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mptwocolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@twocolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mptwocolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@twocolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mptwocolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@twocolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\twocolumnfootstyle}[1]{% + \m@make@twocolfootnotetext{#1}% + \m@make@mptwocolfootnotetext{#1}% + \m@make@twocolfootfmt{#1}% + \m@make@twocol@footgroup{#1}% + \m@make@mptwocol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@twocolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mptwocolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@twocol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mptwocol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@twocolfootnotetext}[1]{% + \@namelongdef{@twocolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@twocolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mptwocolfootnotetext}[1]{% +\@namelongdef{@mptwocolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@twocolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@twocolfootfmt}[1]{% + \@namedef{@twocolfootfmt#1}##1{% + \@preamtwofmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@twocol@footgroup}[1]{% + \@namedef{@twocol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{\tw@}{\splittopskip}}}} +\newcommand{\m@make@mptwocol@footgroup}[1]{% +\@namedef{@mptwocol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{\tw@}{\splittopskip}}}} +\newcommand{\threecolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@threecolfootnotetext + \let\@LTRfootnotetext\@threecolLTRfootnotetext + \let\@RTLfootnotetext\@threecolRTLfootnotetext + \dimen\footinsv@r=3\footinsdim + \count\footinsv@r=333\relax + \m@make@threecol@footgroup{v@r}% + \let\@footgroupv@r\@threecol@footgroupv@r + \let\@mpfootnotetext\@mpthreecolfootnotetext + \let\@mpLTRfootnotetext\@mpthreecolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpthreecolRTLfootnotetext + \m@make@mpthreecol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpthreecol@footgroupv@r} +\newcommand{\@threecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@threecolfootfmt{#1}% + \color@endgroup}\m@mmf@prepare} +\newcommand{\@threecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@threecolfootfmt{#1}% + \color@endgroup}\m@mmf@prepare} +\newcommand{\@threecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@threecolfootfmt{#1}% + \color@endgroup}\m@mmf@prepare} +\newcommand{\@preamthreefmt}{% + \hsize .3\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@threecolfootfmt}[1]{% + \@preamthreefmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpthreecolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@threecolfootfmt{#1}% + \color@endgroup}\m@mmf@prepare} +\newcommand{\@mpthreecolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@threecolfootfmt{#1}% + \color@endgroup}\m@mmf@prepare} +\newcommand{\@mpthreecolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@threecolfootfmt{#1}% + \color@endgroup}\m@mmf@prepare} +\newcommand{\threecolumnfootstyle}[1]{% + \m@make@threecolfootnotetext{#1}% + \m@make@mpthreecolfootnotetext{#1}% + \m@make@threecolfootfmt{#1}% + \m@make@threecol@footgroup{#1}% + \m@make@mpthreecol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@threecolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpthreecolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@threecol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpthreecol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=3\footinsdim + \expandafter\count\csname footins#1\endcsname=333\relax} +\newcommand{\m@make@threecolfootnotetext}[1]{% +\@namelongdef{@threecolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@threecolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@mpthreecolfootnotetext}[1]{% +\@namelongdef{@mpthreecolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@threecolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@threecolfootfmt}[1]{% +\@namelongdef{@threecolfootfmt#1}##1{% + \@preamthreefmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@threecol@footgroup}[1]{% +\@namedef{@threecol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{\thr@@}{\splittopskip}}}} +\newcommand{\m@make@mpthreecol@footgroup}[1]{% +\@namedef{@mpthreecol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{\thr@@}{\splittopskip}}}} +\newcommand{\fourcolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@fourcolfootnotetext + \let\@LTRfootnotetext\@fourcolLTRfootnotetext + \let\@RTLfootnotetext\@fourcolRTLfootnotetext + \dimen\footinsv@r=4\footinsdim + \count\footinsv@r=250\relax + \m@make@fourcol@footgroup{v@r}% + \let\@footgroupv@r\@fourcol@footgroupv@r + \let\@mpfootnotetext\@mpfourcolfootnotetext + \let\@mpLTRfootnotetext\@mpfourcolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpfourcolRTLfootnotetext + \m@make@mpfourcol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpfourcol@footgroupv@r} +\newcommand{\@fourcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@fourcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@fourcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@fourcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@fourcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@fourcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamfourfmt}{% + \hsize .25\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@fourcolfootfmt}[1]{% + \@preamfourfmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpfourcolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@fourcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpfourcolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@fourcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpfourcolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@fourcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\fourcolumnfootstyle}[1]{% + \m@make@fourcolfootnotetext{#1}% + \m@make@mpfourcolfootnotetext{#1}% + \m@make@fourcolfootfmt{#1}% + \m@make@fourcol@footgroup{#1}% + \m@make@mpfourcol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@fourcolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpfourcolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@fourcol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpfourcol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@fourcolfootnotetext}[1]{% + \@namelongdef{@fourcolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@fourcolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mpfourcolfootnotetext}[1]{% +\@namelongdef{@mpfourcolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@fourcolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@fourcolfootfmt}[1]{% + \@namedef{@fourcolfootfmt#1}##1{% + \@preamfourfmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@fourcol@footgroup}[1]{% + \@namedef{@fourcol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{4}{\splittopskip}}}} +\newcommand{\m@make@mpfourcol@footgroup}[1]{% +\@namedef{@mpfourcol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{4}{\splittopskip}}}} +\newcommand{\fivecolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@fivecolfootnotetext + \let\@LTRfootnotetext\@fivecolLTRfootnotetext + \let\@RTLfootnotetext\@fivecolRTLfootnotetext + \dimen\footinsv@r=5\footinsdim + \count\footinsv@r=200\relax + \m@make@fivecol@footgroup{v@r}% + \let\@footgroupv@r\@fivecol@footgroupv@r + \let\@mpfootnotetext\@mpfivecolfootnotetext + \let\@mpLTRfootnotetext\@mpfivecolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpfivecolRTLfootnotetext + \m@make@mpfivecol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpfivecol@footgroupv@r} +\newcommand{\@fivecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@fivecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@fivecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@fivecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@fivecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@fivecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamfivefmt}{% + \hsize .2\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@fivecolfootfmt}[1]{% + \@preamfivefmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpfivecolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@fivecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpfivecolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@fivecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpfivecolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@fivecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\fivecolumnfootstyle}[1]{% + \m@make@fivecolfootnotetext{#1}% + \m@make@mpfivecolfootnotetext{#1}% + \m@make@fivecolfootfmt{#1}% + \m@make@fivecol@footgroup{#1}% + \m@make@mpfivecol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@fivecolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpfivecolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@fivecol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpfivecol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@fivecolfootnotetext}[1]{% + \@namelongdef{@fivecolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@fivecolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mpfivecolfootnotetext}[1]{% +\@namelongdef{@mpfivecolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@fivecolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@fivecolfootfmt}[1]{% + \@namedef{@fivecolfootfmt#1}##1{% + \@preamfivefmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@fivecol@footgroup}[1]{% + \@namedef{@fivecol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{5}{\splittopskip}}}} +\newcommand{\m@make@mpfivecol@footgroup}[1]{% +\@namedef{@mpfivecol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{5}{\splittopskip}}}} +\newcommand{\sixcolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@sixcolfootnotetext + \let\@LTRfootnotetext\@sixcolLTRfootnotetext + \let\@RTLfootnotetext\@sixcolRTLfootnotetext + \dimen\footinsv@r=6\footinsdim + \count\footinsv@r=166\relax + \m@make@sixcol@footgroup{v@r}% + \let\@footgroupv@r\@sixcol@footgroupv@r + \let\@mpfootnotetext\@mpsixcolfootnotetext + \let\@mpLTRfootnotetext\@mpsixcolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpsixcolRTLfootnotetext + \m@make@mpsixcol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpsixcol@footgroupv@r} +\newcommand{\@sixcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@sixcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@sixcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@sixcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@sixcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@sixcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamsixfmt}{% + \hsize .16\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@sixcolfootfmt}[1]{% + \@preamsixfmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpsixcolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@sixcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpsixcolLTRfootnotetext}[1]{\@RTLfalse% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@sixcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpsixcolRTLfootnotetext}[1]{\@RTLtrue% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@sixcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\sixcolumnfootstyle}[1]{% + \m@make@sixcolfootnotetext{#1}% + \m@make@mpsixcolfootnotetext{#1}% + \m@make@sixcolfootfmt{#1}% + \m@make@sixcol@footgroup{#1}% + \m@make@mpsixcol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@sixcolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpsixcolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@sixcol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpsixcol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@sixcolfootnotetext}[1]{% + \@namelongdef{@sixcolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@sixcolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mpsixcolfootnotetext}[1]{% +\@namelongdef{@mpsixcolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@sixcolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@sixcolfootfmt}[1]{% + \@namedef{@sixcolfootfmt#1}##1{% + \@preamsixfmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@sixcol@footgroup}[1]{% + \@namedef{@sixcol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{6}{\splittopskip}}}} +\newcommand{\m@make@mpsixcol@footgroup}[1]{% +\@namedef{@mpsixcol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{6}{\splittopskip}}}} +\newcommand{\sevencolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@sevencolfootnotetext + \let\@LTRfootnotetext\@sevencolLTRfootnotetext + \let\@RTLfootnotetext\@sevencolRTLfootnotetext + \dimen\footinsv@r=7\footinsdim + \count\footinsv@r=142\relax + \m@make@sevencol@footgroup{v@r}% + \let\@footgroupv@r\@sevencol@footgroupv@r + \let\@mpfootnotetext\@mpsevencolfootnotetext + \let\@mpLTRfootnotetext\@mpsevencolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpsevencolRTLfootnotetext + \m@make@mpsevencol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpsevencol@footgroupv@r} +\newcommand{\@sevencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@sevencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@sevencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@sevencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@sevencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@sevencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamsevenfmt}{% + \hsize .142\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@sevencolfootfmt}[1]{% + \@preamsevenfmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpsevencolfootnotetext}[1]{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@sevencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpsevencolLTRfootnotetext}[1]{\@RTLfalse% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@sevencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpsevencolRTLfootnotetext}[1]{\@RTLtrue% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@sevencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\sevencolumnfootstyle}[1]{% + \m@make@sevencolfootnotetext{#1}% + \m@make@mpsevencolfootnotetext{#1}% + \m@make@sevencolfootfmt{#1}% + \m@make@sevencol@footgroup{#1}% + \m@make@mpsevencol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@sevencolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpsevencolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@sevencol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpsevencol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@sevencolfootnotetext}[1]{% + \@namelongdef{@sevencolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@sevencolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mpsevencolfootnotetext}[1]{% +\@namelongdef{@mpsevencolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@sevencolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@sevencolfootfmt}[1]{% + \@namedef{@sevencolfootfmt#1}##1{% + \@preamsevenfmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@sevencol@footgroup}[1]{% + \@namedef{@sevencol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{7}{\splittopskip}}}} +\newcommand{\m@make@mpsevencol@footgroup}[1]{% +\@namedef{@mpsevencol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{7}{\splittopskip}}}} +\newcommand{\eightcolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@eightcolfootnotetext + \let\@LTRfootnotetext\@eightcolLTRfootnotetext + \let\@RTLfootnotetext\@eightcolRTLfootnotetext + \dimen\footinsv@r=8\footinsdim + \count\footinsv@r=125\relax + \m@make@eightcol@footgroup{v@r}% + \let\@footgroupv@r\@eightcol@footgroupv@r + \let\@mpfootnotetext\@mpeightcolfootnotetext + \let\@mpLTRfootnotetext\@mpeightcolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpeightcolRTLfootnotetext + \m@make@mpeightcol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpeightcol@footgroupv@r} +\newcommand{\@eightcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@eightcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@eightcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@eightcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@eightcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@eightcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preameightfmt}{% + \hsize .125\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@eightcolfootfmt}[1]{% + \@preameightfmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpeightcolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@eightcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpeightcolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@eightcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpeightcolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@eightcolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\eightcolumnfootstyle}[1]{% + \m@make@eightcolfootnotetext{#1}% + \m@make@mpeightcolfootnotetext{#1}% + \m@make@eightcolfootfmt{#1}% + \m@make@eightcol@footgroup{#1}% + \m@make@mpeightcol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@eightcolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpeightcolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@eightcol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpeightcol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@eightcolfootnotetext}[1]{% + \@namelongdef{@eightcolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@eightcolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mpeightcolfootnotetext}[1]{% +\@namelongdef{@mpeightcolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@eightcolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@eightcolfootfmt}[1]{% + \@namedef{@eightcolfootfmt#1}##1{% + \@preameightfmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@eightcol@footgroup}[1]{% + \@namedef{@eightcol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{8}{\splittopskip}}}} +\newcommand{\m@make@mpeightcol@footgroup}[1]{% +\@namedef{@mpeightcol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{8}{\splittopskip}}}} +\newcommand{\ninecolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@ninecolfootnotetext + \let\@LTRfootnotetext\@ninecolLTRfootnotetext + \let\@RTLfootnotetext\@ninecolRTLfootnotetext + \dimen\footinsv@r=9\footinsdim + \count\footinsv@r=111\relax + \m@make@ninecol@footgroup{v@r}% + \let\@footgroupv@r\@ninecol@footgroupv@r + \let\@mpfootnotetext\@mpninecolfootnotetext + \let\@mpLTRfootnotetext\@mpninecolLTRfootnotetext + \let\@mpRTLfootnotetext\@mpninecolRTLfootnotetext + \m@make@mpninecol@footgroup{v@r}% + \let\mp@footgroupv@r\@mpninecol@footgroupv@r} +\newcommand{\@ninecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@ninecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@ninecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@ninecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@ninecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@ninecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamninefmt}{% + \hsize .1\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@ninecolfootfmt}[1]{% + \@preamninefmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mpninecolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@ninecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpninecolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@ninecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mpninecolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@ninecolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\ninecolumnfootstyle}[1]{% + \m@make@ninecolfootnotetext{#1}% + \m@make@mpninecolfootnotetext{#1}% + \m@make@ninecolfootfmt{#1}% + \m@make@ninecol@footgroup{#1}% + \m@make@mpninecol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@ninecolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpninecolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@ninecol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mpninecol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@ninecolfootnotetext}[1]{% + \@namelongdef{@ninecolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@ninecolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mpninecolfootnotetext}[1]{% +\@namelongdef{@mpninecolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@ninecolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@ninecolfootfmt}[1]{% + \@namedef{@ninecolfootfmt#1}##1{% + \@preamninefmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@ninecol@footgroup}[1]{% + \@namedef{@ninecol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{9}{\splittopskip}}}} +\newcommand{\m@make@mpninecol@footgroup}[1]{% +\@namedef{@mpninecol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{9}{\splittopskip}}}} +\newcommand{\tencolumnfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@tencolfootnotetext + \let\@LTRfootnotetext\@tencolLTRfootnotetext + \let\@RTLfootnotetext\@tencolRTLfootnotetext + \dimen\footinsv@r=10\footinsdim + \count\footinsv@r=100\relax + \m@make@tencol@footgroup{v@r}% + \let\@footgroupv@r\@tencol@footgroupv@r + \let\@mpfootnotetext\@mptencolfootnotetext + \let\@mpLTRfootnotetext\@mptencolLTRfootnotetext + \let\@mpRTLfootnotetext\@mptencolRTLfootnotetext + \m@make@mptencol@footgroup{v@r}% + \let\mp@footgroupv@r\@mptencol@footgroupv@r} +\newcommand{\@tencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@tencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@tencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@tencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@tencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@tencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@preamtenfmt}{% + \hsize .1\hsize + \parindent=\z@ + \tolerance=5000\relax + \leavevmode} +\newcommand{\@tencolfootfmt}[1]{% + \@preamtenfmt + {\footfootmark\strut {\foottextfont #1}\strut\par}\allowbreak} +\newcommand{\@mptencolfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@tencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mptencolLTRfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \if@RTLcolumnfootnotes\beginL\fi + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@tencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\@mptencolRTLfootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@tencolfootfmt{#1}% + \color@endgroup}% + \m@mmf@prepare} +\newcommand{\tencolumnfootstyle}[1]{% + \m@make@tencolfootnotetext{#1}% + \m@make@mptencolfootnotetext{#1}% + \m@make@tencolfootfmt{#1}% + \m@make@tencol@footgroup{#1}% + \m@make@mptencol@footgroup{#1}% + \m@make@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@tencolfootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mptencolfootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@tencol@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mptencol@footgroup#1}}% + \expandafter\dimen\csname footins#1\endcsname=2\footinsdim + \expandafter\count\csname footins#1\endcsname=500\relax} +\newcommand{\m@make@tencolfootnotetext}[1]{% + \@namelongdef{@tencolfootnotetext#1}##1{% + \insert\@nameuse{footins#1}{% + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@tencolfootfmt#1}{##1}% + \color@endgroup}% + \m@mmf@prepare}} +\newcommand{\m@make@mptencolfootnotetext}[1]{% +\@namelongdef{@mptencolfootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \color@begingroup + \@nameuse{@tencolfootfmt#1}{##1}% + \color@endgroup}\m@mmf@prepare}} +\newcommand{\m@make@tencolfootfmt}[1]{% + \@namedef{@tencolfootfmt#1}##1{% + \@preamtenfmt + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\strut\par}\allowbreak}} +\newcommand{\m@make@tencol@footgroup}[1]{% + \@namedef{@tencol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{footins#1}}{10}{\splittopskip}}}} +\newcommand{\m@make@mptencol@footgroup}[1]{% +\@namedef{@mptencol@footgroup#1}{{% + \@nameuse{foottextfont#1} \splittopskip=\ht\strutbox + \m@mrigidbalance{\@nameuse{@mpfootins#1}}{10}{\splittopskip}}}} +\newcommand{\m@munvxh}[1]{% + \setbox0=\vbox{\unvbox#1% + \global\setbox1=\lastbox}% + \unhbox1 + \unskip + \unskip + \unpenalty + \hskip\m@mipn@skip} +\newcommand{\m@mungebox}{% + \setbox0=\hbox{\m@munvxh0}% + \dp0=\z@ + \ht0=\footfudgefactor\wd0 + \box0 + \penalty0} +\newskip\m@mipn@skip +\newcommand*{\m@minterparanoteglue}[1]{% + {\foottextfont\global\m@mipn@skip=#1\relax}} +\m@minterparanoteglue{1em plus.4em minus.4em} +\newcommand*{\m@mmakehboxofhboxes}{\setbox0=\hbox{}% + \loop + \unpenalty + \setbox2=\lastbox + \ifhbox2 + \setbox0=\hbox{\box2\unhbox0} + \repeat} +\newcommand*{\m@mremovehboxes}{\setbox0=\lastbox + \ifhbox0{\m@mremovehboxes}\unhbox0 \fi} +\newcommand*{\footfudgefiddle}{64} +\newcommand{\paragraphfootnotes}{% + \@namedef{foottextfontv@r}{\foottextfont}% % [RS] + \let\@footnotetext\@parafootnotetext + \dimen\footinsv@r=\footinsdim + \count\footinsv@r=1000\relax + \m@make@para@footgroup{v@r}% + \let\@footgroupv@r\@para@footgroupv@r + \let\@mpfootnotetext\@mpparafootnotetext + \m@make@mppara@footgroup{v@r}% + \let\mp@footgroupv@r\@mppara@footgroupv@r + {\foottextfont + \dimen0=\baselineskip + \multiply\dimen0 by 1024 + \divide\dimen0 by \hsize \multiply\dimen0 by \footfudgefiddle + \xdef\footfudgefactor{\expandafter\strip@pt\dimen0 }}} +\newcommand{\@parafootnotetext}[1]{\insert\footinsv@r{ + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \setbox0=\vbox{\hsize=\maxdimen + \color@begingroup + \noindent \@parafootfmt{#1}% + \color@endgroup}% + \m@mungebox}\m@mmf@prepare} +\newcommand{\@parafootfmt}[1]{% + \parindent=\z@ + \parfillskip=0pt \@plus 1fil + {\footfootmark\strut {\foottextfont #1}\penalty-10}} +\newcommand{\@mpparafootnotetext}[1]{% + \global\setbox\@mpfootinsv@r\vbox{% + \unvbox\@mpfootinsv@r + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\foottextfont + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote\endcsname\@thefnmark}% + \setbox0=\vbox{\hsize=\maxdimen + \color@begingroup + \noindent \@parafootfmt{#1}% + \color@endgroup}% + \m@mungebox}\m@mmf@prepare} +\newcommand{\paragraphfootstyle}[1]{% + \m@make@parafootnotetext{#1}% + \m@make@mpparafootnotetext{#1}% + \m@make@parafootfmt{#1}% + \m@make@para@footgroup{#1}% + \m@make@mppara@footgroup{#1}% + \m@make@para@footstart{#1}% + \@namelongdef{@footnotetext#1}##1{% + \@nameuse{@parafootnotetext#1}{##1}}% + \@namelongdef{@mpfootnotetext#1}##1{% + \@nameuse{@mpparafootnotetext#1}{##1}}% + \@namedef{@footgroup#1}{\@nameuse{@para@footgroup#1}}% + \@namedef{mp@footgroup#1}{\@nameuse{@mppara@footgroup#1}}% + \@namedef{@footstart#1}{\@nameuse{@para@footstart#1}}% + \expandafter\dimen\csname footins#1\endcsname=\footinsdim + \expandafter\count\csname footins#1\endcsname=1000\relax + {\@nameuse{foottextfont#1}% + \dimen0=\baselineskip + \multiply\dimen0 by 1024 + \divide\dimen0 by \hsize \multiply\dimen0 by 64 + \xdef\footfudgefactor{\expandafter\strip@pt\dimen0 }}} +\newcommand{\m@make@parafootnotetext}[1]{% +\@namelongdef{@parafootnotetext#1}##1{% + \insert\@nameuse{footins#1}{ + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \@preamfntext + \protected@edef\@currentlabel{% + \csname p@footnote#1\endcsname \@nameuse{@thefnmark#1}}% + \setbox0=\vbox{\hsize=\maxdimen + \color@begingroup + \noindent \@nameuse{@parafootfmt#1}{##1}% + \color@endgroup}% + \m@mungebox}\m@mmf@prepare}} +\newcommand{\m@make@mpparafootnotetext}[1]{% +\@namelongdef{@mpparafootnotetext#1}##1{% + \global\setbox\@nameuse{@mpfootins#1}\vbox{% + \unvbox\@nameuse{@mpfootins#1} + \def\baselinestretch{\m@m@footnote@spacing}% + \reset@font\@nameuse{foottextfont#1}% + \hsize\columnwidth \@parboxrestore + \protected@edef\@currentlabel{% + \csname p@mpfootnote#1\endcsname\@nameuse{@thefnmark#1}}% + \setbox0=\vbox{\hsize=\maxdimen + \color@begingroup + \noindent \@nameuse{@parafootfmt#1}{##1}% + \color@endgroup}% + \m@mungebox}\m@mmf@prepare}} +\newcommand{\m@make@parafootfmt}[1]{% +\@namelongdef{@parafootfmt#1}##1{% + \parindent=\z@ + \parfillskip=0pt \@plus 1fil + {\@nameuse{footfootmark#1}\strut + {\@nameuse{foottextfont#1}##1}\penalty-10}}} +\newcommand{\m@make@para@footgroup}[1]{% +\@namedef{@para@footgroup#1}{% + \unvbox\@nameuse{footins#1} + \m@mmakehboxofhboxes + \setbox0=\hbox{\unhbox0 \m@mremovehboxes}% + \@nameuse{foottextfont#1}% + \noindent\unhbox0\par}} +\newcommand{\m@make@mppara@footgroup}[1]{% +\@namedef{@mppara@footgroup#1}{% + \unvbox\@nameuse{@mpfootins#1} + \m@mmakehboxofhboxes + \setbox0=\hbox{\unhbox0 \m@mremovehboxes}% + \@nameuse{foottextfont#1}% + \noindent\unhbox0\par}} +\newcommand{\m@make@para@footstart}[1]{% +\@namedef{@para@footstart#1}{% + \vskip\bigskipamount + \leftskip=\z@ + \rightskip=\z@ + \parindent=\z@ + \vskip\skip\@nameuse{footins#1}% + \footnoterule}} +\newcommand*{\m@m@makecolfloats}{% + \xdef\@freelist{\@freelist\@midlist}% + \global\let\@midlist\@empty + \@combinefloats} +\newcommand*{\m@m@makecoltext}{% + \ifvbox\@kludgeins + \@makespecialcolbox + \else + \setbox\@outputbox \vbox to\@colht{% + \@texttop + \dimen@ \dp\@outputbox + \unvbox \@outputbox + \vskip -\dimen@ + \@textbottom}% + \fi} +\newcommand*{\m@m@makecolintro}{} +\newcommand*{\m@mopfootnote}{\setbox\@outputbox \vbox{% + \boxmaxdepth\@maxdepth + \@tempdima\dp\@cclv + \unvbox\@cclv + \vskip-\@tempdima + \vskip \skip\footins + \color@begingroup + \normalcolor + \footnoterule + \unvbox \footins + \color@endgroup}} +\newcommand*{\m@mopsidebar}{% + \ifvoid\sideins\else + \setbox\@outputbox \vbox{% + \sidecontents + \unvbox\@outputbox} + \fi} +\gdef\mem@makecol{% + \m@m@makecolintro + \ifvoid\footins + \setbox\@outputbox \box\@cclv + \else + \m@mopfootnote + \fi + \m@mdoextrafeet + \m@m@makecolfloats + \m@mopsidebar + \m@m@makecoltext + \global \maxdepth \@maxdepth} +\newcommand{\feetabovefloat}{\gdef\@makecol{\mem@makecol}} +\feetabovefloat% +%% +%% Copyright © 2009–2011 Vafa Khalighi <vafakhlgh@gmail.com> +%% +%% It may be distributed and/or modified under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “author-maintained” (as per LPPL maintenance status) +%% by Vafa Khalighi. +%% +%% +%% +%% +%% End of file `extrafootnotefeatures.def'. |