change fpheader

773 views
Skip to first unread message

Ruth Lazkoz

unread,
Feb 24, 2012, 9:10:31 AM2/24/12
to latexus...@googlegroups.com
Hi,

I am using a style file  which defines

\gdef\@fpheader{Prepared for submission to JHEP}

and I want to switch off that command without touching the style file.

I mean I would like to put in the manuscript that calls that file some command to make latex thing the definition was something like \gdef\@fpheader{~}.

Can anyone help me?

Best regards,

Ruth

Werner Grundlingh

unread,
Feb 24, 2012, 12:02:07 PM2/24/12
to latexus...@googlegroups.com
If you're talking about the JHEP style file located at
this is possible. The following _should_ work:

    \documentclass{article}
    %...
    \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
    \makeatletter
    \patchcmd{\maketitle}{\@fpheader}{}{}{}
\makeatother
%...
\begin{document}
%...
\end{document}

This correction uses the etoolbox package to correct for the use of \@fpheader within the \maketitle command. It replaces it with {} (nothing).

Peter Flynn

unread,
Feb 24, 2012, 5:51:39 PM2/24/12
to latexus...@googlegroups.com
On Fri, Feb 24, 2012 at 2:10 PM, Ruth Lazkoz <ruth....@gmail.com> wrote:
Hi,

I am using a style file  which defines

\gdef\@fpheader{Prepared for submission to JHEP}

and I want to switch off that command without touching the style file.

I mean I would like to put in the manuscript that calls that file some command to make latex thing the definition was something like \gdef\@fpheader{~}.

Just redefine the command to an empty group. But you need to turn the @ into a letter temporarily, because an @ sign isn't allowed in a command name in normal documents, only in packages and classes. There are two commands to do that:

\makeatletter
\def\@fpheader{\relax}
\makeatother

I tend to define nullified commands like this as \relax, just in case some other command I don't know about is expecting there to be a value rather than nothing at all.

///Peter

 

Reply all
Reply to author
Forward
0 new messages