Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a problem concerning the ws-procs9x6 document class furnished by a conference.

I can't get it work with the caption & subcaption or even subfig packages to work with it, which is a problem as I can't place my figures in my paper.

Do you know how to make it work?

The error I get is:

Command \captionbox already defined. \caption@withoptargs\caption@box}" and "Unsupported document class (or package) detected,(caption) usage of the caption package is not recommended."

Here's a simple code :

\documentclass{ws-procs9x6}
\usepackage{subcaption}

\begin{document}
\begin{figure}
\psfig{file=coucou.eps,width=4.5in}
\caption{Coucou}
\label{fig:coucou}
\end{figure}
\end{document}
share|improve this question
    
As far as I can tell, subfig is compatible with the class, while caption (and so subcaption) isn't. –  egreg Feb 2 '13 at 18:48
    
I get the same error when loading the 'subfig' package, can you upload me your package. –  Uneo Feb 2 '13 at 19:01
2  
You should load subfig as \usepackage[caption=false]{subfig} –  egreg Feb 2 '13 at 19:04
    
Perfect, thanks for the answer! –  Uneo Feb 2 '13 at 19:05

1 Answer 1

up vote 5 down vote accepted

The caption package is not compatible with the ws-procs9x6 class, which defines its own caption style; since the class is required for submissions to a publisher, it's highly recommended not to tamper with their style.

However, the subfig package turns out to be compatible with the class, provided it's loaded without caption:

\usepackage[caption=false]{subfig}

An example:

\documentclass{ws-procs9x6}

\usepackage[caption=false]{subfig}

\begin{document}
\begin{figure}
\centering
\subfloat[abc]{xxxxxxxxxxxxxx}\quad
\subfloat[abc]{xxxxxxxxxxxxxx}
\caption{Coucou}
\label{fig:coucou}
\end{figure}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.