OSDN Git Service

lltjcore.sty: patch \@footnotemark
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Fri, 6 May 2016 06:14:19 +0000 (15:14 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Fri, 6 May 2016 06:14:19 +0000 (15:14 +0900)
src/patches/lltjcore.sty

index 2d577fc..67d2923 100644 (file)
   \unless\ifnum\ltjgetparameter{direction}=3
     \hbox{}\hbox{\@textsuperscript{\normalfont\@thefnmark}}\hbox{}%
   \else\hbox{\yoko \@textsuperscript{\normalfont\@thefnmark}}\fi}
   \unless\ifnum\ltjgetparameter{direction}=3
     \hbox{}\hbox{\@textsuperscript{\normalfont\@thefnmark}}\hbox{}%
   \else\hbox{\yoko \@textsuperscript{\normalfont\@thefnmark}}\fi}
-\def\@footnotemark{\leavevmode
-  \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
-  \unless\ifnum\ltjgetparameter{direction}=3 \@makefnmark
-  \else\hbox to\z@{\hskip-.25\zw\raise.9\zh\@makefnmark\hss}\fi
-  \ifhmode\spacefactor\@x@sf\fi\relax}
 \begingroup
 \@ifpackageloaded{hyperref}
   {\def\ltj@setrefprefix{real}}
 \begingroup
 \@ifpackageloaded{hyperref}
   {\def\ltj@setrefprefix{real}}
 \newcount\minute
 %%% etoolbox is loaded by everyhook
 \ifltj@everyhook@avail
 \newcount\minute
 %%% etoolbox is loaded by everyhook
 \ifltj@everyhook@avail
+  \patchcmd{\@footnotemark}{\@makefnmark}{%
+    \unless\ifnum\ltjgetparameter{direction}=3 \@makefnmark%
+    \else\hbox to\z@{\hskip-.25\zw\raise.9\zh\@makefnmark\hss}\fi%
+  }{}{}
   \patchcmd{\@tabular}{\leavevmode}{\leavevmode\null}{}{}
   \apptocmd{\endtabular}{\null}{}{}
   \expandafter \let \csname endtabular*\endcsname = \endtabular
   \patchcmd{\@tabular}{\leavevmode}{\leavevmode\null}{}{}
   \apptocmd{\endtabular}{\null}{}{}
   \expandafter \let \csname endtabular*\endcsname = \endtabular