On Mon, 16 Nov 1998, Norbert Stribeck wrote:
> "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.
Whoa! While Norbert wrote stuff that is undoubtedly correct, it may have
seemed a bit overwhelming, if you're new to lyx and bibtex. One of the
main ideas of bibtex is to make things *simpler*. I'll excerpt the pieces
of Norbert's mail that you'll definitely need as a beginner. Keep the rest
around for reference.
(1) Ignore for now.
> (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"
This may or may not be necessary. FYI, in csh or tcsh, you would want a
line like:
setenv BIBINPUTS "~/BibTeX"
(3 easier) Move the cursor to the end of your document, and choose the
menu command Insert->Lists & TOC->BibTeX Reference. You'll get a popup. If
your bib file is called foo.bib, type foo in the Database field. "plain"
will probably be just fine as a default style. If not, see a LaTeX manual
for the other standard bibs, or follow Norbert's directions for a fancier
style, and put that in the Style field. btw, if you have more than one
database, that's fine. Separate the names with commas (and no spaces!)
> (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.
(Meta-i-i is otherwise known as the menu command Insert->Citation
Reference.) By they way, when you insert citations, I think you're not
supposed to put spaces between them. This is just the same as inserting
citations when you're manually putting your references in LyX, using the
Bibliography layout. The only disadvantage is that you don't have the
"menu" of possible citations. (A future version of LyX may offer that
ability.)
> (5) LyX takes care for calling bibtex and building the actual list of
> references. So simply preview or print your text.
This should work!
I believe that the Extended Features doc (used to be called Advanced
Editing) that comes with the 1.0.0pre releases has a bit of (as yet
unorganized) info on using BibTeX. If not, then the latest docs accessible
via cvs do. But it basically says the same stuff that's written here.
-----------------------------------------
FYI, a couple comments on the stuff I left out.
> (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 )
These allow you to do fancier things like citing only the year of a
reference.
> (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}
As of 12.0, you don't have to do this anymore. The BibTeX popup basically
puts the text you put in the Database & Style fields into a \bibliography
and \bibliographystyle command. But we usually try to avoid putting stuff
in TeX mode for LyX beginners.
[Even more advanced stuff to make your own style snipped, even though it's
informative and useful.]
-Amir Karger
[EMAIL PROTECTED]
--
+++ the lyx project user mailing list +++
To unsubscribe from this list send mail to
[EMAIL PROTECTED]
with the **Subject** unsubscribe.