我需要帮助对齐我的标题。问题是第二行对齐不正确。
我的代码是:
\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}
}`