没有换行符的引用样式
我正在写一份拨款申请,空间非常宝贵。我希望 LaTeX 打印我的参考文献部分而不换行,所以
References
[1]
[2]
[3]
我认为
References
[1], [2], [3]
确切的参考文献样式不太重要(这是 NSF),但我似乎找不到任何参考书目样式可以做到这一点。
I'm writing a grant application and space is at a premium. I want LaTeX to print my references section without line breaks, so
References
[1]
[2]
[3]
becomes
References
[1], [2], [3]
I don't think the exact references style is too important (this is NSF), but I can't seem to find any bibliography style that will do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Rob Hyndman 最近发布了关于这个主题,他的帖子巧合的是这样开头的:
编辑:我应该补充一点,这并不能回答您有关通过 bst 文件进行格式化的具体问题 - 但您可能会在帖子中找到一些其他提示。
至于一次性 bst 格式化,我过去也做过,但我认为这是一种 hack。
Rob Hyndman recently posted about this very topic where his post coincidentally starts with:
Edit: I should add that this doesn't answer your specific question about formatting via bst files -- but you may find a few other tips in the post.
As for one-off bst formatting, I too have done in the past but I consider it to be a hack.
我肯定会首先考虑 Dirk Eddelbuettel 的建议。然而,重新格式化参考书目似乎是一种黑魔法,但有两种主要方法可以做到这一点: custom-bib 和 biblatex。 Custom-bib 的运作方式是询问您可能想要使用的无数功能。我过去尝试过使用 custom-bib ,但收效甚微,但是 其他人已成功使用它。
然而,Biblatex 直接在文档本身(或样式文件)中使用 Latex 命令来生成样式。在内部,它将每个围脖条目划分为块和单元,块和单元之间具有可设置的标点符号(分别通过
\newblockpunct
和\newunitpunct
),以及 通常 一个块是整个条目。应该指出的是,biblatex 仍处于 beta 测试阶段,因此它可能仍然存在一些怪癖。另外,请务必检查运行它的先决条件。到目前为止,我还没有使用它,但如果文档完全准确,我打算使用它。编辑:我查看了样式文件,看来 biblatex 正在将参考书目环境实现为列表。因此,为了实现您正在寻找的目标,您可以使用 paralist< /a> 相反。您也许可以自己更新
thebibliography
环境,而无需使用 biblatex,但您可能必须深入研究 bst 文件以找出使用了哪些格式化命令。使用 biblatex 的方法似乎更简单。I would definitely consider the advice from Dirk Eddelbuettel, first. However, reformatting the bibliography seems to be something of a black art, but there are two major methods for doing so: custom-bib and biblatex. Custom-bib operates by interrogating you as to the myriad features you might possibly want to use. I've tried to use custom-bib in the past with little success, but others have used it successfully.
Biblatex, however, uses latex commands directly within the document itself (or, style file) to generate the style. Internally, it divides each bib entry into blocks and units with settable punctuation between them (via
\newblockpunct
and\newunitpunct
, respectively), and usually a block is an entire entry. It should be noted that biblatex is still in beta testing, so it may still have some quirks. Also, be sure to check the prerequisites for running it. As of this point, I have not used it, but if the documentation is at all accurate, I intend to.Edit: I looked at the style file again, and it appears that biblatex is implementing the bibliography environment as a list. So, to achieve what you are looking for, you would use paralist instead. You may be able to renew
thebibliography
environment yourself without using biblatex, but you may have to dig through your bst file to figure out what formatting commands are used. The method with biblatex just seems easier.您可以编辑围兜样式以删除每对
\bibitem
之间输出的换行符。这将是潜在的……痛苦,并且给你留下一个几乎只写的参考书目。您可能会考虑简单地为参考文献使用比正文更小的字体——切换到
\small
本身就可以节省大量空间。You could edit your bib style to remove the newlines which are output between each pair of
\bibitem
s. That's going to be potentially... painful, and leave you with a bibliography which is pretty much write-only.You might consider simply using smaller type for your references than for your main text---switching to
\small
can save you considerable space on its own.请参阅[此处][1]以获取来自用户[Ulrike Fischer][2]的答案
Please refer to [here][1] for an answer, from user [Ulrike Fischer][2]