From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/ftnxtra/README | 23 +++ macros/latex/contrib/ftnxtra/ftnxtra.dtx | 243 +++++++++++++++++++++++++++++++ macros/latex/contrib/ftnxtra/ftnxtra.ins | 61 ++++++++ macros/latex/contrib/ftnxtra/ftnxtra.pdf | Bin 0 -> 23014 bytes macros/latex/contrib/ftnxtra/ftnxtra.tex | 32 ++++ 5 files changed, 359 insertions(+) create mode 100644 macros/latex/contrib/ftnxtra/README create mode 100644 macros/latex/contrib/ftnxtra/ftnxtra.dtx create mode 100644 macros/latex/contrib/ftnxtra/ftnxtra.ins create mode 100644 macros/latex/contrib/ftnxtra/ftnxtra.pdf create mode 100644 macros/latex/contrib/ftnxtra/ftnxtra.tex (limited to 'macros/latex/contrib/ftnxtra') diff --git a/macros/latex/contrib/ftnxtra/README b/macros/latex/contrib/ftnxtra/README new file mode 100644 index 0000000000..44d35cba9b --- /dev/null +++ b/macros/latex/contrib/ftnxtra/README @@ -0,0 +1,23 @@ +_________________ +The ftnxtra package +v0.1 + +This package fixes the issue of footnote inside \caption{}, +tabular environment and \section{} like (\chapter{}, \part{}, \subsection{} and etc) commands. + +If you want to report any bugs or typos and corrections in the documentation, +or ask for any new features, or suggest any improvements, or ask any questions +about the package, then please do not send any direct emails to us; we will not +answer any direct emails. Instead please use the issue tracker: + +In doing so, please always explain your issue well enough, always include +a minimal working examples showing the issue, and always choose the appropriate +label for your query (i.e. if you are reporting any bugs, choose `bug' label). + +Current version release date: 2013/04/04 +______________ +Persian TeX Group +persian-tex@tug.org + +Copyright 2009–2013 +Distributed under the LaTeX Project Public License diff --git a/macros/latex/contrib/ftnxtra/ftnxtra.dtx b/macros/latex/contrib/ftnxtra/ftnxtra.dtx new file mode 100644 index 0000000000..c5ddcf5125 --- /dev/null +++ b/macros/latex/contrib/ftnxtra/ftnxtra.dtx @@ -0,0 +1,243 @@ +% \iffalse +%<*internal> +\iffalse +% +%<*readme> +_________________ +The ftnxtra package +v0.1 + +This package fixes the issue of footnote inside \caption{}, +tabular environment and \section{} like (\chapter{}, \part{}, \subsection{} and etc) commands. + +If you want to report any bugs or typos and corrections in the documentation, +or ask for any new features, or suggest any improvements, or ask any questions +about the package, then please do not send any direct emails to us; we will not +answer any direct emails. Instead please use the issue tracker: + +In doing so, please always explain your issue well enough, always include +a minimal working examples showing the issue, and always choose the appropriate +label for your query (i.e. if you are reporting any bugs, choose `bug' label). + +Current version release date: 2013/04/04 +______________ +Persian TeX Group +persian-tex@tug.org + +Copyright 2009–2013 +Distributed under the LaTeX Project Public License +% +%<*internal> +\fi +\begingroup +% +%<*batchfile> +\input docstrip.tex +\keepsilent +\preamble + + __________________________________ + Copyright (C) 2009–2013 Persian TeX Group + + License information appended. + + +\endpreamble +\postamble + +Copyright (C) 2009–2013 by Persian TeX Group + +Distributable 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 "maintained" (as per LPPL maintenance status) +by Persian TeX Group. + +This work consists of the file ftnxtra.dtx + and the derived files ftnxtra.sty, + ftnxtra.ins, and + ftnxtra.pdf. + +\endpostamble +\askforoverwritefalse +\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} +% +%\endbatchfile +%<*internal> +\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}} +\nopreamble\nopostamble +\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}} +\endgroup +\immediate\write18{mv README.txt README} +\immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx} +\immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo} +% +% +%<*driver> +\documentclass{ltxdoc} +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\OnlyDescription +\begin{document} + \DocInput{\jobname.dtx} +\end{document} +% +% +% +% \fi +% +% \GetFileInfo{\jobname.sty} +% \CheckSum{0} +% \makeatletter +% +% \title{The \textsf{ftnxtra} package} +% \author{Persian TeX Group} +% +% +% \StopEventually{} +% +% \part{\textsf{\jobname} implementation} +%\iffalse +%<*package> +%\fi +% \begin{macrocode} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{ftnxtra}% +[2013/04/04 footnote fixes for standard LaTeX] +\newtoks\ftnxtra@p@ftn +\let\FN@sf@@footnote\footnote +\def\footnote{\ifx\protect\@typeset@protect + \expandafter\FN@sf@@footnote + \else + \expandafter\FN@sf@gobble@opt + \fi +} +\edef\FN@sf@gobble@opt{\noexpand\protect + \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname} +\expandafter\def\csname FN@sf@gobble@opt \endcsname{% + \@ifnextchar[%] + \FN@sf@gobble@twobracket + \@gobble +} +\def\FN@sf@gobble@twobracket[#1]#2{} +\let\FN@sf@@footnotemark\footnotemark +\def\footnotemark{\ifx\protect\@typeset@protect + \expandafter\FN@sf@@footnotemark + \else + \expandafter\FN@sf@gobble@optonly + \fi +} +\edef\FN@sf@gobble@optonly{\noexpand\protect + \expandafter\noexpand\csname FN@sf@gobble@optonly \endcsname} +\expandafter\def\csname FN@sf@gobble@optonly \endcsname{% + \@ifnextchar[%] + \FN@sf@gobble@bracket + {}% +} +\def\FN@sf@gobble@bracket[#1]{} +\def\@tabular{% + \leavevmode \hbox \bgroup + \let\@footnotetext\ftnxtra@p@ftntext + $\let\@acol\@tabacol + \let\@classz\@tabclassz + \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray} +\def\endtabular{\crcr\egroup + \egroup $\egroup + \the\ftnxtra@p@ftn + \global\ftnxtra@p@ftn{}% + } +\long\def\ftnxtra@p@ftntext#1{% + \edef\@tempy{\the\ftnxtra@p@ftn\noexpand\footnotetext[\the\c@footnote]}% + \global\ftnxtra@p@ftn\expandafter{\@tempy{#1}}}% +\def\@xfloat #1[#2]{% + \@nodocument + \def \@captype {#1}% + \def \@fps {#2}% + \@onelevel@sanitize \@fps + \def \reserved@b {!}% + \ifx \reserved@b \@fps + \@fpsadddefault + \else + \ifx \@fps \@empty + \@fpsadddefault + \fi + \fi + \ifhmode + \@bsphack + \@floatpenalty -\@Mii + \else + \@floatpenalty-\@Miii + \fi + \ifinner + \@parmoderr\@floatpenalty\z@ + \else + \@next\@currbox\@freelist + {% + \@tempcnta \sixt@@n + \expandafter \@tfor \expandafter \reserved@a + \expandafter :\expandafter =\@fps + \do + {% + \if \reserved@a h% + \ifodd \@tempcnta + \else + \advance \@tempcnta \@ne + \fi + \fi + \if \reserved@a t% + \@setfpsbit \tw@ + \fi + \if \reserved@a b% + \@setfpsbit 4% + \fi + \if \reserved@a p% + \@setfpsbit 8% + \fi + \if \reserved@a !% + \ifnum \@tempcnta>15 + \advance\@tempcnta -\sixt@@n\relax + \fi + \fi + }% + \@tempcntb \csname ftype@\@captype \endcsname + \multiply \@tempcntb \@xxxii + \advance \@tempcnta \@tempcntb + \global \count\@currbox \@tempcnta + }% + \@fltovf + \fi + \global \setbox\@currbox + \color@vbox + \normalcolor + \vbox \bgroup + \let\@footnotetext\ftnxtra@p@ftntext + \hsize\columnwidth + \@parboxrestore + \@floatboxreset +} +\def \@endfloatbox{% + \par\vskip\z@skip %% \par\vskip\z@ added 15 Dec 87 + \@minipagefalse + \outer@nobreak + \egroup %% end of vbox + \the\ftnxtra@p@ftn + \global\ftnxtra@p@ftn{}% + \color@endbox +} +% \end{macrocode} +%\iffalse +% +%\fi +% +% \typeout{*************************************************************} +% \typeout{*} +% \typeout{* To finish the installation you have to move the following} +% \typeout{* file into a directory searched by TeX:} +% \typeout{*} +% \typeout{* \space\space\space ftnxtra.sty} +% \typeout{*} +% \typeout{*************************************************************} +% +\endinput diff --git a/macros/latex/contrib/ftnxtra/ftnxtra.ins b/macros/latex/contrib/ftnxtra/ftnxtra.ins new file mode 100644 index 0000000000..2148a75121 --- /dev/null +++ b/macros/latex/contrib/ftnxtra/ftnxtra.ins @@ -0,0 +1,61 @@ +%% +%% This is file `ftnxtra.ins', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ftnxtra.dtx (with options: `batchfile') +%% +%% __________________________________ +%% Copyright (C) 2009–2013 Persian TeX Group +%% +%% License information appended. +%% +%% +\input docstrip.tex +\keepsilent +\preamble + + __________________________________ + Copyright (C) 2009–2013 Persian TeX Group + + License information appended. + +\endpreamble +\postamble + +Copyright (C) 2009–2013 by Persian TeX Group + +Distributable 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 "maintained" (as per LPPL maintenance status) +by Persian TeX Group. + +This work consists of the file ftnxtra.dtx + and the derived files ftnxtra.sty, + ftnxtra.ins, and + ftnxtra.pdf. + +\endpostamble +\askforoverwritefalse +\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} +\endbatchfile +%% +%% Copyright (C) 2009–2013 by Persian TeX Group +%% +%% Distributable 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 "maintained" (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% This work consists of the file ftnxtra.dtx +%% and the derived files ftnxtra.sty, +%% ftnxtra.ins, and +%% ftnxtra.pdf. +%% +%% +%% End of file `ftnxtra.ins'. diff --git a/macros/latex/contrib/ftnxtra/ftnxtra.pdf b/macros/latex/contrib/ftnxtra/ftnxtra.pdf new file mode 100644 index 0000000000..e7b31c2ccc Binary files /dev/null and b/macros/latex/contrib/ftnxtra/ftnxtra.pdf differ diff --git a/macros/latex/contrib/ftnxtra/ftnxtra.tex b/macros/latex/contrib/ftnxtra/ftnxtra.tex new file mode 100644 index 0000000000..76b860c191 --- /dev/null +++ b/macros/latex/contrib/ftnxtra/ftnxtra.tex @@ -0,0 +1,32 @@ +\documentclass{ltxdoc} + +\EnableCrossrefs +\CodelineIndex +\RecordChanges + +\begingroup +\catcode`\/=0 +/catcode`/[=1 +/catcode`/]=2 +/catcode`/\=12 +/catcode`/{=12 +/catcode`/}=12 +/gdef/pkgdesc[% + This package fixes the isuue of footnote inside /texttt[\caption{}], + /texttt[tabular] environment and /texttt[\section{}] like (/texttt[\chapter{}], /texttt[\part{}], /texttt[\subsection{}] and etc) commands. +] +/endgroup + +\begin{document} + +\def\StopEventually#1{% + \date{2009/10/18}% + \maketitle + \noindent + \pkgdesc +} + +\DocInput{\jobname.dtx} +\PrintIndex + +\end{document} -- cgit v1.2.3