This is (apart from an initial banner which is irrelevant) the contents of fleqn.sty
:
\@obsoletefile{fleqn.clo}{fleqn.sty}
\input{fleqn.clo}
\endinput
This is provided because some people might still have LaTeX 2.09 documents with a \documentstyle
initial line, where packages were given as option to this command and needed, for this, the .sty
extension.
Don't load this file if you're using a specialized class such as JHEP
that is meant for submissions to a journal. Either the class provides support for the fleqn
option or not, in which case the journal managers won't be happy if you use it.
Actually, the class supports the option, because it has
\DeclareOption{fleqn}{\@OImess{}} %\input{fleqn.clo}} IGNORED ...
followed by
\newcommand\@OImess[1]{\JHEP@ignol{OPTION '\CurrentOption'#1}}
which simply will tell you that the option is ignored. Loading fleqn.clo
anyway would probably result in something bad.
Finally the warning you get is because the class is named JHEP.cls
, but it has
\ProvidesClass{JHEP3} [2003/01/03 v3.1.2 LaTeX document class - F.N.]
Thus it's their fault.
You can disable the warning using silence
package:
\documentclass{article}
\usepackage{silence}
%Disable all warnings issued by latex starting with "You have..."
\WarningFilter{latex}{You have requested package}
\usepackage{include/mypackage}
\begin{document}
\end{document}
Another solution was proposed here: https://tex.stackexchange.com/a/31950/65072
Best Answer
This stems from the fact that you have
PhDThesisPSnPDF.cls
inside aClasses
subfolder. So, the way you normally include it is to useright? Well, there should be similarity between what is supplied within
\documentclass
's mandatory argument - the class - and what is written inside the mandatory argument of\ProvidesClass
insidePhDThesisPSnPDF.cls
. If they don't match, LaTeX throws the warning you see.You can't use the
silence
package for this unless you load it before calling\documentclass
. Moreover, you don't have to supply the full warning message in order to filter it; just a matching start would do.How can you rectify this warning? One of a number of ways:
Edit the
PhDThesisPSnPDF.cls
file inside theClasses
subfolder and changeto
and then directly use
inside your document.
Move
PhDThesisPSnPDF.cls
from theClasses
folder to where you have your.tex
source.Move
PhDThesisPSnPDF.cls
to your local TeXMF folder and reruntexhash
(making it available for all documents).