I have several tables with captions which have 2 lines (with a break). I would like to center but a solutions i tried don't work.
If I insert
Code: Select all
\usepackage[center]{caption}
I can't remove the float package because I use a template which uses it.Package caption Error: Usage of the 'position' option is incompatible (caption) to the 'nonfloat' package"
moreover I would like to know how I get the caption under the code in a listing. At the moment I'm using:
Code: Select all
\begin{lstlisting}[language=java, caption=Captiontext, label=jeeTestKlasse, numbers=left, float=ht, stepnumber=1,tabsize=2, keywordstyle=\color{blue}]
}\end{lstlisting}