我正在使用带有章节样式“veelo”的回忆录类,它为编号章节呈现黑框:
但不适用于未编号的章节:
有没有办法让这些框也适用于未编号的章节?(最好与标题在同一行)
答案1
像这样:
\usepackage{graphicx}
\makeatletter
\addtodef\chs@veelo{}{
\renewcommand*{\printchapternonum}{%
\chapnamefont%
\makebox[0pt][l]{%
\hspace{.8em}%
\resizebox{!}{\beforechapskip}{\chapnumfont \phantom{1}}%
\hspace{.8em}% <-- there was a left over space
\rule{\midchapskip}{\beforechapskip}%
}%
\afterchapternum
}%
}
\makeatother
\chapterstyle{veelo}