获取“长名称优先”在 LaTeX 中使用 natbib 的选项 - 自定义 .bst

发布于 2024-09-03 14:12:21 字数 337 浏览 1 评论 0原文

我正在写一篇硕士学位论文,但在 natbib 中使用 longnamesfirst 选项时遇到困难。

我的大学有一个非常具体的参考风格,有点像 APA,但又不完全相同。我使用 docstrip 实用程序构建了一个基本框架,然后对其进行编辑以适应我的大学的要求。

用尽可能简单的文档对其进行了测试;应用我的 bst,然后使用默认值之一(\bibliographystyle{apacite})再次尝试,我可以看到 natbib 按 apacite 的预期工作。然而,它并没有用我的 bst 产生正确的结果。

所以我的问题是: .bst 文件如何与 natbib 链接以强制执行“longnamesfirst”选项?

I'm writing an MSc dissertation and I'm having difficulty getting the longnamesfirst option working in natbib.

My University has a very specific referencing style a little like APA, but not quite the same. I've used the docstrip utility to build a basic framework and then edited it to fit the requirements of my University.

Having tested it with the simplest possible document; applying my bst then trying it again with one of the defaults (\bibliographystyle{apacite}) I can see than natbib works as intended with apacite. It doesn't however produce correct results with my bst.

So my question:
How does the .bst file link with natbib to enforce the "longnamesfirst" option?

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

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

发布评论

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

评论(1

淤浪 2024-09-10 14:12:21

我已经找到解决方案了。看起来我的 bst 文件没有正确编写以利用 natbib 的 longnamesfirst 选项。特别是,有一些功能,例如 format.full.names 我没有。看来 natbib 需要这些来生成关键的前几个参考文献。

latex makebst 重新生成并稍后合并,我就可以开始了。

I've come to a solution. Looks like my bst file wasn't correctly written to take advantage of natbib's longnamesfirst option. In particular, there are a few functions like format.full.names I didn't have. It appears natbib needs these to generate those crucial first few references.

A regeneration from latex makebst and a merge later and I'm good to go.

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