
Hat jemand einen biblatex
Bibliografiestil entwickelt, der acm.bst
hinsichtlich der Formatierung dem Bestand entspricht? Ich möchte biblatex
eine ausgefeiltere Handhabung von Dingen wie URLs, aber die Zeitschrift, bei der ich einreiche, gibt eine Formatierung im ACM-Stil vor.
Antwort1
Unter Berücksichtigung von Alan Munns Warnung finden Sie hier etwas, das Ihnen den Einstieg erleichtern sollte. Zunächst ein Beispiel für die Verwendung von traditionellem BibTeX acm.bst
:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Bli74,
author = {Blinder, Alan S.},
year = {1974},
title = {The economics of brushing teeth},
journal = {Journal of Political Economy},
volume = {82},
number = {4},
pages = {887--891},
}
@book{Kot11,
author = {Kottwitz, Stefan},
year = {2011},
title = {\LaTeX\ Beginner's Guide},
address = {Birmingham},
publisher = {Packt Publishing},
}
\end{filecontents}
\begin{document}
\nocite{*}
\bibliographystyle{acm}
\bibliography{\jobname}
\end{document}
Und dasselbe Beispiel mit biblatex
und seinen Konfigurationsmöglichkeiten. (Beachten Sie die Unterschiede in der .bib
Datei: journal
wird durch ersetzt journaltitle
, address
wird durch ersetzt location
.)
Einige zusätzliche Anpassungen sind hier für Werke mit mehreren Autoren angegeben, für andere Eintragskategorien können jedoch weitere erforderlich sein; sieheRichtlinien zum Anpassen von Biblatex-Stilenfür weitere Beratung.
\documentclass{article}
\usepackage[style=numeric,firstinits=true]{biblatex}% "style=numeric" is default
\DeclareNameAlias{default}{last-first}
\AtBeginBibliography{%
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}%
%% commas between authors
\renewcommand{\multinamedelim}{\addcomma\space}
\renewcommand{\finalnamedelim}{\addcomma\addspace\textsc{and}\space}
}
\DefineBibliographyStrings{english}{%
andothers = {\addcomma\addspace\textsc{et\addabbrvspace al}\adddot},
and = {\textsc{and}}
}
\renewcommand*{\labelnamepunct}{\space\space}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1}
\renewbibmacro{in:}{%
\ifentrytype{article}{%
}{%
\printtext{\bibstring{in}\intitlepunct}%
}%
}
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\setunit*{\addcomma\space}%
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}}
\DeclareFieldFormat{pages}{#1}
\renewbibmacro*{publisher+location+date}{%
\printlist{publisher}%
\setunit*{\addcomma\space}%
\printlist{location}%
\setunit*{\addcomma\space}%
\usebibmacro{date}%
\newunit}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Bli74,
author = {Blinder, Alan S.},
year = {1974},
title = {The economics of brushing teeth},
journaltitle = {Journal of Political Economy},
volume = {82},
number = {4},
pages = {887--891},
}
@book{Kot11,
author = {Kottwitz, Stefan},
year = {2011},
title = {\LaTeX\ Beginner's Guide},
location = {Birmingham},
publisher = {Packt Publishing},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\begin{document}
\printbibliography
\end{document}