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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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: 10360
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