Document ClassesWarning when compiling with custom Class

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Warning when compiling with custom Class

Post by Jaraqui »

Hi,

I need your kind help on how to fix the following warning:
You have requested document class `ws-jcsc', but the document class provides `epsfig'.
I´ve found a similar post here but the solution was not useful for this case. The attachments are the files that generate this warning.


Regards
Jaraqui
Attachments
ws-jcsc.tex
(9.77 KiB) Downloaded 577 times
jcscf1.eps
(15.34 KiB) Downloaded 494 times
ws-jcsc.cls
(37.58 KiB) Downloaded 559 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Warning when compiling with custom Class

Post by nlct »

I suspect it's because you're inputting a package file using \InputIfFileExists instead of loading it with \RequirePackage. However, epsfig is obsolete, so I recommend you just use \RequirePackage{graphicx} (which is what epsfig now uses anyway).

Regards
Nicola Talbot
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Re: Warning when compiling with custom Class

Post by Jaraqui »

Hi,

I am trying not to change the .sty file because it is provided by the journal that I am submiting an article.

But I executed your recommendation and the warning message didn´t disapear.

Thank you anyway Nicola
Regards
Jaraqui
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Warning when compiling with custom Class

Post by nlct »

I am trying not to change the .sty file because it is provided by the journal that I am submiting an article.
Okay. The journal needs to fix it, but it can be difficult to persuade journals to do that. (Sometimes the class/package author is no longer available.)
But I executed your recommendation and the warning message didn´t disapear.
I'm not sure what's gone wrong, but it's only a warning and since you can't modify the class, you can ignore it.

Regards
Nicola Talbot
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Re: Warning when compiling with custom Class

Post by Jaraqui »

The important is that these two explanations that you gave me clarified the problem and allowed me to understand that is a minor problem (sometimes warnings are very important as you know!).

Because of this I will thank you again Nicola, and tag the problem as solved.

Best Regards
Jaraqui
Post Reply