I would like to know how to center the listings gerenated caption in LaTeX. It always go to the left of the code. The rest of the captions (tables) are OK.
\documentclass[11pt,a4paper,oneside, onecolumn]{IEEEtran}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[caption={Exemplo de uso da função CorelDB.},label={list1}]
fileName = 'CorelGCH.arff';
features = CorelDB(@NormalizedGCH);
dlmwrite(fileName, features, ',');
\end{lstlisting}
\end{document}
I think the problem is with the IEEEtran...
conferenceoption added to your\documentclassline. – Mike Renfro Jul 2 '12 at 13:59\usepackage[justification=centering]{caption}Works too. – CaioMendes Jul 2 '12 at 14:05