
Wie kann eine Fußnote in einer Minipage dieselbe Schriftart für Fußnotenzeichen und Fußnotentext verwenden? Das Zeichen im Beispiel verwendet
\bfseries\sffamily\Huge
wo der Text die normale Schriftart verwendet. Dasselbe gilt für eine „direkte“ Fußnote.
\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}
Antwort1
Mit können Sie \footnotesize
die Größe des Fußnotentextes steuern und \reset@font
mit die Schriftart.
\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}