LaTeX forum ⇒ TeXworksTeXworks, 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?

Postby skumar » Mon Jan 14, 2013 6:38 pm

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

Postby ichy_ban » Fri Jan 18, 2013 5:32 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:

  1. pdflatex latex_source_code.tex
  2. bibtex latex_source_code.aux
  3. pdflatex latex_source_code.tex
  4. pdflatex 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.

  1. \documentclass [letterpaper, 12pt, oneside] {report}
  2. \begin{document}
  3.  
  4. \chapter{Chaptertitle}
  5.  
  6. \section{Greetings}
  7.  
  8. \textsf{Hello}
  9.  
  10. \bibliographystyle{plain}
  11. \bibliography{Bibliografía}
  12.  
  13. \end{document}


  1. pdflatex latex_source_code.tex
  2. bibtex latex_source_code.aux
  3. pdflatex latex_source_code.tex
  4. pdflatex latex_source_code.tex
Last edited by cgnieder on Fri Jan 18, 2013 11:59 am, edited 1 time in total.
Reason: added code markup

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Fri Jan 18, 2013 12:01 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

Postby ichy_ban » Sat Jan 19, 2013 10:18 pm

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
Contact:

Postby josephwright » Thu Jan 24, 2013 10:07 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


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 1 guest