
引用用にシンプルでクリーンな bibstyle を作成したいと思います。カスタム bibstyle を作成するためのマクロ makebst については知っていますが、これは私のユースケースには少々やりすぎです。なぜなら、私は「mytag」という 1 つのタグを定義して、これをすべての出版物に使用したいだけだからです。
おそらく、ここには bibstyle 構文を十分に理解している人がいて、bibstyle 構文を深く調べる代わりに、シンプルで簡単なテンプレートを提供して私に始めてくれる人がいるかもしれません。
mybib.bib ファイルは次のようになります。
@mytag{
author = "AuthorA, A and AuthorB, B and AuthorC, C and AuthorD, D and AuthorE, E",
title = "Title of the publication",
publisher = "My favourite Journal 0815",
year = "2015"
link1 = "http://www.publication-server1.com/TAG1TYPE"
link1tag = "TAG1TYPE"
link2 = "http://www.publication-server2.com/TAG2TYPE"
link2tag = "TAG2TYPE"
link3 = "http://www.publication-server3.com/TAG3TYPE"
link3tag = "TAG3TYPE"
}
これは次のような引用スタイルに変換されるはずです
[i] A. 著者A、B. 著者B、C. 著者C 他、出版物のタイトル、私のお気に入りジャーナル 0815、2015年、タグ1タイプ、タグ2タイプ、タグ3タイプ
あるいは言葉で言うと:
- 著者ピーターパンとフック船長を「P. Pan、C. Hook」と表示します
- 最大 3 人の著者のみを表示し、他の著者は「et al.」で非表示にします。
- 斜体の出版物タイトル
- 出版物の電子プリントへの 3 つの異なるリンク タイプ。それぞれが定義されている場合は表示され、定義されていない場合はスキップされます。
答え1
任意のスタイルを生成するための便利なパッケージは酒好き*.bib
OPが提供したファイルと、以下のBibulousスタイル*.bst
ファイルを使用します。
TEMPLATES:
mytag = <au>, \textit{<title>}, <journal>[ <volume>], <year>...
[, <link1.35:-1>][, <link2.35:-1>][, <link3.35:-1>]
SPECIAL-TEMPLATES:
authorlist = <author.to_namelist()>
editorlist = <editor.to_namelist()>
authorname.n = [ <authorlist.n.first.initial()>. ][ <authorlist.n.middle.initial()>]<authorlist.n.last>[, <authorlist.n.suffix>]
au = <authorname.0>, ..., <authorname.9>
editorname.n = [ <editorlist.n.first.initial()>. ][ <editorlist.n.middle.initial()>]<editorlist.n.last>[, <editorlist.n.suffix>]
ed = <editorname.0>, ..., <editorname.9>
OPTIONS:
maxauthors = 3
maxeditors = 3
etal_message = et al.
次のようなフォーマットされた参照を与える