回忆录:部分和章节的两种不同章节风格

回忆录:部分和章节的两种不同章节风格

我想对部分内容使用 chapterstyle thatcher,对其余部分(章节等)使用 chapterstyle veelo。

最小二乘法:

\documentclass[10pt,a4paper,openany]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}

\usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}

\chapterstyle{veelo} %-----------------------------> This for chapter etc

%part
\aliaspagestyle{part}{empty}
\usepackage{fmtcount}
\chapterstyle{thatcher}%-----------------------------------> This for parts ONLY

\renewcommand*{\thepart}{\arabic{part}}
\renewcommand*{\parttitlefont}{\normalfont\large\MakeUppercase}
\renewcommand*{\partnamefont}{\normalfont\scshape\MakeLowercase}
\renewcommand*{\partnumfont}{\normalfont\scshape\MakeLowercase}

\renewcommand*{\printpartname}{\partnamefont{\ordinalstring{part}[m] part}}
\renewcommand*{\printpartnum}{}

\renewcommand{\midpartskip}{\par\parbox{0.5in}{\hrulefill}\par}
\renewcommand{\beforepartskip}{\vspace*{\fill}}
\renewcommand{\afterpartskip}{\vspace*{\fill}}

\renewcommand*{\cftpartname}{Part}
\renewcommand*{\cftpartpresnum}{\space}
\renewcommand*{\cftpartaftersnum}{.}
\renewcommand*{\cftpartaftersnumb}{\space}


\begin{document}

\part{Love}
\chapter{Help}

\part{Is}
\chapter{Help}

\part{The}
\chapter{Help}

\part{Air}
\chapter{Help}

\end{document}

到目前为止的情况:https://docdro.id/cPVVpH8

简而言之:为章节制作 veelo chapterstyle。

答案1

我对您的 MWE 做了一些细微的修改以满足您的要求。

% memchapprob.tex SE 535653 different chapter styles

\documentclass[10pt,a4paper,openany]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}

\usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}

\usepackage{graphicx} % needed for the veelo chapterstyle
\chapterstyle{veelo} %-----------------------------> This for chapter etc

%part
\aliaspagestyle{part}{empty}
\usepackage{fmtcount}
%\chapterstyle{thatcher}%-----------------------------------> This for parts ONLY
                        % you have basically redefined \part to give this

\renewcommand*{\thepart}{\arabic{part}}
\renewcommand*{\parttitlefont}{\normalfont\large\MakeUppercase}
\renewcommand*{\partnamefont}{\normalfont\scshape\MakeLowercase}
\renewcommand*{\partnumfont}{\normalfont\scshape\MakeLowercase}

\renewcommand*{\printpartname}{\partnamefont{\ordinalstring{part}[m] part}}
\renewcommand*{\printpartnum}{}

\renewcommand{\midpartskip}{\par\parbox{0.5in}{\hrulefill}\par}
\renewcommand{\beforepartskip}{\vspace*{\fill}}
\renewcommand{\afterpartskip}{\vspace*{\fill}}

\renewcommand*{\cftpartname}{Part}
\renewcommand*{\cftpartpresnum}{\space}
\renewcommand*{\cftpartaftersnum}{.}
\renewcommand*{\cftpartaftersnumb}{\space}


\begin{document}

\part{Love}
\chapter{Help}

\part{Is}
\chapter{Help}

\part{The}
\chapter{Help}

\part{Air}
\chapter{Help}

\end{document}

基本上你已经重新定义了\part具有撒切尔风格,所以不需要\chapterstyle{thatcher}\chapterstyle{veelo}但正如手册中所述,你确实需要graphicx包,否则你会得到错误veelo

相关内容