\thefootnotemark 后有或没有句号的多条脚注

\thefootnotemark 后有或没有句号的多条脚注

我正在编辑一份包含不同系列脚注的复杂文档的最后阶段——主要是使用阿拉伯数字的常规系列和使用星号的第二组。(因为这是以前出版的文档的关键版本,所以在一些地方还有后面带有字母“a”的补充脚注:“5a”、“27a”等等。)

目前,实际脚注中的所有脚注标记后面都跟有句号。但作者要求不要使用星号;阿拉伯语(以及阿拉伯语加“a”)脚注后面仍应跟有句号。

目前我正在使用scrextend(KOMA-Script)来指定后面跟着一个句点\thefootnotemark

\documentclass[12pt]{scrbook}
\usepackage[hang,multiple]{footmisc}

% Extra footnote numbers with "a" appended
\DefineFNsymbols*{extraFnNumbers}{{5a} {42a} {27a}}

% Required for footnotes with "a" appended
\long\def\symbolfootnote[#1]#2{\begingroup%
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup} 

% Special asterisk-marked footnotes
\long\def\asteriskfootnote#1{\begingroup%
\def\thefootnote{\fnsymbol{footnote}}\footnote[1]{#1}\endgroup} 

% Footnote mark is followed by a period
\usepackage{scrextend}
\deffootnote[1.7em]{1.6em}{2em}{\thefootnotemark.\enskip}
\title{Book Title}

\begin{document}
\maketitle

\chapter{Chapter Title}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua.\asteriskfootnote{Note with asterisk 
here.} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi 
ut aliquip ex ea commodo consequat.\footnote{Note with Arabic numeral here.} 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum.
\setfnsymbol{extraFnNumbers}\symbolfootnote[1]{Note with Arabic numeral plus 
``a'' here.}

\end{document}

我的问题是:我能否\thefootnotemark对两种不同的脚注做出不同的定义,以便星号后面不跟句号,而其他所有星号后面都跟句号?

答案1

\documentclass[12pt]{scrbook}
\usepackage[hang,multiple]{footmisc}

\newif\iffootpunct
\footpuncttrue

% Extra footnote numbers with "a" appended
\DefineFNsymbols*{extraFnNumbers}{{5a} {42a} {27a}}

% Required for footnotes with "a" appended
\long\def\symbolfootnote[#1]#2{\begingroup%
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup} 

% Special asterisk-marked footnotes
\long\def\asteriskfootnote#1{\begingroup%
\footpunctfalse
\def\thefootnote{\fnsymbol{footnote}}\footnote[1]{#1}\endgroup} 

% Footnote mark is followed by a period
% \usepackage{scrextend}% functionality is part of scrbook
\deffootnote[1.7em]{1.6em}{2em}{\thefootnotemark\iffootpunct.\fi\enskip}

\begin{document}

\null\vfill%just for the example

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\asteriskfootnote{Note with asterisk here.} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\footnote{Note with Arabic numeral here.} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\setfnsymbol{extraFnNumbers}\symbolfootnote[1]{Note with Arabic numeral plus ``a'' here.}

\end{document}

在此处输入图片描述

相关内容