LyXbiblatex | A Variety of Problems

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

biblatex | A Variety of Problems

Post by nicol »

Hi
I have "some" problems with LyX and BibLaTeX. I have to admit that I am a newbie and it is possible I have done some basic errors in my LyX document or in this message :oops: .

I have followed the points showed in the corresponding section of the LyX Wiki, but it does not work at all.
  1. I have put the file biblatex.module in the layouts folder
  2. I have run Tools -> Reconfigure, restart LyX and I have selected the module "Biblatex-citation-styles" from Document→Settings→Modules
  3. I have written \usepackage[style=authoryear,natbib=true]{biblatex} in the preamble
  4. In the preamble I have also written \bibliography{<C:/Documents and Settings/User/Desktop/TESI_ILARIA_FORMAT/biblioprova>} with the normal slash (/) instead of the backslash (\) because I am in Windows.
  5. I have inserted the bibliography in a LyX note at the beginning of the document
  6. I have put two citation in the text and, at the end, I have put the command \printbibliography in ERT
When I create the PDF the bibliography is empty and citations are in bold without any graph. The program seems to use only the key of the book and not the real data of the book such as the title and the author.

I attach the LyX text, the preamble, the Bibliography file and the PDF.

LYX text:
Title [bibliography in lix note]

1 Chapter 1
BlaBlaBlaMichel (2001)(It is the first citation)
Bla Bla Bla

2 Chapter 2
Bla Bla BlaJonesRadclifTabor1995(It is the second citation)
Bla Bla Bla Bla Bla Bla
(\printbibliography in ERT)
PREAMBLE:

Code: Select all

\usepackage[style=authoryear,natbib=true]{biblatex}
\bibliography{<C:/Documents and Settings/User/Desktop/TESI_ILARIA_FORMAT/biblioprova>}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
BIBLIOGRAPHY FILE.bib

Code: Select all

@book{critica,
author = {Michel, Foucault},
title = {Qu'est-ce que la critique?},
publisher = {Sylvestre Bonnard},
year = {2001},
location = {Milano}
}
@ARTICLE{JonesRadclifTabor1995,
author = {Bradford Jones and Benjamin Radcliffe and Charles Taber and Richard Timpone},
title = {Condorcet Winners and the Paradox of Voting},
journal = {American Political Science Review},
year = {1995},
volume = {89},
number = {1},
pages = {137-144},
owner = {pauljohn},
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
PDF OUTPUT:
Title
January 5, 2011
(next page)
Chapter 1
Chapter 1
BlaBlaBlacritica(in bold)
Bla Bla Bla
(next page)
Chapter 2
Chapter 2
Bla Bla BlaJonesRadclifTabor1995(in bold)
Bla Bla Bla Bla Bla Bla
(Next page)
Bibliography
As you can see there are no books and the citations are not true citations but they are only the keys in bold.

Thank you for any suggestion.
Last edited by nicol on Wed Jan 19, 2011 9:42 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

biblatex | A Variety of Problems

Post by meho_r »

Check this line:

Code: Select all

\bibliography{<C:/Documents and Settings/User/Desktop/TESI_ILARIA_FORMAT/biblioprova>}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Shouldn't it be:

Code: Select all

\bibliography{C:\Documents and Settings\User\Desktop\TESI_ILARIA_FORMAT\biblioprova.bib}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I tested the code on my Debian machine, with absolute path to .bib file works fine.
Attachments
Test.zip
(1.33 KiB) Downloaded 508 times
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Re: biblatex | A Variety of Problems

Post by nicol »

Thank you very much, but it does not work. :cry:

I have put the .bib so now I have \bibliography{C:\Documents and Settings\User\Desktop\TESI_ILARIA_FORMAT\biblioprova.bib} in the preamble, but it does not work jet.

I cannot open your test ... I do not know why. Lyx said me that your file is generated by another version and that the script lyx2lyx cannot convert it.

Thank you
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

biblatex | A Variety of Problems

Post by meho_r »

Oh, sorry, I accidentally used LyX 2 beta. Here's the file created with LyX 1.6.9. To simplify things, create a folder directly on C:\ and name it Test, so that the path is simple C:\Test. Then put test.16.lyx and biblioprova.bib from the attachment into Test folder and try to compile the document.
Attachments
Test.zip
(1.17 KiB) Downloaded 578 times
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Re: biblatex | A Variety of Problems

Post by nicol »

YESSSSSSSSSSSS
You are great! I have tried with .bib and it does not work, but after, without .bib and the (/), it works!!!!!!

GREAT!
Thank you
:D

... I do not know why but it works only in C:\Test and not in C:\Documents and Settings\User\Desktop\test ... maybe the spaces in {Document and Setting} create some problem?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

biblatex | A Variety of Problems

Post by meho_r »

It is possible that spaces are problematic. If I remember well, you might try putting the path inside quotes, something like this:

Code: Select all

"C:\Document and settings\User\Desktop\bibfile"
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Re: biblatex | A Variety of Problems

Post by nicol »

With quotes {"} and {'} it does not work.
However on C:\ it works :) so it is ok.
Thanks a lot :)
Cheers
hugh_r_medal
Posts: 1
Joined: Sat Jul 30, 2011 9:44 pm

Re: Lyx and Biblatex ... annoying

Post by hugh_r_medal »

Hi,
I am not able to get meho_r's example to work on Windows. Could someone help?

Thanks,
Hugh
dolphin1335
Posts: 3
Joined: Mon Aug 01, 2011 5:15 pm

Re: biblatex | A Variety of Problems

Post by dolphin1335 »

When I try the sample given I keep getting the error message of "uncontrolled sequence". I don't know if I miss out some important steps (I followed the steps stated at the first post)
matoos
Posts: 1
Joined: Mon Feb 18, 2013 10:28 pm

Re: biblatex | A Variety of Problems

Post by matoos »

Watch for the _ characters in directory and file names...
Post Reply