BibTeX, biblatex and biberTeXMaker doesnt print my bibliography, but Sharelatex does

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by blifo »

Hi everybody,

I am writting an article and I got a weird problem: my texmaker doesnt print my bibliography, nor claims for any error.

Here is what I wrote in my test.tex file:

Code: Select all

\documentclass{article}

\begin{document}

\cite[p. 2]{bar}

\bibliography{foo}
	\bibliographystyle{plain}

\end{document}
Here is the content of my foo.bib file:

Code: Select all

@BOOK{bar,
	    AUTHOR = "Star, R. M.",
	    TITLE = "Foo Bar Baz",
	    PUBLISHER = {MIT Press},
	    ADDRESS = {Cambridge, MA},
	    YEAR = 1989}
My quick build is programmed to follow the routine: PdfLaTeX + BibLaTeX + PdfLaTeX (x2) + View Pdf. When I ask Texmaker to run the quick build, it returns no error, and the Pdf file has only
[?, p. 2]
as content. However, when I put exactly the same files in exactly the same paths in http://www.sharelatex.com, it correctly returns the content
[1, p. 2]

References
1. R. M. Star. Foo Bar Bras. MIT Press, Cambridge, MA, 1989.
which is what I expected TaXmaker to do.

Any idea of what is going wrong?

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by cgnieder »

blifo wrote:

Code: Select all

\bibliography{foo}
	\bibliographystyle{plain}
The code you're using is the way bibliographies are built using BibTeX but you're trying to build it with biblatex:
blifo wrote:My quick build is programmed to follow the routine: PdfLaTeX + BibLaTeX + PdfLaTeX (x2) + View Pdf.
Either run BibTeX on your file instead of biblatex or change the code to fit biblatex's requirements.

Regards
site moderator & package author
blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by blifo »

I tried it, but Texmaker still doesn't print my bibliography, nor numbers citations, nor returns any error message.
cgnieder wrote:
blifo wrote:

Code: Select all

\bibliography{foo}
	\bibliographystyle{plain}
The code you're using is the way bibliographies are built using BibTeX but you're trying to build it with biblatex:
blifo wrote:My quick build is programmed to follow the routine: PdfLaTeX + BibLaTeX + PdfLaTeX (x2) + View Pdf.
Either run BibTeX on your file instead of biblatex or change the code to fit biblatex's requirements.

Regards
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by cgnieder »

blifo wrote:I tried it
With the minimal file you posted earlier? Do you get any error messages or warnings? What's inside the bib log file (the one with the ending blg)?

Running our minimal example with biber (biblatex's default bibliography program) I get this:

Code: Select all

[1] Config.pm:324> INFO - This is Biber 2.1
[1] Config.pm:327> INFO - Logfile is 'test.blg'
[84] biber:276> INFO - === Mi Sep 23, 2015, 19:36:41
[213] Utils.pm:162> ERROR - Cannot find control file 'test.bcf'! - did you pass the "backend=biber" option to BibLaTeX?
[213] Biber.pm:110> INFO - ERRORS: 1
which clearly shows an error

With bibtex I get:

Code: Select all

This is BibTeX, Version 0.99d (TeX Live 2015)
Capacity: max_strings=35307, hash_size=35307, hash_prime=30011
The top-level auxiliary file: test.aux
The style file: plain.bst
Database file #1: foo.bib
You've used 1 entry,
which shows that everything worked.
site moderator & package author
blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by blifo »

Actually there is no stopping process due to critical errors. This is the messages I have access after compilation:
LOG FILE :
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9) (preloaded format=pdflatex 2015.9.21) 23 SEP 2015 16:49
entering extended mode
**test.tex
(test.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m> and hyphenation patterns for 69 languages loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Users\adm\Dropbox\University\Academic\My Files\A- Works\test\build\test.au
x")
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Warning: Citation `bar' on page 1 undefined on input line 5.
No file test.bbl.
[1
{C:/Users/adm/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
("C:\Users\adm\Dropbox\University\Academic\My Files\A- Works\test\build\test.au
x")
LaTeX Warning: There were undefined references.
)
Here is how much of TeX's memory you used:
207 strings out of 493673
2612 string characters out of 3141536
52455 words of memory out of 3000000
3638 multiletter control sequences out of 15000+200000
3948 words of font info for 15 fonts, out of 3000000 for 9000
1025 hyphenation exceptions out of 8191
23i,4n,21p,112b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmbx10.pfb>
<C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on "C:/Users/adm/Dropbox/University/Academic/My Files/A- Works/t
est/build/test.pdf" (1 page, 20805 bytes).
PDF statistics:
14 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: TeXMaker doesnt print my bibliography, but Sharelatex do

Post by cgnieder »

I didn't mean the log file but the blg (=bib log) file.
site moderator & package author
blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

Re: TeXMaker doesnt print my bibliography, but Sharelatex do

Post by blifo »

I can't find any bib log file. As I've being telling, I created the foo.bib file with the bibliography information described in the first post. I think I forgot to mention (maybe important): I use Texmaker with Miktex in Windows 7. Again: the same structure (location of files and the same files contents) gives the expected result when compiled in Sharelatex online. It also worked in linux (I asked a friend of mine to try it there).

Is it possible that my Miktex and/or Texmaker have wrong settings?

Thanks
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by cgnieder »

If there is no bib log file then the program that creates the bibliography has never been called. You may try it on the command line. Open a command line, navigate to the folder where your file is in (let's call in myfile.tex) and then enter

Code: Select all

bibtex myfile
and press the enter key. Then you should see if the program is installed and working.

It seems to me that the Quickbuild function of your editor isn't working properly, maybe due to some misconfiguration.
site moderator & package author
blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by blifo »

Done it. The command prompt returns the following message:
I couldn't open file name 'test.aux'
In case of misconfiguration of Texmaker/Miktex, how should I proceed?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TeXMaker doesnt print my bibliography, but Sharelatex does

Post by cgnieder »

If the aux file isn't present then even the LaTeX compilation seems to have failed. In the command line

Code: Select all

pdflatex myfile
then

Code: Select all

bibtex myfile
then another two times pdflatex should work.

As for the editor configuration I hope someone else can help (I have neither TeXmaker nor MiKTeX…)
site moderator & package author
Post Reply