Dear Stefano and all, Coming back to setting Lyx to work with biblatex, I am not so sure how to make it works in my Lyx. I have tried the steps listed at http://wiki.lyx.org/BibTeX/Biblatex , which includes 1) Put the file biblatex.module in the layouts folder 2) Reconfigure Lyx - then restart 3) Setting the Preamble with a) \usepackage[style=authoryear,natbib=true,backend=bibtex]{biblatex} b) \usepackage[style=numeric,backend=bibtex]{biblatex} c) \addbibresource{<name of bib-file with .bib-extension>} 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) in a LyX note or comment 5) enter \printbibliography in ERT 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and change the bibtex 7) pass the option backend=biber
When I inserted the citation, Lyx managed to find it. But when I previewed it, the citation is not in author-year and no bibliography printed Did I miss any steps? I am using Lyx 2.0.6 Regards, Kamarul On Thu, Jan 9, 2014 at 9:26 PM, Stefano Franchi <[email protected]> wrote: > Hi Kamarul, > > in order to use author-year you need to use natbib. If you use bibtex as > your reference processor, all you need to do is to put > "\usepackage{natbib}" in your preamble (Document>>Settings>>Preamble) and > choose Natbib in Document>>Settings>>Bibliography. When you insert your > bibliography file (Insert>>List/TOC>>BibTeX Bibliography), you should > choose "plainnat" as a style. This gives you the basic setting. Many more > things are possible, including changing the style and so on. See the lyx > wiki page on bibliography for a first description of the package [1]. > There is also documentation for natbib in your latex installation (search > for the file natbib.pdf on your computer or type "texdoc natbib" at a > terminal). I enclosed a minimal example as a working LyX file (with a > minimal bib file). > > The above assumes you are using bibtex. If, instead, you are using > biblatex (like me), you should proceed differently. Write again and I'll > explain how (it is very easy). > > Also, please write to the whole lyx users list---your chances to get help > will increase substantially > > Cheers, > > Stefano > > > [1] http://wiki.lyx.org/BibTeX/Background#natbib > > > On Thu, Jan 9, 2014 at 12:26 AM, Kamarul Imran <[email protected]> wrote: > >> Dear Prof Franchi, >> >> I stumbled a post by you on setting the author-year citation in Lyx. I >> have problems in writing the citation using author-year style in Lyx. I >> have tried a few links and the suggested workaround on Lyx website, but >> nothing works. >> >> I guess the problems lie in the 'Document setting' and 'Tools' in Lyx. I >> am using Lyx 2.0.6 on Windows 8. My citation does not show properly and no >> bibliography generated, even though the bib files were correctly >> set/linked. >> >> Would you mind, list the correct (your working) setting in Lyx so that I >> might be able to test it on my laptop. >> >> Thanks very much. >> >> Best wishes, >> >> Kamarul Imran Musa >> Malaysia >> > > > > -- > __________________________________________________ > 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 > > [email protected] > http://stefano.cleinias.org >
