Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Has anyone done a biblatex bibliography style that matches the stock acm.bst as far as formatting? I want biblatex's more sophisticated handling of things like URLs, but the journal I'm submitting to specifies ACM-style formatting.

share|improve this question
3  
Not an answer, but a cautionary note: BibLaTeX: submitting to a journal. –  Alan Munn Dec 3 '11 at 20:31
    
Conveniently, this journal just wants me to send them a PDF. –  Zack Dec 4 '11 at 17:16

1 Answer 1

up vote 11 down vote accepted

With Alan Munn's cautionary note in mind, here's something that should get you started. First, an example of traditional BibTeX using 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}

enter image description here

And the same example using biblatex and its configuration possibilities. (Note the differences in the .bib file: journal is replaced with journaltitle, address is replaced with location.) It is very likely that additional tweaks are necessary for multiple-author works and/or other entry categories; see Guidelines for customizing biblatex styles for further advice.

\documentclass{article}

\usepackage[style=numeric,firstinits=true]{biblatex}% "style=numeric" is default

\DeclareNameAlias{default}{last-first}

\AtBeginBibliography{%
  \renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}%
}

\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}

enter image description here

share|improve this answer
    
I can probably figure out any glitches from here. Thanks. –  Zack Dec 4 '11 at 18:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.