↑ Return to Collected notes

Linguistics in LaTeX

Here are collected various things I discovered about useful packages and things I find useful for operating as a Linguist with LaTeX.

A more updated place to start might be the LaTeX presentation and a couple of my .sty files post. This has a short beamer presentation on things pertaining to doing Linguistics in LaTeX, and also the source files and my current standard tools package (that I load with everything).

The rest of the stuff here is just notes that I wrote, mostly a long time ago. I still hope that I will have time to organize this better and update them.

Definitely check out the style guidelines for Semantics & Pragmatics. They have a nicely organized introductory article there, and a well thought-out approach to examples, bibliographies, and other things.

For bibliographies, I’ve been using natbib, and the things from the Semantics & Pragmatics stylesheet.

For bibliography management, I use BibDesk. I did see somebody recommending Zotero for use with LaTeX, though I found it clunky. I’m pretty sure you can’t avoid having to re-export a bib file every time you want to use it.

For trees, I now use jTree. I started off using xytree (which requires xypic). There are a bunch of other options out there, but I found xytree to be the one that could do most of what I want.

I have been using the built-in article style, but I would like to try to switch to memoir, except that I still have some things to work out about how to make things that look like articles in it.

I want to look into hyperref, which lets you set up clickable links in your document.

My examples and glosses have been so far accomplished using gb4e and cgloss. I might want to switch to linguex at some point, however.

The wasysym package provides smileys and frownies.

The beamer class can be used to make presentations. This is the only one I have used so far. I’ve also seen people recommending prosper (and here is a tutorial on prosper). There seems to be a extender class called ha-prosper too. Also check on powerdot.

For tables, booktabs does a pretty nice job. I believe that a lot of the functionality exists also in memoir.

There is a ling-tex mailing list, with archives (although it seems only to be possible to download the gzipped text for each year after 1999, prior years are 1995, 1996, 1997, 1998, 1999). They have a couple of documents online: TeX and LaTeX macros for linguists (updated in 1994), and documentation for covington.sty. Other places on the web include Christopher Manning’s (La)TeX page (which mostly has the same links as here), Linguistics-specific information from UPenn, Ralf Vogel’s page (home of xyling).

Pretending it’s written with Word: I know it’s silly, but I kind of got used to how my documents looked when they were created with Word. Step one: change the font to Times. I succeeded in enabling the Times font in TeXShop, though it took a bit of tinkering. The XeLaTeX engine does a better job in creating the PDF (or at least the preview), but I couldn’t just select the font, because it couldn’t find the font files. I had to enable the XeLaTeX-xdvipdfmx engine by moving the file from the Inactive engines folder into the main engines folder, and then using that in the dropdown menu. Having done that, though, this seems to work:

usepackage{mathptmx} %times

For typing a definition that needs a big brace on the left, this can be accomplished as follows:

$f(x) = begin{cases}
1 & mbox{if $x$ is even;} \
0 & otherwise.

To put a (small) box off to the right with a note in it, I’ve had some success with floatflt. (Note that it has to be compiled first, at least for the version I got from CTAN.) This works very poorly with big notes, it seems that if the note is too big it won’t be rendered at all. I tried wrapfig and picins too. The problem with wrapfig is that it always wanted to center the box vertically on the page. With picins, I couldn’t get the text to wrap around it, it always wrote on top of it.

small raggedright
This might relate to something else.

For a bigger box, this works.

Lots of text here

(refs: LaTeX presentation and a couple of my .sty files)