新浪博客

makebst生成参考文献风格文件bst

2015-02-05 16:10阅读:
  1. 从菜单栏的accessoriescommand prompt进入dos窗口,输入latex makebst.tex(也可以进入c\ctex\miktex\tex\latex\custom-bib: makebst.tex,直接双击打开也可以运行)
  2. 按照提示不停的回答问题即可,最后会生成一个dbj的文件,就位于c\ctex\miktex\tex\latex\custom-bib文件夹下,在此大概列出问题:
step1getting started
1. Type Yto get more information
2. Accept the default master file (merlin.mbs)
3. Output file - name it something memorable - I type wibble.bst
4. Type a comment - I type An example style file

5. Say Y to verbose comments(详细的注释,我猜的)
6. Name of language definition file - agree with default
7. Include files for journal names? - no
8. Internal language support - agree with default
step2Choosing style
1. Citation order: Choose numeric mode
2. Html output: Choose normal LaTeX output
3. Language field? no
4. Annotations (注释)? No
5. Presentations: do not add presentation type for conference talks(default)
6. Ordering of references? Citation order - option c
7. Order on vonpart? Sort on von part - although N/A for us
8. Author names? Surname plus pure initials (option x)
9. Editor names in collection? Reversed(姓和名颠倒) as in authors- option r(姓+名表示reversed,)
10.Position of Junior- comes last(如Smith, John, Jr.
11.punctuation(标点) between Author names - separate by commas
12.Adjacent references with repeated names - always present
13.Number of authors in bibliography - all authors
14.Author in citations-one auther et al for three or more authors(default)
15.Typeface(字体) for authors in list of references - normal font
16.Date position - date part of journal spec - option j
17.Date format - plain month and year - default option
18.Suppress month(月份省略) - no - option *
19.Reversed date-month year(default)
20.Date punctuation – block punctuation - default(1994;). ***
21.Blank after date -space - default(1994) ***
22.Date font - normal format
23.Title of article - italic
24.Title capitalisation(大写) - title style (I ensure all bibtex entries are correctly capitalised manually by using {})
25.Article title present - Yes
26.Journal names - dotless names - option x(Phys Rev)(缩写时要不要加点,如Phys. Rev)
27.Journal name font - plain
28.Thesis title - like books
29.Tech report - like article
30.Tech report num – plain(报告字体斜体或者正常)
31.Journal volume font - plain
32.Journal volume and number- vol(num) – default(34(2))
33.Volume punctuation - volume with colon – default(34(2):pp)
34.Year in journal specification(年代是否外加vol和页码等信息。。。) - as given by date specification
35.Page numbers - start and stop numbers10-20
36.Large page numbers - no separators11,345
37.Word pagein articles - no - numbers only - default
38.Position of pages - default
39.Word volume - number only –default
40.Number and series for collections: Allow number without series and suppresses word “number”- default
41.Position of number and series - default
42.Volume and series for books/collections - option s(Series, vol. 23)
43.Position of volume and series for incollections - default
44.Journal name punctuation - space - option x
45.Book title italic? Yes
46.Pages in books plain – default (pp. 50-55)
47.Total pages printed - no
48.Publisher, Address顺序 – default(Harcourt, New York)
49.Publisher in parentheses(圆括号) - default no
50.Publisher position - default
51.ISBN - no
52.ISSN - no
53.DOI - no
54.Editor after names (没有作者的书的编者与书名顺序)- default
55.Editor in collections – default(同书的编者)
56.Punctuation between blocks - default
57.Punctuation after authors - default
58.Punctuation after in– defaultin incollection or inproceedings
59.Inwith journal names - default - no
60.Final punctuation - period at end
61.Abbreviate pages- omit - option x
62.Abbreviate editors- yes - option a
63.Other abbreviations – yes(缩写volumeeditionchapter,等)
64.Abbreviation for edition - a
65.Months with dots(点) - option x (although not applicable as hidden)
66.Editions as in database - default
67.Stored journal names - default (not applicable)(期刊名字是否缩写)
68.Ampersand&- use word and - default
69.Comma(逗号) beforeand- no comma
70.No andin reference list - No - option x(作者名之间不要and相连)
71.Comma before ‘et al’-yes (default)
72.Font of et al- plain
73.RevTeX data fields - none (default)
74.E-print data field - none (default)
75.URL - none
76.Reference component tags- none
77.Emphasis - default
78.Compatibility(兼容性) with plain TeX - default
  1. 生成dbj文件后,会提示
Finished!!
Batch job written to file `tmp.dbj'
Shall I now run this batch job? (NO)
/yn=

这时选“y”程序便会处理方才的选择,生成两个文件,后缀分别是bstdbj。这个bst文件已经可以使用。
4. dbj文件中记录了上面所有问题的选择,如果需要进行微小的改动,可以直接在这个文件中找到对应的部分,注释掉不需要的选项,将需要的选项解除注释,然后运行
latex xxx.dbj
注:如果在dos窗口运行此命令一直提示can't find the file ***.db.则可以直接双击文件***.dbj,选择打开方式为:
c\ctex\Miktex\miktex\bin\latex.exe.
如此即可运行了。

我的更多文章

下载客户端阅读体验更佳

APP专享