I'm using a class written by a colleague based on the book class on a tetex
installation on Redhat 6.2.
It uses the packages fancyhdr, setspace, indentfirst, geometry and titlesec
as follows:
\LoadClass[letterpaper,12pt,oneside,openany]{book}
\RequirePackage{fancyhdr}
\RequirePackage{setspace}
\RequirePackage{indentfirst}
\RequirePackage{titlesec}
\RequirePackage[letterpaper,margin=1in,nofoot]{geometry}
The author of the package has no problems with it and when I did a Miktex
installation on a Windows 98 system (same as the author uses) everything
seemed to work fine. But, on my Linux system I get the following errors:
----------------------------------------------------------------------------
-----
! LaTeX Error: Command \headrule already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.963 \newcommand\headrule{\setheadrule{.4\p@}}
?
! LaTeX Error: Command \footrule already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.964 \newcommand\footrule{\setfootrule{.4\p@}}
?
----------------------------------------------------------------------------
------
Any help would be most appreciated.
Cheers,
-- Martin
> Hope someone can help me with this.
>
> I'm using a class written by a colleague based on the book class on a tetex
> installation on Redhat 6.2.
>
> It uses the packages fancyhdr, setspace, indentfirst, geometry and titlesec
> as follows:
>
> \LoadClass[letterpaper,12pt,oneside,openany]{book}
> \RequirePackage{fancyhdr}
> \RequirePackage{setspace}
> \RequirePackage{indentfirst}
> \RequirePackage{titlesec}
> \RequirePackage[letterpaper,margin=1in,nofoot]{geometry}
>
> The author of the package has no problems with it and when I did a Miktex
> installation on a Windows 98 system (same as the author uses) everything
> seemed to work fine. But, on my Linux system I get the following errors:
>
> ----------------------------------------------------------------------------
> -----
>
> ! LaTeX Error: Command \headrule already defined.
> Or name \end... illegal, see p.192 of the manual.
Upgrade to titlesec v2.3.5, available on CTAN. This is because
a little change of syntax in the latest releases. I presume the author
of the package was using a recent one, and your Linux system is using
an older one.
\bye
___________________________________________________________
Javier Bezos | TeX y tipografia
jbezos at wanadoo dot es | http://perso.wanadoo.es/jbezos/
...........................................................
CervanTeX http://apolo.us.es/CervanTeX/CervanTeX.html
wouldn't it be grand to be told which file this was in?
actually, we can guess, since \headrule and \footrule (snipped) are
only defined in the set of packages you list in fancyhdr; and there
they're defined using \def. (oh, and none of the packages is as long
as 960 lines, though book.cls probably is.)
but without some context of what the class author was on about, it's
hard to guess _why_ it was necessary to redefine these commands in
such a wildly incompatible way. and why it ever worked for anyone
(miktex installation or no) is beyond me.
tell you what, why not give us some more clues? it could become an
exciting guessing game!
--
Robin Fairbairns, Cambridge
Cheers,
-- Martin
"Robin Fairbairns" <r...@betsy.cl.cam.ac.uk> wrote in message
news:8p3q8m$hbe$1...@pegasus.csx.cam.ac.uk...