未编号的尾注,按页码和摘录引用

未编号的尾注,按页码和摘录引用

我想知道是否有一个包可以隐藏尾注的标签,并通过页码和应放置注释标签的文本摘录来引用它们。我不知道这种做法是否足够普遍以至于有名字(我只在下面的例子中看到过),但它类似于批判版中预期的输出(其中脚注和尾注与给定的引理--- 但使用eledmac这里似乎有些过度了)。

我知道这听起来很傻,而且对于更仔细的阅读来说确实很烦人(需要检查大多数注释),但我觉得这是一种从文本中删除多余标签的方法,因为文本的主要读者对每个注释都不感兴趣。(无论如何,尽管有印刷上的判断,但人们应该考虑在 LaTeX 中尝试这样做的乐趣:)

以下是一个例子(取自罗伯特·诺顿的揭秘德国:斯蒂芬·乔治和他的圈子,康奈尔大学出版社):

以摘录作为结束语

答案1

我的解决方案基于该endnotes软件包,这是一个仅限 LaTeX 的框架。不过,我认为它很好地解决了这个问题。

执行:

这里定义了一个新命令来设置脚注/尾注。

第一个可选参数在尾注中设置额外的文本(但不在段落中内嵌),如原始示例中第 146 页的第三个注释中出现的一样,即146 his "great hero"

第二个参数是如果没有注释,通常会内联显示的文本。这是注释部分中引用的文本。

第三个参数是注释部分中冒号后面出现的解释性说明。

% \myfootnote[<intro text>]{in-line text of paragraph}{endnote text}
\def\myfootnote{\@ifnextchar[\my@footoptnote\my@footnote}
\def\my@footoptnote[#1]{\my@@footoptnote{#1}}
      \def\my@footnote#1#2{#1\endnote{\emph{``#1''}: #2}}
\def\my@@footoptnote#1#2#3{#2\endnote{\emph{#1 ``#2''}: #3}}

代码的其余部分执行格式化、删除常规文本中的尾注标记、标记尾注并在注释部分引用页码。最后,我们附加到命令\chapter(仅适用于编号章节,即:使用\@makechapterhead)以在注释中添加(子)部分来描绘注释。这显然可以重新用于带星号的章节或部分,视情况而定。

示例的副本

使用此代码,原始帖子中显示的摘录将以以下方式出现(重新创建此摘录的代码出现在末尾):

复制品

实际使用示例

典型用法可能涉及排版引用参考书目中的引文的注释。在这里,我们使用了biblatex一些示例来说明它的外观:

实例

实际使用代码:

上面的例子用以下代码排版:

\documentclass[]{report}

\usepackage{endnotes} % basic endnote structure, LaTeX only :(
\usepackage{etoolbox} % for patching chapter
\usepackage[fulloldstylenums]{kpfonts} % for nice fonts

\makeatletter

% \myfootnote[<intro text>]{in-line text of paragraph}{endnote text}
\def\myfootnote{\@ifnextchar[\my@footoptnote\my@footnote}
\def\my@footoptnote[#1]{\my@@footoptnote{#1}}
      \def\my@footnote#1#2{#1\endnote{\emph{``#1''}: #2}}
\def\my@@footoptnote#1#2#3{#2\endnote{\emph{#1 ``#2''}: #3}}

% Redefine the \endnote to remove \@endnotemark in regular text
\def\endnote{\@ifnextchar[\@xendnote{\stepcounter{endnote}%
     \protected@xdef\@theenmark{\theendnote}%
     \label{en:\@theenmark}%
     %\@endnotemark
     \@endnotetext}}

% Add a bit of space between page number and endnote text
\patchcmd{\@endnotetext}{#1}{\hspace{1ex} #1}{}{}

% Redefine the \@endnotemark (now only used in notes section)
% This is now the page number where the endnote was referenced
\def\@makeenmark{\pageref{en:\@theenmark}}

% Each \chapter should also make a new section in the endnotes for delineation
\apptocmd{\@makechapterhead}{\addtoendnotes{\protect\subsection*{\textsc{\MakeLowercase{\chaptername~\thechapter: #1}}}\indent}}{}{}
\makeatother

\usepackage[style=authortitle]{biblatex}
\addbibresource{biblatex-examples.bib}

\begin{document}

\LaTeX{} is \myfootnote{full of many good things}{\textcite[48]{companion}}.
It has the ability to typeset many \myfootnote{physical phenomena}{\textcite{aristotle:physics}} that aren't easily laid out with other systems.
Even \myfootnote{poetry}{\textcite{aristotle:poetics}} is no match for \LaTeX.

\theendnotes

% Modified to be a section so that everything is nicely on one page
\printbibliography[heading=subbibliography]

\end{document}

副本示例代码:

正如承诺的那样,此代码用于重新创建原始帖子的副本:

\documentclass[]{report}

\usepackage{endnotes} % basic endnote structure, LaTeX only :(
\usepackage{etoolbox} % for patching chapter
\usepackage[fulloldstylenums]{kpfonts} % for nice fonts

\makeatletter

% \myfootnote[<intro text>]{in-line text of paragraph}{endnote text}
\def\myfootnote{\@ifnextchar[\my@footoptnote\my@footnote}
\def\my@footoptnote[#1]{\my@@footoptnote{#1}}
      \def\my@footnote#1#2{#1\endnote{\emph{``#1''}: #2}}
\def\my@@footoptnote#1#2#3{#2\endnote{\emph{#1 ``#2''}: #3}}

% Redefine the \endnote to remove \@endnotemark in regular text
\def\endnote{\@ifnextchar[\@xendnote{\stepcounter{endnote}%
     \protected@xdef\@theenmark{\theendnote}%
     \label{en:\@theenmark}%
     %\@endnotemark
     \@endnotetext}}

% Add a bit of space between page number and endnote text
\patchcmd{\@endnotetext}{#1}{\hspace{1ex} #1}{}{}

% Redefine the \@endnotemark (now only used in notes section)
% This is now the page number where the endnote was referenced
\def\@makeenmark{\pageref{en:\@theenmark}}

% Each \chapter should also make a new section in the endnotes for delineation
\apptocmd{\@makechapterhead}{\addtoendnotes{\protect\subsection*{\textsc{\MakeLowercase{\chaptername~\thechapter: #1}}}\indent}}{}{}
\makeatother

\begin{document}

% A few things are contrived here to match the format of the original text
\setcounter{chapter}{10}
\setcounter{page}{142}

\chapter{Eleven}

\myfootnote{\label{en:one}irreplaceable to me}{SG/HvH, 67}
\newpage
\myfootnote{favorably disposed readership}{SG/HvH, 68}

\chapter{Becoming German}

\myfootnote{transpositions were possible}{RB 2, 55}
\myfootnote{creator, dear brother}{Z, 22 March 1893}
\newpage
\myfootnote{to disgust me}{RB 2, 33}
\myfootnote{we are together}{RB 2, 33}
\newpage
\myfootnote{a golden boat}{SH/HvH, 62}
\myfootnote{Verlaine, and Mallarm\'{e}}{BfdK 1, 2:42}

% Shows the alternate intro text example
\myfootnote[his]{great hero}{Klein to George, undated letter ca.\ 1890/91, SG-Archiv}
\myfootnote{of a following}{BfdK 1, 2:46}
\myfootnote{in German Romanticism}{BfdK 1, 2:47}
\myfootnote{is a poet}{BfdK 1, 2:50}
\newpage
\myfootnote{pure Germanic symbolism}{RB 2, 220}
\newpage
\myfootnote{Baudelaire: but where?}{George to Stuart Merrill, undated 1893/94, SG-Archiv}
\newpage
~
\chapter{A Group is Formed}
\myfootnote{a little taste}{ES, 168}
\myfootnote{good to me}{SG/HvH, 58}

\theendnotes

\end{document}

相关内容