Top (LaTeX2e unofficial reference manual (November 2018)) LaTeX2e unofficial reference manual (November 2018) This is a reference manual for LaTeX. If you want a tutorial, please see this list. It has not been reviewed by the LaTeX maintainers. A note about links.
This page is no longer maintained! The information is (mostly) still correct as far as it goes, but there are new versions and new editions of everything, and most importantly, there is no discussion here of XeTeX and other new developments and macros that are important for linguists.
This document tries to provide some information useful to linguists using LaTeX at the University of Pennsylvania. Much of it is applicable to other circumstances as well, of course! The following information is divided into general LaTeX documentation and resources, and linguist-specific information, documentation and resources.
1. Getting started
Take a look at these Quick-Start Directions if you've never used LaTeX before, and plan to use it on a unix machine. Especially useful if you will be using it on babel, unagi, or linc.
If you want to install latex on your own computer, chances are you'll have to install it yourself. The good news is that TeX/LaTeX is easy to install, it is available on any hardware and OS in common use today, and is free and easy to obtain. Dig around on the internet, or take a look at my short note on
2. Documentation
Buying a book
My recommendation: If you're thinking of buying a LaTeX book, don't buyLeslie Lamport's book!! (It's called LaTeX: A Document Preparation System. User's Guide and Reference Manual). Yes, he's the author of LaTeX, but the book is sadly incomplete and disorganized. Buy
- A Guide to Latex2e: Document Preparation for Beginners & Advanced Users, by H. Kopka and P. Daly, or perhaps
- The LaTeX Companion by Goossens, Mittelbach, and Samarin. (This one's a bit more technical).
If you're not ready to invest in a book (oh, but they're worth it!), check out the following on-line documentation (especially The Not So Short Introduction to LaTeX).
Introductory/General Documentation
- The Not So Short Introduction to LaTeX
A good first introduction and a nice reference resource. If you're just getting started, it will take you a while to outgrow it. By Tobias Oetiker and a bunch of other folks. Last time I checked it had grown to 131 pages long, so think before you print!
If you look on the web you might find an HTML version too, but the automatic conversion is pretty rough. Browsing the DVI or PDF documents isn't too bad. - BibTeXing [HTML][PDF]
The definitive guide to BibTeX, the amazing LaTeX bibliography support system. It’s more of a reference than an introduction, so be patient.By the time you’ve read to the end, you’ll be ready to understand what it’s been trying to say at the beginning. By Oren Patashnik, one of the original developers of BibTeX.16pp. - Guide to Including Graphics [PostScript][PDF]
Read this document if you need to include external graphics files. It will tell you all you need to know.By D.P. Carlisle.16pp.
Online help
- Here is an extensive reference manual of LaTeX commands, nicely organized by topic. Also available in pdf and other formats.
- Browse or search the TeX FAQ (Frequently Asked Questions list). If you have a general LaTeX problem, there’s a good chance it’s answered here.
- For more advanced tasks, take a look at Herbert Voss’s LaTeX Tips and Tricks page, a large collection of sometimes-useful tasks with non-obvious solutions.
- Look below on this page for linguistics-specific links.
Esoteric Documentation (General)
- LaTeX2e for Class and Package Writers [pdf]
Should you have occasion to write a style file, this will tell you about all the nifty features you can use to wrap it. - Designing BibTeX Styles [pdf]
Making even trivial modifications to a BibTeX style is no small task. This document will get you started. It’s by Oren Patashnik, who wrote most of the original BibTeX styles, so he ought to know.Then you'll need to spend some time studying an existing style, and puzzle out the games it plays with the output routines--but that’s another story. . . 10pp. - LaTeX 2e for Authors [pdf]
For authors of LaTeX style packages, that is. It is supposed to be of general interest, but you won't be interested unless you're writing your own LaTeX style, and maybe not even then. 27pp.
Have questions?
You should start with this documentation, followed by your friends and neighbors, of course. There are also numerous newsgroups, email lists and even organized User Groupsthat deal with TeX and LaTeX.
- Of particular interest is the Ling-TeX list, an email list for linguists who use (La)TeX. The list tends to be very low volume (no traffic for a while, then a query and a bunch of discussion), so it’s a good one to be on. Be warned that the members are mostly linguists, not TeX hackers, so you're not always guaranteed expert advice-but if your problem is typical of linguistics work, chances are it’s been solved before. To subscribe, send email to ling-tex-request@ifi.uio.no. (You can then post to the list by writing to ling-tex@ifi.uio.no).
3. Finding Software, Styles, and Other Resources
This page is not intended to provide a comprehensive list of LaTeX resources; it's not hard to find other pages that try.
There is an enormous amount of LaTeX software out there, most of it freely available. If you're looking for a TeX or LaTeX package, style, font, etc, you'll probably need to look no further than
- The Comprehensive TeX Archive Network (CTAN), the authoritative depository of TeX/LaTeX software, styles, etc. It is accessible through many “mirror” sites (the above link will let you select one). The availability of many a package is given simply as “available on CTAN”; you can search for particular packages or browse for what you need.
4. Information for Linguists
Essential packages
What does it take to write linguistics using LaTeX? That depends on your topic, of course, but here are some suggestions for add-ons to plain LaTeX that could meet your needs. They may take some setting up, but the good news is that in terms of capabilities and convenience, each of the following packages has Word beat by a long shot.
Note that there are zillions of other packages out there that do the same jobs; these are just suggestions. (See below for links to some lists of linguistics-related packages). All packages mentioned are available on CTAN (see above), unless otherwise stated. Don't neglect to download the documentation!
- Numbered example sentences, linguistics-style: I recommend gb4e.sty(widely used, but rather verbose in the commands you need to type), or linguex.sty (created “for the lazy linguist”; unfortunately some of its optimizations create problems for other LaTeX features and packages).
- Sentences with word-to-word “glosses” lined up below them: All the good packages that do this are minor modifications of M. van der Goot's “Midnight” gloss macros. Try cgloss4e.sty, which is distributed with the gb4e.sty macros (but can be used on its own). I think a version is also included with linguex.sty.
- Linguistics-style bibliography and in-text citations: (If you don't know about how bibliographies work with LaTeX, read the documentation on “BibTeXing” above). The default LaTeX styles refer to cited articles by a number, not author name and year, so an additional package is needed to remedy things. You must understand that you will need two additional files: a .bst file that tells BibTeX how to format your references, and an associated .sty file which tells LaTeX how to handle the formatted references generated by BibTeX (e.g., how to construct name-year citations). Here are three options, depending on your needs:
Quick results: Download linquiry2.bst (not on CTAN; generated with custom-bib, see below), which will give you an LI-style bibliography, and natbib.sty (available on CTAN) for citations in the form Name (year).
Some more flexibility: Use the harvard package, which allows for a variety of styles.
Customizability: If you are trying to match a particular style (e.g., for a proceedings paper), your best bet is to generate a customized bibliographic style with the excellent custom-bib package. You'll need to use it with a citation style file; I recommend natbib.sty.
- Including diagrams and pictures: Convert your picture to PostScript or usethe xfig program on unix to create one. It lets you save your drawings in PostScript format, or even in native LaTeX picture format (But save your xfig file in case you need to modify it later). Then see the Guide to Including Graphics to find out how to include your picture. (The only thing xfig lacks is a freehand drawing mode, unfortunately...)
- Dissertation style: If you’re writing a dissertation at U. Penn, you can use my dissertation style class, upenndiss.cls.It’s not the only one floating around (don’t confuse it with penndiss.sty), but I wrote it because I was not quite satisfied with any of the alternatives, so it’s hopefully better, simpler, and more flexible.It comes with a sample document, SampleDiss.tex, that you can just customize.
The following packages are already installed on babel and the CIS machines; if you only need to use them there, just check out the documentation links below. In case you need to set something up on another machine, we also provide links to downloading locations.
- Qtree, a LaTeX tree macro package [PDF] . Allows you to build trees using the (once) familiar bracket notation for constituents.
[To install on your own computer: Check out the qtree download directory.Not on CTAN yet.]
This document explains how to draw movement arrows on your trees. [LaTeX source] - TSIPA: An IPA font for TeX [DVI][PostScript].
You'll probably only care about Appendix B [DVI][PostScript] of the documentation, which lists all the TSIPA macros. (To use TSIPA, just put the line usepackage{tsipa} in your document).
[To install on your own computer: Download from CTAN, or go to this ftp directory. Look at the README file to select which archive(s) to download. The archive comes with installation instructions.]
Latex User Manual Template
Linguistics-specific links
Latex Reference Manual
- The web page for the Ling-TeX listis a good place to look for linguist-specific materials. (See description above).
- Another useful page is A Guide to LaTeX for Linguists.
- Since I'm writing this, I'll also mention my LaTeX Styles and Hacks page. You might find something useful there.
[ Getting Started With LaTeX | TeX/LaTeX on your PC | Linguistics Home Page ]
alexis@ling.upenn.edu
edited by the R Development Core Team.The following manuals for R were created on Debian Linux and maydiffer from the manuals for Mac or Windows on platform-specific pages,but most parts will be identical for all platforms. The correctversion of the manuals for each platform are part of the respective Rinstallations. The manuals change with R, hence we provide versions for the most recent released R version (R-release), a very current version for the patched release version (R-patched) and finally a version for the forthcoming R version that is still in development (R-devel).
Here they can be downloaded as PDF files, EPUB files, or directlybrowsed as HTML:
Manual | R-release | R-patched | R-devel |
---|---|---|---|
An Introduction to R is based on the former 'Notes on R', gives an introduction to the language and how to use R for doing statistical analysis and graphics. | HTML | PDF | EPUB | HTML | PDF | EPUB | HTML | PDF | EPUB |
R Data Import/Export describes the import and export facilities available either in R itself or via packages which are available from CRAN. | HTML | PDF | EPUB | HTML | PDF | EPUB | HTML | PDF | EPUB |
R Installation and Administration | HTML | PDF | EPUB | HTML | PDF | EPUB | HTML | PDF | EPUB |
Writing R Extensions covers how to create your own packages, write R help files, and the foreign language (C, C++, Fortran, ...) interfaces. | HTML | PDF | EPUB | HTML | PDF | EPUB | HTML | PDF | EPUB |
A draft of The R language definition documents the language per se. That is, the objects that it works on, and the details of the expression evaluation process, which are useful to know when programming R functions. | HTML | PDF | EPUB | HTML | PDF | EPUB | HTML | PDF | EPUB |
R Internals: a guide to the internal structures of R and coding standards for the core team working on R itself. | HTML | PDF | EPUB | HTML | PDF | EPUB | HTML | PDF | EPUB |
The R Reference Index: contains all help files of the R standard and recommended packages in printable form. (9MB, approx. 3500 pages) |
Translations of manuals into other languages than English areavailable from the contributeddocumentation section (only a few translations are available).
The LaTeX or Texinfo sources of the latest version of these documentsare contained in every R source distribution (in the subdirectorydoc/manual of the extracted archive). Older versions of themanual can be found in the respective archives ofthe R sources. The HTML versions of the manuals are also part of most Rinstallations (accessible using function help.start()
).
How To Reference A Lab Manual
Please check the manuals for R-devel before reporting any issues withthe released versions.