walking-zine/parts/2-memoir.tex

75 lines
2.8 KiB
TeX

%%% Page layout (half letter) %% Specific to Memoir class
% https://tex.stackexchange.com/a/758505/245702
\setstocksize{8.5in}{5.5in}
\settrimmedsize{8.5in}{5.5in}{*}
\settrims{0mm}{0mm}
\setlrmarginsandblock{12mm}{15mm}{*}
\setulmarginsandblock{22mm}{20mm}{*}
%%% Chapter titles %% Specific to Memoir class
\makechapterstyle{kchap}{
\renewcommand*{\chapterheadstart}{\vspace*{\beforechapskip}}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapternamenum}{\space}
\renewcommand*{\printchapternum}{\hfill\chapnumfont Chapter \thechapter}
\renewcommand*{\afterchapternum}{\par\nobreak\vskip \midchapskip\hrule\vspace{5mm}}
\renewcommand*{\printchapternonum}{}
%\renewcommand*{\printchaptertitle}[1]{\chaptitlefont #1}
\renewcommand*{\afterchaptertitle}{\par\nobreak\vskip \afterchapskip}
\renewcommand*{\chapnamefont}{\normalfont\normalsize}
\renewcommand*{\chapnumfont}{\normalfont\large\itshape}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\scshape}
\setlength{\beforechapskip}{0mm}
\setlength{\midchapskip}{2mm}
\setlength{\afterchapskip}{10mm}
}
\makechapterstyle{kfront}{
\renewcommand*{\chapterheadstart}{\vspace*{\beforechapskip}}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapternamenum}{\space}
%\renewcommand*{\printchapternum}{\hfill\chapnumfont Chapter \thechapter}
\renewcommand*{\afterchapternum}{\par\nobreak\vskip \midchapskip\hrule\vspace{5mm}}
\renewcommand*{\printchapternonum}{}
%\renewcommand*{\printchaptertitle}[1]{\chaptitlefont #1}
\renewcommand*{\afterchaptertitle}{\par\nobreak\vskip \afterchapskip}
\renewcommand*{\chapnamefont}{\normalfont\normalsize}
\renewcommand*{\chapnumfont}{\normalfont\large\itshape}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\scshape}
\setlength{\beforechapskip}{0mm}
\setlength{\midchapskip}{2mm}
\setlength{\afterchapskip}{10mm}
}
%%% Page styles %% Specific to Memoir class
%\newcommand{\kinfo}{{\footnotesize Chapter \thechapter{} • \S{} \rightmark{}}}
%\newcommand{\kinfo}{{\footnotesize Chapter \thechapter: \leftmark{} • \rightmark}}
\newcommand{\kinfo}{{\footnotesize Issue \kissue{} • Summer}}
\makepagestyle{kpage}
\makeevenhead{kpage}{\textsc{Walking}}{}{\kinfo}
\makeoddhead{kpage}{\kinfo}{}{\textsc{Walking}}
\makeevenfoot{kpage}{}{\thepage}{}
\makeoddfoot{kpage}{}{\thepage}{}
\makeheadrule{kpage}{\textwidth}{0.1mm}
\makefootrule{kpage}{\textwidth}{0.1mm}{2mm}
\makepsmarks{kpage}{
\nouppercaseheads
\createmark {chapter}{left}{nonumber}{}{}
\createmark {section}{right}{nonumber}{}{}
}
\makeatother
%%% Other Memoir class settings
\setlength{\epigraphwidth}{16em}
% Section styling
\setsecheadstyle{\normalsize\bfseries}
\setbeforesecskip{0.5\baselineskip}
\setaftersecskip{0.5\baselineskip}
% Indent sections in TOC
\setlength{\cftsectionindent}{10mm}
%%% required if you have changed the settings! %% Specific to Memoir class
\checkandfixthelayout