BibTeX, biblatex and biber\@listctr error

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

\@listctr error

Post by feanor22 »

Dear members,

I'm having problems to make a bibliography inside the article file to a Journal. In my dissertation I did a bibtex file separately.
I get the error undefined control sequence <argument> \@listctr followed by a you can't use 'relax' after 'the'.
Does anyone know how to overcome this?
Thanks in advance!
PS: An enshortened version of my file with an example of my attempt of usage of bibitem is:

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb}

\begin{document}
\vspace{0.3cm}
\renewenvironment{thebibliography}{{\centerline{{\Large\bf R}{\large \bf EFERENCES}}}\begin{description}}
{\end{description}}
\renewcommand{\endthebibliography}{\end{description}}

\begin{thebibliography}
\bibitem{Simpson} Homer J. Simpson. \newblock Evergreen Terrace Printing Co., Springfield, SomewhereUSA, 1998
\end{thebibliography}

\end{document}
Last edited by feanor22 on Tue Jun 08, 2010 7:45 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.

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

\@listctr error

Post by localghost »

You have a parenthesis where there should be a brace at the end of thebibliography environment. Apart from this typo your code looks correct.


Thorsten
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: \@listctr error

Post by feanor22 »

I removed the unnecessary packages and corrected the parenthesis typo.
Thanks for pointing out.
It still doesn't work. Any other guess?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\@listctr error

Post by localghost »

I must admit that I only browsed your code. Redefinition of the thebibliography is not that simple. I suggest to use BibTeX with the bibliography style from your thesis. That seems to be the quickest solution.
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: \@listctr error

Post by feanor22 »

Dear localghost,

Indeed it would be easier because I'm already familiarized, but the journal wants the enumeration of the names in the paper as a last section.
I emailed my advisor, if he helps me I post here the solution

Thanks

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

Re: \@listctr error

Post by localghost »

I can't really follow you. Indeed the bibliography is a section as usual (just unnumbered), whether done with or without BibTeX. If you don't need to cite, you could use a simple list for your references. Useful information is a little bit sparsely in your posts.
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: \@listctr error

Post by feanor22 »

In the journal words:
Number the references (numbers in square brackets) in the list in the order in which they appear in the text.

I have to cite them so that a number appears in the text and in the list at the end of the article.
I could order them manually one by one by I'm trying to avoid it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\@listctr error

Post by localghost »

In this case it is easy. We have to pick up the necessary code from the »article« class file and modify it to fit your demands.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\makeatletter
\renewenvironment{thebibliography}[1]
     {\medskip\begin{center}\Large\scshape\bfseries\refname\end{center}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother

\begin{document}
  \blindtext
  \begin{thebibliography}{9}
    \bibitem{simpson:98} Homer J. Simpson. \newblock Evergreen Terrace Printing Co., Springfield, SomewhereUSA, 1998
  \end{thebibliography}
\end{document}
This matches for the most part the original environment except the first line to center the heading.
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: \@listctr error

Post by feanor22 »

Dear localghost,

Thank you very much!
I didn't understand what you did but it worked!

Many thanks!

Renato
feanor22
Posts: 32
Joined: Mon Oct 13, 2008 3:01 pm

Re: \@listctr error

Post by feanor22 »

Dear localghost,

Actually it is working but not as I expected.
The citations are not being put in order according to appearance.
They are being put alphabetically. Is there a simple way to revert it?

Thanks

Renato
Last edited by feanor22 on Wed Jun 09, 2010 6:00 pm, edited 1 time in total.
Post Reply