Latex for lattices

Michael W. Daniels daniels at ling.ohio-state.edu
Mon Apr 5 13:55:44 UTC 2004


On Mon, Apr 05, 2004 at 03:16:53PM +0200, Howard Anthony Gregory wrote:
> I would like to ask if there are any Latex macros for type inheritance
> "lattices".

I've found xypic to be useful for these sorts of things; the following
typesets an 18-element lattice that I once needed:

\begin{xymatrix}
&&\ar@{-}[lld]\ar@{-}[d]\ar@{-}[drr]\txt{a+n+g}\\
\ar@{-}[d]\ar@{-}[drr]\txt{a+n}%
&&\ar@{-}[lld]\ar@{-}[drr]\txt{a+g}%
&&\ar@{-}[lld]\ar@{-}[d]\txt{n+g}\\
\ar@{-}[d]\ar@{-}[drrrrr]\txt{a+g-n}%
&&\ar@{-}[drrr]\ar@{-}[d]\txt{n+a-g}%
&&\ar@{-}[d]\ar@{-}[dr]\txt{g+n-a}\\
\ar@{-}[d]\txt{a}&&%
\ar@{-}[d]\txt{n}&&%
\ar@{-}[d]\txt{g}&%
\ar@{-}[dlllll]\ar@{-}[dlll]\ar@{-}[dl]\txt{a-n+a-g+n-g}\\
\ar@{-}[d]\ar@{-}[drr]\txt{a-n+a-g}%
&&\ar@{-}[dll]\ar@{-}[drr]\txt{a-n+n-g}%
&&\ar@{-}[dll]\ar@{-}[d]\txt{a-g+n-g}\\
\ar@{-}[drr]\txt{a-n}&&\ar@{-}[d]\txt{a-g}&&\ar@{-}[dll]\txt{n-g}\\
&&{\txt{a-n-g}}\\
\end{xymatrix}

Yes, it looks a bit like linenoise, but the package is quite powerful.
If you're interested, the slides for a tutorial I've given for our
department on xypic is available at this URL:

http://ling.osu.edu/events/lcc/tutorials/adv-latex-partIII/mwd-slides-4up.ps

Mike Daniels



More information about the HPSG-L mailing list