bst latex 最大作者数_latex 自定义 bst 文件

本文介绍了如何使用 LaTeX 的 makebst 工具自定义 BibTeX 格式文件 (.bst)。通过回答一系列问题,用户可以定制符合自己需求的参考文献样式,包括作者姓名格式、引用排列顺序、日期格式等。完成问答后,生成的 .dbj 文件可以进一步编辑或直接编译成 .bst 文件,用于 LaTeX 文档中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

latex 自定义bst文件

latex 最强大功能之一就是方便的添加和管理参考文献。其参考文献的引用格式通过 .bst 文件进行定义的。通常向学术期刊投稿可以在官网上下载到对方要求的格式文件,但是想调整一些格式确十分困难。这里介绍通过 makebst.tex 文件自定义 .bst 格式文件,一劳永逸的解决这个问题。

安装 TeXLive 套装之后(CTeX 套装也可以),在 \TeXLive\2016\texmf-dist\tex\latex\custom-bib 文件夹下可以找到 makebst.tex 文件,使用 TeXworks 编译该文件(WinEdt 也可以,重要的是有对话窗口,TeXStudio 貌似就不行,用 Sublime Text 搭建的 LaTeX 编译环境亲测不行)。会在消息窗口中跳出几十个问题,对参考文献的每一个问题都提供了选项和简单的说明,根据要求一一选择即可。

假设文件输出名为 mybib, 上述编译、作答完成后,得到一个名为 mybib.dbj 的文件。

随便一个窗口打开 mybib.dbj,你的所有选项包含在其中,可以在其中修改你的答案(有些答案是关联的,所以不确定是否可以安全的修改,如果新手的话还是建议再答题一遍吧)。(如何修改我还没来得及搞,占坑,有空再弄)

上述问题中最后一个问题选择 'yes' 即能编译出最后的 mybib.bst 文件。如果选了 'no' 或者修改 mybib.dbj 文件后再编译,可以在 DOS 窗口中使用命令 latex mybib.dbj 编译文件,也能得到 mybib.bst 文件。

在主文档导言区加入 \bibliographystyle{mybib} 就可以编译使用了。

这里参考网上的方法,贴出了选项日志,将每个问题按照我的理解进行了翻译,供参考。

This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/W32TeX) (preloaded format=xelatex)

restricted \write18 enabled.

entering extended mode

(./makebst.tex

LaTeX2e <2017/01/01> patch level 3

Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.

***********************************

* This is Make Bibliography Style *

***********************************

1. 对自定义的 .bst 格式文件添加一段描述

It makes up a docstrip batch job to produce

a customized .bst file for running with BibTeX

Do you want a description of the usage? (NO)

\yn=

2. 默认使用 merlin.mbs 来生成格式文件,正式它定义了有关的问题和格式,见《LaTeX入门》刘海洋

Enter the name of the MASTER file (default=merlin.mbs)

\mfile=

3. 输出 .bst 文件的名称

Name of the final OUTPUT .bst file? (default extension=bst)

\ofile=mybib

4. 输入一行注释,会出现在文件中

Give a comment line to include in the style file.

Something like for which journals it is applicable.

\ans=This is a comment line

5. 如果需要一段冗长的说明的话

Do you want verbose comments? (NO)

\yn=

(./merlin.mbs

<<< For more information about the meanings of

<<< the various options, see the section on

<<< Menu Information in the .mbs file documentation.

EXTERNAL FILES:

6. 不知道什么用,默认

Name of language definition file (default=merlin.mbs)

\cfile=

Name of language file: \cfile=.

7. 需要额外的杂志名称么?不知道什么用,默认

Include file(s) for extra journal names? (NO)

\yn=

No included files.

8. 内部语言支持,默认英语

INTERNAL LANGUAGE SUPPORT (if no external language file)

(*) English words used explicitly

(b) Babel (words replaced by commands defined in babelbst.tex)

Select:

\ans=

You have selected: English

9. 引用格式,一般选数字格式如:[1],[2]

STYLE OF CITATIONS:

(*) Numerical as in standard LaTeX

(a) Author-year with some non-standard interface

(b) Alpha style, Jon90 or JWB90 for single or multiple authors

(o) Alpha style, Jon90 even for multiple authors

(f) Alpha style, Jones90 (full name of first author)

(c) Cite key (special for listing contents of bib file)

Select:

\ans=

You have selected: Numerical

10. HTML 输出? 不知道什么用,默认

HTML OUTPUT (if non author-year citations)

(*) Normal LaTeX output

(h) Hypertext output, in HTML code, in paragraphs

(n) Hypertext list with sequence numbers

(k) Hypertext with keys for viewing databases

Select:

\ans=

You have selected: Normal LaTeX

11. 语言区域。不知道什么用,默认

LANGUAGE FIELD

(*) No language field

(l) Add language field to switch hyphenation patterns temporarily

Select:

\ans=

You have selected: No language field

12. 附注(应该指参考文献中的附注,一般选择不显示)

ANNOTATIONS:

(*) No annotations will be recognized

(a) Annotations in annote field or in .tex file of citekey name

Select:

\ans=

You have selected: No annotations

13. 可能是选择是否显示报告类型,如 oral,poster 吧

PRESENTATIONS:

(*) Do not add presentation type for conference talks

(p) Add presentation, speaker not highlighted

(b) Presentation, speaker bold face

(i) Presentaion, speaker italic

(c) Presentaion, speaker in small caps

Select:

\ans=

You have selected: Do not add presentation type

14. 参考文献排列格式,一般按引用次序,即 unsrt

ORDERING OF REFERENCES (if non-author/year and non-alph)

(*) Alphabetical by all authors

(c) Citation order (unsorted, like unsrt.bst)

(d) Year ordered and then by authors

(r) Reverse year ordered and then by authors

Select:

\ans=c

You have selected: Citation order

15. 不知道什么用,默认

ORDER ON VON PART (if not citation order)

(*) Sort on von part (de la Maire before Defoe)

(x) Sort without von part (de la Maire

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值