Michael Johnson wrote:
Paul wrote:
2. There's a port of the MiKTeX package manager for Linux. Last I
checked it still lacked a graphical interface, so you have to run it
from a terminal. The advantage is that you can install individual
packages as needed. Note that, unlike MiKTeX on Windows, you can't use
it to install missing packages on the fly.
I found that port, actually, but after compiling it I found that LyX doesn't
seem to recognize any packages I install with it. I'm not really sure
what's going on there. The MiKTeX PM reports that the packages are
installed, though.
Sounds like maybe mpm is installing them outside your TeX directory
structure. If you want to get mpm to work, try the following (in a shell):
1. Run 'kpsewhich article.cls' to find out where TeXLive is rooting the
texmf tree. Mine seems to be split between /usr/share/texmf and
/usr/share/texmf-texlive, the latter holding most of it.
2. Have mpm install a package in verbose mode ('sudo mpm --verbose
--install=algorithmicx' for instance), and see where it ends up being
installed.
If mpm is not putting it in either the system texmf tree (say,
/usr/share/texmf-texlive/tex/latex/algorithmicx/) or your personal local
texmf tree, then chances are TeXLive can't see it.
To change where mpm installs stuff, try 'sudo mpm --install-root=...'.
You can set it to the TeXLive .../texmf/ directory or to your local
texmf directory (which you may need to create -- I think the TeXLive
default is ~/texmf/). I recommend installing to the local ~/texmf
directory; that way, if you uninstall/reinstall TeXLive for any reason,
you don't lose the extra stuff you installed via mpm.
Also, if you find having to sudo every damn thing with mpm, you can just
take ownership. From my home directory (after getting mpm working), I did
sudo chown -R myname:mygroup .miktex/
and
sudo chown -R myname:mygroup texmf/
(and maybe one other directory subtree? can't recall). That seemed to
convince all players that I owned the local texmf.
Jürgen wrote:
TeXLive 2008 has a package manager as well, including a GUI, that lets you
install and update individual packages.
I'll have to look into that. I didn't realize there was one, since I didn't
see it in the Ubuntu repositories. (I'm afraid that on Linux I've been
spoiled by having just about everything prepackaged there. :) )
I tried installing TeXLive 2008 on Ubuntu yesterday (after deleting the
old TeXLive to avoid conflicts). After beating my head against the
monitor for an hour or so, I reverted to the supported version of
TeXLive. I think it would have been fine if I'd installed the full
distribution, but I did the basic installation, figuring I'd add
packages as needed. That screwed up LyX royally, including some weird
configuration problems. Some of it eventually traced back to missing
fonts, which I think were part of the TeXLive "extra" fonts package.
Anyway, if you decide to go with TeXLive 2008, I recommend installing
the whole thing (or at least most of it).
As far as I could tell with tlmgr (the TeXLive 2008 package manager),
TeXLive still bundles a lot of packages (especially fonts) into big
all-or-nothing collections. I'm not positive about that, though; could
have been operator error. :-)
/Paul