Suppressing an unwanted header..
Rolf Turner
r.turner at auckland.ac.nz
Wed Mar 27 08:51:00 CET 2024
I am trying to compile a LaTeX document, using a specialised document
class, but wish to make some adjustments to what this document class
does, *without* amending the *.cls file. That is, I'd like to put
commands into my LaTeX document to override aspects of the structure
imposed by the document class.
Explicitly, the *.cls file has lines:
> \def\ps at title{%
> \def\@oddhead{%
> \parbox[t]{\textwidth}{%
> {\footnotesize{\sl\journalabb}\ \volumeyear\hfill doi:
> 10.1111/j.1467-842X.\DOI}}}
> \let\@evenhead\@oddhead
which create, without so much as a by-your-leave, a header (and footer)
on the title page.
I would like to suppress these, by putting appropriate commands
into the LaTeX document.
To suppress the header, I've tried various things such as
"\def\ps at title{}" and "\let\@oddhead\@empty", at various positions in
the file (basically before and after \begin{document}.
I also tried using "\pagestyle{empty}".
The results were all, to say the least, completely unsatisfactory.
Can anyone guide me as to what I *should* do? I have attached a minimal
example (xmpl.tex) and the class file in question (specialClass.cls).
I would like to remove the header (and footer; I have not worked
on the latter yet). I would prefer *not* to leave the empty space that
these previously occupied.
Grateful for any advice.
cheers,
Rolf TurnerI am trying to compile a LaTeX document, using a specialised document
class, but wish to make some adjustments to what this document class
does, *without* amending the *.cls file. That is, I'd like to put
commands into my LaTeX document to override aspects of the structure
imposed by the document class.
Explicitly, the *.cls file has lines:
> \def\ps at title{%
> \def\@oddhead{%
> \parbox[t]{\textwidth}{%
> {\footnotesize{\sl\journalabb}\ \volumeyear\hfill doi:
> 10.1111/j.1467-842X.\DOI}}}
> \let\@evenhead\@oddhead
which create, without so much as a by-your-leave, a header (and footer)
on the title page.
I would like to suppress these, by putting appropriate commands
into the LaTeX document.
To suppress the header, I've tried various things such as
"\def\ps at title{}" and "\let\@oddhead\@empty", at various positions in
the file (basically before and after \begin{document}.
I also tried using "\pagestyle{empty}".
The results were, to say the least, completely unsatisfactory.
Can anyone guide me as to what I *should* do? I have attached a minimal
example (xmpl.tex) and the class file in question (specialClass.cls).
I would like to remove the header (and footer; I have not worked
on the latter yet). I would prefer *not* to leave the empty space that
these previously occupied.
Grateful for any advice.
cheers,
Rolf Turner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20240327/eb69e08d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: specialClass.cls
Type: text/x-tex
Size: 10788 bytes
Desc: specialClass.cls
URL: <https://tug.org/pipermail/texhax/attachments/20240327/eb69e08d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmpl.tex
Type: text/x-tex
Size: 281 bytes
Desc: xmpl.tex
URL: <https://tug.org/pipermail/texhax/attachments/20240327/eb69e08d/attachment-0003.bin>
More information about the texhax
mailing list.