报告中章节和脚注编号存在问题,引用风格冗长,只包含部分内容,没有章节

报告中章节和脚注编号存在问题,引用风格冗长,只包含部分内容,没有章节

我正在使用报告类(实际上是 KOMA-Script 的 scrreport,但我在标准报告类中的行为完全相同)。我将文档拆分成几个部分,因为它们相对独立。然而,这给我带来了一些问题,我认为这些问题可能以各种方式相互关联。

虽然页码应该在整个文档中连续,但脚注和章节编号应该在每个部分重置。

章节编号相关问题:

  1. 节号包括章。由于没有章,节号的形式为 0.1、0.2。
  2. 当我开始新的部分时,章节编号不会重置,因此,如果第一部分包含三个章节,则第二部分的第一章节将是编号 4(嗯,实际上是 0.4,请参见上文)。

脚注相关:

  1. 当我开始新的部分时,脚注编号不会重置。
  2. [编辑]我刚刚发现了 biblatex 的citereset选项。使用\usepackage[style=verbose,citereset=part]{biblatex}解决了第四个问题。[原问题供参考] 我使用的是 biblatex 的“详细”样式,其中引用第一次以完整形式(在脚注中)给出,然后以缩写形式给出。可能是因为脚注编号没有被重置,如果文本在前一部分中被引用,则后续部分中的任何进一步引用都将是缩写形式。由于各部分应该几乎是自成一体的,因此这实际上是不可接受的。(在 MWE 中,第二部分的脚注应该与第一部分的脚注相同。)

我认为这 MWE 非常清楚地表明了问题:

\documentclass{report}

\usepackage[style=verbose]{biblatex}
\begin{filecontents*}{\jobname.bib}
    @Book{Pettit:Republicanism,
      author = {Philip Pettit},
      title = {Republicanism: A Theory of Freedom and Government},
      shorttitle = {Republicanism},
      publisher = {Oxford University Press},
      year = 1997,
      series = {Oxford Political Theory},
      address = {Oxford and New York}
    }
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}

\part{The First Part}

\section{Section}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, 
sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo 
consequat.\footcite{Pettit:Republicanism}

\subsection{Sub-Section}

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.\footcite{Pettit:Republicanism}

\part{The Second Part}

\section{Section}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, 
sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo 
consequat.\footcite{Pettit:Republicanism}

\subsection{Sub-Section}

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.\footcite{Pettit:Republicanism}

\end{document}

预先感谢您的任何帮助。

答案1

尽管在发布问题之前我搜索了很多次,但我还是找不到答案。现在,问完这个问题后,我似乎找到了答案。

从节号中删除章节号:

\renewcommand*\thesection{\arabic{section}}

重置每个部分的章节编号和脚注编号:

\makeatletter
  \@addtoreset{section}{part}
  \@addtoreset{footnote}{part}
\makeatother

重置每个部分的引用:

\usepackage[style=verbose,citereset=part]{biblatex}

固定MWE:

\documentclass{scrreport}

\usepackage[style=verbose,citereset=part]{biblatex}
\begin{filecontents*}{\jobname.bib}
    @Book{Pettit:Republicanism,
      author = {Philip Pettit},
      title = {Republicanism: A Theory of Freedom and Government},
      shorttitle = {Republicanism},
      publisher = {Oxford University Press},
      year = 1997,
      series = {Oxford Political Theory},
      address = {Oxford and New York}
    }
\end{filecontents*}
\addbibresource{\jobname.bib}

\renewcommand*\thesection{\arabic{section}}
\makeatletter
  \@addtoreset{section}{part}
    \@addtoreset{footnote}{part}
\makeatother

\begin{document}

\part{The First Part}

\section{Section}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\footcite{Pettit:Republicanism}

\subsection{Sub-Section}

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.\footcite{Pettit:Republicanism}

\part{The Second Part}

\section{Section}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\footcite{Pettit:Republicanism}

\subsection{Sub-Section}

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.\footcite{Pettit:Republicanism}

\end{document}

答案2

只是为了好玩:

\documentclass{report}

\let\part=\chapter
\renewcommand{\chaptername}{Part}

\usepackage[style=verbose]{biblatex}
\begin{filecontents*}{\jobname.bib}
    @Book{Pettit:Republicanism,
      author = {Philip Pettit},
      title = {Republicanism: A Theory of Freedom and Government},
      shorttitle = {Republicanism},
      publisher = {Oxford University Press},
      year = 1997,
      series = {Oxford Political Theory},
      address = {Oxford and New York}
    }
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}

\part{The First Part}

\section{Section}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, 
sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo 
consequat.\footcite{Pettit:Republicanism}

\subsection{Sub-Section}

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.\footcite{Pettit:Republicanism}

\part{The Second Part}

\section{Section}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, 
sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo 
consequat.\footcite{Pettit:Republicanism}

\subsection{Sub-Section}

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.\footcite{Pettit:Republicanism}

\end{document}

相关内容