Lyx Bibliography Optionsxpress

Categories: biblatex, bibliography

<< | Page list | >>

Biblatex style guide: Information about biblatex styles.

Biblatex Default Styles

Biblatex offers a variety of default styles and can replace practically every existing BibTeX-related LaTeX-package. This style guide gives a quick overview over the default styles in biblatex and may ease your decision. Note that there are five general citation styles with several sub-styles that differ only in detail and that would need a longer and more complex example document to show the differences. Therefore, they will be only described shortly.

To select a style put it into the LaTeX preamble and the biblatex options:

\usepackage[...,style=YourDesiredStyle]{biblatex}

(for the other options indicated in the "..." read this page)

Note that biblatex gives you the option of selecting different styles for the citations and for the bibliography. You can load them like this:

\usepackage[...,bibstyle=YourDesiredBibliographyStyle,citestyle=YourDesiredCitationStyle]{biblatex}

Note that the following references are all in German. The text is English. Hope you do not mind. The first item is a book, the second an article (from a journal) and the third a chapter in a collection.

Note: The following LyX example files use a non-available document class (bblmemoir). To use them, switch the document class to Book (memoir) (or simply article - missing the chapter environment) and use the biblatex.module as explained on this page.
Also make sure that the BibTeX database is either in your TEXMF tree or that the paths of the \addbibresource or \bibliography preamble command are absolute and typo free.
The language encoding in the example files is set to Unicode (ucs-extended)(utf8x), not utf8, so it may give error �incompatible package 'ucs' � upon typesetting. Set language to utf8.
The bibliography processor is set to �Default� and may not generate a bibliography, instead only print the bibtexkey at the intext link. Setting bibliography processor to biber has been found to solve this.

Citation style: numeric

Writing academic papers sometimes can be quite boring. Thanks to Umberto Eco, there is at least one good book on writing a thesis [1]. Organizing your references with your computer can make life a lot more simple, Markus Krajewski has written about this [2]. And if you decide on writing a paper, then please do not make it too boring, as Michael Stitzel suggests [3]! Now, to read any of these references, you will need to learn German first. . .

References

[1] Umberto Eco. Wie man eine wissenschaftliche Abschlu�arbeit schreibt. Doktor-, Diplom- und Magisterarbeit in den Geistes- und Sozialwissenschaften. Trans. by Walter Schick. 10th ed. Heidelberg: C.F. M�ller Verlag, 2003.

[2] Markus Krajewski. �(Un)Tiefen elektronischer Textarchive. Zu Status und Produktionsbedingungen digitaler Literatur�. In: KODIKAS/CODE. Ars Semeiotica 24.3�4 (2001). Pp. 143�148.

[3] Michael Stitzel. �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�. In: Lust und Last des wissenschaftlichen Schreibens. Hochschullehrerinnen und Hochschullehrer geben Studierenden Tips. Ed. by Wolf-Dieter und Joachim Stary Narr. 1st ed. Frankfurt am Main: Suhrkamp Verlag, 1999. Pp. 140�147.

numeric-comp

This is a compact variant of numeric and prints instead of �[3, 1, 5, 7, 2, 8]� something like �[1-3, 5, 7, 8]� if there are several references directly following each other.

numeric-verb

This is a verbose variant of numeric and prints instead of �[3, 1, 7]� somethinkg like �[3]; [1]; [7]� if there are several references directly following each other.

Citation style: alphabetic

Writing academic papers sometimes can be quite boring. Thanks to Umberto Eco, there is at least one good book on writing a thesis [Eco03]. Organizing your references with your computer can make life a lot more simple, Markus Krajewski has written about this [Kra01]. And if you decide on writing a paper, then please do not make it too boring, as Michael Stitzel suggests [Sti99]! Now, to read any of these references, you will need to learn German first. . .

References

[Eco03] Umberto Eco. Wie man eine wissenschaftliche Abschlu�arbeit schreibt. Doktor-, Diplom- und Magisterarbeit in den Geistes- und Sozialwissenschaften. Trans. by Walter Schick. 10th ed. Heidelberg: C.F. M�ller Verlag, 2003.

[Kra01] Markus Krajewski. �(Un)Tiefen elektronischer Textarchive. Zu Status und Produktionsbedingungen digitaler Literatur�. In: KODIKAS/CODE. Ars Semeiotica 24.3�4 (2001). Pp. 143�148.

[Sti99] Michael Stitzel. �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�. In: Lust und Last des wissenschaftlichen Schreibens. Hochschullehrerinnen und Hochschullehrer geben Studierenden Tips. Ed. by Wolf-Dieter und Joachim Stary Narr. 1st ed. Frankfurt am Main: Suhrkamp Verlag, 1999. Pp. 140�147.

alphabetic-verb

This is a verbose variant of alphabetic and prints instead of �[Eco03; Kra01; Sti99]� somethinkg like �[Eco03]; [Kra01]; [Sti99]� if there are several references directly following each other.

Citation style: authoryear

Writing academic papers sometimes can be quite boring. Thanks to Umberto Eco, there is at least one good book on writing a thesis (Eco 2003). Organizing your references with your computer can make life a lot more simple, Markus Krajewski has written about this (Krajewski 2001). And if you decide on writing a paper, then please do not make it too boring, as Michael Stitel suggests (Stitzel 1999)! Now, to read any of these references, you will need to learn German first. . .

References

Eco, Umberto (2003). Wie man eine wissenschaftliche Abschlu�arbeit schreibt. Doktor-, Diplom- und Magisterarbeit in den Geistes- und Sozialwissenschaften. Trans. by Walter Schick. 10th ed. Heidelberg: C.F. M�ller Verlag.

Krajewski, Markus (2001). �(Un)Tiefen elektronischer Textarchive. Zu Status und Produktionsbedingungen digitaler Literatur�. In: KODIKAS/CODE. Ars Semeiotica 24.3�4. Pp. 143�148.

Stitzel, Michael (1999). �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�. In: Lust und Last des wissenschaftlichen Schreibens. Hochschullehrerinnen und Hochschullehrer geben Studierenden Tips. Ed. by Wolf-Dieter und Joachim Stary Narr. 1st ed. Frankfurt am Main: Suhrkamp Verlag. Pp. 140�147.

authoryear-comp

This is a compact variant of authoryear and prints instead of �Eco 2003b; Eco 1992; Krajewski 2001; Eco 2003a� something like �Eco 1992, 2003a,b; Krajewski 2001�.

Citation style: authortitle

This style is suited for citing in footnotes. To do so in LyX, put the each citation into a footnote. For compatibility reasons with the wiki, I did not put it in footnotes in the text (but in the example-files, I did). This style can make use of the shorttitle-field (which is new in biblatex).

Writing academic papers sometimes can be quite boring. Thanks to Umberto Eco, there is at least one good book on writing a thesis (Eco, Wissenschaftliche Abschlu�arbeit). Organizing your references with your computer can make life a lot more simple, Markus Kra jewski has written about this (Krajewski, �(Un)Tiefen elektronischer Textarchive�). And if you decide on writing a paper, then please do not make it too boring, as Michael Stitel suggests (Stitzel, �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�)! Now, to read any of these references, you will need to learn German first. . .

References

Eco, Umberto. Wie man eine wissenschaftliche Abschlu�arbeit schreibt. Doktor-, Diplom- und Magisterarbeit in den Geistes- und Sozialwissenschaften. Trans. by Walter Schick. 10th ed. Heidelberg: C.F. M�ller Verlag, 2003.

Krajewski, Markus. �(Un)Tiefen elektronischer Textarchive. Zu Status und Produktionsbedingungen digitaler Literatur�. In: KODIKAS/CODE. Ars Semeiotica 24.3�4 (2001). Pp. 143�148.

Stitzel, Michael. �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�. In: Lust und Last des wissenschaftlichen Schreibens. Hochschullehrerinnen und Hochschullehrer geben Studierenden Tips. Ed. by Wolf-Dieter und Joachim Stary Narr. 1st ed. Frankfurt am Main: Suhrkamp Verlag, 1999. Pp. 140�147.

authortitle-comp

This is a compact variant of authortitle and prints instead of �Eco, First title; Eco, Second title� something like �Eco, First title, Second title�.

authortitle-ibid

This is an ibidem variant of authortitle and replaces immediately repeated citations by �ibidem� unless the citation is the first on on a page or double page spread.

authortitle-icomp

This is a compact and ibidem variant of authortitle and includes features of both variants.

authortitle-terse

This is a terse variant of authortitle and prints the title of an author only if the bibliography contains more than one work by that author.

authortitle-tcomp

This is a compact and terse variant of authortitle and includes features of both variants.

Citation style: verbose

This style is suited for citing in footnotes. To do so in LyX, put the each citation into a footnote. For compatibility reasons with the wiki, I did not put it in footnotes in the text (but in the example-files, I did). This style can make use of the shorttitle-field (which is new in biblatex).

Writing academic papers sometimes can be quite boring. Thanks to Umberto Eco, there is at least one good book on writing a thesis (Umberto Eco. Wie man eine wissenschaftliche Abschlu�arbeit schreibt. Doktor-, Diplom- und Magisterarbeit in den Geistes- und Sozialwissenschaften. Trans. by Walter Schick. 10th ed. Heidelberg: C.F. M�ller Verlag, 2003). Organizing your references with your computer can make life a lot more simple, Markus Krajewski has written about this (Markus Krajewski. � (Un)Tiefen elektronischer Textarchive. Zu Status und Produktionsbedingungen digitaler Literatur�. In: KODIKAS/CODE. Ars Semeiotica 24.3�4 (2001). Pp. 143�148). And if you decide on writing a paper, then please do not make it too boring, as Michael Stitel suggests (Michael Stitzel. �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�. In: Lust und Last des wissenschaftlichen Schreibens. Hochschullehrerinnen und Hochschullehrer geben Studierenden Tips. Ed. by Wolf-Dieter und Joachim Stary Narr. 1st ed. Frankfurt am Main: Suhrkamp Verlag, 1999. Pp. 140�147)! Now, to read any of these references, you will need to learn German first. . .

References

Eco, Umberto. Wie man eine wissenschaftliche Abschlu�arbeit schreibt. Doktor-, Diplom- und Magisterarbeit in den Geistes- und Sozialwissenschaften. Trans. by Walter Schick. 10th ed. Heidelberg: C.F. M�ller Verlag, 2003.

Krajewski, Markus. �(Un)Tiefen elektronischer Textarchive. Zu Status und Produktionsbedingungen digitaler Literatur�. In: KODIKAS/CODE. Ars Semeiotica 24.3�4 (2001). Pp. 143�148.

Stitzel, Michael. �Zur Kunst des wissenschaftlichen Schreibens - bitte mehr Leben und eine Prise Belletristik!�. In: Lust und Last des wissenschaftlichen Schreibens. Hochschullehrerinnen und Hochschullehrer geben Studierenden Tips. Ed. by Wolf-Dieter und Joachim Stary Narr. 1st ed. Frankfurt am Main: Suhrkamp Verlag, 1999. Pp. 140�147.

verbose-ibid

This is an ibidem variant of verbose and replaces immediately repeated citations by �ibidem� unless the citation is the first on on a page or double page spread.

verbose-note

This is a note variant of the verbose style and prints a full citation the first time an author is cited and prints a short citation afterwards and points to the footnote with the full citation.

verbose-inote

This is an ibidem and note variant of the verbose style and includes features of both variants.

verbose-trad1

This is a trad1 variant of verbose and uses a traditional citation scheme. It prints a full citation the first time and a short citation afterwards and uses even more (scholarly) abbreviations �ibidem�, �idem�, �op. cit.� and �loc. cit.�. Apart from that, it can make use of the shorthand field (new in biblatex?); shorthands are introduced at the first cite (e.g. Kant: Kritik der reinen Vernunft, KrV) and used afterwards (e.g. Kant: KrV).

verbose-trad2

This is a trad2 variant of verbose and is similar to verbose-trad1. It uses less scholarly abbreviations and behaves more like verbose-ibid and verbose-inote.

Further information

Categories

Category: biblatexbibliography

Categories: Bibliography, Tips

<< | Page list | >>

Encoding

BibTeX does not support files encoded in UTF-8 (i.e., Unicode), which is nowadays the default file encoding on most OSes. The reason is that current BibTeX (v. 0.99c) was released in 1988 and thus predates the advent of unicode. Unless the long-announced BibTeX v. 1.0 or one of the many planned potential successing applications are ready, latin1 (ISO-8859-1) or another 8-bit encoding has to be used for the bib file (this does not affect the LaTeX encoding, which still can be utf8).

If you rely on UTF-8, you might try biblatex-biber, a BibTeX replacement program written in Perl. Biber can handle unicode, however, as the name indicates, it only works in conjunction with biblatex. Please look here for some instructions.

Decent bib file editors take care about the correct encoding, which usually can be set in the Preferences or Options dialog of the bib file editor. However, you might have to take care yourself about special characters. Particularly, characters not included in the bib file encoding need to be inserted via LaTeX macros. (Some editors automatically do this conversion for you, e.g. Pybliographic and BibDesk. In the latter application, you need to check "Convert accented characters to TeX when exporting or pasting BibTeX" in the "Opening and Saving" preferences.)

Existing utf8-encoded bib files can be converted by means of the command line tool recode. The following command (with an adapted bib file name) should do the trick (however, please backup your bib file before trying):

This re-encodes the file to 7-bit ASCII.
If you want another target encoding, change the syntax. For ISO-8859-15 (= latin9), the command would read:

Please check the recode man page for more options.

Some background information:

Change bibliography heading

You can change the heading of your bibliography by inserting a ERT element (Insert→TeX) right before the bibliography with the following command: \renewcommand\refname{New References Header} or \renewcommand\bibname{New Bibliography Header}, depending on whether you use an article or a report/book class.

Cf. the FAQ for a more general explanation.

Cross references vs. explicit references

BibTeX adds cross-referenced entries to the bibliography even if they are not explicitly referenced when those entries are cross-referenced by two or more citations. The -min-crossrefs option can be used to disable or customize this behavior.

As of LyX 1.4, you can customize the way bibtex is called (in Preferences→Output→LaTeX). Add the option there, e.g.

.

With LyX < 1.4, the bibtex call was hardcoded. To customize , you will have to create a shell script containing the following:

Name the script 'bibtex' and make sure it appears on the search path before the real bibtex executable.

Abbreviation of author name in text

If you want to abbreviate an author (or most likely institutional) name in the citation while having it in full form in the bibliography, the procedure depends on the citation approach.

Biblatex and jurabib have the field, which can be used for this task.

Example:

@techreport{FEMA350, author = {{Federal Emergency Management Agency (FEMA)}}, shortauthor = {FEMA}, title = {Recommended seismic design criteria for new steel moment-frame buildings}, year = 2000, number = {FEMA-350}, address = {Washington, D.C.} }

With natbib, things are more complicated. You need to define a cite alias.

  1. At the beginning of the LyX file enter as TeX code: \defcitealias{<citekey>}{<alias>}
    (e.g., for the above example: \defcitealias{FEMA350}{FEMA}
  2. At the location of the citation enter in TeX code \citealias{<key>}
    (e.g., \citealias{FEMA350} followed by a normal LyX citation reference to this item using the style that only outputs the year.

Multiple and subdivided bibliographies

Subdivided bibliographies

As of LyX 1.4, subdivided bibliographies are natively supported via the bibtopic package:

  1. Go to Layout→Document→Bibliography and select Sectioned bibliography (or Subdivided bibliography, as of LyX 2.3).
  2. Now you can just insert several Bibtex Insets (Insert→Lists&TOC→BibTeX Reference).

Note, though, that bibtopic does not support unsorted bibliographies.
See section 3.1.2 of Help→Additional Features for details.

With LyX < 1.4, you have to use TeX code as described in the bibtopic manual. N.B.: You have to call the package in the preamble with the command

\usepackage[dot]{bibtopic}

Without the dot-option, LyX won't find the auxiliary files, hence the bibliography will be empty.

Biblatex provides its own means to produce subdivided bibliographies (via keywords, filter tags, and categories). These are described on the biblatex manual, section Subdivided bibliographies

Multiple bibliographies

Multiple bibliographies will be supported as of LyX 2.3 (using, depending on the setting, either the bibtopic or chapterbib package, or biblatex):

  1. Go to Layout→Document→Bibliography and select the relevant unit from Multiple bibliographies.
  2. Now you can just insert several Bib(la)tex Insets (Insert→Lists&TOC→Bib(la)TeX Reference).

See section 3.1.2 of Help→Additional Features for details.

Up to LyX 2.2, you can produce multiple bibliographies with bibtopic, chapterbib or biblatex as follows:

  • bibtopic:
    1. Go to Layout→Document→Bibliography and select Sectioned bibliography
    2. Wrap the respective units (chapters, sections etc.) into \begin{btUnit} ... \end{btUnit} in TeX mode.
    Note that all references need to be in a , and that must not be nested. Note further that bibtopic does not support unsorted bibliographies (as mentioned above).
  • chapterbib:
    1. Add the following to Document→Settings...→Preamble:
      \usepackage{chapterbib}
      In case of sections, use \usepackage[sectionbib]{chapterbib} instead.
    2. All chapters or sections need to go to separate child documents, which are included (with not !) to a master document.
    3. You are not supposed to have a bibliography in the master file. BibTeX would yield an error in that case.
    4. Install the python wrapper script bibtexallx. It is needed because LyX does not process bibtex on all of chapterbib's auxiliary files. Place the script somewhere in the path and make sure it is executable. Then go to Tools→Preferences→Output→LaTeX and change the bibtex command from bibtex to bibtexallx (only possible as of LyX 1.4).
  • biblatex: biblatex provides its own methods both for multiple and subdivided bibliographies. If you use biblatex, you will have to use those, since biblatex is not compatible with the aforementioned packages.
    1. See this page for general instructions to use biblatex with LyX < 2.3.
    2. To get a bibliography per chapter, add the package option to the \usepackage[...]{biblatex} call in the preamble (other available values: , , ).
    3. If you do not use biber, but bibtex or bibtex8, you need to install the python wrapper script bibtexallx to let LyX process bibtex on all of biblatex's auxiliary files. Place the script somewhere in the path and make sure it is executable. Then go to Tools→Preferences→Output→LaTeX and change the bibtex command from bibtex to bibtexallx (only possible as of LyX 1.4). If you need bibtex8 instead of bibtex, adapt the script accordingly. However, it is generally advised that you use biber with biblatex.
    See the biblatex manual for details.

If the aforementioned approaches do not fit your needs, you can produce multiple bibliographies with some extra code, using the package bibunits:

  1. Add the following to Document→Settings..→Preamble:
    \usepackage{bibunits}
    \renewcommand{\@bibunitname}{\jobname.\the\@bibunitauxcnt}
  2. Wrap the respective units (chapters, sections etc.) into \begin{bibunit}[<bibstyle>] ... \end{bibunit} in TeX mode, where is your bibliography style without extension.
  3. At the place where the bibliography should occur, enter \putbib[<bibfile>] in TeX mode, where is your bibliography database without extension.
  4. In order to access the citations from the citation dialog, put a BibTeX inset in a note inset.

Also cf. this bibunits example

Creating your own style file with custom-bib

Sometimes it is necessary to change the format of the reference list. Most journals require a certain style; often there are recommendations how to style the reference list when doing a thesis.

The easiest way to accomplish this task is to use plus the latex package from the same author. You can get it in via CTAN.

Once installed, the command line "latex makebst" launches an interactive dialogue. Just keep patiently answering the questions, and you end up with a style file that should come close to your needs. Save that style file in a directory where LaTeX can find it (in your TEXMF directory in the folder ), run to update the LaTeX file database, and in LyX, hit "Rescan" in Tools→TeX Information. After that your new style file is usable in listed in the BibTeX dialog).

When this is done, use natbib (Format→Document→Bibliography→Use natbib). Insert the reference list where you want it to appear (usually at the end of the document). Then select your .bst file as Style.

Creating hyperlinks within a document

Sometimes you might want to employ, say, the numbered style and have hyperlinks from your citations in the document's body text to the appropriate reference in the bibliography. Here's how.

To create hyperlinks within your document, go to Document→Settings...→PDF options and check Enable Hyperref Support.

Make sure that you use in LyX to view the pdf output.

Simply checking this option will make all hyperlinks in your document work, including citations. However, a reader may not notice that the links in your PDF file are clickable. If you wish to color the hyperlinks to increase legibility, add something like in the Additional Options field of that dialog pane.

You can put in any of LaTeX's default colors, i.e. white, black, blue, red, green, yellow, cyan and magenta.

If you still want to do more, combine the commands with other color schemes or packages. For example, add

\usepackage{xcolor}

to the preamble. With you can access several kinds of colors, tints, shades, tones and mixes of colors.

  • results in URLs being displayed blue but only with 50 percent color intensity
  • will result in citations being displayed as a mixture of 20 percent blue and 10 percent green

Categories: Bibliography, Tips

One thought on “Lyx Bibliography Optionsxpress

Leave a Reply

Your email address will not be published. Required fields are marked *