Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LaTeX can't find class (newbie question)

60 views
Skip to first unread message

mg...@hal.stat.unipd.it

unread,
Sep 30, 1997, 3:00:00 AM9/30/97
to

Hi everybody,

I created a new class, and I put the .cls file in the
directory where the basic classes (for example article.cls) are
located. However, if I use my new class in a document, LaTex complains
that it is not able to find that class file.

Does anybody know why?

Thanks a lot,

Matteo Grigoletto
mg...@hal.stat.unipd.it

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

Timothy Murphy

unread,
Oct 1, 1997, 3:00:00 AM10/1/97
to

mg...@hal.stat.unipd.it writes:

>I created a new class, and I put the .cls file in the
>directory where the basic classes (for example article.cls) are
>located. However, if I use my new class in a document, LaTex complains
>that it is not able to find that class file.

>Does anybody know why?

You don't say what system (or OS) you are using,
but you may have to run "texhash" or "MakeTeXls-R"
to update the "ls-R" database.

Nb you could probably put the class file in the current directory
(with the .tex file), as this is usually searched first.

--
Timothy Murphy
e-mail: t...@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

Patrick TJ McPhee

unread,
Oct 2, 1997, 3:00:00 AM10/2/97
to

In article <8756588...@dejanews.com>, <mg...@hal.stat.unipd.it> wrote:
% Hi everybody,
%
% I created a new class, and I put the .cls file in the
% directory where the basic classes (for example article.cls) are
% located.

Don't do this. Put your class files somewhere by themselves, so that
you can delete all the files from the distribution and replace them with
a new distribution, without harming your own files.

% However, if I use my new class in a document, LaTex complains
% that it is not able to find that class file.

Presumably this is because you're using a web2c-based TeX system which
maintains a database of class files. What you want to do (you may not
realise it, but it is what you want to do), is to create a new directory
near the standard ones (for instance, on my machine at home I have
/usr/local/texmf/plain/ptjm), and stick your files in there, then to
run texhash, which will update the list of files.

The reason for this list of files is that it can take a tremendously
long period of time to search all the possible sub-directories for style
files, while it doesn't take much time at all to read in a list of files.
--

Patrick TJ McPhee
East York Canada
pt...@interlog.com

0 new messages