为什么参考书目和参考文献出现在 Latex TOC 中?
我使用这些命令来包含参考文献:
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{agsm}
\bibliography{dissrefs}
问题是在目录中同时出现 References
和 Bibliography
,而我只想出现一个。为什么会发生这种情况?我可以将目录条目自定义为其中之一吗?
我正在使用 MikTex 2.8 和 TexMaker 2.1。
I am using these commands for including references:
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{agsm}
\bibliography{dissrefs}
The problem is that in the table of contents both References
and Bibliography
appear, while I just want one to appear. Why is this happening? Can I customise the table of contents entry to be just one of them?
I am using MikTex 2.8 and TexMaker 2.1.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您不需要使用
\addcontentsline{toc}
bibtex 应该自动执行此操作。至少我不记得曾经需要它......您是否尝试过注释掉该行?
编辑关于OP评论更改参考书目标题:
可以使用
\renewcommand\refname{New Title} 用于文章,
\renewcommand\bibname{New Title}
用于书籍。I dont think that you need to use
\addcontentsline{toc}
bibtex should do it automatically. At least I don't recall ever needing it...Have you tried commenting out that line?
Edit regarding OPs comment on changing the title of the bibliography:
The bibliography's title can be changed by (to for instance "New Title") using
\renewcommand\refname{New Title}
for articles and\renewcommand\bibname{New Title}
for books.指令按其出现的顺序读取和处理,我认为您的问题与该顺序有关。尝试移动一些东西(我相信所有设置都应该放在 \tableofcontents 之前,但我不确定这一点,我已经很长时间没有使用乳胶了)
Instructions are read and processed in the order they appear, I think your problem is related to that order. Try moving things around (I believe that all settings should be put before \tableofcontents, but I'm not sure about that, I'v not used latex for a long time)