LaTeX and FreeBSD

FreeBSD comes with the now defunct Tetex distribution of TeX, the typesetting software. TeX Live is a much better deal - a broader spread of software and more finely tuned installation. The download is a huge iso image which needs to be mounted - how to do that in FreeBSD?

mount_cd9660 -o ro /dev/`mdconfig -a -t vnode -f /path/to/file.iso` /mount-point

Symbolic Links.

Another useful point - in the opening menu TeX Live gives the opportunity for the installer to create symbolic links to its main programs in standard directories. It is so much easier than doing so by hand!!

Lilypond.

Gnu Lilypond is a system for typesetting music - with or without text. In the FreeBSD ports system it depends on TeTeX. But nil desperandum! Simply edit the port Makefile, removing the BUILD_DEPENDS and RUN_DEPENDS lines referring to TeTeX so that it looks like this

BUILD_DEPENDS= mftrace:${PORTSDIR}/print/mftrace \
                rarian-sk-config:${PORTSDIR}/textproc/rarian \
                texi2html:${PORTSDIR}/textproc/texi2html
LIB_DEPENDS= guile.19:${PORTSDIR}/lang/guile
RUN_DEPENDS= mftrace:${PORTSDIR}/print/mftrace
OPTIONS= WEBDOCS "Build and install documentation" off

and then the build will run smoothly without trying to install another version of TeX!

Word-count in a LaTeX document?


cat myfile.tex \| detex \| wc -w

"detex" strips out the LaTeX code "wc -w" counts the words in myfile.tex.

Back to FreeBSD page

Last edited: Wed Nov 19 09:19:02 GMT 2008