musings-style.tex /size: 1784 b    last modification: 2024-01-16 09:02
1% language=us runpath=texruns:manuals/musings
2
3\startenvironment musings-style
4
5\usemodule[abbreviations-logos]
6
7\setupbodyfont
8  [pagella]
9
10\setuplayout
11  [topspace=2cm,
12   header=0pt,
13   footer=1.5cm,
14   bottomspace=1cm,
15   width=middle,
16   height=middle]
17
18% \definecolor[maincolor] [darkyellow]
19% \definecolor[extracolor][darkblue]
20
21\definecolor[maincolor] [middleorange]
22\definecolor[extracolor][middleblue]
23
24\setuptype
25  [color=maincolor]
26
27\setuptyping
28  [color=maincolor]
29
30\setuphead
31  [color=maincolor]
32
33\setuphead
34  [chapter]
35  [style=\bfd]
36
37\setuphead
38  [chapter]
39  [after={\blank[3*line]},
40   align=flushright,
41   command=\ChapterCommand]
42
43\starttexdefinition unexpanded ChapterCommand#1#2
44    \hbox to \textwidth {
45        \hss
46        % title
47        #2
48      % \ifnum\getsomestructurenumber{\currentstructurelevel}{last}>\plusone
49        \ifnum\somenamedheadnumber{chapter}{last}>\plusone
50            \doifmode {*sectionnumber} {
51                % distance
52                \hskip10mm
53                % number
54                \struttedbox{\offset[x=-1mm,y=2.5mm]{\scale[height=2cm]{#1}}}
55            }
56        \fi
57    }
58\stoptexdefinition
59
60\setuphead
61  [section]
62  [style=\bfb]
63
64\setuphead
65  [subsection]
66  [style=\bf,
67   before=\blank,
68   after=\blank]
69
70\setuppagenumbering
71  [alternative=doublesided]
72
73\setupfootertexts
74  [][{\getmarking[chapter]\hbox to 2em{\hss\pagenumber}}]
75  [{\hbox to 2em{\pagenumber\hss}\getmarking[chapter]}][]
76
77\setupwhitespace
78  [big]
79
80\setuplist
81  [chapter]
82  [width=3em,
83   before={\testpage[3]\blank},
84   after={\blank[samepage]},
85   color=maincolor,
86   style=bold]
87
88\setuplist
89  [section]
90  [width=3em,
91   before={\blank[nowhite]},
92   after={\blank[nowhite]}]
93
94% \logo [MATHTYPE] {MathType}
95% \logo [SYNCTEX]  {Sync\TeX}
96
97\stopenvironment
98