Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

LyX /

HumanitiesLyX

<< | Page list | >>

Using LyX for Humanities Papers

by Anders Dahnielson, Bennett Helm, Charles de Miramon, Jürgen Spitzmüller, and Arne Kjell Vikhagen

Choosing a Document Class

The standard classes are not very feature-rich and often not suited for humanities work. Especially the following two enhanced document classes are recommended for working with LyX in the humanities. Both are very powerful, configurable and well documented. Your choice depends on the specific features you need and on your personal taste.

KOMA-Script

KOMA-Script (German homepage) is a very powerful package that is highly recommended for working with LyX and humanities. There is an English manual online that explains everything you need to know in a relatively simple way. Click here to download the KOMA-Script manual as PDF

Memoir

Memoir is an alternative to KOMA-Script. It's as powerful and configurable in general, in detail and approach, however, the two classes differ. Memoir ships with a very detailed documentation. Click here to download the Memoir manual as PDF. If you want to use Memoir, see also the Using Memoir in LyX page in this wiki.

Tricks with Branches

Branches are chunks of text that can be "activated" or "deactivated" -- turned on or off -- within document settings. Why would you want to do this? The official suggestion is to create problem sets: you might put the answers to problems in a branch that can be turned off when you print out problem sets for students, but turned on when you print out an answer key for yourself. How can this feature be used in the humanities? Below are some suggestions (followed by a sample file illustrating these tricks), but first instructions on creating branches.

To create a branch, go to Document→Settings→Branches. Type the name of a new branch into the "New" field, and click the Add button. (If you like, you can select a branch in the list of Available Branches and click on (De)activate to turn it on or off, or Alter color to change the background color for text in that branch as it appears in the LyX window.

Once a new branch is created, you can designate text as belonging to that branch by selecting that text and choosing Insert→Branch→[name of branch]. Alternatively, you can insert the branch first and then type your text.

Notes and Outlines

As you write a paper, you might phrase something poorly but not want to stop writing to go back and fix it, or you might promise to do something later and not want to forget to do it. In each case, you might want to flag the text with a note that is a clearly visible reminder, but which you can turn off if you wanted to give the paper to someone else. Simply create a note branch for this purpose. If your note is very short, you might want to insert a marginal note (Insert→Marginal Note) within the branch, and put your note inside that. If your note is long, you might want to put it in a box (Insert→Box) (and you can right-click on the box label to modify its appearance -- by drawing a rectangle around it, for example). If your note is very long, you might want to insert a line (Insert→Special Formatting→Horizontal Line) before and after it -- within the branch.

Perhaps you like to have an outline to work from as you write a paper. Create that outline in the document itself, break it into manageable chunks, and put each chunk in an "outline" branch.

Preparing Papers for Blind Review

Using the branch feature of LyX 1.4, it is possible to switch easily between versions prepared for blind review and versions with full bibliographical citations. Follow these steps.

  1. Prepare your bibliographical database (.bib file). You will need three separate files here. (a) One for your own published work, fully cited. (Call this "Mine-not-blind.bib".) (b) One for your own published work, prepared for blind review. (Call this "Mine-blind.bib".) Thus, you might specify the author field as "Author's book", the title field as "[Reference deleted]", and after that only specify the year. (c) One for everything else, fully cited. (Call this "Others.bib".) The only trick here is that the cite keys for Mine-not-blind.bib and Mine-blind.bib must be the same.
  2. Within your LyX document, create two branches (Document→Settings→Branches). Call them "blind" and "not blind".
  3. At the end of your document where you want the bibliography to appear, insert a "blind" branch (Insert→Branch→blind). Inside this branch, insert a bibliography, and select Others.bib and Mine-blind.bib. Do the same for the "not blind" branch, selecting Others.bib and Mine-not-blind.bib.
  4. You might also want to put other things in a "not blind" branch: the author environment, acknowledgments, etc.

When you're ready to typeset, first go to Document -> Settings -> Branches, and activate/deactivate the appropriate branches. So if you are ready to send the paper off for blind review, activate the "blind" branch and deactivate the "not blind" branch. After the paper is accepted, do the reverse.

Example

Here's a file illustrating the use of branches: sample-article.lyx.

Bibliographies

Preliminaries

LyX has native BibTeX support for bibliographies. By default, LyX is configured to use the bibliography style plain, which is used in other sciences and which cites references in text by number rather than by name and date. If you need to use a bibliography style for author-year references (a.k.a. Harvard style), you should use the jurabib or the natbib package (see this page for information on the differences of those two packages). To find out more about using BibTeX in LyX, see the BibTeX Group on this wiki, read the documentation that comes with the descibed packages (natbib, custom-bib, jurabib), or get yourself a copy of the excellent book The LaTeX Companion. Second Edition by Frank Mittelbach et al. (Addison Wesley 2004), which describes the bilbiography generation, amongst many other things, in all details and very clearly. Note that you might have to add stuff to your preamble in order for LyX to format your bibliography correctly.

Non-BibTeX-proficient users of LyX might find it useful to use a graphical interface program to manage their BibTeX bibliographies. There are many such programs for all platforms. A selection is listed on this page. Most of them can communicate directly with LyX, e.g. in order to insert citations. So they work together with LyX similarly to how Microsoft Word and Endnote work together.

Establishing and maintaining a bibliographic database

In order to use BibTeX, you have to get or make a bibliography database (.bib) first, which contains your bibliography entries coded to BibTeX conventions. If you are migrating from Endnote, convert your .enl bibliography. If you are starting from scratch and know nothing about BibTeX, you might want to start making your own bibliography database with a GUI (see BibTeX Programs).

Using Jurabib

To set up LyX to use Jurabib, go to Document→Settings→Bibliography and check jurabib (note, however, that jurabib support is not available for LyX < 1.4).

Add the following to your LaTeX preamble:

\jurabibsetup{%
titleformat=italic,%
titleformat=commasep,%
commabeforerest,%
ibidem=strict,%
citefull=first,%
lookat,%
oxford,%
pages=format,%
idem%
}

It will set up jurabib with an oxford citation style, see the jurabib documentation for more information about available options.

To add a bibliography to your LyX document, go to Insert→List/TOC→BibTeX bibliography, and hit "Add" to add a database. Select the .bib file from the list* or browse to find it on your computer. Then select the citation style jox.

*Hint: If you save your bib file in a place where LaTeX can find it (usually ending in .../texmf/bibtex/bib/), then it will appear in the list in the "Add" dialog, after you have hit "Rescan" in Tools→TeX Information. The same holds true for style files.

After you have closed the BibTeX dialog, LyX will have access to your bibliography and you can add citations from inside LyX using Insert→Citation. To cite using footnotes: insert a footnote the normal way using Insert→Footnote, then insert the citation in the new footnote (don't forget to follow your citation by a period inside the footnote). Or, add "super" to your preamble, which will convert ordinary citations into footnoted ones.

If you don't want a reference/bibliography list printed you can use the jurabib option of \nobibliography. Add the following in ERT (shortcut C-l) at the end of your document:

\bibliographystyle{jox}
\nobibliography{Bibdatabase}

Doing this alone won't allow you to insert citations from within LyX. So trick LyX by inserting the regular BibTeX bibliography in a Note (and always leave it in the note). A bit messy, but once it's set up you won't need to fuss with it.

Using Jurabib for Oxford style footcite with the normal cite command

If you have problems with the above settings, and/or would like to have footnotes, but using the normal \cite{} command, you can use these settings when you import jurabib:

\usepackage[%
  titleformat=italic,% Titles in italic 
  titleformat=commasep,% A comma between athors and title 
  titleformat=all,% Always show a title (or a short title)
  commabeforerest,% A comma after title 
  ibidem=strict,% 
  citefull=first,% The first citing in full form 
  oxford,% The oxford style
  super,% Footnotes 
  dotafter=true,% 
  see,% An extra optional argument as a prenote 
  idem
]{jurabib}

Using Jurabib for Harvard Style In-Text-Citations

If you want to achieve in-text-citations with author names in small capitals (which Natbib does not really offer) or want easier tweaking and configuration possibilites for the bibliography and therefore use Jurabib, you can put this little bit of code in the preamble, to get a Harvard Style citation:

\jurabibsetup{authorformat=smallcaps,authorformat=year,round}
\renewcommand{\jbcitationyearformat}[1]{\unskip,\space#1:}

Beware to choose the first citation style when citing with the LyX citation dialogue (Author/<before>). You do not need to use brackets, Jurabib will add them automatically.

Using Natbib

To set up LyX to use natbib, go to Document→Settings→Bibliography and check natbib.

Add the following line to your LaTeX preamble:

\bibpunct{(}{)}{,}{a}{,}{,}

This specifies in-text punctuation options for citations, i.e., Author (Year), commas between citations, and so on. See the natbib documentation for details.

To add a bibliography to your LyX document, go to Insert→List/TOC→BibTeX bibliography, and hit "Add" to add a database. Select the .bib file from the list* or browse to find it on your computer.

*Hint: If you save your bib file in a place where LaTeX can find it (usually ending in .../texmf/bibtex/bib/), then it will appear in the list in the "Add" dialog, after you have hit "Rescan" in Tools→TeX Information. The same holds true for style files.

Then select a citation style. Note that it has to be one that has been designed for natbib. Use either one of those shipped with natbib (plainnat, unsrtnat, abbrvnat), get one from the internet, or design your own with the custom-bib utility (which is an interactive command line tool by the author of natbib that asks you some questions about your formatting wishes and creates the appropriate style file for you – see this page for more information).

After you have closed the BibTeX dialog, LyX will have access to your bibliography and you can add citations from inside LyX using Insert→Citation. The dialog allows you to choose from the following options for in-text citation:

Author (Year)
(Author, Year)
Author Year
Author, Year
Author
(Year)
Year

You can cite multiple entries from the Add Citation dialog by hitting "Add" several times for various entries and then click "OK."

Sectioned bibliographies

Lyx 1.4 has enhanced support for the bibtopic package, which means that to make sectioned bibliographies is much easier than in 1.3. This page and section 3.1.2 in the "Extended Features" document under the help menu explain how it works. As explained there, you need multiple bibtex files (JabRef is a really good, cross-platform reference program that also can import from Endnote → see above). Then you add as many Bibliographies inside the Lyx document as you need.

I have encountered latex errors when adding sectioned bibliographies in Lyx 1.4.1, especially when putting them right after each other but with headings in between. It seems that the formatting of the headings make latex produce an error. But this is solved by simply closing the document and opening it again!

Publication lists

This page explains how to use BibTeX to generate a List of Publications semi-automatically.

Wanted features in coming Lyx versions [humanities].

Options for Jurabib

In the Documents - Settings - Bibliography menu, when selecting Jurabib as your preferred Bibliography there should be a line there to enter your jurabib options instead of putting the \jurabibsetup in the preamble. Many tutorials show you how to send options to Jurabib through the preamble by using \usepackage[...]{jurabib}, but this will not work if the Jurabib options is set in the Document - Settings menu.

Support for footcite

jurabib offers a \footcite command which automatically places a citation in a footnote. It would be useful to provide an option to use this command. A workaround introduced in jurabib 0.6 is to use the "super" option in the preamble, which will convert all \cites to \footcites.

Specific information for specific disciplines

  • The LinguistLyX page covers tips and tricks for linguists.
  • Lawyers may find these tips on indexing useful for constructing tables of cases and statutes.
  • A guide to Latex for Historians, includes jurabib information Latex for historians(approve sites)

Bibliography Branch Jurabib Natbib Humanities

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2013-12-05 10:44 CET