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

1.  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.

1.1  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

1.2  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.

2.  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.

2.1  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.

2.2  Preparing Papers for Blind Review

Using the branch feature, 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, acknowledgements, 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.

2.3  Example

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

3.  Bibliographies

3.1  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 described 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 bibliography 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.

The most recent and mightiest bibliography package (with many additional features particularly for the Humanities) is biblatex. Since this is a pretty complex package, LyX still does not have native support for it, but it is possible to use it with some workarounds that are documented here. If you are not yet tied to one of the other approaches mentioned here, it is highly recommended that you consider biblatex, notwithstanding the imperfect support in LyX.

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.

3.2  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).

3.3  Using Jurabib

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

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 Ctrl-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 possibilities 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.

3.4  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."

3.5  Sectioned bibliographies

As of v. 1.4, Lyx has enhanced support for the bibtopic package, which means that to make sectioned bibliographies is much easier than before 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.

3.6  Publication lists

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

4.  Wanted features in coming Lyx versions [humanities].

4.1  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 Documents→Settings menu.

4.2  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 %ert\cites to \footcites.

5.  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 2015-04-20 08:25 UTC