LyXProblem with Biblatex

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
libuz
Posts: 7
Joined: Thu Oct 18, 2012 11:40 am

Problem with Biblatex

Post by libuz »

I am writing a report for my thesis. So, I started learning Lyx. But I am having trouble using Biblatex.
I carefully followed the instruction from http://wiki.lyx.org/BibTeX/Biblatex#toc2

Though there is no error, I am not able to get bibliography at all. I have attached the files, if anyone could check it.

About my files:
The main file is "Test.lyx" and citations are inserted in the file "Chapter 2". I want biblography to be shown in TOC.
Attachments
TestLyx.zip
(13.63 KiB) Downloaded 463 times

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

Problem with Biblatex

Post by cgnieder »

The information on the website you linked is outdated. If you have a recent TeX distribution (which I hope) then the default backend for biblatex is not »bibtex« any more but »biber«. I suggest to set it specifically anyway. Also it seems you have to give a full path to the bib file, but as you have done that already all should be fine here. My preamble to your file looks as follows (my path is a different one, of course). With biblatex \addbibresource{<bib file>} is preferred to \bibliography{<bib file>} but that shouldn't really matter:
lyx-biblatex1.png
lyx-biblatex1.png (23.85 KiB) Viewed 10873 times
You need to make sure that you're really using the tool you specified as backend:
lyx-biblatex2.png
lyx-biblatex2.png (25.69 KiB) Viewed 10873 times
If that doesn't work check the bibtex/biber log via "Document -> LaTeX Log -> Log Type: BiBTeX"

Regards
site moderator & package author
libuz
Posts: 7
Joined: Thu Oct 18, 2012 11:40 am

Problem with Biblatex

Post by libuz »

Thank you.
It solved the problem.

And, for getting Bibliography in TOC, this worked: \printbibliography[heading=bibintoc]
Last edited by cgnieder on Tue Oct 30, 2012 12:38 am, edited 1 time in total.
libuz
Posts: 7
Joined: Thu Oct 18, 2012 11:40 am

Re: Problem with Biblatex

Post by libuz »

Hi,
Sorry to disturb you again. Last time it worked for me. But I don't know why it is not working anymore. The citations are not working and no bibliography anymore. I haven't done any changes in the bibliography and the processor is still biber.
I want to know if there is problem in my Lyx or inside the file. Could somebody check it?
Attachments
TestLyx.zip
(8.32 KiB) Downloaded 305 times
abelle
Posts: 5
Joined: Fri Nov 07, 2014 4:25 am

Problem with Biblatex

Post by abelle »

Having the same sort of issues I checked out TestLyx.zip. It works fine on my Win7 LyX V2.1.2 after I added the .bib extension on the bibliographic file-spec eg: \addbibresource{C:/temp/A/ref.bib} and set <Documents><Settings...><Bibliography>Processor: to [biber].
It is unfortunate LyX/LaTeX does not report a faulty file spec for the .bib file, because a typo cost me days working out why BibLaTeX-biber wouldn't work :cry: It works now, but it was unnecessarily painful given it actually was as simple as following wiki.lyx.org/BibTeX/Biblatex. :D
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Problem with Biblatex

Post by Johannes_B »

LyX is a tool for experienced LaTeX users. That means knowing all the LaTeX basics.

Going to the base level, were every beginner can see and understand code, without hidden stuff, is much easier for debugging. Error messages are quite clear most of the times, sometimes, well not so clear to be honest.

Rule of thumb: If something with LyX isn't working quite well, go back to the ground for debugging and come back to LyX.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Problem with Biblatex

Post by scottkosty »

abelle wrote: It is unfortunate LyX/LaTeX does not report a faulty file spec for the .bib file,
I'm not sure if this is what you're talking about, but I'm trying hard to get a fix for the following issue into LyX 2.2:
http://www.lyx.org/trac/ticket/2757

Actually, the fix is done, but it relies on a different change that I'm working on that is necessary for the fix to go in.
abelle
Posts: 5
Joined: Fri Nov 07, 2014 4:25 am

Problem with Biblatex

Post by abelle »

Hi Scott,
I looked at http://www.lyx.org/trac/ticket/2757 and think my problem is simpler.
My observation was that the normal error messages that pop-up when type-setting a LyX document do not appear to notify that the .bib file does not exist (Which based on normal LyX behaviour I consider to be AN ERROR, not a warning level problem). From looking at posted example files (like this one in this thread), several had typos in the .bib filespec, so I suspect I am not alone.

I have found the LyX Progress/Debug Messages, and it does provide the following warnings like:
  • ..\..\src\LaTeX.cpp (656): Log line: LaTeX Warning: Empty bibliography on input line 108.
    ..\..\src\LaTeX.cpp (656): Log line: LaTeX Warning: There were undefined references.
    along with lots of citation warings eg:
    ..\..\src\LaTeX.cpp (656): Log line: LaTeX Warning: Citation 'Eco2003Wie-man-eine-wi' on page 2 undefined on input l
    ..\..\src\LaTeX.cpp (692): LaTeX Warning.
As Johanne's states LyX is a tool for experienced LaTeX users, which I am not: sorry :( I have however managed to get LaTeX-biber working with classicthesis.sty, so it is possible newbies to use :) - just time consuming and painful, which my posting aimed to help others avoid. Sorry I didn't know more earlier.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Problem with Biblatex

Post by scottkosty »

abelle wrote:Hi Scott,
I looked at http://www.lyx.org/trac/ticket/2757 and think my problem is simpler.
My observation was that the normal error messages that pop-up when type-setting a LyX document do not appear to notify that the .bib file does not exist (Which based on normal LyX behaviour I consider to be AN ERROR, not a warning level problem). From looking at posted example files (like this one in this thread), several had typos in the .bib filespec, so I suspect I am not alone.

I have found the LyX Progress/Debug Messages, and it does provide the following warnings like:
  • ..\..\src\LaTeX.cpp (656): Log line: LaTeX Warning: Empty bibliography on input line 108.
    ..\..\src\LaTeX.cpp (656): Log line: LaTeX Warning: There were undefined references.
    along with lots of citation warings eg:
    ..\..\src\LaTeX.cpp (656): Log line: LaTeX Warning: Citation 'Eco2003Wie-man-eine-wi' on page 2 undefined on input l
    ..\..\src\LaTeX.cpp (692): LaTeX Warning.
As Johanne's states LyX is a tool for experienced LaTeX users, which I am not: sorry :( I have however managed to get LaTeX-biber working with classicthesis.sty, so it is possible newbies to use :) - just time consuming and painful, which my posting aimed to help others avoid. Sorry I didn't know more earlier.
Well we would like to make LyX as user friendly as possible. If you have any ideas (including this one), please post bug reports or enhancement requests at http://www.lyx.org/trac

We really need this kind of feeback!
abelle
Posts: 5
Joined: Fri Nov 07, 2014 4:25 am

Problem with Biblatex

Post by abelle »

I appreciate your commitment to improving LyX Scott,
LyX gets better all the time, but is suffers like all software developed by the goodwill of a diaspora (NO CRITCISM). @Johannes is correct that LyX is a tool for experienced LaTeX users ;) , if qualified by "if you want more than it provides as default". The way LyX trapped me was being so WYSIWIG like I got in way over my head :o (expecting Word :twisted: level stupid user tolerance) and then realised mid PhD 'I just can't do it without LaTeX :ugeek: ' but then it was harder learning LaTeX through a LyX layer. :x If the LyX site front page boasted a big flashing sign saying :idea: Productivity enhancement for Experienced LaTeX users :idea: and then a smaller one "Much Easier than MS-Word for non-LaTeX users when pre-configured (by expert) for the every document type and content you require", I believe all/most negative press would disappear :-) Of course, correctly set up, LaTeX typesetting is still the best (if it picks up the ball with Unicode and bibLateX), so I am still using LyX, but it continues to teach me LaTeX! :lol:
Post Reply