Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Automoating getting latex packages

  1. #1
    Join Date
    May 2008
    Beans
    21

    Automoating getting latex packages

    Hi All,

    I just installed latex (bin, extras, and basic). However, it is asking for many packages (e.g., algorithm.sty). Two questions here:

    1. is there a way to automate how to get these packages as opposed to having to go manually get the file and save it.

    2. Even though the documentation talks about getting the packages in the form of .tar.gz and installing them under /usr/local/share/texmf/tex/latex and then rehashing to update the DB, I am not able to find the files in this format.

    Please enlighten me, I am new to this.
    Thanks

  2. #2
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Automoating getting latex packages

    How did you initially install the packages? One thing you could try if you installed them with synaptic or apt-get would be to go to System->Administration->Synaptic Package Manager and search for latex. Just go do the list (it will probably be fairly long) and install anything that looks vaguely interesting.
    Don't try to make something "fast" until you are able to quantify "slow".

  3. #3
    Join Date
    Mar 2007
    Location
    VA, USA
    Beans
    50

    Re: Automoating getting latex packages

    Quote Originally Posted by suby-luby View Post
    1. is there a way to automate how to get these packages as opposed to having to go manually get the file and save it.
    On *nix systems, no, as far as I know. FYI: This is possible on windows using MikTeX.

    2. Even though the documentation talks about getting the packages in the form of .tar.gz and installing them under /usr/local/share/texmf/tex/latex and then rehashing to update the DB, I am not able to find the files in this format.
    These links may be of some help:
    http://www.tex.ac.uk/cgi-bin/texfaq2...troduction=yes
    http://www.tex.ac.uk/cgi-bin/texfaq2...=installthings



    FYI: I use the command line version of miktex to manage my latex packages on ubuntu. You do have to compile the source to use it, but I think it is well worth the little extra effort.

  4. #4
    Join Date
    Aug 2005
    Beans
    380

    Re: Automoating getting latex packages

    Most of these things are in the repositories. I think algorithm.sty is contained in the texlive-science package. So you just have to do:

    Code:
    sudo apt-get install texlive-science
    and you should be good to go.

    EDIT: You can search for an ubuntu package containing a specific file (such as "algorithm.sty") by going to http://packages.ubuntu.com/. Scroll down to where it says "Search the contents of packages".
    Last edited by mannheim; May 20th, 2008 at 02:19 PM.

  5. #5
    Join Date
    Apr 2007
    Location
    Philadelphia, Pa
    Beans
    99
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Automoating getting latex packages

    I didn't know about this package, but use TeX all the time on Ubuntu, you're a lifesaver!!!

  6. #6
    Join Date
    May 2008
    Beans
    21

    Re: Automoating getting latex packages

    Code:
    sudo apt-get install texlive-science
    and you should be good to go.

    Thank you all for the info. I am learning a lot here.

    I tried the previous command, in fact I was crazy-enough to try texlive-full and for some reason, still Kile complains about algorithm and algorithmic.sty


    I was reading the link you provided dvase and it says to issue

    kpsewhich -expand-var "\$TEXMFLOCAL"

    To know where to install packages, when I did, it returned

    /usr/local/share/texmf

    But then I was not able to find any texmf under /usr/local/share

    I can live with manually installing few packages, but I am still missing something as to how to accomplish that

  7. #7
    Join Date
    Mar 2007
    Location
    VA, USA
    Beans
    50

    Re: Automoating getting latex packages

    I tried the previous command, in fact I was crazy-enough to try texlive-full and for some reason, still Kile complains about algorithm and algorithmic.sty
    If you post a minimal example along with the error output from Kile/LaTeX we may be able to more accurately diagnose your algorithm package issue.

  8. #8
    Join Date
    May 2008
    Beans
    21

    Re: Automoating getting latex packages

    Quote Originally Posted by dvase View Post
    If you post a minimal example along with the error output from Kile/LaTeX we may be able to more accurately diagnose your algorithm package issue.
    Here is the error:
    ./thesis.tex:13:File `algorithm.sty' not found. \usepackage
    ./thesis.tex:0:File `algorithmic.sty' not found.

  9. #9
    Join Date
    Mar 2007
    Location
    VA, USA
    Beans
    50

    Re: Automoating getting latex packages

    I assume that you are doing a standard package inclusion command such as,

    \documentclass{article}

    \usepackage{algorithm}

    \begin{document}

    Your text here...

    \end{document}



    Quote Originally Posted by suby-luby View Post
    Here is the error:
    ./thesis.tex:13:File `algorithm.sty' not found. \usepackage
    ./thesis.tex:0:File `algorithmic.sty' not found.
    Please post the contents of the "Output" tab (it should be next to the "Log and Messages" tab), it is the raw output of the latex compilation process. Thanks.

  10. #10
    Join Date
    May 2008
    Beans
    21

    Re: Automoating getting latex packages

    [QUOTE=dvase;5020939]I assume that you are doing a standard package inclusion command such as,

    \documentclass{article}

    \usepackage{algorithm}

    \begin{document}

    Your text here...

    \end{document}


    Even though I updated the index, it seems it still did not kick in. For some reason, logging out and back in, Kile stopped complaining about these two packages.

    Any way, thanks a lot for your help.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •