LaTeX forum ⇒ LyXbiblatex | A Variety of Problems Topic is solved

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

biblatex | A Variety of Problems

Postby nicol » Wed Jan 05, 2011 6:56 pm

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:
\usepackage[style=authoryear,natbib=true]{biblatex}
\bibliography{<C:/Documents and Settings/User/Desktop/TESI_ILARIA_FORMAT/biblioprova>}


BIBLIOGRAPHY FILE.bib
@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},
}


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.

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Wed Jan 05, 2011 7:49 pm

Check this line:
\bibliography{<C:/Documents and Settings/User/Desktop/TESI_ILARIA_FORMAT/biblioprova>}

Shouldn't it be:
\bibliography{C:\Documents and Settings\User\Desktop\TESI_ILARIA_FORMAT\biblioprova.bib}

I tested the code on my Debian machine, with absolute path to .bib file works fine.
Attachments
Test.zip
(1.33 KiB) Downloaded 345 times

nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Postby nicol » Wed Jan 05, 2011 8:19 pm

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

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Wed Jan 05, 2011 9:04 pm

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 425 times

nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Postby nicol » Wed Jan 05, 2011 9:23 pm

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?

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Wed Jan 05, 2011 10:31 pm

It is possible that spaces are problematic. If I remember well, you might try putting the path inside quotes, something like this:
"C:\Document and settings\User\Desktop\bibfile"

nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Postby nicol » Wed Jan 05, 2011 11:21 pm

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

Postby hugh_r_medal » Sat Jul 30, 2011 9:52 pm

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

Postby dolphin1335 » Mon Aug 01, 2011 5:30 pm

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

Postby matoos » Mon Feb 18, 2013 10:29 pm

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


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 6 guests