summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorp <grr@lo2.org>2024-12-19 03:15:15 -0500
committerp <grr@lo2.org>2024-12-19 03:15:15 -0500
commit377f30878c453b5d59b7a6c929c22d10b2d73082 (patch)
treea6387cb24b5b55405eee23d1d06eff0d7ab126f1
parent08363d95c168794e401d81c809eb6617bd50386f (diff)
downloadsal.otx-377f30878c453b5d59b7a6c929c22d10b2d73082.tar.gz
add parts
-rw-r--r--sal.otx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sal.otx b/sal.otx
index b3268cd..9f86cf3 100644
--- a/sal.otx
+++ b/sal.otx
@@ -103,6 +103,17 @@
\_nobreak \_belowtitle{\_medskip}%
\_firstnoindent}
+% ============ parts
+\newcount\partnum
+\eoldef\part#1{\vfil\break
+ \incr\partnum \_chapnum=0 \_chapx % reset counters
+ \vglue100pt
+ \incr\tocrefnum \dest[toc:\the\tocrefnum] % destination from TOC and outlines
+ \centerline{\typosize[20/]\bf Part \the\partnum:\quad #1} % Title
+ \_ewref\_Xtoc{{0}{part}{}{}#1} % TOC line, \part has level 0
+ {\nopagenumbers \vfil\break} % single page without pageno
+}
+
% ============ sal style
\load[mte]
% \load[f_pp_writer]