## LaTeX forum ⇒ TeXworks ⇒ TeXworks, bibtex, and how to do it? Topic is solved

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
skumar
Posts: 2
Joined: Mon Jan 14, 2013 5:09 pm

### Re: TeXworks, bibtex, and how to do it?

Solved. My bib file did not have .bib extension. Adding that solved the issue!

Tags:

ichy_ban
Posts: 2
Joined: Fri Jan 18, 2013 5:24 am
Hello, I happen to have the same problem you had in TexWorks, and my file does have the .bib extension. I have compiled the file adding the command lines:

pdflatex latex_source_code.texbibtex latex_source_code.auxpdflatex latex_source_code.texpdflatex latex_source_code.tex

and the bibliography still doesn't appear. I'll add the code that I'm using in case anyone can help me.

\documentclass [letterpaper, 12pt, oneside] {report}\begin{document} \chapter{Chaptertitle} \section{Greetings} \textsf{Hello} \bibliographystyle{plain}\bibliography{Bibliografía} \end{document}

pdflatex latex_source_code.texbibtex latex_source_code.auxpdflatex latex_source_code.texpdflatex latex_source_code.tex
Last edited by cgnieder on Fri Jan 18, 2013 11:59 am, edited 1 time in total.

cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm
Hi ichy_ban,

Welcome to the LaTeX community.

your code does note cite anything so naturally you'll get an empty bibliography. Add at least one \cite{<bib key>} to get the entry for <cite key> into the bibliography or add \nocite{*} to add every entry to the bibliography.

BTW: it is better not to ask new questions at the end of already solved threads but to open a new topic thread. One can always link to the other one for reference.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

ichy_ban
Posts: 2
Joined: Fri Jan 18, 2013 5:24 am
Hello, I appreciate that you answered since this is my first time in a forum and I'll follow your advice about opening a new forum in future occassions.

I tried inserting the commands that you suggested but the bibliography still doesn't appear. I think the problem is that when I write the commands:

pdflatex latex_source_code.tex
bibtex latex_source_code.aux
pdflatex latex_source_code.tex
pdflatex latex_source_code.tex

Texworks doesn't recognize them, because it appears a "?" when it is running that line. I suppose that as this lines are not being run, the auxiliary archives are not being created and so nothing appears. I even tried writing:

latex latex_source_code.tex
bibtex latex_source_code.aux
latex latex_source_code.tex
latex latex_source_code.tex
dvi latex_source_code.dvi

But it still does not recognize the command. I'm not sure if I need a special package or something else, but I'll appreciate any counsel you could offer. Thanks for the help.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm
You should have \bibliography{XX} rather than \bibliography{XX.bib} in you LaTeX file. TeXworks (and other editors) work perfectly well for most people in running BibTeX, so we need to know a bit more about your set up to help.
Joseph Wright