Results 1 to 6 of 6

Thread: problem getting a new .cls to work on texlive under ubuntu

  1. #1
    Join Date
    Jun 2009
    Beans
    2

    problem getting a new .cls to work on texlive under ubuntu

    Dear Forum,

    I have .cls file that I would like to use.
    I am using Texlive under Ubuntu and Kile as Editor.
    I copied the .cls file to the directory:
    /usr/share/texmf-texlive/tex/latex/base

    but somehow I still get the Error when using Kile to compile:
    46:File `AGUTeX.cls' not found. ^^M

    Does anyone has a solution to this?

    Thanks!!!

  2. #2
    Join Date
    Jun 2009
    Beans
    2

    Re: problem getting a new .cls to work on texlive under ubuntu

    I found the old thread regarding this topic and did what was recommended:

    -copy the .cls file in a new directore:
    /usr/share/texmf-texlive/tex/latex./agu
    - sudo mktexlsr

    but still the same error...

  3. #3
    Join Date
    May 2008
    Beans
    76
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: problem getting a new .cls to work on texlive under ubuntu

    running mktexlsr should be enough. I wonder if it has to do with the filename. try changing it to lowercase

    sudo mv /usr/share/texmf-texlive/tex/latex/base/AGUTeX.cls /usr/share/texmf-texlive/tex/latex/base/agutex.cls

    and run mktexlsr again.
    maybe that'll help. linux is case sensitive, and maybe the filename is confusing latex.

  4. #4
    Join Date
    Mar 2007
    Beans
    313

    Re: problem getting a new .cls to work on texlive under ubuntu

    You could try changing $TEXINPUTS too in your .bashrc file, to include some directory you keep the files in.

    Doesn't sound like the "proper" solution, but if nothing else works.

  5. #5
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: problem getting a new .cls to work on texlive under ubuntu

    Normally you’re not supposed to place new files into the main texmf tree under /usr/share/texmf. User installed files are supposed to go into your own private texmf tree.

    If you look into /etc/texmf/texmf.d/05TeXMF.cnf you’ll see that it defines a folder in your home as your private tree:

    Code:
    % This used to be HOMETEXMF.
    TEXMFHOME = $HOME/texmf
    So, the official solution is to create this directory in your home and place the put into it. I’m not sure if you need to recreate the tree structure, but it won’t hurt to do so. I guess class files would go into ~/texmf/latex/base/AGUtex.cls

    Afterwards I suppose you have to run mktexlsr on it.

    Code:
    mktexlsr ~/texmf
    Then, to make sure it is found by the TeX system you can check

    Code:
    kpsewhich AGUtex.cls

  6. #6
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: problem getting a new .cls to work on texlive under ubuntu

    This bug and it’s comments may or may not enlighten you in this regard. Apparently some trees are searched directly without an ls-R file database and some, i.e. the larger ones, are. So your TEXMFHOME is supposed to work without any ls-R generated by mktexlsr. But having stray ls-R files around will make matters worse. Seems complicated.

    https://bugs.edge.launchpad.net/ubun...se/+bug/186164

    n.b.: Preining is the maintainer for Texlive in Debian and Ubuntu.

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
  •