English logga in

StartTeX och LaTeX

LaTeX för lingvistik

Denna sida finns bara på engelska.

This text mentions some packages we have installed that can be particularly suitable for linguistics. To get documentation about a particular package locally you can use texdoc followed by package name, for example texdoc forest.

Trees

There are several packages for drawing trees with different advantages and disadvantages, for example: ecltree, forest, pst-jtree (typeset complex trees for linguists), pst-qtree, pst-tree (draw trees with more than on root node), qtree, rrgtrees (linguistic tree diagrams for Role and Reference Grammar (RRG) with LaTeX), synttree (typeset syntactic trees), tikz-qtree (use existing qtree syntax for trees in TikZ), xyling (draw syntactic trees, etc., for linguistics literature, using xy-pic).

In many cases forest can be a good choice. A common problem otherwise is that trees become very wide. A tree like the one here is made with

\begin{forest}
  [CP [DP [D] [NP [N] [CP [C] [TP [T] [vP [v] [VP [DP] [V' [V] [DP]]]]]]]]
      [TP [T] [vP [v] [VP [DP] [V' [V] [DP]]]]]]
\end{forest}
With most tree-drawing packages this would have become a lot wider, because the two subtrees wouldn't overlap each other without a lot of hand tuning. The package forest can do much more complicated trees as well.

Dependency graphs

See the package tikz-dependency!

Interlinear glossing

There are several packages for interlinear gloss where texts are given above each other, often for a translation, trascription or annotation.

Some are ExPex, dvgloss, textglos.

Covington (which is mentioned below) also has that.

Miscellaneous

covington

Michael Covington has made a LaTeX package with miscellaneous stuff useful when writing linguistics.

Numerous minor LaTeX enhancements for linguistics, including multiple accents on the same letter, interline glosses (word-by-word translations), Discourse Representation Structures, and example numbering.
See its documentation.

tipa för IPA

tipa is a package for writing phonetics with IPA. i LaTeX. See its documentation.