# How to find the .cls file of the document that you are typesetting?

I can't find the .cls file of the document that I want to typeset. The source code of the document is:

\documentclass[11pt,stdletter,sigleft]{newlfm}
\usepackage{charter}

\widowpenalty=1000
\clubpenalty=1000

\newsavebox{\Luiuc}
\sbox{\Luiuc}{%
\parbox[b]{1.75in}{%

}%
}%

\begin{document}
\begin{newlfm}

Enclosed is my curriculum vitae (including a list of

\end{newlfm}
\end{document}


And I want to remove the date that comes up here:

-
Please include source code directly in the side, marked as a code sample. Also, please only ask one question per question. (Not 1. Where to find the .cls file and 2. How to remove the date (which you already asked in another place -> duplicate)). Finally, please try to tag a little more specifically. This question has nothing to do with the editor you're using (TeXworks), and neither with the compilation engine (pdftex). –  doncherry Jan 4 at 6:46
Just take a look at the log file of your document. –  Axel Sommerfeldt Jan 4 at 6:52
It's usually not necessary to read the code of a class to use it. Probably you would be better with the documentation, which you should see if you run texdoc newlfm at the Command Prompt. –  Joseph Wright Jan 4 at 7:11
@AxelSommerfeldt: Please make that into an answer. –  Martin Schröder Jan 4 at 10:26
The big question: Why do you want to finde the source of the class you are using? You are not supposed to change that. –  Martin Schröder Jan 4 at 10:31
show 1 more comment

As seen in the Texlive Guide documentation, at the command line prompt type

kpsewhich package-name.cls, to locate the path of the .cls.

for more options refer the Texlive kpsewhich standalone path searching tools options

-

You can see the source code of the document class in question without having to know where it is saved in your machine.

\documentclass{article}
\usepackage{listings}
\lstset
{
language=[LaTeX]TeX,
breaklines=true,
}
\begin{document}
\lstinputlisting{newlfm.cls}
\end{document}


Alternatively you can duplicate the file as follows. Make sure you pass the option -shell-escape to the TeX compiler of your choice.

\documentclass{article}
\def\filename{newlfm.cls}
\begin{document}
\newwrite\writer
\immediate\openout\writer=\filename
\loop
\immediate\write\writer{\data}
\repeat
\immediate\closeout\writer