Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

share|improve this question
2  
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 '13 at 6:46
6  
Just take a look at the log file of your document. –  Axel Sommerfeldt Jan 4 '13 at 6:52
3  
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 '13 at 7:11
    
@AxelSommerfeldt: Please make that into an answer. –  Martin Schröder Jan 4 '13 at 10:26
2  
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 '13 at 10:31

3 Answers 3

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

share|improve this answer

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}
\newread\reader
\openin\reader=\filename
\newwrite\writer
\immediate\openout\writer=\filename
    \loop
        \readline\reader to \data
        \unless\ifeof\reader
            \immediate\write\writer{\data}
    \repeat
\immediate\closeout\writer
\closein\reader
\filename\ has been copied to your working directory.
\end{document}
share|improve this answer

If you check the logfile of the compilation, TeX there tells you the complete path to all included files (which includes the '.cls' of your document class).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.