为什么我的 LaTeX 文档的参考部分是空的,如何更改其名称?

发布于 2024-09-07 03:19:11 字数 729 浏览 3 评论 0原文

在我的文档中,我必须指定我正在使用的参考文献。我在序言中使用了这段代码:

\bibliographystyle{abbrv}
\bibliography{main}

其中 main 是来自同一文件夹的 .bib 文件,并包含,例如:

@string{jgr = "J.~Geophys.~Res."}

@MISC{primes,
   author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin",
   note = "A strong form of the prime number theorem, 19th century",
   year = 1879
   }

@INBOOK{chicago,
   title = "The Chicago Manual of Style",
   publisher = "University of Chicago Press",
   edition = "Thirteenth",
   year = 1982,
   pages = "400--401",
   key = "Chicago"
   }

但在生成 .pdf 时,在参考部分没有显示任何内容。我已经重建了 .bib 和 .tex 文件,没有任何更改。

如何更改默认文本,从 References 更改为 Bibliografie 或其他内容?

In my document I have to specify the references I'm using. I used this code in the preamble:

\bibliographystyle{abbrv}
\bibliography{main}

Where main is the .bib file from the same folder, and contains, for example:

@string{jgr = "J.~Geophys.~Res."}

@MISC{primes,
   author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin",
   note = "A strong form of the prime number theorem, 19th century",
   year = 1879
   }

@INBOOK{chicago,
   title = "The Chicago Manual of Style",
   publisher = "University of Chicago Press",
   edition = "Thirteenth",
   year = 1982,
   pages = "400--401",
   key = "Chicago"
   }

But at the References section nothing is displayed, when generating the .pdf. I have rebuild the .bib and the .tex file, without any changes.

And how can I change that default text, from References to Bibliografie or something else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

如何视而不见 2024-09-14 03:19:11

我认为您需要将 \nocite{*} 放在文档中的某个位置 - 将其放在序言中应该会导致 LaTeX 抛出“无法在序言中使用”错误。如果它们仍然没有出现在您的文档中,LaTeX 是否给您带来任何错误,如果有,您能告诉我们它们是什么吗?

要将默认文本从“参考”更改为您想要的任何内容,请使用以下命令:

\renewcommand{\bibsection}{\section*{insert_title_here}}

请注意,\section 后面的星号意味着它不会与数字关联。如果您希望它与数字关联,只需删除星号即可。

I think that you need to put \nocite{*} somewhere within your document -- putting it inside the preamble should cause LaTeX to throw a "cannot be used in preamble" error. If they're still not appearing within your document, is LaTeX giving you any errors and, if so, can you tell us what they are?

To change the default text from "References" to whatever you would like, use the following command:

\renewcommand{\bibsection}{\section*{insert_title_here}}

Note that the asterisk after \section means that it won't be associated with a number. If you want it to be associated with a number, just remove the asterisk.

谎言月老 2024-09-14 03:19:11

您必须实际 \cite 引用才能将它们包含在参考书目中。相反,如果您想要参考书目中 bib 文件中的所有内容,请将 \nocite{*} 放在序言中的某个位置。请阅读此处这实际上是做什么的。

You have to actually \cite references for them to be included in the bibliography. If instead you want everything in the bib file in the bibliography put \nocite{*} somewhere in the preamble. Read here what this actually does.

毅然前行 2024-09-14 03:19:11

您必须 \cite\nocite 一个参考,使其出现在您的参考部分。我不知道如何更改参考书目的名称。我首先查看LaTeX WikiBook。看起来有一个工具 make makebst 可以生成自定义参考书目样式 - 看看 custom-bib 包和 此文档了解更多详细信息。

You have to either \cite or \nocite a reference for it to appear in your References section. I'm not sure how to change the name of the bibliography. I would start by looking at the LaTeX WikiBook. It looks like there is a tool make makebst that produces a custom bibliography style - take a look at the custom-bib package and this document for more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文