
미니페이지의 각주는 어떻게 각주와 각주 텍스트에 동일한 글꼴을 사용할 수 있습니까? 예제의 마크는 다음을 사용합니다.
\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}