没有换行符的引用样式

发布于 2024-08-09 19:30:13 字数 222 浏览 6 评论 0原文

我正在写一份拨款申请,空间非常宝贵。我希望 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 技术交流群。

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

发布评论

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

评论(4

很酷不放纵 2024-08-16 19:30:13

Rob Hyndman 最近发布了关于这个主题,他的帖子巧合的是这样开头的:

我一直在写一份资助申请
有 10 页限制,和往常一样
很难把所有东西都塞进去。
不,我不能只改变字体
必须是 12 点且至少 2 厘米
A4 页面上的页边距。幸运的是,
LaTeX 充满了强大的功能
有助于压缩这一切的功能
以下是我的一些建议
使用多年。

编辑:我应该补充一点,这并不能回答您有关通过 bst 文件进行格式化的具体问题 - 但您可能会在帖子中找到一些其他提示。

至于一次性 bst 格式化,我过去也做过,但我认为这是一种 hack。

Rob Hyndman recently posted about this very topic where his post coincidentally starts with:

I’ve been writing a grant application
with a 10-page limit, and as usual it
is difficult to squeeze everything in.
No, I can’t just change the font as it
has to be 12 point with at least 2 cm
margins on an A4 page. Fortunately,
LaTeX is packed full of powerful
features that help in squeezing it all
in. Here are some of the tips I’ve
used over the years.

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.

逆流 2024-08-16 19:30:13

我肯定会首先考虑 Dirk Eddelbuettel 的建议。然而,重新格式化参考书目似乎是一种黑魔法,但有两种主要方法可以做到这一点: custom-bibbiblatex。 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.

一生独一 2024-08-16 19:30:13

可以编辑围兜样式以删除每对\bibitem之间输出的换行符。这将是潜在的……痛苦,并且给你留下一个几乎只写的参考书目。

您可能会考虑简单地为参考文献使用比正文更小的字体——切换到 \small 本身就可以节省大量空间。

You could edit your bib style to remove the newlines which are output between each pair of \bibitems. 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.

┾廆蒐ゝ 2024-08-16 19:30:13

请参阅[此处][1]以获取来自用户[Ulrike Fischer][2]的答案



  [1]: https://tex.stackexchange.com/questions/699587/reference-with-no-new-lines-breaks-internal-links
  [2]: https://tex.stackexchange.com/users/2388/ulrike-fischer

Please refer to [here][1] for an answer, from user [Ulrike Fischer][2]



  [1]: https://tex.stackexchange.com/questions/699587/reference-with-no-new-lines-breaks-internal-links
  [2]: https://tex.stackexchange.com/users/2388/ulrike-fischer
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文