0

I have a problem with my bibliography. I use as Editor TexStudio.

When I write my book reference in this format:

    @book{1,
    author = {Davide Gould},
    title = {Complete Maya Programming: An Extensive Guide to MEL and C++ API},
    isbn = {1558608354},
    publisher = {Morgan Kaufmann},
    Year = {2003}
}

In the pdf it appears like this:

enter image description here

While I'd want the number 1 as label, not the "Gou03".

What is the problem?

Troy
  • 13,741

1 Answers1

1

Try:

\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
   @book{Gould,
    author = {Davide Gould},
    title = {Complete Maya Programming: An Extensive Guide to MEL and C++ API},
    isbn = {1558608354},
    publisher = {Morgan Kaufmann},
    Year = {2003},
    }
\end{filecontents}

\begin{document}
\nocite{*}
\bibliography{\jobname}
\bibliographystyle{plain}
\end{document} 

The label in the bib file has nothing to do with what is printed, whuch is decided by the bibliographic style used.

Denis
  • 5,267
  • It doesn't work :( – SnowyNe Mar 06 '18 at 14:26
  • @SnowyNe What do you mean? The code I have given compiles and gives what you expected. – Denis Mar 08 '18 at 10:04
  • If I use \bibliography{\nameOfMyBibliographyfile} it gives me the error: Undefined control sequence – SnowyNe Mar 10 '18 at 12:55
  • Again my code compiles. Ypu probably do not know about MWEB. The only thing you have to remember are the \bibliography{nameofypourfile} and \bibliographystyle{plain}.. No backslash before the name of your file. – Denis Mar 11 '18 at 15:10