Did you ever have hassle with manual installation of packages (.sty files) in latex under linux? If yes the following procedure will help you a lot to make the windows-latex-packagemanager called miktex working under linux. With this manager it is one command or one click to install a package without any websearches!!
- Download the .deb file from here.
- sudo dpkg -i ~/Download/miktex-tools-2.8_beta_2-1-i386-linux.deb
Sometimes a sudo apt-get install libcurl3 was necessary -
initexmf --help
-
sudo initexmf --admin --user-install=/var/lib/texmf/
- Now try to install the fltpage (and include it via \usepackage[rightFloats]{fltpage} into the .text source)
sudo mpm --install=fltpage
- Sometimes I needed (sometimes not) to run the following command after I installed a package:
sudo texhash - to update all installed packages simply run
sudo mpm --update
- to find a package you can use the following command
sudo mpm --list | grep a0
=> a0poster
Thats all! And it is nice! A lot better than manual installation.
How were you able to initexmf to work? I’ve tried installing the most recent version of the package (on Ubuntu 9.04 and 9.10), and all I get is an error on installation. While mpm will work (nominally), I can’t specify the download directory as you appeared to have done. Are there any more recent packages that don’t throw this error?
Comment by Rob Oakes — 30 October, 2009 @ 00:59 |
Which error do you get?
Comment by karussell — 30 October, 2009 @ 08:58 |
initexmf –unexpected option. I’ve since tried manually compiling the tool set, and while that worked out better, it was still extremely unreliable. The package manager wasn’t able to download the package lists from any of the online repositories.
Comment by Rob Oakes — 6 November, 2009 @ 14:43 |
Ah thanks for that!
use two (!) dashes instead of the one which you get from copy & paste! I updated this in the post.
Comment by karussell — 6 November, 2009 @ 20:46 |