I have been trying to prepare a document with an already supplied package (JINST) by a journal. After 2-3 compiles on my computer, everything works fine, except a warning:
As it is a warning, I just ignored it.Package caption Warning: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. See the caption package documentation for explanation.
When I upload to the journals computer, after compiling I get many times the following error:
I attach the whole log file and the package file of the journal.I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
! Use of \caption@@settype doesn't match its definition.
\new@ifnextchar ...ved@d = #1\def \reserved@a {#2} .....
I had the suspicion that the caption package was causing the problem. So I removed all of the figures, but the warning was still there.
As I don't know what exactly the problem is, I upload the whole .tex file as well.
Any ideas about these errors?

Thanks and best regards,
Cahit