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'm currently working on a paper for an ACM conference and they require me to use the sigplanconf.cls

I want to use subcaption, but if I add

\usepackage{caption}
\usepackage{subcaption}

then I get the following messages :

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
[...]
! Package caption Error: No float type 'copyrightbox' defined.

Anyone encounter that problem ? Is there a fix that doesn't require messing with the cls since I'm supposed to use it as is ?

Full MWE :

\documentclass[10pt]{sigplanconf}

\usepackage{amsmath}

\usepackage{caption}
\usepackage{subcaption}

\begin{document}

\conferenceinfo{XXX '13}{Date, Place.} 
\copyrightyear{2013} 
\copyrightdata{[numbers] \copyright2013 IEEE}

\title{Title Text}
\subtitle{Subtitle Text, if any}

\authorinfo{Name1}
           {Affiliation1}
           {Email1}

\maketitle

test

\end{document}
share|improve this question
    
I don't get any error when I load figures. About the warning message, ask them directly about the rules on using subfigures. –  hpesoj626 Dec 12 '12 at 2:30
    
I get a warning but no no error. In general, it means that the given documentclass has its own way of defining the caption command –  cmhughes Dec 12 '12 at 4:30
    
Is it possible taht it comes from my version of latex then ? –  Lexiel Dec 13 '12 at 17:57

3 Answers 3

(CW from comments)

The package caption is incompatible with the sigplanconf class that implements its own method for captions.

If you need to use the class, there's no way to incorporate subcaption that relies on caption working.

share|improve this answer

The same error occurs with the sig-alternate template, but is fixed there by using

  \usepackage{caption}
  \DeclareCaptionType{copyrightbox}
  \usepackage{subcaption}

This might work for you as well. Reference at: http://tug.org/pipermail/texhax/2010-September/015596.html

share|improve this answer

A similar warning is produced when using the sig-alternate.cls style. The issue there is that ACM defined bold captions, so as suggested here, just load the caption package with the font option set to bold:

\usepackage[font=bf]{caption}
\usepackage{subcaption}

This way you can freely use the subcaption package with the ACM proceedings class, without affecting the (ugly) bold captions they require.

You can include also skip=\baselineskip as suggested in the linked answer, but note it will eat more of your paper's space.

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.