On Jan 10, 2014 2:08 PM, "Wolfgang Engelmann" <[email protected]>
wrote:

>  On Friday 10 January 2014 18:30:34 Stefano Franchi wrote:
>
> Having asked recently for the van von della etc names
>
> I remembered that biblatex/biber takes apparently care of it. So I tried
> to use biber with the procedure given:
>
>
>
> > On Fri, Jan 10, 2014 at 10:49 AM, KIM Musak <[email protected]> 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
>
> > \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)
>
> >
>

To be clear, the loading instruction could be just:
\usepackage[style=authoryear, natbib=true]{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
>
> ########
>
> Question: what about the style in the BibTeX Bibliography? plain?
>

It does not matter. Lyx will ignore the bibtex bibliography when exporting
to latex (prior to typesetting). Just leave it to plain.


> > >
>
> > > 5) enter \printbibliography in ERT
>
> >
>
> > 6) change from bibtex to biber, go to Tools→Settings→Output→LaTeX and
>
> ######
>
> should this be
>
> 6) to change from bibtex to biber, go to Tools→Settings→Output→LaTeX and
> change processor to biber
>
> ??
>


Actually, I prefer to do it on a document-by-document basis with:
Document>>Settings?>>Bibliography
and then choosing biber from the drop-down menu in "Bibliography
Generation/ processor"


#######
>
> >
>
> > > change the bibtex
>
> >
>
> > good
>
> >
>
> > 7) pass the option backend=biber
>
> >
>
> > see comment to point 3a above
>
> #####
>
> i.e. it is not necessary to enter backend=biber in options
>
> i.e. just leave options empty ?
>
>
> See above. To repeat: you can just write \usepackage[style=authoryear,
natbib=true]{biblatex} in the preamble


> #####
>
> what about
>
> -->document>settings>references>citation style
>
> plain?
>

See above. It is irrelevant, as Lyx ignores it. Just leave it "plain"

> and
>
> -->document>settings>references>processor
>
> biber?
>
>
see above. This is my favorite option,

>
>
> I did all this including reconfigure,
>
> but on the terminal it says
>
>
>
> Cannot find '~/Photobiology2013/PBRFigFinal/PB-ref-20140108'
>
>
>
> although I included it in
>
> \addbibresource{~/Photobiology2013/PBRFigFinal/PB-ref-N20140108.bib}
>
>
>
> Is there a linux command which, being at the site of the bib file, tells
> me the whole path I have to use?
>
>
There is no linux command that I know of that would do the trick of
printing a file with its absolute path. However, if you are in the
directory where the file resides,
$>pwd
gives you the present working directory, i.e. the absolute path of where
you are .You can then cut and paste the output in fornt of the file name.
The environmental variable $PWD contains the same present working
directory, 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

Alternatively, in a GUI: if you are using KDE, you can take advantage of
the Dolphin file manages "copy" command. Just navigate to your bib file,
select it and hit ctrl-C. You'll get an absolute path, prepended by
"file://" in the clipboard. You can then paste it directly into Lyx's
preamble (and remove the file:// prefix afterwards). I think Gnome has a
similar functionality in its file manager, but I never used it.


>
> I tried also
>
> /home/WE/Photobiology2013/PBRFigFinal/PB-ref-N20140108.bib}
>
>
this is the correct form. Avoid all relative references in path names (~,
., etc.).


> and
>
> ./home/WE/Photobiology2013/PBRFigFinal/PB-ref-N20140108.bib}
>
>
>

Incorrect. Lyx will copy the file to something like /tmp/.....  and at that
point your . directory will be completely different


> but the pdf output does not contain the Bibliography either. The citationsare 
> in the pdf-document.
>
>
>

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
2. You have entered \printbibliography in ERT at the end of your document
3. You do not see a corresponding  "References" or "Works cited" section
with your full references at the end of your pdf file


Let us know about your progress.


Cheers,

Stefano

Reply via email to