![列表中标题的对齐方式](https://linux22.com/image/422113/%E5%88%97%E8%A1%A8%E4%B8%AD%E6%A0%87%E9%A2%98%E7%9A%84%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F.png)
我需要帮助对齐我的标题。问题是第二行对齐不正确。
我的代码是:
\DeclareCaptionFormat{listing} {\parbox{\textwidth}{\hspace{15pt}#1#2#3} }
\captionsetup[lstlisting]{format=listing, singlelinecheck=true, margin=0pt, font={small}}`
和
`\lstset {
frame=shadowbox,
rulesepcolor=\color{mylightgrey},
showspaces=false,showtabs=false,tabsize=2,
%numberstyle=\tiny,numbers=left,
numberstyle=\scriptsize,numbers=left,
numberstyle=\color{mylightgrey},
basicstyle=\scriptsize\fontencoding{T1}\fontfamily{fvm}\selectfont,
stringstyle=\color{sh_string},
keywordstyle = \color{sh_keyword}\bfseries,
keywordstyle=\bfseries,
commentstyle=\color{sh_comment}\itshape,
captionpos=b,
xleftmargin=0.7cm, xrightmargin=0.5cm,
%lineskip=-0.3em,
escapebegin={\lstsmallmath}, escapeend={\lstsmallmathend}
}`