2

Consider the MWE

\documentclass{book}
\begin{document}
\thispagestyle{empty}
\Large
\noindent A sentence.\footnote{Footnote A.} \\
Another sentence.\footnote{Footnote B.} \\
Another sentence.\footnote{Footnote C.}
\end{document}

which gives the footnotes:

enter image description here

I would like to make bold the footnotemarks (1, 2, 3 in this case) that appear after the footnote line. In the text, however, I would like to keep them as is. How may I do this?

1 Answer 1

1

The footnote text is inserted via \@makefntext within the default document classes, so you can patch that (using etoolbox) and change its default font resetting to \bfseries:

enter image description here

\documentclass{book}

\usepackage{etoolbox}

\makeatletter
\patchcmd{\@makefntext}% <cmd>
  {\@makefnmark}% <search>
  {\let\normalfont\bfseries\@makefnmark}% <replace>
  {}{}% <success><failure>
\makeatother

\begin{document}

\noindent A sentence.\footnote{Footnote A.}
Another sentence.\footnote{Footnote B.}
Another sentence.\footnote{Footnote C.}

\end{document}

Here is the original definition of \@makefntext (from book.cls):

\newcommand\@makefntext[1]{%
    \parindent 1em%
    \noindent
    \hb@[email protected]{\hss\@makefnmark}#1}

The above patch changes it into

\newcommand\@makefntext[1]{%
    \parindent 1em%
    \noindent
    \hb@[email protected]{\hss\let\normalfont\bfseries\@makefnmark}#1}

since the definition of \@makefnmark (from latex.ltx) is:

\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}

and issues \normalfont. The patch changes \normalfont into \bfseries.

1
  • Thank you kindly for both this answer and the explanations.
    – DDS
    Oct 13, 2021 at 4:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .