LaTeX forum ⇒ 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

Postby blifo » Wed Sep 23, 2015 5:35 am

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:
  1. \documentclass{article}
  2.  
  3. \begin{document}
  4.  
  5. \cite[p. 2]{bar}
  6.  
  7. \bibliography{foo}
  8. \bibliographystyle{plain}
  9.  
  10. \end{document}


Here is the content of my foo.bib file:
  1. @BOOK{bar,
  2. AUTHOR = "Star, R. M.",
  3. TITLE = "Foo Bar Baz",
  4. PUBLISHER = {MIT Press},
  5. ADDRESS = {Cambridge, MA},
  6. 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?

Tags:

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

Postby cgnieder » Wed Sep 23, 2015 11:35 am

blifo wrote:
  1. \bibliography{foo}
  2. \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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

Postby blifo » Wed Sep 23, 2015 7:22 pm

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

cgnieder wrote:
blifo wrote:
  1. \bibliography{foo}
  2. \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: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Wed Sep 23, 2015 7:41 pm

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:
  1. [1] Config.pm:324> INFO - This is Biber 2.1
  2. [1] Config.pm:327> INFO - Logfile is 'test.blg'
  3. [84] biber:276> INFO - === Mi Sep 23, 2015, 19:36:41
  4. [213] Utils.pm:162> ERROR - Cannot find control file 'test.bcf'! - did you pass the "backend=biber" option to BibLaTeX?
  5. [213] Biber.pm:110> INFO - ERRORS: 1

which clearly shows an error

With bibtex I get:
  1. This is BibTeX, Version 0.99d (TeX Live 2015)
  2. Capacity: max_strings=35307, hash_size=35307, hash_prime=30011
  3. The top-level auxiliary file: test.aux
  4. The style file: plain.bst
  5. Database file #1: foo.bib
  6. You've used 1 entry,

which shows that everything worked.
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

Postby blifo » Wed Sep 23, 2015 9:59 pm

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: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Thu Sep 24, 2015 9:49 am

I didn't mean the log file but the blg (=bib log) file.
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

Postby blifo » Thu Sep 24, 2015 1:30 pm

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: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Thu Sep 24, 2015 2:51 pm

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
  1. 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.
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

blifo
Posts: 8
Joined: Wed Sep 23, 2015 4:52 am

Postby blifo » Thu Sep 24, 2015 4:50 pm

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: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Thu Sep 24, 2015 5:23 pm

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

then
  1. 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…)
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 4 guests