Moin moin,
Zitat von
roadrunner87
Kann ich nicht "einfach" im bst-File die zusätzliche Option hinzufügen und diesen Stiel als myalphadin.bst bereitstellen?
der Witz ist, es gibt bereits ein Eintragsfeld dafür: key -- allerdings wird dieser nicht ausgewertet, sobald author oder editor gegeben ist.
Für @booklet kannst Du in Deiner myalphadin.bst
Code:
FUNCTION {author.editor.key.label}
{ author empty$
{ editor empty$
{ key empty$
{ cite$ #1 #3 substring$ }
{ key #3 text.prefix$ }
if$
}
{ editor format.lab.names }
if$
}
{ author format.lab.names }
if$
}
in
Code:
FUNCTION {author.editor.key.label}
{ key empty$
{ author empty$
{ editor empty$
{ cite$ #1 #3 substring$ } %%% weder Key noch author noch editor
{ editor format.lab.names } %%% kein key/author, aber editor
if$
}
{ author format.lab.names } %%% kein key, aber author
if$
}
{ key #3 text.prefix$ } %%% key gegeben
if$
}
ändern, dann hat das Feld `key' Vorrang. Für andere Eintragstypen müsstest Du die entsprechenden Funktionen analog anpassen, so Du das nicht nur für booklet (, book und inbook) brauchst.
Code:
\documentclass{article}
\usepackage{url}
\usepackage{filecontents}
\begin{filecontents}{lit.bib}
@booklet{foo,
title = {Textual Modeling Framework {(TMF)} proposal},
url = {http://www.eclipse.org/proposals/tmf/},
journal = {Textual Modeling Framework {(TMF)} proposal},
author = {{The Eclipse Foundation}},
lastchecked = {07.08.2012},
key = {TMF}
}
\end{filecontents}
\begin{document}
\cite{foo}
\bibliographystyle{myalphadin}
\bibliography{lit}
\end{document}
Theoretisch auch mit `label' möglich, diesen müsstest Du dann zusätzlich im ersten Argument zu `ENTRY' ergänzen.
MfG
Lesezeichen