Search code examples
latexbibtex

Why is my references section of my LaTeX document empty, and how can I change its name?


In my document I have to specify the references I'm using. I used this code in the preamble:

\bibliographystyle{abbrv}
\bibliography{main}

Where main is the .bib file from the same folder, and contains, for example:

@string{jgr = "J.~Geophys.~Res."}

@MISC{primes,
   author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin",
   note = "A strong form of the prime number theorem, 19th century",
   year = 1879
   }

@INBOOK{chicago,
   title = "The Chicago Manual of Style",
   publisher = "University of Chicago Press",
   edition = "Thirteenth",
   year = 1982,
   pages = "400--401",
   key = "Chicago"
   }

But at the References section nothing is displayed, when generating the .pdf. I have rebuild the .bib and the .tex file, without any changes.

And how can I change that default text, from References to Bibliografie or something else?


Solution

  • I think that you need to put \nocite{*} somewhere within your document -- putting it inside the preamble should cause LaTeX to throw a "cannot be used in preamble" error. If they're still not appearing within your document, is LaTeX giving you any errors and, if so, can you tell us what they are?

    To change the default text from "References" to whatever you would like, use the following command:

    \renewcommand{\bibsection}{\section*{insert_title_here}}
    

    Note that the asterisk after \section means that it won't be associated with a number. If you want it to be associated with a number, just remove the asterisk.