From 18353dbe8a6816ed17dbdc9c15613c05291e2123 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sun, 7 Jun 2026 14:35:23 -0400 Subject: [PATCH] Section formatting updates (including TOC) & roman pages in frontmatter --- walking-001.tex | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/walking-001.tex b/walking-001.tex index f8f452b..8f2df4c 100644 --- a/walking-001.tex +++ b/walking-001.tex @@ -6,7 +6,7 @@ \usepackage{lettrine} % Drop caps \usepackage[object=vectorian]{pgfornament} \usepackage[hidelinks]{hyperref} - +\usepackage{lipsum} %%% Page layout (half letter) %% Specific to Memoir class @@ -37,7 +37,8 @@ %%% Page styles %% Specific to Memoir class %\newcommand{\kinfo}{{\footnotesize Chapter \thechapter{} • \S{} \rightmark{}}} -\newcommand{\kinfo}{{\footnotesize Chapter \thechapter: \leftmark{} • \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}} @@ -54,6 +55,12 @@ %%% 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 @@ -82,10 +89,6 @@ \def\kpubdate{August 2026} \def\kpubyear{2026} -%%% Links -% Make hrefs easier (must load package hyperref} -\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}} - %%% Text decorations \newcommand{\kdec}{ \noindent{}\begin{center} @@ -93,11 +96,28 @@ \end{center} } +%%% Misc commands +%\setcounter{secnumdepth}{0} +\newcommand{\kskip}{\\\hphantom{xxx}} +% Make hrefs easier (must load package hyperref} +\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}} +% Put unnumbered sections in TOC, also with idented second lines for Latin names +\newcommand{\ksecp}[2]{ + \section*{{#1}\kskip{}{#2}} + \addcontentsline{toc}{section}{{#1} {#2}} + } +\newcommand{\ksecn}[1]{ + \section*{{#1}} + \addcontentsline{toc}{section}{{#1}} + } + %%% Get it started \checkandfixthelayout \begin{document} +\pagenumbering{roman} + %% Title Page \pagestyle{empty} \vspace*{25mm} @@ -130,7 +150,9 @@ First Printing \newpage %% Impressum -\section*{Impressum} +%\setcounter{page}{1} +\chapter*{Impressum} +\addcontentsline{toc}{chapter}{Impressum} All contents \copyright\kpubyear{} Kenneth John Odle @@ -161,9 +183,14 @@ All contents \copyright\kpubyear{} Kenneth John Odle \newpage %% TOC +\pagestyle{empty} \tableofcontents +\cleardoublepage % Delete if TOC runs to 2n pages \setcounter{page}{1} + +%% Begin Contents +\pagenumbering{arabic} \pagestyle{kpage} \chapterstyle{kchap} @@ -189,11 +216,13 @@ He goes on to give a long (and possibly incorrect) definition of the word \texti It took me longer than it should have to realize that introduced species tend to do well in distubed places—and lawns, gardens, and the sides of roads and paths are all disturbed spaces. So it makes sense that the vast majority of what I find there introduced species. If I want to see native species, I need to visit the wild spaces around me and go further afoot. -\section{Poison Hemlock (\textit{Conium maculatum} L.} -One plant that has wandered far afield is poison hemlock (\textit{Conium maculatum} L.) which I have noticed in increasing numbers in recent years. It is native to Europe and North Africa, and has spread to almost every continent in the past few hundred years, where it is often an invasive weed. +\ksecp{Poison Hemlock}{(\textit{Conium maculatum} L.)} +\noindent{}One plant that has wandered far afield is poison hemlock (\textit{Conium maculatum} L.) which I have noticed in increasing numbers in recent years. It is native to Europe and North Africa, and has spread to almost every continent in the past few hundred years, where it is often an invasive weed. A member of the Apiaceae family (which also includes carrots, dill, and parsnips), it is a striking plant. It can grow to two and a half meters in height and has fernlike bipinnately compound leaves (although this varies from the bottom of the plant to the top), and beautiful white flowers that are tiny and white, but make up for their dimunitiveness by appearing in large compound umbels. The hollow stems are often spotted or streaked with a dull purple color. Once you have see it, you cannot miss it growing in other areas. +\lipsum[1-20] + \end{multicols} @@ -212,7 +241,7 @@ A member of the Apiaceae family (which also includes carrots, dill, and parsnips \lettrine[lraise=0.0, nindent=-0pt]{}{} -\section{The Golf Course} +\ksecn{The Golf Course} \lettrine[lraise=0.0, nindent=-0pt]{}{} I am always reminded, of course, of the short poem ``The Golf Links'':