Document ClassesBibliography problem with emspublic.cls

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Bibliography problem with emspublic.cls

Post by bkarpuz »

Dear Friends,

I am having problems with the bibliography section of my paper which uses the class file http://www.icms.org.uk/downloads/pems/EMSpublic.cls.
I use the following code for a reference item:

Code: Select all

\begin{thebibliography}{99}
\bibitem{itemkey1} Author.
\newblock Article Title.
\newblock \emph{Journal Name}, vol.~x, no.~x, pp.~x--x, (Year).
\end{thebibliography}
And the compiler returns the following error message:
Error wrote:! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.831 \bibitem{itemkey1}
Author.
I need help for correcting this.
Thanks.

bkarpuz
Last edited by bkarpuz on Sun May 30, 2010 9:18 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography problem with emspublic.cls

Post by localghost »

The misbehaviour comes from a redefinition of the thebibliography environment within the used class file. This new environment doesn't accept the former mandatory argument of the original version to determine the label width. Just drop this argument and it will work.

Code: Select all

\documentclass{emspublic}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
  \begin{thebibliography}
    \bibitem{itemkey1} Author.
      \newblock Article Title.
      \newblock \emph{Journal Name}, vol.~x, no.~x, pp.~x--x, (Year).
  \end{thebibliography}
\end{document}

Thorsten
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Bibliography problem with emspublic.cls

Post by bkarpuz »

localghost wrote:

Code: Select all

\documentclass{emspublic}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
  \begin{thebibliography}
    \bibitem{itemkey1} Author.
      \newblock Article Title.
      \newblock \emph{Journal Name}, vol.~x, no.~x, pp.~x--x, (Year).
  \end{thebibliography}
\end{document}
Thanks alot Thorsten, it works fine.

bkarpuz
Post Reply