GeneralInstall ctan package that is not in tlmgr list

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Natan
Posts: 9
Joined: Fri Oct 23, 2020 2:53 pm

Install ctan package that is not in tlmgr list

Post by Natan »

Hey,
I am trying to install rpg-module as presented here: https://ctan.org/pkg/rpg-module?lang=en
This is the first package ever I wanted to add to my texlive. Before that I usually just copied the sty and cls files into the folder (which is very bad style but I didn't know it better back then).

I have tex-live installed on my ubuntu using the install-tl. I also have added everything needed to the path. I can successfully compile pdftex as I have done a few million times already. I have recently reinstalled everything on this computer.

As I understand it I have to copy the sty and cls file into my texmf tree.

Executing:

Code: Select all

kpsewhich -var-value TEXMFHOME
/home/xaver/texmf
(xaver is my name and username)

I therefore copied the sty and cls file into the folder

Code: Select all

/home/xaver/texmf/rpg-module
I then called texhash with administrator rights which returned

Code: Select all

texhash: Updating /usr/local/texlive/2020/texmf-config/ls-R... 
texhash: Updating /usr/local/texlive/2020/texmf-dist/ls-R... 
texhash: Updating /usr/local/texlive/2020/texmf-var/ls-R... 
texhash: Updating /usr/local/texlive/texmf-local/ls-R... 
texhash: Done.
I was a bit surprised because I thought it would list my texmf file as well (and maybe that's already the issue).

When trying to compile an example file using the new documentclass now I get an error: documentclass not found.

Out of interest (I am not really sure if it should work) I tried:

Code: Select all

kpsewhich -var-value rpg-module
which returned an empty prompt

I tried different tutorials explaining how to install packages manually, but so far none could help me (I listed most of the ideas I tried above; some where just for different platforms or tex distributions).

Would be really glad if someone has an idea!

Best regards,
Xaver

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Install ctan package that is not in tlmgr list

Post by Ijon Tichy »

Natan wrote:I therefore copied the sty and cls file into the folder

Code: Select all

/home/xaver/texmf/rpg-module
This is wrong. You have use a correct TDS structure. So I suggest to copy it to /home/xaver/texmf/tex/latex/rpg-module. See kpsewhich tds for more information.
Natan wrote:Out of interest (I am not really sure if it should work) I tried:

Code: Select all

kpsewhich -var-value rpg-module
which returned an empty prompt
There isn't a variable rpg-module. So asking for the value of such a variable is always wrong. You can search for the class name, e.g., kpsewhich rpg-module.cls

Usually kpathsea examines relevant tree pars of TEXMFHOME completely. So you don't need texhash to find files in the TEXMFHOME (nevertheless you need a correct TDS structure).
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Natan
Posts: 9
Joined: Fri Oct 23, 2020 2:53 pm

Install ctan package that is not in tlmgr list

Post by Natan »

Ijon Tichy wrote:This is wrong. You have use a correct TDS structure. So I suggest to copy it to /home/xaver/texmf/tex/latex/rpg-module
This did the trick!
I read something similar before, but I was hesitating because the folders where not created automatically. But creating those folders solved it!

Thank you very much!
Post Reply