Re: Author-year in Lyx
Dear Stefano, unfortunately I still can't get lyx to 1) show Author-Year , instead the bibtexkey shown 2) no bibliography listed at the end of the text I am pretty sure the problem happens during generation of the PDF file. The reasons being, I could see all the reference in my Lyx document, I could cite the selected reference. They are nicely shown in lyx file, and nicely shown as Author-Year. The only problem is when I click preview, the PDF only shows the citation but only in bibtexkey and no bibliography printed. Anything to do with the module? or Windows 8? or probably with Lyx 2.0.6? --, what have I done wrong? still clueless --- Regards, Kamarul On Sat, Jan 11, 2014 at 1:30 AM, Stefano Franchi stef...@tamu.edu wrote: On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak kim2u4...@gmail.com wrote: 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} you should really use biber instead of bibtex with bibblatex. It is not mandatory but I strongly recommend it. Many biblatex features only wotk with biber. So replace your line with: \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} (actually biber is the default, so you clould eliminate the backend clause completely, but just for clarity) b) \usepackage[style=numeric,backend=bibtex]{biblatex} This is wrong. You should only load biblatex once, with the style you want. So either load it with style=authoryear, or with style=numeric, but do not load it twice Stefano, yes, I used only \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} c) \addbibresource{name of bib-file with .bib-extension} You should have the complete path from root here, otherwise biblatex won't find you bib file. This is actually lyx's problem, not biblatex's. The problem is that when you instruct lix to typeset your file into a a pdf, lyx first copies your lyx-converted tex file to a temp directory, then it runs (pdf)latex and biber/bibtex on it. At that point, the relative path you had inserted in the preamble becomes meaningless since you are no longer in the original location. IN SHORT: always use absolute paths in your \addbibresource commands in the preamble. Stefano, i did use the complete the path and also the file name only 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) in a LyX note or comment good I can confirmed that I did this 5) enter \printbibliography in ERT good I can confirm that i did this 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and change the bibtex good I can confirm I did this 7) pass the option backend=biber see comment to point 3a above I did add this and without this 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 Let me know if it works. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Biblatex and LyX issue #was: Re: Author-year in Lyx
Thanks, Stefano. Here again what I followed up or tried: 1) Put the file biblatex.module in the layouts folder I guess the /.lyx/layouts/ is meant ? or is it documentsmoduleBiblatex-citation-styles I have selected this and added to 'chosen' in right box or both, which I tried ?? 2) toolsreconfigure restart lyx 3) documentsSettingsBibliography citation style: standard Processor: biber 3) preamble \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{name of bib-file with .bib-extension} in my case \addbibresource{PBRef.bib} tried also \addbibresource{/home/we/Photobiology2013/PBRFigFinal/PBRef.bib} 4) InsertList/TOCBibTeX Bibliography... in my case PBRef style: plain and put it in LyX note (turns yellow) 5) \printbibliography in ERT inserted after the yellow BibTeX Bibliography note 6) ToolsSettingsOutputLaTeX processor: biber I did all this including reconfigure, the terminal says Running: biber PB-Biber INFO - This is Biber 1.6 INFO - Logfile is 'PB-Biber.blg' INFO - Reading 'PB-Biber.bcf' INFO - Found 748 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib' for section 0 ERROR - Cannot find '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib'! INFO - ERRORS: 1 support/Systemcall.cpp (273): Systemcall: 'biber PB-Biber' finished with exit code 2 However, the PBRef.bib is there: so you can make up your own command by typing the following at a prompt, to get the complete path of file myfilename.bib $ls $PWD/myfilename.bib Dolphin tells me: /home/we/Photobiology2013/PBRFigFinal and your proposal: we@wolfgang:~/Photobiology2013/PBRFigFinal$ $ls $PWD/PBRef.bib bash: /home/we/Photobiology2013/PBRFigFinal/PBRef.bib: Keine Berechtigung (no admission) I changed the permission to include group, but still no change in output Ok, this is confusing. Are you getting the references in your pdf files? If so, it means that biber has found your bib file and has processed it correctly. If you are not getting the References section at the end, however, you may have forgotten and/or mispelled the /printbibliography command. Or latex may have choked on it due to some error in the bbl file. Can you confirm that: 1. You are getting the correct citations in the pdf file yes, I do 2. You have entered \printbibliography in ERT at the end of your document yes, I did 3. You do not see a corresponding References or Works cited section with your full references at the end of your pdf file No, I don't I should perhaps add, that I use Koma script (book) I tried with the normal book style, but get an error Der Absatzstil `Publishers' wurde nicht gefunden. (paragraph style `Publishers' was not found The same with other book styles except Koma I have taken out all entrances in the preamble except \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} %could also be % \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib} but still no Bibliography output in the pdf although the references are cited in the pdf output I tried furthermore ps output, same problem: citations alright, but no Bibliography output. I tried also a (almost) minimal example with no success either. May I include this example and the bib file going with it? It is quite short and might help you in finding out what I do wrong. Thanks for all the help for and patience with me Wolfgang % This file was created with JabRef 2.7b. % Encoding: ISO8859_1 @ARTICLE{Hennessey1991, author = {Hennessey, T. L. and Field, C. B.}, title = {Circadian rhythms in photosynthesis}, journal = {Plant Physiol}, year = {1991}, volume = {96}, pages = {831--836}, owner = {wolfgang}, timestamp = {2012.02.25} } @comment{jabref-meta: selector_publisher:} @comment{jabref-meta: selector_author:} @comment{jabref-meta: selector_journal:} @comment{jabref-meta: selector_keywords:} PB-BiberXX.lyx Description: application/lyx
Re: Author-year in Lyx
On Saturday 11 January 2014 09:34:17 KIM Musak wrote: Just saw this; its the same issue I have posted just now under Biblatex and LyX issue #was: Re: Author-year in Lyx Wolfgang Dear Stefano, unfortunately I still can't get lyx to 1) show Author-Year , instead the bibtexkey shown 2) no bibliography listed at the end of the text I am pretty sure the problem happens during generation of the PDF file. The reasons being, I could see all the reference in my Lyx document, I could cite the selected reference. They are nicely shown in lyx file, and nicely shown as Author-Year. The only problem is when I click preview, the PDF only shows the citation but only in bibtexkey and no bibliography printed. Anything to do with the module? or Windows 8? or probably with Lyx 2.0.6? --, what have I done wrong? still clueless --- Regards, Kamarul On Sat, Jan 11, 2014 at 1:30 AM, Stefano Franchi stef...@tamu.edu wrote: On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak kim2u4...@gmail.com wrote: 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} you should really use biber instead of bibtex with bibblatex. It is not mandatory but I strongly recommend it. Many biblatex features only wotk with biber. So replace your line with: \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} (actually biber is the default, so you clould eliminate the backend clause completely, but just for clarity) b) \usepackage[style=numeric,backend=bibtex]{biblatex} This is wrong. You should only load biblatex once, with the style you want. So either load it with style=authoryear, or with style=numeric, but do not load it twice Stefano, yes, I used only \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} c) \addbibresource{name of bib-file with .bib-extension} You should have the complete path from root here, otherwise biblatex won't find you bib file. This is actually lyx's problem, not biblatex's. The problem is that when you instruct lix to typeset your file into a a pdf, lyx first copies your lyx-converted tex file to a temp directory, then it runs (pdf)latex and biber/bibtex on it. At that point, the relative path you had inserted in the preamble becomes meaningless since you are no longer in the original location. IN SHORT: always use absolute paths in your \addbibresource commands in the preamble. Stefano, i did use the complete the path and also the file name only 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) in a LyX note or comment good I can confirmed that I did this 5) enter \printbibliography in ERT good I can confirm that i did this 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and change the bibtex good I can confirm I did this 7) pass the option backend=biber see comment to point 3a above I did add this and without this 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 Let me know if it works. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
Wolfgang, your file had an error in the preamble. You had \addbibresource{/home/stefano/Desktop/PBRef.bib} but the file you enclosed is called PBReffXX.bib Once I fixed the filename to PBRefXX.bib the file compiled fine, and the references and bibliography appeared in the pdf output (I also had to change the directory, of course). Stefano On Sat, Jan 11, 2014 at 4:25 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: Thanks, Stefano. Here again what I followed up or tried: 1) Put the file biblatex.module in the layouts folder I guess the /.lyx/layouts/ is meant ? or is it documentsmoduleBiblatex-citation-styles I have selected this and added to 'chosen' in right box or both, which I tried ?? 2) toolsreconfigure restart lyx 3) documentsSettingsBibliography citation style: standard Processor: biber 3) preamble \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{name of bib-file with .bib-extension} in my case \addbibresource{PBRef.bib} tried also \addbibresource{/home/we/Photobiology2013/PBRFigFinal/PBRef.bib} 4) InsertList/TOCBibTeX Bibliography... in my case PBRef style: plain and put it in LyX note (turns yellow) 5) \printbibliography in ERT inserted after the yellow BibTeX Bibliography note 6) ToolsSettingsOutputLaTeX processor: biber I did all this including reconfigure, the terminal says Running: biber PB-Biber INFO - This is Biber 1.6 INFO - Logfile is 'PB-Biber.blg' INFO - Reading 'PB-Biber.bcf' INFO - Found 748 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib' for section 0 ERROR - Cannot find '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib'! INFO - ERRORS: 1 support/Systemcall.cpp (273): Systemcall: 'biber PB-Biber' finished with exit code 2 However, the PBRef.bib is there: so you can make up your own command by typing the following at a prompt, to get the complete path of file myfilename.bib $ls $PWD/myfilename.bib Dolphin tells me: /home/we/Photobiology2013/PBRFigFinal and your proposal: we@wolfgang:~/Photobiology2013/PBRFigFinal$ $ls $PWD/PBRef.bib bash: /home/we/Photobiology2013/PBRFigFinal/PBRef.bib: Keine Berechtigung (no admission) I changed the permission to include group, but still no change in output Ok, this is confusing. Are you getting the references in your pdf files? If so, it means that biber has found your bib file and has processed it correctly. If you are not getting the References section at the end, however, you may have forgotten and/or mispelled the /printbibliography command. Or latex may have choked on it due to some error in the bbl file. Can you confirm that: 1. You are getting the correct citations in the pdf file yes, I do 2. You have entered \printbibliography in ERT at the end of your document yes, I did 3. You do not see a corresponding References or Works cited section with your full references at the end of your pdf file No, I don't I should perhaps add, that I use Koma script (book) I tried with the normal book style, but get an error Der Absatzstil `Publishers' wurde nicht gefunden. (paragraph style `Publishers' was not found The same with other book styles except Koma I have taken out all entrances in the preamble except \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} %could also be % \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib} but still no Bibliography output in the pdf although the references are cited in the pdf output I tried furthermore ps output, same problem: citations alright, but no Bibliography output. I tried also a (almost) minimal example with no success either. May I include this example and the bib file going with it? It is quite short and might help you in finding out what I do wrong. Thanks for all the help for and patience with me Wolfgang -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: I wonder whether my and Kim's difficulties with biber has to do with the versions of biber and biblatex. According to the biber handbook (Kime, UK) the latest are Biber version 1.8 Biblatex version 2.8 If I check via synaptic (debian) I have 0.9.9+release-1 for Biber and 1.7-1 for biblatex. Since I have installed texlive 2013 I searched for biber and found it to be in /usr/local/texlive/2013/bin/x86-64-linux/ /usr/local/texlive/2013/texmf-dist/doc/bibtex/ /usr/local/texlive/2013/texmf-dist/source/bibtex/ and biblatex in /usr/local/texlive/2013/texmf-dist/doc/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/csf/ /usr/local/texlive/2013/texmf-dist/bibtex/bst/ /usr/local/texlive/2013/texmf-dist/tex/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/bib/biblatex/ Two questions: How can I find out the version of these? How can I find out, that they are used by lyx Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Sat, Jan 11, 2014 at 9:10 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: I wonder whether my and Kim's difficulties with biber has to do with the versions of biber and biblatex. According to the biber handbook (Kime, UK) the latest are Biber version 1.8 Biblatex version 2.8 If I check via synaptic (debian) I have 0.9.9+release-1 for Biber and 1.7-1 for biblatex. Thos are very old version. I would not recommend using biblatex 2 Since I have installed texlive 2013 I searched for biber and found it to be in /usr/local/texlive/2013/bin/x86-64-linux/ /usr/local/texlive/2013/texmf-dist/doc/bibtex/ /usr/local/texlive/2013/texmf-dist/source/bibtex/ and biblatex in /usr/local/texlive/2013/texmf-dist/doc/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/csf/ /usr/local/texlive/2013/texmf-dist/bibtex/bst/ /usr/local/texlive/2013/texmf-dist/tex/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/bib/biblatex/ Two questions: How can I find out the version of these? for biber type biber --version at a prompt for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version How can I find out, that they are used by lyx If you have multiple versions of biber, it may get complicated. It all depends on your PATH variable, but there are additional complications if you start lyx from the GUI. If you start lyx from the command line (recommended), then lyx will find the biber program whose version you saw with biber --version and which is located in the output of which biber. If you start it from the GUI (double-clicking on a lyx file, using the F2 shortcut in Kde, etcetera), it all depends on how you set up KDE. I never got the hang of it, to be frank, so I always start it from the command line. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Author-year in Lyx
On Saturday 11 January 2014 15:54:44 stefano franchi wrote: Wolfgang, Kamarul, my guess is that you have the same problem. Namely, biber cannot find the bib file. Or perhaps biber is not launched at all. Try looking at the latex log (DocumentLaTeX log), and check out both the latex log proper and the bibtex log (the two choices in the dropdown menu). You should get an idea of what is going wrong. If biber cannot find the file, you should see something like the following in the bibtex log: [181] Biber.pm:3190 INFO - Looking for bibtex format file '[YOUR BIB FILENAME HERE]' for section 0 [252] Utils.pm:185 ERROR - Cannot find '[YOUR BIB FILENAME HERE]'! [253] Biber.pm:109 INFO - ERRORS: 1 To sort out if there is something wrong with your installation, try out the enclosed files: 1. first, copy the lisp.bb file to /tmp (that is the tmp directory directly under root, not in your home folder. It is generally writable on linux systems). 2. then try typesetting the lyx file from within lyx 3. If your result is identical to the pdf file I am enclosing we'll know your installation is all right and we can focus on what is wrong with your lyx files Doing 1 and 2 gives me in the pdf file: Testing biber and biblatex Here is a reference to McCarthy’s history of lisp (808387 ), followed by the same reference in traditional author-year-format (808387 ). compared to your pdf file: Testing biber and biblatex Here is a reference to McCarthy’s history of lisp (1978), followed by the same reference in traditional author-year-format (McCarthy, 1978). References McCarthy, John (1978). “History of LISP”. In: SIGPLAN Not. 13.8, pp. 217– 223. issn: 0362-1340. doi: http : / / doi . acm . org / 10 . 1145 / 960118 . 808387. That means, my installation is not working properly. Perhaps what I mentioned in my EMail Today 16:10:42? (old versions of biber and biblatex) So I should first find out which versions are in Texlive2013 (see my EMail Today 16:10:42 How to? Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Saturday 11 January 2014 16:23:41 stefano franchi wrote: On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: Two questions: How can I find out the version of these? for biber type biber --version it is 1.6 at a prompt for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version biblatex 2013/05/01 v2.6 How can I find out, that they are used by lyx If you have multiple versions of biber, it may get complicated. It all depends on your PATH variable, but there are additional complications if you start lyx from the GUI. If you start lyx from the command line (recommended), then lyx will find the biber program whose version you saw with biber --version and which is located in the output of which biber. If you start it from the GUI (double-clicking on a lyx file, using the F2 shortcut in Kde, etcetera), it all depends on how you set up KDE. I never got the hang of it, to be frank, so I always start it from the command line. so do I Thanks, Stefano, will try later. Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Sat, Jan 11, 2014 at 10:47 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: On Saturday 11 January 2014 16:23:41 stefano franchi wrote: On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: for biber type biber --version it is 1.6 for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version biblatex 2013/05/01 v2.6 You're all right then---biblatex 2.6 wants biber 1.6, so everything is fine on that front. I still think you may have path-related issues in the preamble. Do check the capitalization of your home directory (WE vs we) as per my previous message. Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
two suggested features
Dear LYX developers, I love the LYX software, but there are just a few minor problems that I've not been able to resolve. 1) I'm writing a book and I would like to place example calculations in shaded boxes which are clearly delineated from the main text. Some example calculations are quite long so page breaks are needed. However, it seems that page breaks are only allowed with the Box (simple frame, page breaks) options. It would be great if shaded boxes could also include page breaks. 2) I have tried to convince my students and colleagues to switch from MS Word to LYX. The one troublesome point for most of them is that certain key style files are not available for LYX. A website that used to supply REVTEX4.1 is no longer working. Many journals supply LATEX templates, and for someone who knows both LYX and LATEX well, it should be possible to create equivalent LYX templates. These features would make wonderful additions to the 2.1 release. The second addition in particular would immediately boost your user base. Sincerely, Baron Peters
Re: Author-year in Lyx
Dear Stefano, unfortunately I still can't get lyx to 1) show Author-Year , instead the bibtexkey shown 2) no bibliography listed at the end of the text I am pretty sure the problem happens during generation of the PDF file. The reasons being, I could see all the reference in my Lyx document, I could cite the selected reference. They are nicely shown in lyx file, and nicely shown as Author-Year. The only problem is when I click preview, the PDF only shows the citation but only in bibtexkey and no bibliography printed. Anything to do with the module? or Windows 8? or probably with Lyx 2.0.6? --, what have I done wrong? still clueless --- Regards, Kamarul On Sat, Jan 11, 2014 at 1:30 AM, Stefano Franchi stef...@tamu.edu wrote: On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak kim2u4...@gmail.com wrote: 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} you should really use biber instead of bibtex with bibblatex. It is not mandatory but I strongly recommend it. Many biblatex features only wotk with biber. So replace your line with: \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} (actually biber is the default, so you clould eliminate the backend clause completely, but just for clarity) b) \usepackage[style=numeric,backend=bibtex]{biblatex} This is wrong. You should only load biblatex once, with the style you want. So either load it with style=authoryear, or with style=numeric, but do not load it twice Stefano, yes, I used only \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} c) \addbibresource{name of bib-file with .bib-extension} You should have the complete path from root here, otherwise biblatex won't find you bib file. This is actually lyx's problem, not biblatex's. The problem is that when you instruct lix to typeset your file into a a pdf, lyx first copies your lyx-converted tex file to a temp directory, then it runs (pdf)latex and biber/bibtex on it. At that point, the relative path you had inserted in the preamble becomes meaningless since you are no longer in the original location. IN SHORT: always use absolute paths in your \addbibresource commands in the preamble. Stefano, i did use the complete the path and also the file name only 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) in a LyX note or comment good I can confirmed that I did this 5) enter \printbibliography in ERT good I can confirm that i did this 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and change the bibtex good I can confirm I did this 7) pass the option backend=biber see comment to point 3a above I did add this and without this 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 Let me know if it works. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Biblatex and LyX issue #was: Re: Author-year in Lyx
Thanks, Stefano. Here again what I followed up or tried: 1) Put the file biblatex.module in the layouts folder I guess the /.lyx/layouts/ is meant ? or is it documentsmoduleBiblatex-citation-styles I have selected this and added to 'chosen' in right box or both, which I tried ?? 2) toolsreconfigure restart lyx 3) documentsSettingsBibliography citation style: standard Processor: biber 3) preamble \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{name of bib-file with .bib-extension} in my case \addbibresource{PBRef.bib} tried also \addbibresource{/home/we/Photobiology2013/PBRFigFinal/PBRef.bib} 4) InsertList/TOCBibTeX Bibliography... in my case PBRef style: plain and put it in LyX note (turns yellow) 5) \printbibliography in ERT inserted after the yellow BibTeX Bibliography note 6) ToolsSettingsOutputLaTeX processor: biber I did all this including reconfigure, the terminal says Running: biber PB-Biber INFO - This is Biber 1.6 INFO - Logfile is 'PB-Biber.blg' INFO - Reading 'PB-Biber.bcf' INFO - Found 748 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib' for section 0 ERROR - Cannot find '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib'! INFO - ERRORS: 1 support/Systemcall.cpp (273): Systemcall: 'biber PB-Biber' finished with exit code 2 However, the PBRef.bib is there: so you can make up your own command by typing the following at a prompt, to get the complete path of file myfilename.bib $ls $PWD/myfilename.bib Dolphin tells me: /home/we/Photobiology2013/PBRFigFinal and your proposal: we@wolfgang:~/Photobiology2013/PBRFigFinal$ $ls $PWD/PBRef.bib bash: /home/we/Photobiology2013/PBRFigFinal/PBRef.bib: Keine Berechtigung (no admission) I changed the permission to include group, but still no change in output Ok, this is confusing. Are you getting the references in your pdf files? If so, it means that biber has found your bib file and has processed it correctly. If you are not getting the References section at the end, however, you may have forgotten and/or mispelled the /printbibliography command. Or latex may have choked on it due to some error in the bbl file. Can you confirm that: 1. You are getting the correct citations in the pdf file yes, I do 2. You have entered \printbibliography in ERT at the end of your document yes, I did 3. You do not see a corresponding References or Works cited section with your full references at the end of your pdf file No, I don't I should perhaps add, that I use Koma script (book) I tried with the normal book style, but get an error Der Absatzstil `Publishers' wurde nicht gefunden. (paragraph style `Publishers' was not found The same with other book styles except Koma I have taken out all entrances in the preamble except \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} %could also be % \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib} but still no Bibliography output in the pdf although the references are cited in the pdf output I tried furthermore ps output, same problem: citations alright, but no Bibliography output. I tried also a (almost) minimal example with no success either. May I include this example and the bib file going with it? It is quite short and might help you in finding out what I do wrong. Thanks for all the help for and patience with me Wolfgang % This file was created with JabRef 2.7b. % Encoding: ISO8859_1 @ARTICLE{Hennessey1991, author = {Hennessey, T. L. and Field, C. B.}, title = {Circadian rhythms in photosynthesis}, journal = {Plant Physiol}, year = {1991}, volume = {96}, pages = {831--836}, owner = {wolfgang}, timestamp = {2012.02.25} } @comment{jabref-meta: selector_publisher:} @comment{jabref-meta: selector_author:} @comment{jabref-meta: selector_journal:} @comment{jabref-meta: selector_keywords:} PB-BiberXX.lyx Description: application/lyx
Re: Author-year in Lyx
On Saturday 11 January 2014 09:34:17 KIM Musak wrote: Just saw this; its the same issue I have posted just now under Biblatex and LyX issue #was: Re: Author-year in Lyx Wolfgang Dear Stefano, unfortunately I still can't get lyx to 1) show Author-Year , instead the bibtexkey shown 2) no bibliography listed at the end of the text I am pretty sure the problem happens during generation of the PDF file. The reasons being, I could see all the reference in my Lyx document, I could cite the selected reference. They are nicely shown in lyx file, and nicely shown as Author-Year. The only problem is when I click preview, the PDF only shows the citation but only in bibtexkey and no bibliography printed. Anything to do with the module? or Windows 8? or probably with Lyx 2.0.6? --, what have I done wrong? still clueless --- Regards, Kamarul On Sat, Jan 11, 2014 at 1:30 AM, Stefano Franchi stef...@tamu.edu wrote: On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak kim2u4...@gmail.com wrote: 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} you should really use biber instead of bibtex with bibblatex. It is not mandatory but I strongly recommend it. Many biblatex features only wotk with biber. So replace your line with: \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} (actually biber is the default, so you clould eliminate the backend clause completely, but just for clarity) b) \usepackage[style=numeric,backend=bibtex]{biblatex} This is wrong. You should only load biblatex once, with the style you want. So either load it with style=authoryear, or with style=numeric, but do not load it twice Stefano, yes, I used only \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} c) \addbibresource{name of bib-file with .bib-extension} You should have the complete path from root here, otherwise biblatex won't find you bib file. This is actually lyx's problem, not biblatex's. The problem is that when you instruct lix to typeset your file into a a pdf, lyx first copies your lyx-converted tex file to a temp directory, then it runs (pdf)latex and biber/bibtex on it. At that point, the relative path you had inserted in the preamble becomes meaningless since you are no longer in the original location. IN SHORT: always use absolute paths in your \addbibresource commands in the preamble. Stefano, i did use the complete the path and also the file name only 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) in a LyX note or comment good I can confirmed that I did this 5) enter \printbibliography in ERT good I can confirm that i did this 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and change the bibtex good I can confirm I did this 7) pass the option backend=biber see comment to point 3a above I did add this and without this 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 Let me know if it works. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
Wolfgang, your file had an error in the preamble. You had \addbibresource{/home/stefano/Desktop/PBRef.bib} but the file you enclosed is called PBReffXX.bib Once I fixed the filename to PBRefXX.bib the file compiled fine, and the references and bibliography appeared in the pdf output (I also had to change the directory, of course). Stefano On Sat, Jan 11, 2014 at 4:25 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: Thanks, Stefano. Here again what I followed up or tried: 1) Put the file biblatex.module in the layouts folder I guess the /.lyx/layouts/ is meant ? or is it documentsmoduleBiblatex-citation-styles I have selected this and added to 'chosen' in right box or both, which I tried ?? 2) toolsreconfigure restart lyx 3) documentsSettingsBibliography citation style: standard Processor: biber 3) preamble \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{name of bib-file with .bib-extension} in my case \addbibresource{PBRef.bib} tried also \addbibresource{/home/we/Photobiology2013/PBRFigFinal/PBRef.bib} 4) InsertList/TOCBibTeX Bibliography... in my case PBRef style: plain and put it in LyX note (turns yellow) 5) \printbibliography in ERT inserted after the yellow BibTeX Bibliography note 6) ToolsSettingsOutputLaTeX processor: biber I did all this including reconfigure, the terminal says Running: biber PB-Biber INFO - This is Biber 1.6 INFO - Logfile is 'PB-Biber.blg' INFO - Reading 'PB-Biber.bcf' INFO - Found 748 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib' for section 0 ERROR - Cannot find '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib'! INFO - ERRORS: 1 support/Systemcall.cpp (273): Systemcall: 'biber PB-Biber' finished with exit code 2 However, the PBRef.bib is there: so you can make up your own command by typing the following at a prompt, to get the complete path of file myfilename.bib $ls $PWD/myfilename.bib Dolphin tells me: /home/we/Photobiology2013/PBRFigFinal and your proposal: we@wolfgang:~/Photobiology2013/PBRFigFinal$ $ls $PWD/PBRef.bib bash: /home/we/Photobiology2013/PBRFigFinal/PBRef.bib: Keine Berechtigung (no admission) I changed the permission to include group, but still no change in output Ok, this is confusing. Are you getting the references in your pdf files? If so, it means that biber has found your bib file and has processed it correctly. If you are not getting the References section at the end, however, you may have forgotten and/or mispelled the /printbibliography command. Or latex may have choked on it due to some error in the bbl file. Can you confirm that: 1. You are getting the correct citations in the pdf file yes, I do 2. You have entered \printbibliography in ERT at the end of your document yes, I did 3. You do not see a corresponding References or Works cited section with your full references at the end of your pdf file No, I don't I should perhaps add, that I use Koma script (book) I tried with the normal book style, but get an error Der Absatzstil `Publishers' wurde nicht gefunden. (paragraph style `Publishers' was not found The same with other book styles except Koma I have taken out all entrances in the preamble except \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} %could also be % \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib} but still no Bibliography output in the pdf although the references are cited in the pdf output I tried furthermore ps output, same problem: citations alright, but no Bibliography output. I tried also a (almost) minimal example with no success either. May I include this example and the bib file going with it? It is quite short and might help you in finding out what I do wrong. Thanks for all the help for and patience with me Wolfgang -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: I wonder whether my and Kim's difficulties with biber has to do with the versions of biber and biblatex. According to the biber handbook (Kime, UK) the latest are Biber version 1.8 Biblatex version 2.8 If I check via synaptic (debian) I have 0.9.9+release-1 for Biber and 1.7-1 for biblatex. Since I have installed texlive 2013 I searched for biber and found it to be in /usr/local/texlive/2013/bin/x86-64-linux/ /usr/local/texlive/2013/texmf-dist/doc/bibtex/ /usr/local/texlive/2013/texmf-dist/source/bibtex/ and biblatex in /usr/local/texlive/2013/texmf-dist/doc/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/csf/ /usr/local/texlive/2013/texmf-dist/bibtex/bst/ /usr/local/texlive/2013/texmf-dist/tex/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/bib/biblatex/ Two questions: How can I find out the version of these? How can I find out, that they are used by lyx Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Sat, Jan 11, 2014 at 9:10 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: I wonder whether my and Kim's difficulties with biber has to do with the versions of biber and biblatex. According to the biber handbook (Kime, UK) the latest are Biber version 1.8 Biblatex version 2.8 If I check via synaptic (debian) I have 0.9.9+release-1 for Biber and 1.7-1 for biblatex. Thos are very old version. I would not recommend using biblatex 2 Since I have installed texlive 2013 I searched for biber and found it to be in /usr/local/texlive/2013/bin/x86-64-linux/ /usr/local/texlive/2013/texmf-dist/doc/bibtex/ /usr/local/texlive/2013/texmf-dist/source/bibtex/ and biblatex in /usr/local/texlive/2013/texmf-dist/doc/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/csf/ /usr/local/texlive/2013/texmf-dist/bibtex/bst/ /usr/local/texlive/2013/texmf-dist/tex/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/bib/biblatex/ Two questions: How can I find out the version of these? for biber type biber --version at a prompt for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version How can I find out, that they are used by lyx If you have multiple versions of biber, it may get complicated. It all depends on your PATH variable, but there are additional complications if you start lyx from the GUI. If you start lyx from the command line (recommended), then lyx will find the biber program whose version you saw with biber --version and which is located in the output of which biber. If you start it from the GUI (double-clicking on a lyx file, using the F2 shortcut in Kde, etcetera), it all depends on how you set up KDE. I never got the hang of it, to be frank, so I always start it from the command line. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Author-year in Lyx
On Saturday 11 January 2014 15:54:44 stefano franchi wrote: Wolfgang, Kamarul, my guess is that you have the same problem. Namely, biber cannot find the bib file. Or perhaps biber is not launched at all. Try looking at the latex log (DocumentLaTeX log), and check out both the latex log proper and the bibtex log (the two choices in the dropdown menu). You should get an idea of what is going wrong. If biber cannot find the file, you should see something like the following in the bibtex log: [181] Biber.pm:3190 INFO - Looking for bibtex format file '[YOUR BIB FILENAME HERE]' for section 0 [252] Utils.pm:185 ERROR - Cannot find '[YOUR BIB FILENAME HERE]'! [253] Biber.pm:109 INFO - ERRORS: 1 To sort out if there is something wrong with your installation, try out the enclosed files: 1. first, copy the lisp.bb file to /tmp (that is the tmp directory directly under root, not in your home folder. It is generally writable on linux systems). 2. then try typesetting the lyx file from within lyx 3. If your result is identical to the pdf file I am enclosing we'll know your installation is all right and we can focus on what is wrong with your lyx files Doing 1 and 2 gives me in the pdf file: Testing biber and biblatex Here is a reference to McCarthy’s history of lisp (808387 ), followed by the same reference in traditional author-year-format (808387 ). compared to your pdf file: Testing biber and biblatex Here is a reference to McCarthy’s history of lisp (1978), followed by the same reference in traditional author-year-format (McCarthy, 1978). References McCarthy, John (1978). “History of LISP”. In: SIGPLAN Not. 13.8, pp. 217– 223. issn: 0362-1340. doi: http : / / doi . acm . org / 10 . 1145 / 960118 . 808387. That means, my installation is not working properly. Perhaps what I mentioned in my EMail Today 16:10:42? (old versions of biber and biblatex) So I should first find out which versions are in Texlive2013 (see my EMail Today 16:10:42 How to? Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Saturday 11 January 2014 16:23:41 stefano franchi wrote: On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: Two questions: How can I find out the version of these? for biber type biber --version it is 1.6 at a prompt for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version biblatex 2013/05/01 v2.6 How can I find out, that they are used by lyx If you have multiple versions of biber, it may get complicated. It all depends on your PATH variable, but there are additional complications if you start lyx from the GUI. If you start lyx from the command line (recommended), then lyx will find the biber program whose version you saw with biber --version and which is located in the output of which biber. If you start it from the GUI (double-clicking on a lyx file, using the F2 shortcut in Kde, etcetera), it all depends on how you set up KDE. I never got the hang of it, to be frank, so I always start it from the command line. so do I Thanks, Stefano, will try later. Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Sat, Jan 11, 2014 at 10:47 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: On Saturday 11 January 2014 16:23:41 stefano franchi wrote: On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: for biber type biber --version it is 1.6 for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version biblatex 2013/05/01 v2.6 You're all right then---biblatex 2.6 wants biber 1.6, so everything is fine on that front. I still think you may have path-related issues in the preamble. Do check the capitalization of your home directory (WE vs we) as per my previous message. Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
two suggested features
Dear LYX developers, I love the LYX software, but there are just a few minor problems that I've not been able to resolve. 1) I'm writing a book and I would like to place example calculations in shaded boxes which are clearly delineated from the main text. Some example calculations are quite long so page breaks are needed. However, it seems that page breaks are only allowed with the Box (simple frame, page breaks) options. It would be great if shaded boxes could also include page breaks. 2) I have tried to convince my students and colleagues to switch from MS Word to LYX. The one troublesome point for most of them is that certain key style files are not available for LYX. A website that used to supply REVTEX4.1 is no longer working. Many journals supply LATEX templates, and for someone who knows both LYX and LATEX well, it should be possible to create equivalent LYX templates. These features would make wonderful additions to the 2.1 release. The second addition in particular would immediately boost your user base. Sincerely, Baron Peters
Re: Author-year in Lyx
Dear Stefano, unfortunately I still can't get lyx to 1) show Author-Year , instead the bibtexkey shown 2) no bibliography listed at the end of the text I am pretty sure the problem happens during generation of the PDF file. The reasons being, I could see all the reference in my Lyx document, I could cite the selected reference. They are nicely shown in lyx file, and nicely shown as Author-Year. The only problem is when I click preview, the PDF only shows the citation but only in bibtexkey and no bibliography printed. Anything to do with the module? or Windows 8? or probably with Lyx 2.0.6? --, what have I done wrong? still clueless --- Regards, Kamarul On Sat, Jan 11, 2014 at 1:30 AM, Stefano Franchiwrote: > > > > On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak wrote: > >> 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} >> > > you should really use biber instead of bibtex with bibblatex. It is not > mandatory but I strongly recommend it. Many biblatex features only wotk > with biber. So replace your line with: > > \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} > > (actually biber is the default, so you clould eliminate the backend clause > completely, but just for clarity) > >> b) \usepackage[style=numeric,backend=bibtex]{biblatex} >> > > This is wrong. You should only load biblatex once, with the style you > want. So either load it with style=authoryear, or with style=numeric, but > do not load it twice > > Stefano, yes, I used only \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} c) \addbibresource{} >> > > You should have the complete path from root here, otherwise biblatex won't > find you bib file. This is actually lyx's problem, not biblatex's. The > problem is that when you instruct lix to typeset your file into a a pdf, > lyx first copies your lyx-converted tex file to a temp directory, then it > runs (pdf)latex and biber/bibtex on it. At that point, the relative path > you had inserted in the preamble becomes meaningless since you are no > longer in the original location. > IN SHORT: always use absolute paths in your \addbibresource commands in > the preamble. > Stefano, i did use the complete the path and also the file name only > > > >> 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) in a >> LyX note or comment >> > good > I can confirmed that I did this > > >> 5) enter \printbibliography in ERT >> > good > I can confirm that i did this > > 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and >> change the bibtex >> > good > I can confirm I did this > > 7) pass the option backend=biber >> > see comment to point 3a above > I did add this and without this > > >> 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 >> >> > > > Let me know if it works. > > Cheers, > Stefano > -- > __ > Stefano Franchi > Associate Research Professor > Department of Hispanic StudiesPh: +1 (979) 845-2125 > Texas A University Fax: +1 (979) 845-6421 > College Station, Texas, USA > > stef...@tamu.edu > http://stefano.cleinias.org >
Biblatex and LyX issue #was: Re: Author-year in Lyx
Thanks, Stefano. Here again what I followed up or tried: 1) Put the file biblatex.module in the layouts folder I guess the /.lyx/layouts/ is meant ? or is it documents>module>Biblatex-citation-styles I have selected this and added to 'chosen' in right box or both, which I tried ?? 2) tools>reconfigure restart lyx 3) documents>Settings>Bibliography citation style: standard Processor: biber 3) preamble> \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{} in my case \addbibresource{PBRef.bib} tried also \addbibresource{/home/we/Photobiology2013/PBRFigFinal/PBRef.bib} 4) Insert>List/TOC>BibTeX Bibliography... in my case PBRef style: plain and put it in LyX note (turns yellow) 5) \printbibliography in ERT inserted after the yellow BibTeX Bibliography note 6) Tools>Settings>Output>LaTeX processor: biber I did all this including reconfigure, the terminal says Running: biber "PB-Biber" INFO - This is Biber 1.6 INFO - Logfile is 'PB-Biber.blg' INFO - Reading 'PB-Biber.bcf' INFO - Found 748 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib' for section 0 ERROR - Cannot find '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib'! INFO - ERRORS: 1 support/Systemcall.cpp (273): Systemcall: 'biber "PB-Biber"' finished with exit code 2 However, the PBRef.bib is there: > so you can make up your own command by typing the following > at a prompt, to get the complete path of file "myfilename.bib" > > $>ls $PWD/myfilename.bib Dolphin tells me: /home/we/Photobiology2013/PBRFigFinal and your proposal: we@wolfgang:~/Photobiology2013/PBRFigFinal$ $ls $PWD/PBRef.bib bash: /home/we/Photobiology2013/PBRFigFinal/PBRef.bib: Keine Berechtigung (no admission) I changed the permission to include group, but still no change in output > > Ok, this is confusing. Are you getting the references in your pdf files? > If so, it means that biber has found your bib file and has processed it > correctly. If you are not getting the "References" section at the end, > however, you may have forgotten and/or mispelled the /printbibliography > command. Or latex may have choked on it due to some error in the bbl > file. > > Can you confirm that: > > 1. You are getting the correct citations in the pdf file yes, I do > 2. You have entered \printbibliography in ERT at the end of your > document yes, I did > 3. You do not see a corresponding "References" or "Works > cited" section with your full references at the end of your pdf file No, I don't I should perhaps add, that I use Koma script (book) I tried with the normal book style, but get an error Der Absatzstil `Publishers' wurde nicht gefunden. (paragraph style `Publishers' was not found The same with other book styles except Koma I have taken out all entrances in the preamble except \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} %could also be % \usepackage[style=authoryear,natbib=true]{biblatex} \addbibresource{/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib} but still no Bibliography output in the pdf although the references are cited in the pdf output I tried furthermore ps output, same problem: citations alright, but no Bibliography output. I tried also a (almost) minimal example with no success either. May I include this example and the bib file going with it? It is quite short and might help you in finding out what I do wrong. Thanks for all the help for and patience with me Wolfgang % This file was created with JabRef 2.7b. % Encoding: ISO8859_1 @ARTICLE{Hennessey1991, author = {Hennessey, T. L. and Field, C. B.}, title = {Circadian rhythms in photosynthesis}, journal = {Plant Physiol}, year = {1991}, volume = {96}, pages = {831--836}, owner = {wolfgang}, timestamp = {2012.02.25} } @comment{jabref-meta: selector_publisher:} @comment{jabref-meta: selector_author:} @comment{jabref-meta: selector_journal:} @comment{jabref-meta: selector_keywords:} PB-BiberXX.lyx Description: application/lyx
Re: Author-year in Lyx
On Saturday 11 January 2014 09:34:17 KIM Musak wrote: Just saw this; its the same issue I have posted just now under Biblatex and LyX issue #was: Re: Author-year in Lyx Wolfgang > Dear Stefano, unfortunately I still can't get lyx to > 1) show Author-Year , instead the bibtexkey shown > 2) no bibliography listed at the end of the text > > I am pretty sure the problem happens during generation of the PDF file. > The reasons being, I could see all the reference in my Lyx document, I > could cite the selected reference. They are nicely shown in lyx file, > and nicely shown as Author-Year. The only problem is when I click > preview, the PDF only shows the citation but only in bibtexkey and no > bibliography printed. Anything to do with the module? or Windows 8? or > probably with Lyx 2.0.6? > > --, what have I done wrong? still clueless --- > > Regards, > > Kamarul > > On Sat, Jan 11, 2014 at 1:30 AM, Stefano Franchiwrote: > > On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak wrote: > >> 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} > > > > you should really use biber instead of bibtex with bibblatex. It is > > not mandatory but I strongly recommend it. Many biblatex features > > only wotk with biber. So replace your line with: > > > > \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} > > > > (actually biber is the default, so you clould eliminate the backend > > clause completely, but just for clarity) > > > >> b) \usepackage[style=numeric,backend=bibtex]{biblatex} > > > > This is wrong. You should only load biblatex once, with the style you > > want. So either load it with style=authoryear, or with style=numeric, > > but do not load it twice > > > > Stefano, yes, I used only > > \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} > > c) \addbibresource{} > > > You should have the complete path from root here, otherwise biblatex > > won't find you bib file. This is actually lyx's problem, not > > biblatex's. The problem is that when you instruct lix to typeset your > > file into a a pdf, lyx first copies your lyx-converted tex file to a > > temp directory, then it runs (pdf)latex and biber/bibtex on it. At > > that point, the relative path you had inserted in the preamble > > becomes meaningless since you are no longer in the original location. > > IN SHORT: always use absolute paths in your \addbibresource commands > > in the preamble. > > Stefano, i did use the complete the path and also the file name only > > >> 4) insert the BibTeX inset (Insert→List/TOC→BibTeX Bibliography... ) > >> in a LyX note or comment > > > > good > > I can confirmed that I did this > > >> 5) enter \printbibliography in ERT > > > > good > > I can confirm that i did this > > > 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and > > > >> change the bibtex > > > > good > > I can confirm I did this > > > 7) pass the option backend=biber > > > > see comment to point 3a above > > I did add this and without this > > >> 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 > > > > Let me know if it works. > > > > Cheers, > > Stefano > > -- > > __ > > Stefano Franchi > > Associate Research Professor > > Department of Hispanic StudiesPh: +1 (979) 845-2125 > > Texas A University Fax: +1 (979) 845-6421 > > College Station, Texas, USA > > > > stef...@tamu.edu > > http://stefano.cleinias.org
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
Wolfgang, your file had an error in the preamble. You had \addbibresource{/home/stefano/Desktop/PBRef.bib} but the file you enclosed is called PBReffXX.bib Once I fixed the filename to PBRefXX.bib the file compiled fine, and the references and bibliography appeared in the pdf output (I also had to change the directory, of course). Stefano On Sat, Jan 11, 2014 at 4:25 AM, Wolfgang Engelmann < engelm...@uni-tuebingen.de> wrote: > Thanks, Stefano. > > > > Here again what I followed up or tried: > > > > 1) Put the file biblatex.module in the layouts folder > > I guess the /.lyx/layouts/ is meant ? > > or is it documents>module>Biblatex-citation-styles > > I have selected this and added to 'chosen' in right box > > or both, which I tried ?? > > 2) tools>reconfigure > > restart lyx > > 3) documents>Settings>Bibliography > > citation style: standard > > Processor: biber > > 3) preamble> > > \usepackage[style=authoryear,natbib=true]{biblatex} > > \addbibresource{} > > in my case \addbibresource{PBRef.bib} > > tried also > > \addbibresource{/home/we/Photobiology2013/PBRFigFinal/PBRef.bib} > > > > 4) Insert>List/TOC>BibTeX Bibliography... > > in my case PBRef > > style: plain > > and put it in LyX note (turns yellow) > > 5) \printbibliography in ERT > > inserted after the yellow BibTeX Bibliography note > > 6) Tools>Settings>Output>LaTeX > > processor: biber > > > > I did all this including reconfigure, the terminal says > > Running: biber "PB-Biber" > > INFO - This is Biber 1.6 > > INFO - Logfile is 'PB-Biber.blg' > > INFO - Reading 'PB-Biber.bcf' > > INFO - Found 748 citekeys in bib section 0 > > INFO - Processing section 0 > > INFO - Looking for bibtex format file > '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib' for section 0 > > ERROR - Cannot find '/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib'! > > INFO - ERRORS: 1 > > support/Systemcall.cpp (273): Systemcall: 'biber "PB-Biber"' finished with > exit code 2 > > > > However, the PBRef.bib is there: > > > so you can make up your own command by typing the following > > > at a prompt, to get the complete path of file "myfilename.bib" > > > > > > $>ls $PWD/myfilename.bib > > Dolphin tells me: > > /home/we/Photobiology2013/PBRFigFinal > > and your proposal: > > we@wolfgang:~/Photobiology2013/PBRFigFinal$ $ls $PWD/PBRef.bib > > bash: /home/we/Photobiology2013/PBRFigFinal/PBRef.bib: Keine Berechtigung > > (no admission) > > I changed the permission to include group, but still no change in output > > > > > > > > Ok, this is confusing. Are you getting the references in your pdf files? > > > If so, it means that biber has found your bib file and has processed it > > > correctly. If you are not getting the "References" section at the end, > > > however, you may have forgotten and/or mispelled the /printbibliography > > > command. Or latex may have choked on it due to some error in the bbl > > > file. > > > > > > Can you confirm that: > > > > > > 1. You are getting the correct citations in the pdf file > > yes, I do > > > 2. You have entered \printbibliography in ERT at the end of your > > > document > > yes, I did > > > 3. You do not see a corresponding "References" or "Works > > > cited" section with your full references at the end of your pdf file > > No, I don't > > > > I should perhaps add, that I use Koma script (book) > > I tried with the normal book style, > > but get an error > > Der Absatzstil `Publishers' wurde nicht gefunden. > > (paragraph style `Publishers' was not found > > The same with other book styles except Koma > > > > I have taken out all entrances in the preamble except > > > > \usepackage[style=authoryear,natbib=true,backend=biber]{biblatex} > > %could also be > > % \usepackage[style=authoryear,natbib=true]{biblatex} > > \addbibresource{/home/WE/Photobiology2013/PBRFigFinal/PBRef.bib} > > > > but still no Bibliography output in the pdf > > although the references are cited in the pdf output > > > > I tried furthermore ps output, same problem: citations alright, but no > Bibliography output. > > > > I tried also a (almost) minimal example with no success either. > > May I include this example and the bib file going with it? It is quite > short and might help you in finding out what I do wrong. > > > > Thanks for all the help for and patience with me > > > > > > Wolfgang > -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: I wonder whether my and Kim's difficulties with biber has to do with the versions of biber and biblatex. According to the biber handbook (Kime, UK) the latest are Biber version 1.8 Biblatex version 2.8 If I check via synaptic (debian) I have 0.9.9+release-1 for Biber and 1.7-1 for biblatex. Since I have installed texlive 2013 I searched for biber and found it to be in /usr/local/texlive/2013/bin/x86-64-linux/ /usr/local/texlive/2013/texmf-dist/doc/bibtex/ /usr/local/texlive/2013/texmf-dist/source/bibtex/ and biblatex in /usr/local/texlive/2013/texmf-dist/doc/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/csf/ /usr/local/texlive/2013/texmf-dist/bibtex/bst/ /usr/local/texlive/2013/texmf-dist/tex/latex/ /usr/local/texlive/2013/texmf-dist/bibtex/bib/biblatex/ Two questions: How can I find out the version of these? How can I find out, that they are used by lyx Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Sat, Jan 11, 2014 at 9:10 AM, Wolfgang Engelmann < engelm...@uni-tuebingen.de> wrote: > On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: > > > > I wonder whether my and Kim's difficulties with biber has to do with the > versions of biber and biblatex. > > According to the biber handbook (Kime, UK) the latest are > > Biber version 1.8 > > Biblatex version 2.8 > > If I check via synaptic (debian) > > I have 0.9.9+release-1 for Biber > > and 1.7-1 for biblatex. > > > Thos are very old version. I would not recommend using biblatex <2 > Since I have installed texlive 2013 > > I searched for biber and found it to be in > > /usr/local/texlive/2013/bin/x86-64-linux/ > > /usr/local/texlive/2013/texmf-dist/doc/bibtex/ > > /usr/local/texlive/2013/texmf-dist/source/bibtex/ > > > > > and biblatex in > > /usr/local/texlive/2013/texmf-dist/doc/latex/ > > /usr/local/texlive/2013/texmf-dist/bibtex/csf/ > > /usr/local/texlive/2013/texmf-dist/bibtex/bst/ > > /usr/local/texlive/2013/texmf-dist/tex/latex/ > > /usr/local/texlive/2013/texmf-dist/bibtex/bib/biblatex/ > > > > Two questions: > > > > How can I find out the version of these? > for biber type biber --version at a prompt for biblatex, the easier way is to look at the latex log. Whn biblatex is loaded (at the beginning of the log) it will tell you the version How can I find out, that they are used by lyx > If you have multiple versions of biber, it may get complicated. It all depends on your PATH variable, but there are additional complications if you start lyx from the GUI. If you start lyx from the command line (recommended), then lyx will find the biber program whose version you saw with "biber --version" and which is located in the output of "which biber". If you start it from the GUI (double-clicking on a lyx file, using the F2 shortcut in Kde, etcetera), it all depends on how you set up KDE. I never got the hang of it, to be frank, so I always start it from the command line. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Author-year in Lyx
On Saturday 11 January 2014 15:54:44 stefano franchi wrote: > Wolfgang, Kamarul, > > my guess is that you have the same problem. Namely, biber cannot find > the bib file. Or perhaps biber is not launched at all. > > Try looking at the latex log (Document>>LaTeX log), and check out both > the latex log proper and the bibtex log (the two choices in the > dropdown menu). You should get an idea of what is going wrong. If biber > cannot find the file, you should see something like the following in > the "bibtex" log: > > [181] Biber.pm:3190> INFO - Looking for bibtex format file '[YOUR BIB > FILENAME HERE]' for section 0 > [252] Utils.pm:185> ERROR - Cannot find '[YOUR BIB FILENAME HERE]'! > [253] Biber.pm:109> INFO - ERRORS: 1 > > To sort out if there is something wrong with your installation, try out > the enclosed files: > 1. first, copy the lisp.bb file to /tmp (that is the tmp directory > directly under root, not in your home folder. It is generally writable > on linux systems). > 2. then try typesetting the lyx file from within lyx > 3. If your result is identical to the pdf file I am enclosing we'll know > your installation is all right and we can focus on what is wrong with > your lyx files > Doing 1 and 2 gives me in the pdf file: Testing biber and biblatex Here is a reference to McCarthy’s history of lisp (808387 ), followed by the same reference in traditional author-year-format (808387 ). compared to your pdf file: Testing biber and biblatex Here is a reference to McCarthy’s history of lisp (1978), followed by the same reference in traditional author-year-format (McCarthy, 1978). References McCarthy, John (1978). “History of LISP”. In: SIGPLAN Not. 13.8, pp. 217– 223. issn: 0362-1340. doi: http : / / doi . acm . org / 10 . 1145 / 960118 . 808387. That means, my installation is not working properly. Perhaps what I mentioned in my EMail Today 16:10:42? (old versions of biber and biblatex) So I should first find out which versions are in Texlive2013 (see my EMail Today 16:10:42 How to? Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Saturday 11 January 2014 16:23:41 stefano franchi wrote: > > On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: > > > > > > Two questions: > > > > > > > > How can I find out the version of these? > > for biber type > biber --version it is 1.6 > at a prompt > > for biblatex, the easier way is to look at the latex log. Whn biblatex > is loaded (at the beginning of the log) it will tell you the version biblatex 2013/05/01 v2.6 > > How can I find out, that they are used by lyx > > > If you have multiple versions of biber, it may get complicated. It all > depends on your PATH variable, but there are additional complications if > you start lyx from the GUI. If you start lyx from the command line > (recommended), then lyx will find the biber program whose version you > saw with "biber --version" and which is located in the output of "which > biber". If you start it from the GUI (double-clicking on a lyx file, > using the F2 shortcut in Kde, etcetera), it all depends on how you set > up KDE. I never got the hang of it, to be frank, so I always start it > from the command line. so do I Thanks, Stefano, will try later. Wolfgang
Re: Biblatex and LyX issue #was: Re: Author-year in Lyx
On Sat, Jan 11, 2014 at 10:47 AM, Wolfgang Engelmann < engelm...@uni-tuebingen.de> wrote: > On Saturday 11 January 2014 16:23:41 stefano franchi wrote: > > > > On Saturday 11 January 2014 11:25:43 Wolfgang Engelmann wrote: > > for biber type > > > biber --version > > > > it is 1.6 > > > > for biblatex, the easier way is to look at the latex log. Whn biblatex > > > is loaded (at the beginning of the log) it will tell you the version > > > > biblatex 2013/05/01 v2.6 > > You're all right then---biblatex 2.6 wants biber 1.6, so everything is fine on that front. I still think you may have path-related issues in the preamble. Do check the capitalization of your home directory (WE vs we) as per my previous message. Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
two suggested features
Dear LYX developers, I love the LYX software, but there are just a few minor problems that I've not been able to resolve. 1) I'm writing a book and I would like to place example calculations in shaded boxes which are clearly delineated from the main text. Some example calculations are quite long so page breaks are needed. However, it seems that page breaks are only allowed with the "Box (simple frame, page breaks)" options. It would be great if shaded boxes could also include page breaks. 2) I have tried to convince my students and colleagues to switch from MS Word to LYX. The one troublesome point for most of them is that certain key style files are not available for LYX. A website that used to supply REVTEX4.1 is no longer working. Many journals supply LATEX templates, and for someone who knows both LYX and LATEX well, it should be possible to create equivalent LYX templates. These features would make wonderful additions to the 2.1 release. The second addition in particular would immediately boost your user base. Sincerely, Baron Peters