答案1
风格革新madsen
:
\documentclass{memoir}
\usepackage{lmodern}
\makechapterstyle{gilgauge}{%
\chapterstyle{default}%
\renewcommand*{\chapnamefont}{%
\normalfont\Large\bfseries\sffamily\raggedleft
}%
\renewcommand*{\chaptitlefont}{%
\normalfont\fontsize{24}{30}\bfseries\sffamily\raggedleft
}%
\renewcommand*{\chapternamenum}{}%
\renewcommand*{\printchapternum}{%
\hspace{0.4em}%
{\chaptitlefont\thechapter}%
}%
\renewcommand*{\printchapternonum}{%
\leavevmode\chapnamefont\vphantom{\chaptitlefont 1}%
\afterchapternum
}%
\renewcommand*{\afterchapternum}{%
\par\hspace{1.5cm}\hrule\vskip\midchapskip
}%
}
\chapterstyle{gilgauge}
\begin{document}
\chapter{Conclusions and Perspectives for the Future}
\end{document}
我删除了在无衬线字体环境中显得格格不入的小写字母。此外,可以(也应该)避免缩放框。
“未来”位只是为了检查输出是否适合多行标题。
答案2
这是一个完成工作(改变价值makebox
)的解决方案,并受到以下启发这回答。
\documentclass{memoir}
\usepackage{graphicx}
\makechapterstyle{mymadsen}{% requires graphicx package
\chapterstyle{default}
\renewcommand*{\chapnamefont}{%
\normalfont\Large\scshape\raggedleft}
\renewcommand*{\chaptitlefont}{%
\normalfont\Huge\bfseries\sffamily\raggedleft}
\renewcommand*{\chapternamenum}{}
\renewcommand*{\printchapternum}{%
\makebox[18pt][l]{\hspace{0.4em}% <--- altered makebox value
\resizebox{!}{4ex}{%
\chapnamefont\bfseries\sffamily\thechapter}%
}%
}%
\renewcommand*{\printchapternonum}{%
\chapnamefont \phantom{\printchaptername \chapternamenum%
\makebox[0pt][l]{\hspace{0.4em}%
\resizebox{!}{4ex}{%
\chapnamefont\bfseries\sffamily 1}%
}%
}%
\afterchapternum %
}%
\renewcommand*{\afterchapternum}{%
\par\hspace{1.5cm}\hrule\vskip\midchapskip}}
\chapterstyle{mymadsen}
\begin{document}
\chapter{Conclusions and Perspectives}
\end{document}