LyXbiblatex | Bibliography with more than 35 Books fails

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
pyriand3r
Posts: 13
Joined: Fri Apr 15, 2011 1:16 pm

biblatex | Bibliography with more than 35 Books fails

Post by pyriand3r »

Hi there,

I'm having a very strange problem with LyX and biblatex. I made an bibliography file with JabRef which I integrate via biblatex package and entry in the header into to the tex file. But when there are more than 35 book entries in the biblatex file, LyX won't use it for the footnotes and bibliography. it is like the file is not there or couldn't be found. when i delete one entry, bib and footnotes are shown correctly. creating two bibliography files with less than 36 entries but both together more than 35 produces the same problem. Any suggestions?

I am using LyX 2.0.1 and JabRef 2.7.2 under Windows 7. Here is my header:

Code: Select all

%Kopf und Fußzeilen formatieren:
\lhead{}

\chead{}

\rhead{\thepage} % Seitenzahl rechts oben

\lfoot{}

\cfoot{}

\rfoot{}

%Linie unter Kopfzeile:
\renewcommand{\headrulewidth} {0.4pt} 

%Linie über Fußzeile:
\renewcommand{\footrulewidth} {0.0pt}

% Fußnoten formatieren:
\deffootnote{2em}{2em}{\makebox[2em][l]{\thefootnotemark}}

\usepackage{microtype} %Randausgleich verbessern

\date{} % Bereitstellung des aktuellen Datums

%Anpassung der Datumsangabe:
\newcommand{\monthword}[1]{\ifcase#1\or Januar\or Februar\or März\or April\or Mai\or Juni\or Juli\or August\or September\or Oktober\or November\or Dezember\fi}

%Überschriften formatieren:
\usepackage{sectsty} 
\sectionfont{\centering}  %Hauptüberschrift mittig
\subsectionfont{\centering} %2. Überschrift mittig

%Abbildungsbeschriftung ändern:
\addto\captionsngerman{
                                                  \renewcommand{\figurename}{Abb.}
                                                  \renewcommand{\tablename}{Tab.}
                                                 }

\usepackage[labelfont=bf]{caption}
\captionsetup{margin=10pt,font=small,labelfont=bf}

%Biblatex laden:
\usepackage[bibstyle=D:/Documents/uni-sachen/4.Semester/eigenerStil,citestyle=authortitle-ibid,natbib=true]{biblatex}

\nocite{*} % Alle Einträge der Bibliographie-Datei im Quellenverzeichnis anzeigen

%Biblatex-Stil verändern:
\renewcommand{\nametitledelim}{: } %Trennzeichen zwischen Autoren und Titel
\renewcommand{\multinamedelim}{/} %Trennzeichen zwischen Autoren
\renewcommand{\finalnamedelim}{/} %Trennzeichen zu letztem Autor
\renewcommand{\subtitlepunct}{ - } % Trennzeichen zwischen Titel und Untertitel
\renewcommand{\newunitpunct}{, } % allgemeines Trennzeichen
\renewcommand{\labelnamepunct}{: } % Trennzeichen zwischen Autor und Titel im Quellenverzeichnis
\renewcommand{\bibitemsep}{10.0pt} %Lücke zwischen einzelnen Quellen im Quellenverzeichnis

% Namenssortierung in Fußnoten und Bibliographie ändern in Nachname, Vorname:

%Fußnoten und Zitate:
%\DeclareNameFormat{default}{% Vollzitate
%\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}%
%\usebibmacro{name:andothers}}

%\DeclareNameFormat{labelname}{% alle anderen Zitate
%\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}%
%\usebibmacro{name:andothers}}

%im Literaturverzeichnis:
\DeclareNameFormat{sortname}{% Bibliographie
\iffirstinits
{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
{\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
\usebibmacro{name:andothers}} 

%Quellenverzeichnis laden:
\bibliography{D:/Documents/uni-sachen/4.Semester/Master-Arbeit/masterbib}

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

pyriand3r
Posts: 13
Joined: Fri Apr 15, 2011 1:16 pm

Re: biblatex | Bibliography with more than 35 Books fails

Post by pyriand3r »

first thanks for the new subject :)

so i have found a workaround: when i'm using bibtex8 instead of bibtex, it works with 36 books, but i don't know how long that will last.
I've tried biber too, but with biber my unique cite and reference-style fails... :(

so i think the restriction on 35 books was the maximum of bibtex. i hope bibtex8 will be working for my master-thesis, if not, i will have to work with biber i think.

Does anyone has an idea, why the output is different with biber? thought it would use bibtex as a source too...?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: biblatex | Bibliography with more than 35 Books fails

Post by meho_r »

AFAIK, there is no such a thing as limitation of number of references, be it bibtex or biblatex.

If you're using biblatex, it is only natural (and strongly recommended) to use biber as its backend. biber doesn't have some of bibtex's limitations (e.g., lack of unicode support).

If you're able to create an example, that would be great. Put some dummy text in main .lyx file, create a bibliography and put both files in a ZIP archive which you'll attach to your next post, so people here can do some testing.
pyriand3r
Posts: 13
Joined: Fri Apr 15, 2011 1:16 pm

biblatex | Bibliography with more than 35 Books fails

Post by pyriand3r »

good to know that there are no limitations, then there has to be another mistake (maybe on the user side, so i did something wrong)

here is a testfile i created. In the zip is the lyx-file, the bib-file and my unique biblatex-style.
http://www.nobadnews.de/uploads/testfile.zip

and here is the bibtex-log-output for the file (on my computer with bibtex-module):

Code: Select all

This is BibTeX, Version 0.99dThe top-level auxiliary file: testfile.aux
The style file: biblatex.bst
Database file #1: testfile-blx.bib
Database file #2: d:/testfile/masterbib.bib
Warning--I'm ignoring Farmelo1997's extra "year" field
--line 421 of file d:/testfile/masterbib.bib
Biblatex version: 1.3
Nontop top of string stack---this can't happen
*Please notify the BibTeX maintainer*
(That was a fatal error)
also i do not understand the warning about the extra year field... i checked the bib-file and ther is only one year field, like in the other books...

maybe i did something fundamental wrong from the beginning? :)
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: biblatex | Bibliography with more than 35 Books fails

Post by meho_r »

Is this output OK?
Attachments
testfile.pdf
(50.3 KiB) Downloaded 274 times
pyriand3r
Posts: 13
Joined: Fri Apr 15, 2011 1:16 pm

Re: biblatex | Bibliography with more than 35 Books fails

Post by pyriand3r »

damnit yes... more or less... the footnotes are missing some informations (year of book, etc.) but it looks like bibtex used the bib-file...

so, did you changed anything in the files? or did you used biber instead of bibtex? if not it looks like my system is broken...
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

biblatex | Bibliography with more than 35 Books fails

Post by meho_r »

Only couple of things:

1. I didn't have module for biblatex, so I removed it from Document > Settings > Modules. It is not really necessary to use biblatex.

2. Natbib was causing problems with compiling process, so I disabled it (Document > Settings > Bibliography; set to "Default").

3. In the Preamble, i just added backend=biber to \usepackage[...,backend=biber]{biblatex} line.

And (as not such a big surprise) I had to restart LyX once after saving all these changes to make document compile properly :roll:

I suspect natbib might be causing problems, since it is basically incompatible with biblatex. So, if you need natbib facilities, take a look at biblatex manual, there are explanations how to recreate them with "pure" biblatex.
pyriand3r
Posts: 13
Joined: Fri Apr 15, 2011 1:16 pm

biblatex | Bibliography with more than 35 Books fails

Post by pyriand3r »

okay... i followed your instructions... but it is not working.

1. I set the Bib-Output in Tools - Preferences - Output - LaTeX to biber.

2. I removed the biblatex-module from the modules-list.

3. I disabled natbib (set Documents - Settings - Bibliography to Default. Output is set to Standard and i removed the natbib=true option from the \usepackage[...]{biblatex} line

4. I added backend=biber to the \usepackage[...]{biblatex} line

5. saved document, recallibrated Lyx and retarted it

but the output is still not shown, the bib-file isn't used or cant be read or whatever...

Latex protocoll says following:

Code: Select all

LaTeX Warning: Citation 'Gesser2006' on page 1 undefined on input line 98.
to every citation...

think i have to reinstall everything? but its neither working on my Laptop nor my netbook... both same configuration, same result/error...
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

biblatex | Bibliography with more than 35 Books fails

Post by meho_r »

Please, follow the steps exactly as written. So, leave "Default" bibliography processor, don't change it to biber (except adding backend=biber in the preamble, of course), and leave natbib=true in the \usepackage[...]{biblatex} command. LyX can be ... problematic. If your document still doesn't compile, I suggest you export it to .tex and run pdflatex and biber manually, just to see if things work that way.

When I'm at my machine later this evening, I'll compile your example again and attach files for you to test.
pyriand3r
Posts: 13
Joined: Fri Apr 15, 2011 1:16 pm

biblatex | Bibliography with more than 35 Books fails

Post by pyriand3r »

:( not working... i did everything like you said, but it is still not working... i will deinstall and reinstall the whole lyx/miktex system now... maybe theres something broken...

on my netbook i got it working with texworks instead of lyx when i reencoded the bib-file to utf-8. but after that lyx gave me an error on every cite:

Code: Select all

LaTeX Error: Command \texeuro unavailable in encoding T1.
If the reinstall does not solve the problem i give up... i have to write my master-thesis, and not to play around with lyx... allthough it has to work somehow... its working for you so why not for me??? :(

thanks for the help so far!
Post Reply