ミニページの脚注で、脚注マークと脚注テキストに同じフォントを使用するにはどうすればよいでしょうか

ミニページの脚注で、脚注マークと脚注テキストに同じフォントを使用するにはどうすればよいでしょうか

ミニページの脚注で、脚注マークと脚注テキストに同じフォントを使用するにはどうすればよいでしょうか。例のマークでは、

\bfseries\sffamily\Huge

テキストが通常のフォントを使用する場合。「直接」の脚注も同様です

\documentclass{article}
\usepackage{%
expl3,%   
xparse,%  
}

\newcounter{Foot}

\newcommand\Mark{%
  \stepcounter{Foot}%
  \footnotemark[\theFoot]%
}% Mark

\newcommand\Meaning[1]{%
  \stepcounter{Foot}%
  \footnotetext[\theFoot]{#1}%
}% Meaning

\NewDocumentEnvironment{Test}{O{t}D(){\empty}}{%
  \begin{minipage}[#1]{6cm}%
    \bfseries\sffamily\Huge%
    \renewcommand{\thefootnote}{\alph{footnote}}%
    \setcounter{Foot}{0}%
}{%
  \ifx#2\empty\else%
    \setcounter{Foot}{0}%
    #2%
  \fi%
  \end{minipage}%
}% Test

\begin{document}
Start Text

\begin{Test}(\Meaning{First}\Meaning{Second})
  Word1\Mark word2\footnote{FN1}\\
  word3\Mark word4\footnote{FN2}
\end{Test}

After Text
\end{document}

答え1

を使用して\footnotesize脚注テキストのサイズを制御し、 を使用して\reset@fontフォント タイプを制御します。

\documentclass{article}
\usepackage{%
expl3,%   
xparse,%  
}

% modify \footnotemark to use same counter as \footnote
\makeatletter
\def\footnotemark{\@ifnextchar[\@xfootnotemark{\stepcounter\@mpfn
 \protected@xdef\@thefnmark{\thempfn}
 \@footnotemark}}

\def\@xfootnotemark[#1]{%
 \begingroup
   \csname c@\@mpfn\endcsname #1\relax
   \unrestored@protected@xdef\@thefnmark{\thempfn}%
 \endgroup
 \@footnotemark}
\makeatother

\newcounter{Foot}

\newcommand\Mark{%
  \stepcounter{Foot}%
  \footnotemark[\value{Foot}]%
}% Mark

\newcommand\Meaning[1]{%
  \stepcounter{Foot}%
  \footnotetext[\theFoot]{#1}%
}% Meaning

\NewDocumentEnvironment{Test}{O{t}D(){\empty}}{%
  \begin{minipage}[#1]{6cm}%
    \bfseries\sffamily\Huge
    \let\footnotesize=\Huge
    \expandafter\let\csname reset@font\endcsname=\relax
    %\renewcommand{\thempfn}{\alph{\csname @mpfn\endcsname}}%
    \setcounter{Foot}{0}%
}{%
  \ifx#2\empty\else%
    \setcounter{Foot}{0}%
    #2%
  \fi%
  \end{minipage}%
}% Test

\begin{document}
Start Text

\begin{Test}(\Meaning{First}\Meaning{Second})
  Word1\Mark word2\footnote{FN1}\\
  word3\Mark word4\footnote{FN2}
\end{Test}

After Text
\end{document}

デモ

関連情報