字母脚注标记(自动)省略字母“j”和“w”

字母脚注标记(自动)省略字母“j”和“w”

我正在尝试复制一本书的脚注样式,其中脚注标记是字母表中的字母 - 但脚注省略了字母“j”和“w”。

我解决的解决办法是手动重置脚注计数器以\setcounter{footnote}{#}跳过字母。

我一直没能找到能实现这个功能的包,也不知道如何自己做。

这是我所拥有的。

\documentclass[11pt, nomath]{amsbook}
\renewcommand{\thefootnote}{\alph{footnote}}    %   footnotes a, b, c,
%\makeatletter                          %   reset footnote counter
%\@addtoreset{footnote}{section}            %   at each section break
%\makeatother

\begin{document}
The\footnote{something} quick\footnote{something} brown\footnote{something} fox had\footnote{something} a\footnote{something} short\footnote{something} bushy\footnote{something} tail\footnote{something} that\footnote{something} %
\setcounter{footnote}{10}%
looked\footnote{something} like\footnote{something} something\footnote{something} you\footnote{something} might\footnote{something} have\footnote{something} gotten\footnote{something} from\footnote{something} the\footnote{something} Fuller\footnote{something} Brush\footnote{something} Man,\footnote{something} %
\setcounter{footnote}{23}%
back\footnote{something} when they still came\footnote{something} house-to-house\footnote{something} %
\setcounter{footnote}{0}%
selling\footnote{something} their goods.\footnote{something}
\end{document}

我已经发布了一个单独的问题将脚注标记从“z”循环回到“a”

答案1

让我们看看正则的\alph定义方式(来自latex.ltx):

\def\alph#1{\expandafter\@alph\csname c@#1\endcsname}
\def\@alph#1{%
  \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or
   k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or
    y\or z\else\@ctrerr\fi}

\ifcase字母表的每个元素都按顺序指定为...的一部分\fi。您可以使用相同的技术定义“自己的字母表”,从而省略jw(将 26 个字母的字母表减少到 24 个):

在此处输入图片描述

\documentclass{amsbook}

\renewcommand{\thefootnote}{\cyclenojwalph{footnote}}
\makeatletter
\newcommand{\nojwalph}[1]{%
  \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or 
   k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or x\or
    y\or z\else\@ctrerr\fi}
\makeatother
\newcommand{\cyclenojwalph}[1]{\ifnum\value{#1}=24 \setcounter{#1}{0}\fi\nojwalph{\value{#1}}}

\begin{document}

When\footnote{something} the\footnote{something} quick\footnote{something} brown\footnote{something} fox--which\footnote{something} 
had\footnote{something} a\footnote{something} short\footnote{something} bushy\footnote{something} tail\footnote{something} 
that\footnote{something} looked\footnote{something} like\footnote{something} something\footnote{something} you\footnote{something} 
might\footnote{something} have\footnote{something} gotten\footnote{something} from\footnote{something} the\footnote{something} 
Fuller\footnote{something} brush\footnote{something} man\footnote{something} back\footnote{something} when\footnote{something} 
they\footnote{something} %
came\footnote{something} house\footnote{something} to\footnote{something} house\footnote{something} selling\footnote{something} 
their\footnote{something} goods---jumped\footnote{something} over\footnote{something} the\footnote{something} fat\footnote{something} 
and\footnote{something} lazy\footnote{something} calico\footnote{something} cat,\footnote{something} a\footnote{something} 
little\footnote{something} dog\footnote{something} which\footnote{something} had\footnote{something} been\footnote{something} 
yapping\footnote{something} at\footnote{something} a\footnote{something} squirrel\footnote{something} laughed\footnote{something} 
to\footnote{something} %
see\footnote{something} such\footnote{something} a\footnote{something} sight:\footnote{something} and\footnote{something} 
the\footnote{something} dish\footnote{something} ran\footnote{something} away\footnote{something} with\footnote{something} 
the\footnote{something} spoon\footnote{something} as\footnote{something} the\footnote{something} cow\footnote{something} 
jumped\footnote{something} over\footnote{something} the\footnote{something} moon.\footnote{something}

\end{document}

相关内容