Creating a bibliography in LyX using BibTeX

This article describes how to create a bibliography in LyX 1.4.1 using BibTeX.

Add the following preamble to wrap long urls and use the natbib style with numbered citations. Document -> Settings... -> LaTeX Preamble.

\usepackage {url}
\usepackage [numbers]{natbib}

Create a plain text .bib file. Add the following to it to create two examples:

% Simple example.
@article{gpl,
    author = {Free Software Foundation},
    title= {GNU General Public License},
    url = {http://www.gnu.org/licenses/gpl.html},
    note = {Version 2},
    year = {1991}
}

% Extended example.
@article{Wikipedia,
    organisation = {Wikipedia},
    author = {Wikipedia},
    title = {Web application},
    abstract = {Description of the term 'Web application'},
    url = {http://en.wikipedia.org/wiki/Web_application},
    year = {2006},
    month = {12},
    day = {14},
    note = {Downloaded as en.wikipedia.org-wiki-Web_application.html}
}

Note: The "simple" example shows the entry types that are shown in the output. If the month was included, that would be displayed too. The "extended" example includes supporting entries that are good to include for completeness (you could later use a different style that shows these entries).

Add the bibliography to the end of your document. Insert -> List / TOC -> BibTeX Bibliography... Browse to your .bib file and add it. Select the plainnat style (I didn't have natbib as an available style).

Create a citation somewhere in the document. Insert -> Citation. Add citations as necessary.

You edit your bibliography by editing the .bib file. You can edit the bibliography settings by clicking on it's icon in the document. You can edit the citations by clicking on their icons in the document.

Preview your page. Ctrl-d.

References

Last modified: 14/12/2006 (most likely earlier as a site migration in 2006 reset some dates) Tags: (none)

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top