BibTeX, biblatex and biberBibliography with TeXnicCenter

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

Bibliography with TeXnicCenter

Post by eglucon »

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 !

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography with TeXnicCenter

Post by localghost »

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.

Code: Select all

\begin{filecontents*}{xmpl.bib}
@BOOK{lamport94,
  author={Leslie Lamport},
  title={\LaTeX\ - A Document Preparation System},
  note={User's Guide and Reference Manual},
  year={1994},
  publisher={Addison-Wesley},
  edition={Second}
}
@BOOK{knuth84,
  author={Donald Ervin Knuth},
  title={The \TeX book},
  year={1984},
  publisher={Addison-Wesley}
}
\end{filecontents*}
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[margin=2cm]{geometry}
\usepackage{lmodern}

\begin{document}
  \nocite{*}   % All bibliography items appear without citation in the text
  \bibliographystyle{unsrt}
  \bibliography{xmpl}
\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¹
eglucon
Posts: 11
Joined: Fri Jan 16, 2009 7:13 am

Re: Bibliography with TeXnicCenter

Post by eglucon »

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

Eglucon.
Post Reply