LaTeX forum ⇒ Generalno .bbl file generated

LaTeX specific issues not fitting into one of the other forums of this category.
philipmach
Posts: 6
Joined: Fri Oct 26, 2007 12:46 pm

no .bbl file generated

Postby philipmach » Fri Jul 25, 2008 10:17 am

I have a multichapter document, using \include for each chapter, and have just started to add in references, and no .bbl file is generated despite running LaTeX repeatedly. Here is an edited down version of the master file -- any ideas on what may be preventing the bbl file being generated?

In case it makes a difference, I'm using TeXshop 2.14 on Mac OS X.

  1. \documentclass[11pt, a5paper, openany]{book}
  2. \usepackage{times,amsmath,enumerate,moreverb,url}
  3. \usepackage[hyperfootnotes=false,pdftex,bookmarks=true]{hyperref}
  4. \usepackage{natbib}
  5. \usepackage{gensymb}
  6. \usepackage[english]{babel}
  7. \selectlanguage{english}
  8. \usepackage{graphicx}
  9. \usepackage{titlesec} %%% change Chapter Title layout
  10. \usepackage{lettrine} %%% DROP CAPS
  11. \usepackage[tight]{subfigure}
  12.  
  13. %%%% FOR a5paper
  14. \pdfpagewidth 148mm
  15. \pdfpageheight 210mm
  16.  
  17.  
  18. \addtolength{\topmargin}{-10mm} % was 20
  19. \addtolength{\textheight}{28mm} % was 43; 28
  20. \addtolength{\textwidth}{5mm} % was 12.5
  21. \addtolength\oddsidemargin{8mm} %
  22. \addtolength\evensidemargin{-13.5mm} %-13.5
  23.  
  24. %%%Allow easy switching between pdflatex and latex
  25. \newif\ifpdf
  26. \ifx\pdfoutput\undefined
  27. \pdffalse % we are not running PDFLaTeX
  28. \else
  29. \pdfoutput=1 % we are running PDFLaTeX
  30. \pdftrue
  31. \fi
  32.  
  33. \bibliographystyle{apalike}
  34.  
  35. \bibpunct{[}{]}{;}{a}{}{,}
  36.  
  37. \renewcommand{\ttdefault}{cmtt}
  38. \renewcommand{\baselinestretch}{1.1}
  39.  
  40. \begin{document}
  41.  
  42. %%%Allow easy switching between pdflatex and latex
  43. \ifpdf
  44. \DeclareGraphicsExtensions{.pdf, .jpg, .tif}
  45. \else
  46. \DeclareGraphicsExtensions{.eps, .jpg}
  47. \fi
  48.  
  49.  
  50. \frontmatter
  51. \begin{titlepage}
  52.  
  53. \begin{center}
  54. \Huge{\fontfamily{phv}\selectfont TITLE}\\
  55. \large{\fontfamily{phv}\selectfont Subtitle}\\
  56. ~\\
  57. \Large{\fontfamily{phv}\selectfont Author}
  58. \end{center}
  59.  
  60. \pagebreak
  61. \pagestyle{empty}
  62. ~
  63.  
  64. ~\\
  65. \vspace*{2.5cm}
  66. \begin{quote}
  67. Copyright boilerplate\\
  68. ~\\
  69. Copyright \copyright~Author 2008\\
  70. ~\\
  71. National Library of Australia Cataloguing-in-Publication entry:\\
  72.  
  73. \begin{tabular}{ll}
  74. Author: & etc.\\
  75. \end{tabular}
  76. \end{quote}
  77.  
  78. \end{titlepage}
  79. \thispagestyle{empty}
  80. ~
  81.  
  82. \noindent
  83. More front matter
  84. \subsection*{Title}
  85. \begin{itemize}
  86. \item stuff
  87. \end{itemize}
  88.  
  89. \setcounter{page}{1}
  90. \include{preface}
  91. \thispagestyle{empty}
  92. \pagestyle{headings}
  93. \tableofcontents
  94. \listoffigures
  95. \mainmatter
  96.  
  97. \hyphenpenalty=7500 % was 5000
  98. \tolerance=1000
  99.  
  100. \renewcommand{\sectionmark}[1]{\markright{#1}}
  101.  
  102. %%% change Chapter Title layout
  103. \titleformat{\chapter}
  104. {\normalfont\bfseries\Huge}{\Huge\thechapter}{1em}{}
  105.  
  106. \include{file1}
  107. \include{file2}
  108. % etc.
  109. \markboth{REFERENCES}{BOOK TITLE}
  110. \sectionmark{SUBTITLE}
  111. \renewcommand\bibname{References} % change title of references section
  112. \thispagestyle{empty}
  113. \pagestyle{myheadings}
  114. \addcontentsline{toc}{chapter}{References}
  115. \bibliography{bibfilename}
  116. \backmatter
  117. \end{document}

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Jul 25, 2008 1:30 pm

Hi,

did you use \cite inside your document? Try \nocite{*} to get all references of the bib file listed.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm
Location: Columbus, OH
Contact:

Postby Ted » Sat Jul 26, 2008 4:14 am

philipmach wrote:I have a multichapter document, using \include for each chapter, and have just started to add in references, and no .bbl file is generated despite running LaTeX repeatedly. Here is an edited down version of the master file -- any ideas on what may be preventing the bbl file being generated?

Remember that it's not LaTeX that generates the BBL, it's BibTeX.

  1. Run LaTeX to generate the AUX file. It adds a line every time it finds a cite.
  2. Then run BibTeX (executable: bibtex) to generate the BBL (from the AUX lines).
  3. Then run LaTeX again, which will include the BBL.
  4. Then run LaTeX again to make any updates corresponding to including the possibly massive BBL (e.g., updating your final page count on each of your pages, updating your ToC, etc.).

I don't recall if TeXShop attempts to do this automatically. If it doesn't, you need to make sure you run BibTeX whenever you need to update your BBL.
-- Ted [home/blog]

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Jul 26, 2008 4:45 am

Hi,

perhaps have a look at this tutorial: Getting to Grips with Latex - Bibliography Management, section Why won't Latex generate any output?.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

philipmach
Posts: 6
Joined: Fri Oct 26, 2007 12:46 pm

Postby philipmach » Sat Jul 26, 2008 10:09 am

Thanks for all the tutorial stuff. I don't know how often I've done exactly this in past but somehow the fact that TexShop doesn't understand when to invoke Bibtex had escaped me.

Link:
BBcode:
HTML:
Hide post links
Show post links

Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm
Location: Columbus, OH
Contact:

Postby Ted » Sat Jul 26, 2008 2:39 pm

philipmach wrote:Thanks for all the tutorial stuff. I don't know how often I've done exactly this in past but somehow the fact that TexShop doesn't understand when to invoke Bibtex had escaped me.

You might consider using the Perl script latexmk. I've never used it myself, but I know lots of people who seem to like it. It runs in the background and runs LaTeX, BibTeX, makeindex, etc. whenever necessary.

While TeXShop and the OS X 10.5 version of Preview auto-refresh, lots of other PDF viewers do not. Additionally, neither program are exceptional PDF viewers. You might want to give Skim a shot (ESPECIALLY if you stop using TeXShop (personally, I use Vim with the Vim-LaTeX suite to do my editing)). It's a terrific viewer, and it has lots of features that will make LaTeXers happy (support for inverse searching is one example).
-- Ted [home/blog]

Link:
BBcode:
HTML:
Hide post links
Show post links

LauraVosje
Posts: 1
Joined: Wed Aug 27, 2008 2:01 pm

Postby LauraVosje » Wed Aug 27, 2008 2:09 pm

Hi,

I had a similar problem. I use WinEdt/LEd + Miktex. My .bbl file did not contain any references so was practically empty and the \cite{} comments I added resulted in questionmarks like this: "[?]". For me, the problem was solved when I specified the whole path to the .bib file and did not add ".bib" behind the filename. Example:
\bibliography{D:/.../filename}

It's a little late to post this but I hope someone will benefit from it.

Laura

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Aug 27, 2008 2:11 pm

Hi Laura,

welcome to the board and thank you for contributing your solution!

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Wed Aug 27, 2008 3:16 pm

LauraVosje wrote:[...] It's a little late to post this but I hope someone will benefit from it. [...]

It's never to late to post a useful solution for a problem. Thanks for this initial contribution.


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


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

ashwini
Posts: 1
Joined: Thu Sep 18, 2008 10:03 am

Postby ashwini » Thu Sep 18, 2008 10:14 am

Hi,

I am using Miktex + Texmaker and even i faced the same problem while using the bibtex.

After running latex on the .tex file, .aux file was generated. But running Bibtex on the .tex file now did not generate the .bbl file.

The workaround:

1) Run Latex on the btest.tex file
Latex btest.tex
The following files are generated
btest.aux
btest.dvi
btest.log

2) Rename the btest.aux file to btest.tex.aux

3) Run Bibtex on the .tex file
bibtex btest.tex
The following files are generated:
btest.tex.bbl
btest.tex.blg

4) Rename the btest.tex.bbl file to btest.bbl.tex (probably you can skip this step)
5) Run Latex on the btest.tex file twice

The problem is fixed.

I am not sure if it works in your environment.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: Google [Bot] and 6 guests