[Tuglist] Changing class file

Dr. Dinesh Karia tuglist@tug.org.in
Thu, 6 Jun 2002 12:12:36 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C20D53.7200D8E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all,

 I want to prepare a kind of lecture notes. So, I chose to use the book =
or amsbook class. None of these classes offers a suitable layout. As a =
result, first I referred to amsclass.faq. As is suggested there, I =
copied the file amsbook.cls to mybook.cls and used it. I got the =
following error

--------------------- copied from the log file-------
! LaTeX Error: File `mybook.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name:=20
-------------------- copy over------------------

I pressed enter here instead of quitting. So, it went further with a =
long log file. Some sample excerpt are copied below.


My problem: I cannot understand what is wrong with this and how to =
tackle this. I am keeping the file mybook.cls in the same directory of =
amsbook.cls. C:\texmf\tex\latex\amscls

When I copied my texfile into the directory  C:\texmf\tex\latex\amscls =
and latexed it, it issued me the following warning=20

LaTeX Warning: You have requested document class `mybook',
               but the document class provides `amsbook'.
But it compiled and produced the dvi file correctly.=20

Please help.

Dinesh Karia.=20

--------------------- copied from the log file when it did not compile =
------------
Enter file name:=20
(C:\texmf\tex\latex\amsmath\amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=3D\skip41

For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty
................
...................
\inf@bad=3D\count79
LaTeX Info: Redefining \frac on input line 211.
\uproot@=3D\count80
\leftroot@=3D\count81
LaTeX Info: Redefining \overline on input line 307.
\classnum@=3D\count82
\DOTSCASE@=3D\count83
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
................
...................
(C:\texmf\tex\latex\amsfonts\amsfonts.sty
Package: amsfonts 1997/09/17 v2.2e
\symAMSa=3D\mathgroup4
\symAMSb=3D\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version =
`bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 133.
)

................
...................

! LaTeX Error: No counter 'section' defined.
................
...................
No file ddd.aux.
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line =
109.
LaTeX Font Info:    ... okay on input line 109.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 109.
LaTeX Font Info:    ... okay on input line 109.
................
...................
! LaTeX Error: The font size command \normalsize is not defined:
               there is probably something wrong with the class file.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                     =20
[djk added] It did not stop here....................                     =
                     =20
l.109 \begin{document}
                     =20
?=20
! Undefined control sequence.
l.110 \maketitle
=20
................
...................

l.117 \section
              {Preliminaries}
?=20
Missing character: There is no P in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no l in font nullfont!
Missing character: There is no i in font nullfont!
Missing character: There is no m in font nullfont!

................
...................

! Undefined control sequence.
l.122 \noindent{\bf
                    Notations:} We fix up the following notations
?=20
Missing character: There is no N in font nullfont!
Missing character: There is no o in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no t in font nullfont!

-------------------- copy over------------------

------=_NextPart_000_0005_01C20D53.7200D8E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#0000ff>Hello all,</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#ff0000>&nbsp;I want to prepare a kind of lecture =
notes. So, I=20
chose to use the book or amsbook class. None of these classes offers a =
suitable=20
layout. As a result, first I referred to amsclass.faq. As is suggested =
there, I=20
copied the file amsbook.cls to mybook.cls and used it. I got the =
following=20
error</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>--------------------- copied from the log=20
file-------</FONT></DIV>
<DIV><FONT color=3D#0000ff>! LaTeX Error: File `mybook.cls' not=20
found.</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>Type X to quit or &lt;RETURN&gt; to =
proceed,<BR>or=20
enter new name. (Default extension: cls)</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>Enter file name: </FONT></DIV>
<DIV><FONT color=3D#0000ff>-------------------- copy=20
over------------------</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#ff0000>
<DIV><FONT color=3D#ff0000>I pressed enter here instead of quitting. So, =
it went=20
further with a long log file. Some sample excerpt are copied =
below.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV></FONT></DIV>
<DIV><FONT color=3D#ff0000>My problem: I cannot understand what is wrong =
with this=20
and how to tackle this. I am keeping the file mybook.cls in the same =
directory=20
of amsbook.cls. C:\texmf\tex\latex\amscls</FONT></DIV>
<DIV><FONT color=3D#ff0000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#ff0000>When I copied my texfile into the =
directory&nbsp;=20
C:\texmf\tex\latex\amscls and latexed it, it issued me the following =
warning=20
</FONT></DIV>
<DIV><FONT color=3D#ff0000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#ff0000>LaTeX Warning: You have requested document =
class=20
`mybook',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
but the document class provides `amsbook'.</FONT></DIV>
<DIV><FONT color=3D#ff0000>But it compiled and produced the dvi file =
correctly.=20
</FONT></DIV>
<DIV><FONT color=3D#ff0000><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV></FONT><FONT color=3D#ff0000>Please help.</FONT></DIV>
<DIV><FONT color=3D#ff0000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#ff0000>Dinesh Karia. </FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>--------------------- copied from the log =
file when it=20
did not compile ------------</FONT></DIV>
<DIV><FONT color=3D#0000ff>Enter file name:=20
<BR>(C:\texmf\tex\latex\amsmath\amsmath.sty<BR>Package: amsmath =
2000/07/18 v2.13=20
AMS math features<BR>\@mathmargin=3D\skip41</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>For additional information on amsmath, use =
the `?'=20
option.<BR>(C:\texmf\tex\latex\amsmath\amstext.sty</FONT></DIV>
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT color=3D#0000ff>...................</FONT></DIV>
<DIV><FONT color=3D#0000ff>\inf@bad=3D\count79<BR>LaTeX Info: Redefining =
\frac on=20
input line 211.<BR>\uproot@=3D\count80<BR>\leftroot@=3D\count81<BR>LaTeX =
Info:=20
Redefining \overline on input line=20
307.<BR>\classnum@=3D\count82<BR>\DOTSCASE@=3D\count83<BR>LaTeX Info: =
Redefining=20
\ldots on input line 379.<BR>LaTeX Info: Redefining \dots on input line=20
382.</FONT></DIV>
<DIV><FONT color=3D#0000ff>
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT color=3D#0000ff>...................</FONT></DIV>
<DIV>(C:\texmf\tex\latex\amsfonts\amsfonts.sty<BR>Package: amsfonts =
1997/09/17=20
v2.2e<BR>\symAMSa=3D\mathgroup4<BR>\symAMSb=3D\mathgroup5<BR>LaTeX Font=20
Info:&nbsp;&nbsp;&nbsp; Overwriting math alphabet `\mathfrak' in version =

`bold'<BR>(Font)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
U/euf/m/n --&gt; U/euf/b/n on input line 133.<BR>)</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT =
color=3D#0000ff>...................</FONT></DIV></DIV></FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>! LaTeX Error: No counter 'section'=20
defined.</FONT></DIV>
<DIV><FONT color=3D#0000ff>
<DIV>
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT color=3D#0000ff>...................</FONT></DIV>
<DIV>No file ddd.aux.<BR>LaTeX Font Info:&nbsp;&nbsp;&nbsp; Checking =
defaults=20
for OML/cmm/m/it on input line 109.<BR>LaTeX Font =
Info:&nbsp;&nbsp;&nbsp; ...=20
okay on input line 109.<BR>LaTeX Font Info:&nbsp;&nbsp;&nbsp; Checking =
defaults=20
for T1/cmr/m/n on input line 109.<BR>LaTeX Font Info:&nbsp;&nbsp;&nbsp; =
... okay=20
on input line 109.</DIV></DIV></FONT></DIV>
<DIV><FONT color=3D#0000ff>
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT color=3D#0000ff>...................</FONT></DIV>
<DIV>! LaTeX Error: The font size command \normalsize is not=20
defined:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
there is probably something wrong with the class file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>See the LaTeX manual or LaTeX Companion for =
explanation.<BR>Type&nbsp; H=20
&lt;return&gt;&nbsp; for immediate=20
help.<BR>&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
<BR><FONT color=3D#ff0000>[djk added] It did not stop =
here....................=20
</FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>l.109=20
\begin{document}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
<BR>? <BR>! Undefined control sequence.<BR>l.110 =
\maketitle</DIV></FONT></DIV>
<DIV><FONT color=3D#0000ff>&nbsp;
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT color=3D#0000ff>...................</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>l.117=20
\section<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
{Preliminaries}<BR>? <BR>Missing character: There is no P in font=20
nullfont!<BR>Missing character: There is no r in font =
nullfont!<BR>Missing=20
character: There is no e in font nullfont!<BR>Missing character: There =
is no l=20
in font nullfont!<BR>Missing character: There is no i in font=20
nullfont!<BR>Missing character: There is no m in font =
nullfont!<BR></DIV>
<DIV>
<DIV><FONT color=3D#0000ff>................</FONT></DIV>
<DIV><FONT color=3D#0000ff>...................</FONT></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>! Undefined control sequence.<BR>l.122=20
\noindent{\bf<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Notations:} We fix up the following notations<BR>? <BR>Missing =
character: There=20
is no N in font nullfont!<BR>Missing character: There is no o in font=20
nullfont!<BR>Missing character: There is no t in font =
nullfont!<BR>Missing=20
character: There is no a in font nullfont!<BR>Missing character: There =
is no t=20
in font nullfont!<BR>
<DIV><FONT color=3D#0000ff>-------------------- copy=20
over------------------</FONT></DIV></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C20D53.7200D8E0--