Edit Links |
LyX /
HumanitiesLyX
<< | Page list | >>
Using LyX for Humanities Papersby Anders Dahnielson, Bennett Helm, Charles de Miramon, Jürgen Spitzmüller, and Arne Kjell Vikhagen
Table of contents (hide)
1. Choosing a Document ClassThe 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-ScriptKOMA-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 MemoirMemoir 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 BranchesBranches 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 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 OutlinesAs 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 ReviewUsing the branch feature, it is possible to switch easily between versions prepared for blind review and versions with full bibliographical citations. Follow these steps.
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 ExampleHere's a file illustrating the use of branches: sample-article.lyx. 3. Bibliographies3.1 PreliminariesLyX has native BibTeX support for bibliographies. By default, LyX is configured to use the bibliography style 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 databaseIn order to use BibTeX, you have to get or make a bibliography database ( 3.3 Using JurabibTo set up LyX to use Add the following to your LaTeX preamble: \jurabibsetup{% It will set up 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 *Hint: If you save your bib file in a place where LaTeX can find it (usually ending in 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 \bibliographystyle{jox} 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 commandIf you have problems with the above settings, and/or would like to have footnotes, but using the normal \usepackage[% titleformat=commasep,% A comma between athors and title Using Jurabib for Harvard Style In-Text-CitationsIf 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} 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 NatbibTo set up LyX to use 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 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 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 ( 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) 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 bibliographiesAs of v. 1.4, Lyx has enhanced support for the 3.6 Publication listsThis 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 JurabibIn 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 footciteJurabib 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
|