TeXworksTeXworks, bibtex, and how to do it?

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?

Post by skumar »

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

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

ichy_ban
Posts: 2
Joined: Fri Jan 18, 2013 5:24 am

TeXworks, bibtex, and how to do it?

Post by ichy_ban »

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:

Code: Select all

pdflatex latex_source_code.tex
bibtex latex_source_code.aux
pdflatex latex_source_code.tex
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.

Code: Select all

\documentclass [letterpaper, 12pt, oneside] {report}
\begin{document}

\chapter{Chaptertitle}

\section{Greetings}

\textsf{Hello}
  
\bibliographystyle{plain}
\bibliography{Bibliografía}

\end{document}

Code: Select all

pdflatex latex_source_code.tex
bibtex latex_source_code.aux
pdflatex latex_source_code.tex
pdflatex latex_source_code.tex
Last edited by cgnieder on Fri Jan 18, 2013 11:59 am, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TeXworks, bibtex, and how to do it?

Post by cgnieder »

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
site moderator & package author
ichy_ban
Posts: 2
Joined: Fri Jan 18, 2013 5:24 am

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

Post by ichy_ban »

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

TeXworks, bibtex, and how to do it?

Post by josephwright »

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
Post Reply