使用 biblatex-chicago \cite 样式在脚注内创建标准尾注引用 - 可能吗?

使用 biblatex-chicago \cite 样式在脚注内创建标准尾注引用 - 可能吗?

刚接触 LaTeX(两周),但到目前为止真的很喜欢它 - 能够创建脚注(符号引用)和按章节列出的尾注(数字引用),但不能使用样式中的任何样式在脚注中创建通常结构化的尾注\citebiblatex-chicago

带有嵌入式尾注引用的脚注看起来应该如此

只需使用即可做到这一点\endnote,但随后数字就会变得不稳定,而且它破坏了相当强大的文档管理biblatex-chicago功能:

带有嵌入尾注的脚注和来自 chicago-biblatex \autocite 命令的不需要的扩展尾注文本

顺便说一句,曾尝试使用其他包:bigfoot,,但结果相同。pagefootendnotez

\documentclass[11pt,a5paper,oneside]{memoir}

\usepackage[notes,notetype=endonly,isbn=false,doi=false,url=false,backend=biber]{biblatex-chicago}
\addbibresource{biblatex-examples.bib}

\usepackage[symbol]{footmisc}                           %footnotes
\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\usepackage{endnotes}
\counterwithin*{endnote}{chapter}

\let\latexchapter\chapter
\makeatletter
\renewcommand\enoteheading{%
    \setcounter{secnumdepth}{-2}
    \latexchapter*{\notesname\markboth{NOTES}{}}
    \mbox{}\par\vskip-\baselineskip
    \let\@afterindentfalse\@afterindenttrue
}
\makeatother

\usepackage{xparse}


\RenewDocumentCommand{\chapter}{som}{%
    \IfBooleanTF{#1}
    {\latexchapter*{#3}%
        \setcounter{endnote}{0}%
        \addtoendnotes{%
            \noexpand\enotedivision{\noexpand\subsection}
            {\unexpanded{#3}}}%
    }
    {\IfNoValueTF{#2}
        {\latexchapter{#3}}
        {\latexchapter[#2]{#3}}%
        \addtoendnotes{%
            \noexpand\enotedivision{\noexpand\subsection}
            {\chaptername\ \thechapter. \unexpanded{#3}}}%
    }%
}
\makeatletter
\def\enotedivision#1#2{\@ifnextchar\enotedivision{}{#1{#2}}}
\makeatletter


\begin{document}
    
\frontmatter

\chapter*{Preface\markboth{PREFACE}{}}
\addcontentsline{toc}{chapter}{Preface}
    
Hello.\footnote{normal footnote} This\footnote{footnote with nested endnote\autocite{springer}} is a test.


\mainmatter
\chapter{One}

Third test.\footnote{third footnote, new chapter}
Endnote test\autocite{cicero}
    

\theendnotes

\printbibliography
    
\end{document}

不过,在尝试编写自己的脚本/宏之前,我会在这里问一下,以防有人已经解决了这个问题——或者以防万一

答案1

为了回答我自己的问题,以下方法有效,但需要添加上标数字,我通过计数器进行\theendnote操作,我使用它newcommand \add来调整上标数字以反映它和页面底部的脚注之间的任何中间尾注,即

\newcommand{\add} [2] {\the\numexpr #1 + #2}

并使用在正文中创建隐藏引用\vphantom

Hello.\footnote{normal footnote} This\footnote{footnote with nested endnote$^{\add{\theendnote}{2}}$} is a test.    %superscripted numeric reference

Endnote here\autocite{doody}                    %intervening endnote

\vphantom{\protect\autocite{springer}}          %hidden citation

完整代码,显示预期的格式以及正确排序的尾注和参考书目:

\documentclass[11pt,a5paper,oneside]{memoir}

\usepackage[notes,notetype=endonly,isbn=false,doi=false,url=false,backend=biber]{biblatex-chicago}
\addbibresource{biblatex-examples.bib}

\usepackage[symbol]{footmisc}                           %footnotes
\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\usepackage{endnotes}
\counterwithin*{endnote}{chapter}

\let\latexchapter\chapter
\makeatletter
\renewcommand\enoteheading{%
    \setcounter{secnumdepth}{-2}
    \latexchapter*{\notesname\markboth{NOTES}{}}
    \mbox{}\par\vskip-\baselineskip
    \let\@afterindentfalse\@afterindenttrue
}
\makeatother

\usepackage{xparse}

\RenewDocumentCommand{\chapter}{som}{%
    \IfBooleanTF{#1}
    {\latexchapter*{#3}%
        \setcounter{endnote}{0}%
        \addtoendnotes{%
            \noexpand\enotedivision{\noexpand\subsection}
            {\unexpanded{#3}}}%
    }
    {\IfNoValueTF{#2}
        {\latexchapter{#3}}
        {\latexchapter[#2]{#3}}%
        \addtoendnotes{%
            \noexpand\enotedivision{\noexpand\subsection}
            {\chaptername\ \thechapter. \unexpanded{#3}}}%
    }%
}
\makeatletter
\def\enotedivision#1#2{\@ifnextchar\enotedivision{}{#1{#2}}}
\makeatletter


\newcommand{\add} [2] {\the\numexpr #1 + #2}    %adds two numbers, i.e. endnote counter and number of intervening references


\begin{document}
    
\frontmatter

\chapter*{Preface\markboth{PREFACE}{}}
\addcontentsline{toc}{chapter}{Preface}
    
Hello.\footnote{normal footnote} This\footnote{footnote with nested endnote$^{\add{\theendnote}{2}}$} is a test.    %superscripted numeric reference

Endnote here\autocite{doody}                    %intervening endnote

\vphantom{\protect\autocite{springer}}          %hidden citation



\mainmatter
\chapter{One}

Third test.\footnote{third footnote, new chapter}
Endnote test\autocite{cicero}
    

\theendnotes

\printbibliography
    
\end{document}

相关内容