LaTeX forum ⇒ Document ClassesWarning when compiling with custom Class

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

Warning when compiling with custom Class

Postby Jaraqui » Thu Jul 11, 2013 10:59 pm

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 247 times
jcscf1.eps
(15.34 KiB) Downloaded 237 times
ws-jcsc.cls
(37.58 KiB) Downloaded 231 times

Tags:

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

Postby nlct » Sat Jul 13, 2013 2:29 pm

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

Postby Jaraqui » Sat Jul 13, 2013 9:38 pm

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

Postby nlct » Mon Jul 15, 2013 6:03 pm

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

Postby Jaraqui » Fri Jul 19, 2013 9:06 pm

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


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 1 guest