Here I give three solutions: the first one appears in June, 2011 and is the best choice before the second and third ones come out in April, 2022; the second and third ones are improved versions of the usual solution by the tikz
package.
1. By the pifont
package
- Due to: @Leo Liu (Cf. the link in which the solution appears at first)
- Recommendation Index: ★★★★
- Advantages: (1) enumerate footnotes with circled roman or sans serif numbers which has beautiful appearances and suitable sizes; (2) you can compiles the file in
LaTeX
, PDFLaTeX
, XeTeX
, XeLaTeX
, LuaLaTeX
and so on.
- Disadvantages: (1) the number font is not in the computer modern series, or can't be the same as the font you are using; (2) the number can't be greater than 10, otherwise their appearances would be different.
It may be the most popular solution right now before the second and third solutions as follows come out, since the number of footnotes on one page is usually no more than 10. Its codes and testing output are as follows.
\documentclass{article}
\usepackage{pifont}%for circled numbers
%%%enumerate footnotes with circled numbers%%%%%%
\renewcommand\thefootnote{\ding{\numexpr171+\value{footnote}}}%roman
%\renewcommand\thefootnote{\ding{\numexpr191+\value{footnote}}}%sans serif
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\par Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}.
\end{document}

2. By the tikz
, graphics
, etoolbox
and microtype
packages
- Due to: @M. Logic and @CarLaTeX (Cf. the link)
- Recommendation Index: ★★★★★
- Advantages: (1) enumerate footnotes with circled roman or bfseries or itshape or sffamily or ttfamily numbers which has beautiful appearances and suitable sizes; (2) the number font is in the computer modern series, or could be the same as the font which is collected in the TeX system; (3) the number could be greater than 10 and less than 100.
- Disadvantages: (1) you can compiles the file only in
LaTeX
and PDFLaTeX
because of the use of the microtype
package; (2) you should adjust the parameters with different fonts.
It's important to scale the width of two-digit numbers with a suitable value and decrease the spacing of two-digit numbers in the solution. It may be one of the best choices, since the number of footnotes on one page can't be more than 99. Its codes, circled numbers from 0 to 99, and testing output are as follows.
\documentclass{article}
\usepackage{tikz}
\usepackage{graphics}%for \scalebox
\usepackage{etoolbox}%for \ifnumcomp
\usepackage{microtype}%for \textls
%%%define circled command%%%%%%%%%%%%%%
\tikzset{circlednode/.style={
circle,
draw,
inner sep=0.05ex,
text depth=0ex,
font=\normalfont,
minimum size=1ex
}
}
\newcommand*\circled[1]{%
\ifnumcomp{#1}{>}{9}{%
% if > 9:
\tikz[baseline=(char.base)]\node[circlednode] (char) {\textls[-70]{\scalebox{0.5}[1]{\bfseries#1}}};}{%
% if <= 9:
\tikz[baseline=(char.base)]\node[circlednode] (char) {#1};}%
}
%%%footnote numbers setting%%%%%%%%%%%%%%%
\makeatletter
%make footnote numbers be circled------------------
\renewcommand{\thefootnote}{%
\raisebox{0.25ex}{%
\scalebox{0.7}{\protect\circled{%
\arabic{footnote}}%
}%
}%
}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\par Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}.
\end{document}


3. By the tikz
, graphics
, etoolbox
and fontspec
packages
- Due to: @M. Logic and @CarLaTeX (Cf. the link)
- Recommendation Index: ★★★★★
- Advantages: (1) enumerate footnotes with circled roman or bfseries or itshape or sffamily or ttfamily numbers which has beautiful appearances and suitable sizes; (2) the number font could be the same as the font which is installed on your computer; (3) the number could be greater than 10 and less than 100.
- Disadvantages: (1) you can compiles the file only in
XeTeX
, XeLaTeX
and LuaLaTeX
because of the use of the fontspec
package; (2) you must set the main font which could be identified by the fontspec
package; (3) you should adjust the parameters with different fonts.
It's important to scale the width of two-digit numbers with a suitable value and decrease the spacing of two-digit numbers in the solution. It may be one of the best choices, since the number of footnotes on one page can't be more than 99. Its codes, circled numbers from 0 to 99, and testing output are as follows.
\documentclass{article}
\usepackage{tikz}
\usepackage{graphics}%for \scalebox
\usepackage{etoolbox}%for \ifnumcomp
\usepackage{fontspec}%for \addfontfeature
\setmainfont{Arial}
%%%define circled command%%%%%%%%%%%%%%
\tikzset{circlednode/.style={
circle,
draw,
inner sep=0.05ex,
text depth=0ex,
font=\normalfont,
minimum size=1ex
}
}
\newcommand*\circled[1]{%
\ifnumcomp{#1}{>}{9}{%
% if > 9:
\tikz[baseline=(char.base)]\node[circlednode] (char) {\addfontfeature{LetterSpace=-9.0}\scalebox{0.5}[1]{\bfseries#1}};}{%
% if <= 9:
\tikz[baseline=(char.base)]\node[circlednode] (char) {#1};}%
}
%%%footnote numbers setting%%%%%%%%%%%%%%%
\makeatletter
%make footnote numbers be circled------------------
\renewcommand{\thefootnote}{%
\raisebox{0.25ex}{%
\scalebox{0.7}{\protect\circled{%
\arabic{footnote}}%
}%
}%
}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\par Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}. Now we test the footnote numbers with two digits\footnote{Test}.
\end{document}

