GeneralNumbering Bibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Numbering Bibliography

Post by renno »

Hi all,

I am preparing my CV using "moderncv" package. In the package class file, the numbering of the bibliography is defined as follows:

Code: Select all

\newcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
which produces "[1]" numbering. I want to have "1." number, so what is the appropriate change. I could not fined anything on the web.

Any help is appreciated...

Thanks,
If there is no way, we will make one...
Hanibal

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Numbering Bibliography

Post by Stefan Kottwitz »

Hi renno,

this redefinition could help:

Code: Select all

\renewcommand*\bibliographyitemlabel{\arabic{enumiv}.}
Alternatively try

Code: Select all

\makeatletter
\renewcommand*\@biblabel[1]{#1.}
\makeatother
Stefan
LaTeX.org admin
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Numbering Bibliography

Post by renno »

Hi Stefan,

This

Code: Select all

\renewcommand*\bibliographyitemlabel{\arabic{enumiv}.}
produced "[1.]", however,

Code: Select all

\makeatletter
\renewcommand*\@biblabel[1]{#1.}
\makeatother
worked just fine and produced "1.". By the way, what is the difference between \renewcommand{}... and \renewcommand*...

Thanks Stefan for all your help,
If there is no way, we will make one...
Hanibal
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Numbering Bibliography

Post by Stefan Kottwitz »

\renewcommand* creates a short command. The parameter of such commands must not contain paragraph breaks, as result error messages may give a more precise position, that's why I got used to it and prefer this starred version if possible.

Stefan
LaTeX.org admin
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Re: Numbering Bibliography

Post by renno »

Thanks a million Stefan,

Regards,
If there is no way, we will make one...
Hanibal
Post Reply