Re: TexLive custom classes problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



** Jayesh Badwaik [2012-07-18 16:34:49 +0530]:

> Hi,

> I am unable to get custom .cls files detected by the latex program. 
> I have a file "jbnotebook.cls" which works fine when it is placed in 
> the same directory as the the file main.tex. So, the file itself is 
> not a problem.  Also,

> [me@localhost]$ kpsewhich -var-value=TEXMFHOME 
> /home/jayesh/.local/share/texmf

This is wrong! The `TEXMFHOME' is `$HOME/texmf' by default.

> So far so good. I have placed my file jbnotebook.cls at the 
> following location
> /home/jayesh/.local/share/texmf/tex/latex/jbnotebook/jbnotebook.cls

> Also, for sake of trying to make things work, I have the following 
> file
> /home/jayesh/texmf/tex/latex/jbnotebook/jbnotebook.cls

> And texhash has been run on both the texmf folder and they contain 
> ls-R which is correct.

`TEXMFHOME' doesn't have to have `ls-R', moreover it is recommended that
users have to delete that file in `TEXMFHOME'.

> Now,
> [me@localhost]$  kpsewhich -var-value=TEXMF    
> {/home/jayesh/.texlive/texmf-config,/home/jayesh/.texlive/texmf-
> var,!!/home/jayesh/.local/share/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/share/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf-
> dist}

> And still when I run the latex command, it tells me that the 
> jbnotebook.cls is not found. 

> What can be the problem?

I don't know, but can give some advices:

1. in order to check that `latex' will find a file run
$ kpsewhich FILE
for example
$ kpsewhich article.cls

It is better to use a package to install class file. However, if such
package doesn't exist there are at least two ways to install the class:
simple-and-messy and a "proper".

2. (simple-and-messy) create a directory `TEXMFHOME/tex/latex/PACKAGE'
and place there `cls' and `sty' files.

Do 1.

---
WBR, Vladimir Lomov

-- 
Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!
		-- J. R. R. Tolkien


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux