LaTeX forum ⇒ BibTeX, biblatex and biberBibliography with TeXnicCenter Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
eglucon
Posts: 11
Joined: Fri Jan 16, 2009 7:13 am

Bibliography with TeXnicCenter

Postby eglucon » Wed Feb 04, 2009 8:56 pm

I want to create a list of references in my article and I want to use BibTeX. I have read the tutorials and the posts in this forum but I am unable to create the bibliography with TeXnicCenter. Can anybody explain me, step by step, how to create the .bib files and run LaTeX and BibTeX with TeXnicCenter? I have run (twice) the examples posted in the forum and I get an empty .pdf file. Please help me!
Thank you !

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Wed Feb 04, 2009 9:35 pm

Setting up a bibliography with BibTeX is very easy in TeXnicCenter (TXC). Its build profiles use BibTeX unless you check the according box not to use it. Take the following example, which already shows the bibliography after at least two runs with a build profile in TXC.
  1. \begin{filecontents*}{xmpl.bib}
  2. @BOOK{lamport94,
  3. author={Leslie Lamport},
  4. title={\LaTeX\ - A Document Preparation System},
  5. note={User's Guide and Reference Manual},
  6. year={1994},
  7. publisher={Addison-Wesley},
  8. edition={Second}
  9. }
  10. @BOOK{knuth84,
  11. author={Donald Ervin Knuth},
  12. title={The \TeX book},
  13. year={1984},
  14. publisher={Addison-Wesley}
  15. }
  16. \end{filecontents*}
  17. \documentclass[11pt,a4paper]{article}
  18. \usepackage[T1]{fontenc}
  19. \usepackage[latin1]{inputenc}
  20. \usepackage[margin=2cm]{geometry}
  21. \usepackage{lmodern}
  22.  
  23. \begin{document}
  24. \nocite{*} % All bibliography items appear without citation in the text
  25. \bibliographystyle{unsrt}
  26. \bibliography{xmpl}
  27. \end{document}

As you can see, this is a very simple example to demonstrate the basics about creating a bibliography with BibTeX. The filecontents* environment creates a short sample bibliography file. Later you will create and edit such a file manually in TXC. Pay attention to the right suffix (*.bib). The way of citing references is kept untouched and should be well known.

As you already did some reading, the "Tame the Beast" document might help you in this issue if you haven't taken a look at it yet. The CTAN Catalogue has much more information about creating bibliographies with BibTeX and different bibliography styles [1].

More explanations and description are not possible in this place. All is said in these manuals which should help you in getting things work.

[1] The TeX Catalogue Online, Topic Index - Bibliography


Best regards
Thorsten¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

eglucon
Posts: 11
Joined: Fri Jan 16, 2009 7:13 am

Postby eglucon » Thu Feb 05, 2009 8:08 pm

Thank you very much! Your example and explanation worked perfectly.

Eglucon.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests