%%
%% This is file `jfootnote.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jfootnote.dtx  (with options: `jfootnote')
%% 
%% Copyright 2010 Shinsaku Fujita
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%     http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Shinsaku Fujita
%% 
%% This work consists of the files jfootnote.dtx and jfootnote.ins
%% and the derived files jfootnote.drv and jfootnote.sty.
%% 
%% File: jfootnote.dtx
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\typeout{Package `jfootnote' (v. 1.00) Shinsaku Fujita 2010/02/03}
\let\@ldfootnote=\footnote
\def\@shiftglue{\skip0=\lastskip\unskip%
\@whiledim\lastskip>\z@\do%
{\advance\skip0\lastskip \unskip}}
\newif\ifzenk@kukutou \zenk@kukutoufalse
\def\jfootnote{\@ifnextchar[{\f@otnoteA}{\f@otnoteA[]}}
\def\f@otnoteA[#1]#2{%
\def\reservefnoption{#1}%
\def\reservefnbody{#2}%
\@shiftglue
\futurelet\next\footnoteaction}
\def\aftfnswitch{%�㑱�������ʂ��Ǔ_�̌��o
  \ifx �D\next \zenk@kukutoutrue
   \else\ifx �C\next \zenk@kukutoutrue
   \else\ifx �B\next \zenk@kukutoutrue
   \else\ifx �A\next \zenk@kukutoutrue
   \else\ifx �j\next \zenk@kukutoutrue
   \else\ifx �v\next \zenk@kukutoutrue
   \else\ifx ] \next \zenk@kukutoutrue
   \else\ifx �r\next \zenk@kukutoutrue
   \else\ifx �p\next \zenk@kukutoutrue
   \else\ifx �x\next \zenk@kukutoutrue
   \else\ifx �l\next \zenk@kukutoutrue
   \else\ifx �z\next \zenk@kukutoutrue
   \else\ifx �t\next \zenk@kukutoutrue
   \else\ifx �f\next \zenk@kukutoutrue
   \else\ifx �h\next \zenk@kukutoutrue
   \else \zenk@kukutoufalse
   \fi\fi\fi\fi\fi
   \fi\fi\fi\fi\fi
   \fi\fi\fi\fi\fi
}
\let\old@footnotemark=\@footnotemark
\def\footnoteaction{%
  \aftfnswitch
  \let\@footnotemark=\@jfootnotemark
  \ifx\reservefnoption\empty
  \@ldfootnote{\reservefnbody}\else
  \@ldfootnote[\reservefnoption]{\reservefnbody}\fi
  \let\@footnotemark=\old@footnotemark
}
\let\@ldfootnotemark=\footnotemark
\def\jfootnotemark{\@ifnextchar[{\f@otnotemarkA}{\f@otnotemarkA[]}}
\def\f@otnotemarkA[#1]{%
\def\reservefnoption{#1}%
\@shiftglue
\futurelet\next\footnotemarkaction}
\def\footnotemarkaction{%
  \aftfnswitch
  \let\@footnotemark=\@jfootnotemark
  \ifx\reservefnoption\empty
  \@ldfootnotemark\else
  \@ldfootnotemark[\reservefnoption]\fi
  \let\@footnotemark=\old@footnotemark
}
\def\@jfootnotemark{%
\leavevmode\ifhmode
\edef\@x@sf{\the\spacefactor}\fi%
\@makefnmark%
\ifdim\skip0>0.46zw
\ifzenk@kukutou \skip0=0pt\else
\skip0=0.48zw minus 0.24zw\fi
\else \skip0=0pt\fi
\hskip\skip0\relax
\ifhmode\spacefactor\@x@sf\fi
\relax}
\let\oldfootnotetext=\footnotetext
\let\jfootnotetext=\oldfootnotetext
\def\thefootnote{\@arabic\c@footnote}
\endinput
%%
%% End of file `jfootnote.sty'.
