enter image description here

After I add a package \usepackage[justification=centering]{caption}, it became enter image description here

it's exactly I wanted, however, an unexpected warning came out, it said:

/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty: 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.

My question is: how can I solve this problem without warning?

Update all the packages and documentclass used here are:


  • 1
    You've not told us what document class you are using: caption gives a warning for any it does not 'know'. – Joseph Wright Feb 6 '15 at 9:02
  • my class is \documentclass[12pt,draftcls,onecolumn]{IEEEtran} – wayne Feb 6 '15 at 9:03
  • 2
    If you are using a class for journal or conference submission, do not mess with the layout! – Joseph Wright Feb 6 '15 at 9:05
  • 1
    Using the conference class option gives you centered captions, without the need for the caption package (\documentclass[12pt,draftcls,onecolumn,conference]{IEEEtran}). – karlkoeller Feb 6 '15 at 9:18
  • 3
    When you are submitting something to conferences or an article to journals, then you are the content provider. Not the layouter. If you start messing with the layout put forth by a given template, the journal or conference editors have to spend extra time reediting your contribution because it does not fit into the guidelines set by the journal or conference. – daleif Feb 6 '15 at 9:21

In order to summarize some comments above:

\documentclass[12pt,draftcls,onecolumn,conference]{IEEEtran} will give what you expect. In general, you should not tweak around with the layout of some journal as you are just supposed to give the content, not the design. Some templates may be ugly, but the journal will stick to it and therefore change your settings back (or worse, reject your article in the current form).

Off-topic: color is almost outdated and xcolor should be used. The latter is already loaded by tikz.

| improve this answer | |
  • Unfortunately, conference option also removes page numbers from the document. – Czechnology Apr 6 '17 at 5:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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