latex 自定义bst文件

最近学习LaTeXLaTeX,遇到了很多问题,其中就包括要制作一个符合学校参考文献的bst文件,苦恼了很久,在网上没有找到相似的问题整理。遂做个小小的总结。

bst 采用了堆栈式语言 
WinEdt中可以编写这个文件,也可以用其他的 
如何制作bst文件 
安装了 ctex 套装后, 在目录 custom-bib 下有一个名为 makebst.tex 的文件. 
1) 在 WinEdt 窗口打开该文件, 点击 TeX 键编译该文件. 
编译过程中, DOS 窗口会出现数十个问题. 比如, 需要您给定文件输出名. 每个文献格式问题都提供了选择项及说明, 您只需一一选择作答即可. 
2) 假设文件输出名为 mybib, 上述编译、作答完成后, 得到一个名为 mybib.dbj 的文件. 
3) 在 WinEdt 窗口打开 mybib.dbj, 
可以看到您所有的选择项答案, 这时您还可以修改您的选项: 改动各问题选项前的注释符号” %” 即可. 
4) 在 DOS 窗口用 tex 命令编译 mybib.dbj 文件, 得到文件 mybib.bst, 即为您所需的参考文献格式.

在主文档导言区加入 \bibliographystyle{mybib} 就可以编译使用了. 
下面是选项日志,中文部分是直译的,有些翻译感觉不太对,还是以英文为重点。


Command Line:   latex.exe --src --interaction=errorstopmode --synctex=1 "makebst.tex"
Startup Folder: C:\Users\tinkle\Desktop\custom-bib\custom-bib

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
(C:\Users\tinkle\Desktop\custom-bib\custom-bib\makebst.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for loaded.
***********************************
* This is Make Bibliography Style *
***********************************
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=no
In the interactive dialogue that follows,
you will be presented with a series of menus.
In each case, one answer is the default, marked as (*),
and a mere carriage-return is sufficient to select it.
(If there is no * choice, then the default is the last choice.)
For the other choices, a letter is indicated
in brackets for selecting that option. If you select
a letter not in the list, default is taken.

The final output is a file containing a batch job
which may be (La)TeXed to produce the desired BibTeX
bibliography style file. The batch job may be edited
to make minor changes, rather than running this program
once again.

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

\mfile=

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

\ofile=mybib3

Give a comment line to include in the style file.
Something like for which journals it is applicable.

\ans=
Do you want verbose comments? (NO)

\yn=
(C:\Users\tinkle\Desktop\custom-bib\custom-bib\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:

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

\cfile=

Name of language file: \cfile=.

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

\yn=

No included files.

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
1.  引文的风格
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
2.  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
3.  语言区域(感觉这样翻译不太对)
LANGUAGE FIELD
(*) No language field 
(l) Add language field to switch hyphenation patterns temporarily
  Select:

\ans=
  You have selected: No language field
4.  附加说明(或者说注释)
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
5.  排序方式
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

6.  如果不是按照引用的排序方式(VON PART)
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 after Mahone)
  Select:

\ans=
  You have selected: Sort on von part VON

7.  作者名字
AUTHOR NAMES:
(*) Full, surname last (John Frederick Smith)
(f) Full, surname first (Smith, John Frederick)
(i) Initials + surname (J. F. Smith)
(r) Surname + initials (Smith, J. F.)
(s) Surname + dotless initials (Smith J F)
(w) Surname + comma + spaceless initials (Smith, J.F.)
(x) Surname + pure initials (Smith JF)
(y) Surname + comma + pure initials (Smith, JF)
(z) Surname + spaceless initials (Smith J.F.)
(a) Only first name reversed, initials (AGU style: Smith, J. F., H. K. Jones)
(b) First name reversed, with full names (Smith, John Fred, Harry Kab Jones)
  Select:

\ans=x
  You have selected: Surname + pure initials

8.  如果作者姓名颠倒,在数据库中的编辑
EDITOR NAMES IN COLLECTIONS (if author names reversed)
(*) Editor names NOT reversed as edited by JJ Smith
(r) Editor names reversed just like authors'
  Select:

\ans=r
  You have selected: Editor names reversed

9.  名的位置
POSITION OF JUNIOR (if author names reversed)
(*) Junior comes last as Smith, John, Jr.
(m) Junior between as Smith, Jr., John
  Select:

\ans=
  You have selected: Junior comes last

10. 作者之间的标点符号
PUNCTUATION BETWEEN AUTHOR NAMES:
(*) Author names separated by commas逗号
(s) Names separated by semi-colon 分号
(h) Names separated by slash / 斜杠
  Select:

\ans=
  You have selected: Author names separated by commas
11. 作者重名问题
ADJACENT REFERENCES WITH REPEATED NAMES:
(*) Author/editor names always present 
(d) Repeated author/editor names replaced by dash 
(2) Repeated author/editor names replaced by 2 dashes 
(3) Repeated author/editor names replaced by 3 dashes 
  Select:

\ans=
  You have selected: Author/editor names always present

12. 作者的数目
NUMBER OF AUTHORS:
(*) All authors included in listing
(l) Limited authors (et al replaces missing names)
  Select:

\ans=
  You have selected: All authors

13. 作者的字体格式
TYPEFACE FOR AUTHORS IN LIST OF REFERENCES:
(*) Normal font for author names 
(s) Small caps authors (\sc)
(i) Italic authors (\it or \em)
(b) Bold authors (\bf)
(u) User defined author font (\bibnamefont)
  Select:

\ans=
  You have selected: Normal font for author names

14. 日期的位置
DATE POSITION:
(*) Date at end 
(b) Date after authors 
(j) Date part of journal spec. (as 1994;45:34-40) else at end
(e) Date at very end after any notes
  Select:

\ans=j
  You have selected: Date part of journal spec.

15. 日期的格式
DATE FORMAT (if non author-year citations)
(*) Plain month and year without any brackets
(p) Date in parentheses as (May 1993)
(b) Date in brackets as [May 1993]
(c) Date preceded by colon as `: May 1993'
(d) Date preceded by period as `. May 1993'
(m) Date preceded by comma as `, May 1993'
(s) Date preceded by space only, as ` May 1993'
  Select:

\ans=m
  You have selected: Date preceded by comma

16. 日期的形式
SUPPRESS MONTH:
(*) Date is month and year 
(x) Date is year only 
  Select:

\ans=x
  You have selected: Date is year only

17. 如果日期不是在结尾,日期的格式
DATE PUNCTUATION (if date not at end)
(*) Date with standard block punctuation (comma or period)
(c) Colon after date as 1994:
(s) Semi-colon after date as 1994;
(p) Period after date even when blocks use commas
(x) No punct. after date 
  Select:

\ans=c
  You have selected: Colon after date

18. 日期后的空白
BLANK AFTER DATE:
(*) Space after date and punctuation
(x) No space after date as 1994:45
  Select:

\ans=x
  You have selected: No space after date

19. 日期的字体
DATE FONT:
(*) Date in normal font 
(b) Date in bold face 
  Select:

\ans=
  You have selected: Date in normal font

20. 文章的标题
TITLE OF ARTICLE:
(*) Title plain with no special font
(i) Title italic (\em)
(q) Title and punctuation in single quotes (`Title,' ..)
(d) Title and punctuation in double quotes (``Title,'' ..)
(g) Title and punctuation in guillemets (<<Title,>> ..)
(x) Title in single quotes (`Title', ..)
(y) Title in double quotes (``Title'', ..)
(z) Title in guillemets (<<Title>>, ..)
  Select:

\ans=
  You have selected: Title plain

21. 文章标题的XX化(资本化)  T^T实在不知道怎么翻译
CAPITALIZATION OF ARTICLE TITLE:
(*) Sentence style (capitalize first word and those in braces)句子风格(第一个字大写)
(t) Title style (just as in bib entry)标题风格
  Select:

\ans=
  You have selected: Sentence style

22. 文章标题
ARTICLE TITLE PRESENT:
(*) Article title present in journals and proceedings
(x) No article title 
  Select:

\ans=
  You have selected: Article title present

23. 作者名字
JOURNAL NAMES:
(*) Periods in journal names are retained, as `Phys. Rev.'
(x) Dotless journal names as `Phys Rev'
  Select:

\ans=
  You have selected: Periods in journal names

24. 作者名字格式
JOURNAL NAME FONT:
(*) Journal name italics 
(r) Journal name normal font
  Select:

\ans=r
  You have selected: Journal name normal

25. 论文题目
THESIS TITLE:
(*) Thesis titles like books 
(a) Thesis title like article 
(x) No thesis title 
  Select:

\ans=
  You have selected: Thesis titles like books

26. 技术报告标题
TECHNICAL REPORT TITLE:
(*) Tech. report title like articles 
(b) Tech. report title like books 
  Select:

\ans=
  You have selected: Tech. report title like articles

27. 技术报告编号
TECHNICAL REPORT NUMBER:
(*) Tech. report and number plain as `Tech. Rep. 123'
(i) Tech. report and number italic as `{\it Tech. Rep. 123'}
  Select:

\ans=
  You have selected: Tech. report and number plain

28. 日志卷
JOURNAL VOLUME:
(*) Volume plain as vol(num)
(i) Volume italic as {\em vol}(num)
(b) Volume bold as {\bf vol}(num)
(d) Volume and number bold as {\bf vol(num)}
  Select:

\ans=
  You have selected: Volume plain

29. 卷号(2)
JOURNAL VOL AND NUMBER:
(*) Journal vol(num) as 34(2)
(s) Journal vol (num) as 34 (2)
(c) Journal vol, num as 34, 2
(n) Journal vol, no. num as 34, no. 2
(h) Journal vol, \# number as 34, \#2
(b) Journal vol number as 34 2
(x) Journal vol, without number as 34
  Select:

\ans=
  You have selected: Journal vol(num)

30. 卷符号
VOLUME PUNCTUATION:
(*) Volume with colon as vol(num):ppp
(s) Volume with colon and space as vol(num): ppp
(h) Volume with semi-colon as vol(num); ppp
(c) Volume with comma as vol(num), ppp
(b) Volume with blank as vol(num) ppp
  Select:

\ans=s
  You have selected: Volume with colon and space

31. 杂志“年”的技术参数
YEAR IN JOURNAL SPECIFICATION:
(*) Journal year like others as given by date position
(v) Journal vol(year) as 34(1995)
(s) Journal vol (year) as 34 (1995)
(p) Year with pages as 34(2), (1995) 1345--1387
(c) Year, comma, pages as 34(2), (1995), 1345--1387
  Select:

\ans=
  You have selected: Journal year like others

32. 页码
PAGE NUMBERS:
(*) Start and stop page numbers given
(f) Only start page number 
  Select:

\ans=
  You have selected: Start and stop page numbers

33. 最大页码
LARGE PAGE NUMBERS:
(*) No separators for large page numbers 
(c) Comma inserted over 9999 as 11,234
(s) Thin space inserted over 9999 as 11 234
(p) Period inserted over 9999 as 11.234
  Select:

\ans=
  You have selected: No separators for large page numbers

34. 页码标注方式
WORD `PAGE' IN ARTICLES:
(*) Article pages numbers only as 234-256
(p) Include `page' in articles as pp. 234--256
  Select:

\ans=
  You have selected: Article pages numbers only

35. 页码位置
POSITION OF PAGES:
(*) Pages given mid text as is normal
(e) Pages at end but before any notes
  Select:

\ans=
  You have selected: Pages given mid text

36. 文章中卷的显示方式
WORD `VOLUME' IN ARTICLES:
(*) Article volume as number only as 21
(p) Include `volume' in articles as vol. 21
  Select:

\ans=
  You have selected: Article volume as number only

37. 数和系列类别
NUMBER AND SERIES FOR COLLECTIONS:
(*) Allows number without series and suppresses word "number"
(s) Standard BibTeX as: "number 123 in Total Works"; error if number and no ser
ies
  Select:

\ans=
  You have selected: Allows number without series

38. 数和系列的位置
POSITION OF NUMBER AND SERIES:
(*) After chapter and pages as in standard BibTeX
(t) Just before publisher or organization
  Select:

\ans=
  You have selected: After chapter and pages

39. 书/类别的数和系列
VOLUME AND SERIES FOR BOOKS/COLLECTIONS:
(*) Vol. 23 of Series as in standard BibTeX
(s) Series, vol. 23 
  Select:

\ans=s
  You have selected: Series, vol. 23

40. ••••的位置
POSITION OF VOLUME AND SERIES FOR INCOLLECTIONS:
(*) Series and volume after the editors 
(e) Series and volume after booktitle and before editors
  Select:

\ans=
  You have selected: Series and volume after the editors

41. 期刊名称符号
JOURNAL NAME PUNCTUATION:
(*) Comma after journal name
(x) Space after journal name
  Select:

\ans=
  You have selected: Comma after journal

42. 书的标题
BOOK TITLE:
(*) Book title italic (\em)
(p) Book title plain (no font command)
  Select:

\ans=p
  You have selected: Book title plain

43. 书的页码
PAGES IN BOOKS:
(*) Pages in book plain as pp. 50-55
(p) Pages in book in parentheses as (pp. 50-55)
(x) Pages in book bare as 50-55
  Select:

\ans=x
  You have selected: Pages in book bare

44. 书的全部页码
TOTAL PAGES OF A BOOK:
(*) Total book pages not printed 
(p) For book: 345 pages or pp.
(a) Total book pages before publisher 
  Select:

\ans=
  You have selected: Total book pages not printed

45. 出版地址
PUBLISHER ADDRESS:
(*) Publisher, address as Harcourt, New York
(a) Address: Publisher as New York: Harcourt
  Select:

\ans=a
  You have selected: Address: Publisher

46. 出版商的括号
PUBLISHER IN PARENTHESES:
(*) Publisher as normal block without parentheses
(p) Publisher in parentheses 
(d) Publisher and date in parentheses (Oxford, 1994)
(c) Publisher and date in parentheses, no comma (Oxford 1994)
(f) Publisher and date without parentheses Oxford, 1994
(k) Publisher and date, no parentheses, no comma Oxford 1994
  Select:

\ans=
  You have selected: Publisher as normal block

47. 出版商的位置
PUBLISHER POSITION:
(*) Publisher after chapter, pages 
(p) Publisher before chapter, pages 
(e) Publisher after edition 
  Select:

\ans=p
  You have selected: Publisher before chapter, pages

48. 国际标准书号
ISBN NUMBER:
(*) Include ISBN for books, booklets, etc.
(x) No ISBN 
  Select:

\ans=x
  You have selected: No ISBN

49. 国际标准刊号
ISSN NUMBER:
(*) Include ISSN for periodicals
(x) No ISSN 
  Select:

\ans=x
  You have selected: No ISSN

50. 数字对象唯一标识符
DOI NUMBER:
(*) Include DOI as "doi: number"
(a) Insert DOI AGU style as part of page number
(x) No DOI 
  Select:

\ans=x
  You have selected: No DOI

51. EDITOR 后面的名称
`EDITOR' AFTER NAMES (EDITED BOOKS WITHOUT AUTHORS):
(*) Word `editor' after name 
(a) `Name (editor),' in parentheses, after name, comma after
(b) `Name (Editor),' as above, editor upper case
(c) `Name, (editor)' in parentheses, after name, comma between
(d) `Name, (Editor)' as above, editor upper case
(e) `Name (editor)' in parentheses, after name, no commas
(f) `Name (Editor)' as above, editor upper case
  Select:

\ans=
  You have selected: Word `editor' after name

52. 关于EDITOR的编辑
EDITOR IN COLLECTIONS:
(*) Same as for edited book (names before booktitle)
(b) In booktitle, edited by ..  (where .. is names)
(p) In booktitle (edited by ..) 
(c) In booktitle, (edited by ..) 
(e) In booktitle, editor .. 
(f) In booktitle, (editor) .. 
(k) In booktitle (editor..) 
(g) In booktitle, (editor..) 
(j) In booktitle, .., editor 
(m) In booktitle (.., editor) 
  Select:

\ans=
  You have selected: Same as for edited book

53. 标点符号的切换
PUNCTUATION BETWEEN SECTIONS (BLOCKS):
(*) \newblock after blocks (periods or new lines with openbib option)
(c) Comma between blocks 
(s) Semi-colon between blocks 
(b) Blanks between blocks 
(t) Period after titles of articles, books, etc else commas
(u) Colon after titles of articles, books, etc else commas
(a) Period after titles of articles else commas
(d) Colon after titles of articles else commas
  Select:

\ans=
  You have selected: \newblock after blocks

54. 作者之后的标点符号
PUNCTUATION AFTER AUTHORS:
(*) Author block normal with regular block punctuation
(c) Author block with colon 
  Select:

\ans=
  You have selected: Author block normal

55.IN后面的标点符号
PUNCTUATION AFTER `IN':
(*) Space after `in' for incollection or inproceedings
(c) Colon after `in' (as `In: ...')
(i) Italic `in' and space
(d) Italic `in' and colon 
(x) No word `in' for edited works
  Select:

\ans=x
  You have selected: No word `in'

56. 最后的标点符号
FINAL PUNCTUATION:
(*) Period at very end of the listed reference
(x) No period at end 
  Select:

\ans=
  You have selected: Period at very end

57. 网页的缩写
ABBREVIATE WORD `PAGES' (if not using external language file)
(*) `Page(s)' (no abbreviation)
(a) `Page' abbreviated as p. or pp.
(x) `Page' omitted 
  Select:

\ans=
  You have selected: `Page(s)'

58. 编辑的缩写
ABBREVIATE WORD `EDITORS':
(*) `Editor(s)' (no abbreviation)
(a) `Editor' abbreviated as ed. or eds.
  Select:

\ans=
  You have selected: `Editor(s)'

59. 其他的缩写
OTHER ABBREVIATIONS:
(*) No abbreviations of volume, edition, chapter, etc
(a) Abbreviations of such words
  Select:

\ans=
  You have selected: No abbreviations

60. 版本号
EDITION NUMBERS:
(*) Editions as in database saving much processing memory
(w) Write out editions as first, second, third, etc
(n) Numerical editions as 1st, 2nd, 3rd, etc
  Select:

\ans=
  You have selected: Editions as in database

Reading external language file \cfile=

61. 存储的杂志名字
STORED JOURNAL NAMES:
(*) Full journal names for prestored journals
(a) Abbreviated journal names 
(s) Abbreviated with astronomy shorthands like ApJ and AJ
  Select:

\ans=
  You have selected: Full journal names

62.63,和AND的排版有关)
AMPERSAND:
(*) Use word `and' in author lists
(a) Use ampersand in place of `and'
(v) Use \BIBand in place of `and'
  Select:

\ans=
  You have selected: Use word `and'

63. 
COMMA BEFORE `AND':
(*) Comma before `and' as `Tom, Dick, and Harry'
(n) No comma before `and' as `Tom, Dick and Harry'
(c) Comma even with 2 authors as `Tom, and Harry'
  Select:

\ans=
  You have selected: Comma before `and'

64. 
NO `AND' IN REFERENCE LIST:
(*) With `and' before last author in reference list
(x) No `and' as `Tom, Dick, Harry'
  Select:

\ans=x
  You have selected: No `and'

65. 
COMMA BEFORE `ET AL':
(*) Comma before `et al' in reference list
(x) No comma before `et al' 
  Select:

\ans=
  You have selected: Comma before `et al'

66. 
FONT OF `ET AL':
(*) Plain et al 
(i) Italic et al 
(r) Roman et al even when authors something else
  Select:

\ans=
  You have selected: Plain et al

67. 
ADDITIONAL REVTeX DATA FIELDS:
(*) No additional fields for REVTeX
(r) Include REVTeX data fields collaboration, eid, eprint, archive, numpages, u
rl
  Select:

\ans=
  You have selected: No additional fields

68. 
E-PRINT DATA FIELD: (without REVTeX fields)
(*) Do not include eprint field 
(e) Include eprint and archive fields for electronic publications
  Select:

\ans=
  You have selected: Do not include eprint field

69. URL地址
URL ADDRESS: (without REVTeX fields)
(*) No URL for electronic (Internet) documents
(u) Include URL as regular item block
(n) URL as note 
(l) URL on new line after rest of reference
  Select:

\ans=
  You have selected: No URL

70. 参考部分标签
REFERENCE COMPONENT TAGS:
(*) No reference component tags in the \bibitem entries
(b) Reference component tags like \bibinfo in the content of \bibitem
  Select:

\ans=
  You have selected: No reference component tags

71. 强调
EMPHASIS: (affects all so-called italics)
(*) Use emphasis ie, \em, allows font switching
(i) Use true italics ie, \it, absolute italics
(x) No italics at all
(u) Underlining in place of italics, best with ulem package
  Select:

\ans=x
  You have selected: No italics

72. 兼容性问题
COMPATIBILITY WITH PLAIN TEX:
(*) Use LaTeX commands which may not work with Plain TeX
(t) Use only Plain TeX commands for fonts and testing
  Select:

\ans=
  You have selected: Use LaTeX commands
)

Finished!!
Batch job written to file `mybib3.dbj'
Shall I now run this batch job? (NO)

\yn=
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
  • 757
  • 758
  • 759
  • 760
  • 761
  • 762
  • 763
  • 764
  • 765
  • 766
  • 767
  • 768
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • 776
  • 777
  • 778
  • 779
  • 780
  • 781
  • 782
  • 783
  • 784
  • 785
  • 786
  • 787
  • 788
  • 789
  • 790
  • 791
  • 792
  • 793
  • 794
  • 795
  • 796
  • 797
  • 798
  • 799
  • 800
  • 801
  • 802
  • 803
  • 804
  • 805
  • 806
  • 807
  • 808
  • 809
  • 810
  • 811
  • 812
  • 813
  • 814
  • 815
  • 816
  • 817
  • 818
  • 819
  • 820
  • 821
  • 822
版权声明:本文为博主原创文章,未经博主允许不得转载。 http://blog.csdn.net/tinkle181129/article/details/49822171
  • 5
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
LaTeX 中,可以通过编写自定义的 .bst 文件来定义参考文献的样式,包括作者数的最大限制。以下是一些关于如何在 bst 文件中定义最大作者数的示例代码: 1. 定义最大作者数为 3: ``` FUNCTION {default.name.format} { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := nameptr #1 > { namesleft #1 > { ", et~al." * } { ",~" * t * } if$ } { t } if$ } READ FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := nameptr #1 > { namesleft #1 > { ", " * t * } { " and " * t * } if$ } { t } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } READ ``` 2. 定义最大作者数为 2: ``` FUNCTION {default.name.format} { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := nameptr #1 > { namesleft #1 > { ", et~al." * } { ",~" * t * } if$ } { t } if$ } READ FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := nameptr #1 > { namesleft #1 > { ", " * t * } { " and " * t * } if$ } { t } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := numnames #2 > { ", et~al." * } 'skip$ if$ } while$ } READ ``` 在以上代码中,我们主要是修改了 default.name.format 和 format.names 这两个函数。其中 default.name.format 定义了作者列表的显示格式,而 format.names 则是对作者列表进行格式化的函数。在 format.names 中,我们加入了一个条件判断,当作者数超过最大限制时,自动省略多余的作者。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值