Obviously, the caption is not beautifully placed; it needs more space between the caption text and the frame/listing itself.
How can I do that?
I am using the IEEEtran
document class and the package listings
, if this is important. The related code is
\documentclass[10pt, conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{listings}
\begin{document}
\lstset{basicstyle=\normalsize\ttfamily, breaklines=true, xleftmargin=2em, frame=single, framexleftmargin=15pt}
\begin{lstlisting}[caption={Search-based change access}, label={lst:query}]
<url>/changes/?q=change:<change_id>&o=LABELS&o=DETAILED_LABELS&o=DETAILED_ACCOUNTS&o=REVIEWER_UPDATES&o=MESSAGES
\end{lstlisting}
\end{document}