SECTION 及其旁边的数字

SECTION 及其旁边的数字

我对章节有疑问。在我的国家,我们在章节名称旁边使用对来源的引用。你能帮我如何在 Latex 中实现这一点吗?我搞不懂。此外,这些数字无法显示在目录中。

非常感谢您的帮助!

在此处输入图片描述

答案1

要为标题添加引文,可以使用可选的方括号来添加要放入目录中的文本。通常,将不带引文的完整标题文本复制到方括号中,方括号是分段命令的可选参数。

\section[Words words words]{Words words words~\cite{2}, \cite{2}}

如果您需要在标题中添加脚注,也可以使用相同的策略。如果标题很长,您也可以将其缩写,以便目录中的文本更短。如果您的文档有页眉,括号中的文本也是进入页眉的文本。(下面的文档文件是来自比布拉特克斯):

在此处输入图片描述

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[norsk]{babel}
\usepackage{csquotes}
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatexbib.bib}
\newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
\setlength{\parindent}{0pt}

\begin{document}
\tableofcontents

\section[Standard citation commands]{Standard citation commands\parencite{arnholm1973} \cite{gorton}}

\subsection{The \cmd{cite} command}

\cite{arnholm1973}

\cite[59]{arnholm1973}

\cite[see][]{arnholm1973}

\cite[see][59--63]{arnholm1973}

\cite{gorton}

\cite[59]{gorton}

\cite[see][]{gorton}

\cite[see][59--63]{gorton}


\subsection{The \cmd{parencite} command}

This is just filler text \parencite{arnholm1973}.

This is just filler text \parencite[59]{arnholm1973}.

This is just filler text \parencite[see][]{arnholm1973}.

This is just filler text \parencite[see][59--63]{arnholm1973}.

\subsection{The \cmd{footcite} command}


This is just filler text.\footcite{arnholm1973}

This is just filler text.\footcite[59]{arnholm1973}

This is just filler text.\footcite[See][]{arnholm1973}

This is just filler text.\footcite[See][59--63]{arnholm1973}

\subsection*{The \cmd{textcite} command}


\textcite{arnholm1973} show that this is just filler text.

\textcite[59]{arnholm1973} show that this is just filler text.

\textcite[see][]{arnholm1973} show that this is just filler text.

\textcite[see][59--63]{arnholm1973} show that this is just filler text.

\section{Style-independent commands}

\subsection{The \cmd{autocite} command}

This is just filler text \autocite{arnholm1973}.

\section{Text commands}

\citeauthor{arnholm1973} show that this is just filler text.

See the \citetitle{arnholm1973} for more filler text.

See also: \citetitle*{arnholm1973}. It has more filler text.

\citetitle*{arnholm1973} by \citeauthor{arnholm1973} was
published in \citeyear{arnholm1973}.

\section{Special commands}

No citation here.\nocite{knuth:ct}

\fullcite{arnholm1973}

This is just filler text.\footfullcite{arnholm1973}

\section{Low-level commands}

\citename{arnholm1973}{author}

\citelist{arnholm1973}{publisher}

\citefield{arnholm1973}{title}

\printbibliography

\end{document}

参考文献

@BOOK{arnholm1973,
  author = {Arnholm, Carl Jacob},
  title = {Almindelig obligasjonsrett},
  year = {1973},
  keywords = {obligasjonsrett},
  edition = {2},
  isbn = {8251802164},
  language = {norsk},
  location = {Oslo},
  publisher = {Tanum-Norli},
  timestamp = {2019.10.20}
}

@BOOK{dahlman2005,
  author = {Dahlman, Christian},
  title = {Studier i rättsekonomi : festskrift till Ingemar Ståhl},
  year = {2005},
  keywords = {Rättsekonomi ; Law And Economics ; Festskrift ; Samhällsvetenskap ; Juridik ; Social Sciences ; Law},
  isbn = {9789144037868},
  language = {swe}
}


@INBOOK{gorton,
  author = {Gorton, Lars and Samuelsson, Per},
  title = {Kontraktuella viten},
  crossref = {dahlman2005},
  language = {swedish},
  timestamp = {2019.10.20}
}

相关内容