为什么我无法在我的LaTeX文件中获得尾注?

huangapple go评论47阅读模式
英文:

Why can I not get end notes in my latex file

问题

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{multicol}
\usepackage{geometry}
\geometry{margin=1in}
\usepackage[notes,endnotes]{biblatex-chicago}
\usepackage{endnotes}
\addbibresource{test.bib}

\title{Stuff}
\author{Me}
\date{\today}

\begin{document}

\maketitle
\newpage
\tableofcontents
\newpage
	\begin{multicols}{2}
	\section{Introduction}  
Bla Bla bla \autocite{cite1}

\newpage
\printendnotes
\newpage
\printbibliography
\end{document}

您提供的代码似乎是LaTeX文档的一部分。关于您的问题,代码中的\autocite{cite1}应该将引用作为脚注而不是尾注。如果您希望将引用作为尾注,您需要将\autocite{cite1}更改为\autocite{cite1}。然后,您的文献引用将出现在文档的末尾而不是脚注。

英文:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{multicol}
\usepackage{geometry}
\geometry{margin=1in}
\usepackage[notes,endnotes]{biblatex-chicago}
\usepackage{endnotes}
\addbibresource{test.bib}

\title{Stuff}
\author{Me}
\date{\today}

\begin{document}

\maketitle
\newpage
\tableofcontents
\newpage
	\begin{multicols}{2}
	\section{Introduction}  
Bla Bla bla \autocite{cite1}

\newpage
\printendnotes
\newpage
\printbibliography
\end{document}

For some reason this continues to print everything out as foot notes instead of end notes. I've tried changing \autocite to \endcite but it doesn't seem to make any difference.

答案1

得分: 1

一些语法错误:

  • \begin{multicols}{2} 必须在某个地方关闭(或完全删除)

  • \printendnotesenotez 包中的一个宏,而不是 endnotes 包中的。你的 .log 文件会告诉你该宏未定义。不应该简单地忽略这些错误。

  • 你的 .log 文件还会告诉你关于你尝试使用的不存在的包选项。不要忽略这些错误!

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{multicol}
\usepackage{geometry}
\geometry{margin=1in}
\usepackage[notetype=endonly]{biblatex-chicago}
\usepackage{endnotes}
\addbibresource{biblatex-examples.bib}

\title{Stuff}
\author{Me}
\date{\today}

\begin{document}

\maketitle
\newpage
\tableofcontents
\newpage
% \begin{multicols}{2}
\section{Introduction}
Bla Bla bla \autocite{knuth:ct}

\newpage
\theendnotes
\newpage
\printbibliography
\end{document}

请注意,代码部分没有翻译,只提供了修改后的 LaTeX 代码。

英文:

A couple of syntax errors:

  • the \begin{multicols}{2} must be closed at one point (or removed altogether)

  • \printendnotes is a macro from the enotez package, not from endnotes. Your .log file will tell you that the macro is not defined. You shouldn't simply ignore such errors

  • your .log will also tell you about the non-existing package options you try to use. Don't ignore such errors!


\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{multicol}
\usepackage{geometry}
\geometry{margin=1in}
\usepackage[notetype=endonly]{biblatex-chicago}
\usepackage{endnotes}
\addbibresource{biblatex-examples.bib}

\title{Stuff}
\author{Me}
\date{\today}

\begin{document}

\maketitle
\newpage
\tableofcontents
\newpage
%    \begin{multicols}{2}
    \section{Introduction}  
Bla Bla bla \autocite{knuth:ct}

\newpage
\theendnotes
\newpage
\printbibliography
\end{document}

为什么我无法在我的LaTeX文件中获得尾注?

huangapple
  • 本文由 发表于 2023年2月14日 07:39:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75442178.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定