Re: Getting lyx to recognise biber
On Thu, Mar 22, 2012 at 6:41 AM, Roey Angel wrote: > To have it recognise it I needed to: > 1. insert a note at the end of the document and within it insert the Bibtex > bibliography. > 2. change the name of the .bib data base to not include any dots (my former > filename was something like data.base.name.bib and that doesn't work). I believe that's the standard way of using biblatex in LyX (besides pushing citations from external programs). No wonder the biblatex module was not working for you. I am glad to hear your problem is solved. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Getting lyx to recognise biber
Works great. Thanks!
Re: Getting lyx to recognise biber
Roey Angel wrote: > Now my only problem is that I'd like to change the global settings to > format all citations as (author year) rather than have to click on > each citation to change it. > > Is the any way to do this? Try \renewrobustcmd*{\citet}{% \@ifstar {\AtNextCite{\defcounter{maxnames}{999}}% \parencite} {\parencite}} in preamble. HTH Jürgen
Re: Getting lyx to recognise biber
Brilliant tip Stefano! Problem is *nearly* solved. It turns out that using zotero and lyz citations get pushed using \citet command, which makes citations look like 'author (year)'. I couldn't change that using the dialogue box because lyx wouldn't recognise my .bib database. To have it recognise it I needed to: 1. insert a note at the end of the document and within it insert the Bibtex bibliography. 2. change the name of the .bib data base to not include any dots (my former filename was something like data.base.name.bib and that doesn't work). Now my only problem is that I'd like to change the global settings to format all citations as (author year) rather than have to click on each citation to change it. Is the any way to do this? Thanks again, Roey
Re: Getting lyx to recognise biber
On Wed, Mar 21, 2012 at 5:52 PM, Roey Angel wrote: > Hi Stefano, > sure I'm using the biblatex module; that's the only way to get it working in > lyx. > I also use the natbib=true options and still get that wrong output. > When I hover over a citation in the text it says "no bibliography defined" and > when click on it I get the citation dialogue box but I can't change the > citation > style under formatting. > > I'm parsing citations from zotero through lyz plug-in and I wonder if that has > something to do with it. > > Roey If I understand your problem correctly, you want a a citation to appear as: this is some that cites a book (Lastname, 1990) which, in Latex with biblatex using the natbib option and a reference with Lastname1990 as key would be: this is some text that cites a book \citep{Lastname1990} Have you tried checking the Latex source in LyX (View>>View Source), to see whether you get the correct Latex command? If that is the case, then I would look at the output of the latex compilation (Document>>Latex log) for possible biblatex warnings If all else fails, could you make a prepare a minimal example with the wrong behavior (one paragraph, one citation) and post it? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Getting lyx to recognise biber
Hi Stefano, sure I'm using the biblatex module; that's the only way to get it working in lyx. I also use the natbib=true options and still get that wrong output. When I hover over a citation in the text it says "no bibliography defined" and when click on it I get the citation dialogue box but I can't change the citation style under formatting. I'm parsing citations from zotero through lyz plug-in and I wonder if that has something to do with it. Roey
Re: Getting lyx to recognise biber
Roey, have you tried using the biblatex module for LyX? That module allows you to use different natbib-like biblatex commands to change the format of your citation. I normally use biblatex's authoryear style (with the natbib option) and change the appearance of the citation depending on its context by right-clicking on the reference. Cheers, Stefano On Wed, Mar 21, 2012 at 2:35 PM, Roey Angel wrote: > Vielen Dank Jürgen! That totally did the trick. > lyx now processes everything correctly with biber. > Still my problem is the output. > no matter what style I choose, the citation in text always includes the names > outside brackets. So using style=authortitle I get > ...make up as much as 44% of the land surface Verstraete and Schwartz(1991) > and using style=numeric I get: > ...make up as much as 44% of the land surface Verstraete and Schwartz[1] > > > instead of > ...make up as much as 44% of the land surface (Verstraete and Schwartz 1991) > or > ...make up as much as 44% of the land surface [1] > > Any ideas how to solve that > > Thanks again, > Roey > -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Getting lyx to recognise biber
Vielen Dank Jürgen! That totally did the trick. lyx now processes everything correctly with biber. Still my problem is the output. no matter what style I choose, the citation in text always includes the names outside brackets. So using style=authortitle I get ...make up as much as 44% of the land surface Verstraete and Schwartz(1991) and using style=numeric I get: ...make up as much as 44% of the land surface Verstraete and Schwartz[1] instead of ...make up as much as 44% of the land surface (Verstraete and Schwartz 1991) or ...make up as much as 44% of the land surface [1] Any ideas how to solve that Thanks again, Roey
Re: Getting lyx to recognise biber
2012/3/21 Roey Angel : > I managed to get the lyx 2.0.3 working but I'm still getting that error > Package keyval Error: hash undefined. On the Web, I've read that people who were getting that error had an outdated biblatex version installed. Please try to update biblatex to the most recent version. Also note that biber versions are tighly related to biblatex versions. The respective documentations (biber and bilatex, resp.) tell you which version of each other they require. HTH, Jürgen
Re: Getting lyx to recognise biber
Thanks for the tip, Scott. I managed to get the lyx 2.0.3 working but I'm still getting that error Package keyval Error: hash undefined. Also, after I revert back to bibtex8 (by changing to backend=bibtex8 in the preamble and changing to Bibliography generator bibtex8 in Document setting) lyx won't process the bibliography. It doesnt give an error, it simply runs through and then gives a document without ref. list with the refs. in bibtex code format. To fix it I have to delete the \bibliography{} line in the preamble and then put it back. Any ideas why that it happening? The other problem I have that my references under bibtex8 look wrong. my preamble line is: \usepackage[style=authoryear,natbib=true,backend=bibtex8]{biblatex} but the document output looks like this ...make up as much as 44% of the land surface Verstraete and Schwartz(1991) instead of ...make up as much as 44% of the land surface (Verstraete and Schwartz 1991) as I would expect and as is shown in: http://wiki.lyx.org/BibTeX/Biblatex#using-biber Any suggestions will be more than welcome Roey
RE: Getting lyx to recognise biber
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of Roey Angel [angel.r...@gmail.com] Sent: Tuesday, March 20, 2012 8:48 PM >I'm using lyx 2.0.0 because that's what's available through the ubuntu >repository. >I could build it from source but only if that's what's causing the problem. There is an Ubuntu PPA: https://launchpad.net/~lyx-devel/+archive/release This allows you to easily install 2.0.3 without having to build from source. Scott
Re: Getting lyx to recognise biber
Thanks for the help, Jürgen. ok now that it's in path lyx recognises biber, but trying to process my document with it gives an error: Package keyval Error: hash undefined. I'm using lyx 2.0.0 because that's what's available through the ubuntu repository. I could build it from source but only if that's what's causing the problem. Roey
Re: Getting lyx to recognise biber
Roey Angel wrote: > I'm trying to get Lyx (2.0.0) to work with biber. You should update to LyX 2.0.3. Older versions have issues with recent biber releases. > I downloaded the latest version of biber 0.9.8 and now what?! > According to the LyX wiki, I should get a biber option on the pull-down > menu of my bibliography generation processor but all I have is: custom, > bibtex and bibtex8. You must execute Tools > Reconfigure LyX to make LyX aware of it. > Where am I supposed to put biber so that lyx would recognise it? You have to put it in a path (e.g. ~/bin). If "which biber" on the console returns a path, LyX should be able to find it. HTH Jürgen
Getting lyx to recognise biber
Hi I'm trying to get Lyx (2.0.0) to work with biber. I downloaded the latest version of biber 0.9.8 and now what?! According to the LyX wiki, I should get a biber option on the pull-down menu of my bibliography generation processor but all I have is: custom, bibtex and bibtex8. Where am I supposed to put biber so that lyx would recognise it? Thanks in advance, Roey p.s I'm running Kubuntu 11.10