为什么我的 LaTeX 文档的参考部分是空的,如何更改其名称?
在我的文档中,我必须指定我正在使用的参考文献。我在序言中使用了这段代码:
\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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为您需要将
\nocite{*}
放在文档中的某个位置 - 将其放在序言中应该会导致 LaTeX 抛出“无法在序言中使用”错误。如果它们仍然没有出现在您的文档中,LaTeX 是否给您带来任何错误,如果有,您能告诉我们它们是什么吗?要将默认文本从“参考”更改为您想要的任何内容,请使用以下命令:
请注意,
\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:
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.您必须实际
\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.您必须 \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 thecustom-bib
package and this document for more details.