英文:
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}
必须在某个地方关闭(或完全删除) -
\printendnotes
是enotez
包中的一个宏,而不是 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 theenotez
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}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论