2003年8月21日(木)

bibtex

bibtex で人名に Jr. を含めようとしてハマる。
bib file の author エントリには、ふつー一人分の姓名を first last と区切りを入れずに書くんだがこれだとどうも最後のが lastname で残りは全部 first 扱いになるらしい。
答えは、カンマ区切りを使って last, Jr., first と書く、らしい。うーむ、 bst file を見ると von のフィールドもあるんだが、 bib file のどこに書いたのが von の扱いになるのか判らんぞ。

と問題が解決してからドキュメントを読む俺(ばき。
なんだ、ちゃんと texmf/doc/bibtex/base/btxdoc.dvi に載ってるじゃん。答えは von Last, Jr., First だとさ。

それにしても bst file ってのはいくら読んでも何やってるか判らなくて辛い。

そんなわけでこんなエントリができてみたり(謎)
素材は prsty.bst です

FUNCTION {gaussian}
{ output.bibitem
"author" format.authors #1 push.string.check

booktitle empty$
{ "BOOKTITLE" "Specify the version of Gaussian by booktitle in" cite$ "." *\
* warning$ }
{ booktitle }
if$
", " * *
edition empty$
{ "EDITION" "Specify the revision of Gaussian by edition in" cite$ "." * * \
warning$ }
{ edition }
if$
", " * *
publisher empty$
{ "PUBLISHER" "No publisher for entry " cite$ "." * * warning$ }
{ publisher }
if$
", " * *
address empty$
{ "ADDRESS" "Missing address in entry " cite$ * "." * warning$ }
{ address }
if$
", " * *
year empty$
{ "YEAR" }
'year
if$
"" * *

fin.entry
crossref empty$
'skip$
{ "See Ref.\ \cite{" crossref "}." * * write$ newline$ }
if$
}

[referer:

Script Error

The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file.

]

あわせて読みたい