Original,
After I add a package \usepackage[justification=centering]{caption}
, it became
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:
\documentclass[12pt,draftcls,onecolumn]{IEEEtran}
\usepackage{array}
\usepackage{epsfig}
\usepackage{cite}
\usepackage{amsmath,amsfonts,amssymb,standalone}
\usepackage{color}
\usepackage{tikz,forest}
\usepackage{verbatim}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[justification=centering]{caption}
Best Answer
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 andxcolor
should be used. The latter is already loaded bytikz
.