BibTeX, biblatex and biber ⇒ \@listctr error
\@listctr error
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\@listctr error
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: \@listctr error
Thanks for pointing out.
It still doesn't work. Any other guess?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\@listctr error
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: \@listctr error
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: \@listctr error
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: \@listctr error
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.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\@listctr error
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}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: \@listctr error
Thank you very much!
I didn't understand what you did but it worked!
Many thanks!
Renato
Re: \@listctr error
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