
Кто-нибудь делал biblatex
стиль библиографии, который соответствует фондовому acm.bst
в плане форматирования? Я хочу biblatex
более сложную обработку таких вещей, как URL, но журнал, в который я отправляю, требует форматирования в стиле ACM.
решение1
Учитывая предостережение Алана Манна, вот что должно помочь вам начать. Во-первых, пример традиционного использования 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}
И тот же пример использования biblatex
и его возможности конфигурации. (Обратите внимание на различия в .bib
файле: journal
заменено на journaltitle
, address
заменено на location
.)
Некоторые дополнительные настройки указаны здесь для работ с несколькими авторами, но для других категорий заявок могут потребоваться дополнительные настройки; см.Руководство по настройке стилей biblatexдля получения дальнейших рекомендаций.
\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}