BibTeX, biblatex and biberReferences not printed

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
SaneAssasin
Posts: 14
Joined: Thu Feb 07, 2013 1:02 am

References not printed

Post by SaneAssasin »

Hello!

I want to write my next term paper using LaTeX, but referencing is preventing this from being a reality. I am running MiKTeX 2.9 and WinEdt 7.

A minimal working example:

Code: Select all

\documentclass[man]{apa6}
\usepackage[american]{babel}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{bibliography}

\title{Title}
\author{Author}
\affiliation{Affiliation}
\leftheader{Left Header}
\abstract{Abstract}
\keywords{Keywords}

\begin{document}
\maketitle
Body of the text.
\nocite{*}
\printbibliography
\end{document}
The bibliography.bib file is this one.

Code: Select all

@ARTICLE{flett_interaction_1999,
  author = {Flett, G L and Endler, N S and Fairlie, P},
  title = {The interaction model of anxiety and the threat of Quebec's separation from Canada},
  journal = {Journal of personality and social psychology},
  year = {1999},
  volume = {76},
  pages = {143--150},
  number = {1},
  month = jan,
}
I am running BibTeX by pressing "Ctrl + Shift + L", "Ctrl + Shift + B", then "Ctrl + Shift + L" twice. Then when I compile the document, it does not show a "References" sheet.

Thank you! I am absolutely in love with LaTeX's output, but this issue is preventing me from handing in these beautiful documents!
Attachments
Proposal.log
(29.66 KiB) Downloaded 1116 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

References not printed

Post by Johannes_B »

Hi,

you are telling the biblatex package that Biber is used instead of BibTeX. Just run Biber on the file (this is also told you by a warning in your log file). I'm not sure how to do this with WinEdt, but taking a look at the preferences might help.

By the way, the name of your bibliography should also contain the ending (so it would be bibliography.bib).

And next time, please prepare a proper minimal working example.


Best regards and welcome to the board
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

References not printed

Post by cgnieder »

Johannes_B wrote:And next time, please prepare a proper minimal working example.
What do you have against the one provided in the question? Compared to many others this one is pretty perfect IMHO.

To the question: Although running Biber instead of BibTeX is definitely preferable with biblatex as it offers a lot more possibilities you can also say backend=bibtex. And just to repeat: \addbibresource needs the file name including the ending.


Regards
site moderator & package author
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: References not printed

Post by Johannes_B »

@cgnieder: you are right, this one is pretty good. I can't remember, why I wrote that in this case.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
SaneAssasin
Posts: 14
Joined: Thu Feb 07, 2013 1:02 am

References not printed

Post by SaneAssasin »

cgnieder wrote:
Johannes_B wrote:And next time, please prepare a proper minimal working example.
What do have against the one provided in the question? Compared to many others this one is pretty perfect IMHO...

To the question: Although running biber instead of bibtex is definitely preferable with biblatex as it offers a lot more possibilities you can also say backend=bibtex. And just to repeat: \addbibresource needs the file name including the ending.


Regards
Thank you for the reply and thanks for clarifying that I had a correct minimal working example!

Okay, when I change the third line to

Code: Select all

 \usepackage[style=apa,sortcites=true,sorting=nyt,backend=bibtex]{biblatex}
and run LaTeX by pressing Ctrl + Shift + L , I receive the message

Code: Select all

! Package biblatex Error: backend=biber required by style.
Okay, when I switched it to the original line:

Code: Select all

 \usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
, but don't know how to run Biber with Winedt. I downloaded the .exe file from Biber's site, but don't see what to do now!

Thanks for your help, by the way! I appreciate it a lot. :)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

References not printed

Post by cgnieder »

Well, if the style demands »biber« you'll have to use it (or change the style...). I'm not really familiar with Winedt but you might try out the command line and run

Code: Select all

biber whateveryoucalledyourfile
from there (if your file is called whateveryoucalledyourfile.tex). This should at least work even if it isn't comfortable.

How to tell Winedt to use »biber« I have no idea...

Regards
site moderator & package author
SaneAssasin
Posts: 14
Joined: Thu Feb 07, 2013 1:02 am

References not printed

Post by SaneAssasin »

cgnieder wrote:Well, if the style demands »biber« you'll have to use it (or change the style...). I'm not really familiar with Winedt but you might try out the command line and run

Code: Select all

biber whateveryoucalledyourfile
from there (if your file is called whateveryoucalledyourfile.tex). This should at least work even if it isn't comfortable.

How to tell Winedt to use »biber« I have no idea...

Regards
Hello!

I downloaded Biber and copied it into the file where the .tex file is. I ran LaTeX, and then went to the command line and typed in biber Example and receive the following error:

Code: Select all

INFO - This is Biber 1.5
INFO - Logfile is 'Example.blg'
INFO - Reading 'Example.bcf'
WARN - Warning: Found biblatex control file version 2.2, expected version 2.3
INFO - Using all citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'bibliography.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'bibliography.bib'
INFO - Overriding locale 'English_United States.1252' default tailoring 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting 'entry' list 'nyt' keys
INFO - No sort tailoring available for locale 'English_United States.1252'
INFO - Writing 'Example.bbl' with encoding 'UTF-8'
INFO - Output to Example.bbl
INFO - WARNINGS: 1
I then updated Biblatex through the MiKTeX package manager, but receive the same message and when I run LaTeX two more times, and the PDFTexify, the sources still do not show in the document.

Any suggestions? I've attached the log files.

Think you could run the document in your Editor and see if you can get it to work? Perhaps that's where the error is.

Thank you again for helping!
Attachments
Example.log
(22.98 KiB) Downloaded 738 times
Example.bbl
(2.14 KiB) Downloaded 841 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: References not printed

Post by cgnieder »

I am not very familiar with MiKTeX as I seldom use it but I am quite sure there's no need to install biber manually with MiKTeX 2.9. In fact I just verified that with my installation. I think all you've got to do is use MiKTeX's package manager to get up to date and matching versions of biblatex and biber.

Regards
site moderator & package author
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

References not printed

Post by Johannes_B »

As far as I know, the 64-bit version of MikTeX does not include biber, but I'm not sure. Try updating everything again. Delete the .aux, .bcf and .bbl files, this might help.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
SaneAssasin
Posts: 14
Joined: Thu Feb 07, 2013 1:02 am

References not printed

Post by SaneAssasin »

Thank you for all your help!

Johannes was correct in that 64-bit MiKTeX does not include Biber. I downloaded the .exe file and placed this inside MiKTeX's bin folder.

Then I installed the macro from here. Then to get the references to print,

1) Ctrl + Shift + L
2) Biber button above
3) Ctrl + Shift + L twice
4) Compile
Post Reply