# Latex bibliography error with acm

I'm a recent user of Latex because I had to use it to write my MSc thesis and I don't understand what's wrong with the bibliography. I wanted the acm bibliographystyle and so a used this:

\bibliographystyle{acm}
\bibliography{referencias}


The result is every field of the reference in each line like:

[12] Bazant, Z., and Oh, B.
Crack band theory for fracture of concrete.
Materials and Structures (1983).

I wanted a continous citation. My Bibtex file shows this:

@article{Bazant1983,
author = {Ba\v{z}ant, Z.P. and Oh, B.H.},
journal = {Materials and Structures},
title = {{Crack band theory for fracture of concrete}},
year = {1983}
}


Can someone please show me how to fix the problem?

• I just added some markup to your question to make it more readable. Is that what you see? – Johannes_B Jun 27 '15 at 19:30
• Can you please save the following Code a anaBibtexAcm.tex and compile? What do you see? %Code Start %\documentclass{article} \begin{filecontents}{\jobname.bib} @article{Bazant1983, author = {Ba\v{z}ant, Z.P. and Oh, B.H.}, journal = {Materials and Structures}, title = {{Crack band theory for fracture of concrete}}, year = {1983} } \end{filecontents} \begin{document} \nocite{*} \bibliographystyle{acm} \bibliography{\jobname} \end{document} %codeend – Johannes_B Jun 27 '15 at 19:33
• the acm bibliography style specifies "newblock" (so by default a newline) after author and title, if that is not what you want, are you sure you want acm style? – David Carlisle Jun 27 '15 at 19:33
• My guess is that you have openbib in the options to \documentclass – egreg Jun 27 '15 at 19:34
• My guess is that you have openbib in the options to \documentclass – egreg 3 mins ago - I did and i deleted it and now it's solved. Thank you – Ana Jun 27 '15 at 19:40

openbib

option to \documentclass.