"Jose L. Gomez Dans" wrote:

> Hi!
>         I am fairly new to lyx and bibtex, and I have a bibtex file in
> my home directory. As this goes, I don't really know how to call it
> from within lyx (in my version, 0.12 or something similar there isn't
> any reference in to bibtex in the docs). I'd just like to know how I
> can cite and include references I have in my .bib file.

--
(1) Choose the appearance of your citation marks in the text:

    Go to "Layout / LaTeX Preamble" and insert

    \usepackage{ cite } or \usepackage{ overcite } or \usepackage{ drftcite }

(*1) You don't have cite.sty? Search for where LaTeX expects style files, make

     your own subdirectory and get the requested style files via ftp-search.

     ( /usr/lib/teTeX/texmf/tex/latex/bibliographie )

(2) Decide, where you want to keep your bibliography files.

    Let's assume they reside in ~/BibTeX. Then edit your file

    ~/.bashrc and append a line

     export BIBINPUTS="~/BibTeX"

(3) At the end of your LyX document add (in red, i.e. in TeX-Mode) references

    to your bibfile and the journal style you intend to use.

       \bibliography{mybib}

       \bibliographystyle{Macromolecules}

(4) If you need to cite in the text: open the citation reference

    window by the shortcut Meta-i-i. Now input the BibTeX-key of your

    reference. If you need several citations at the same place, put them

    into the same citation reference window separated by comma.

(5) LyX takes care for calling bibtex and building the actual list of

    references. So simply preview or print your text.

(*3) You don't have an appropriate bibliographic style (Macromolecules.bst)?

     Generate it yourself using "makebst" from any CTAN server. It may

     take some time, until you have picked all the components that makebst

     needs in order to perform its task. Finally place your style, where the

     system searches for it. Or make it search for it by appending to your

     .bashrc file:

     export BSTINPUTS="/usr/lib/teTeX/texmf/bibtex/bst"

May be you want to work on your bibliography? Try "bibview". May be you want

to send your publishing house only an excerpt of your big bibliography which

holds exactly those references which were cited? Try "aux2bib". But be warned,

aux2bib is a little bit complicated:

  It needs  subset-nocomment.bst  (You know, where to put it, don't you?), and

you should have exported your LyX text to LaTeX. Then you run LaTeX "off-line"

once:

    latex mytext.tex ,

call bibtex by hand in order to generate the aux file:

    bibtex mytext

and, finally, call the aux2bib script:

     perl ~/BibTeX/aux2bib mytext

Now the necessary bibfile is in "references.bib". If you move this

file to your "BIBINPUTS" directory and change the reference in your

LyX text to point to this file, export to LaTeX, and supply your

publisher with both the LaTeX file and the short bibfile, he should

be happy.



%-------------------------------------------------------------------
%Dr.  Norbert Stribeck   Universitaet Hamburg   fax +49-40-4123-6008
%- polymer physicist -     Institut   T M C     phone       ...-3615
%-------------------------------------------------------------------



-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.

Reply via email to