new deco and textstyles

This commit is contained in:
Never Gude 2026-01-30 02:22:57 +01:00
parent 00b3993dba
commit 1e6519570b
2 changed files with 201 additions and 19 deletions

108
decorations.isy Normal file
View file

@ -0,0 +1,108 @@
<ipestyle name="decorations">
<symbol name="decoration/simple-box-small">
<path stroke="black" fill="lightgray">
96 96 m
304 96 l
304 204 l
96 204 l
h
</path>
</symbol>
<symbol name="decoration/simple-box-large">
<path stroke="black" fill="lightgray">
92 208 m
92 92 l
308 92 l
308 208 l
h
</path>
</symbol>
<symbol name="decoration/rounded-box-small">
<path stroke="black" fill="lightblue">
100 204 m
4 0 0 4 100 200 96 200 a
96 100 l
4 0 0 4 100 100 100 96 a
300 96 l
4 0 0 4 300 100 304 100 a
304 200 l
4 0 0 4 300 200 300 204 a
h
</path>
</symbol>
<symbol name="decoration/rounded-box-large">
<path stroke="black" fill="lightgray">
96 208 m
4 0 0 4 96 204 92 204 a
92 96 l
4 0 0 4 96 96 96 92 a
304 92 l
4 0 0 4 304 96 308 96 a
308 204 l
4 0 0 4 304 204 304 208 a
h
</path>
</symbol>
<symbol name="decoration/tabbed">
<path stroke="black" fill="lightgray">
96 204 m
96 96 l
304 96 l
304 204 l
108 204 l
107 207
106 208
105 208
99 208
98 208
97 207
96 204 s
h
</path>
</symbol>
<symbol name="decoration/3d-box">
<group>
<path stroke="black" fill="lightgray">
98 206 m
96 204 l
96 96 l
304 96 l
306 98 l
306 206 l
h
</path>
<path stroke="black">
96 204 m
304 204 l
304 96 l
</path>
<path stroke="black">
304 204 m
306 206 l
</path>
</group>
</symbol>
<symbol name="decoration/comic">
<path stroke="black" fill="white">
110 96 m
106 96
96 96
96 106
96 194
96 204
106 204
294 204
304 204
304 194
304 106
304 96
294 96
118 96 s
116 92
106 88 s
110 92
110 96 s
h
</path>
</symbol>
</ipestyle>

View file

@ -2,10 +2,26 @@
<preamble> <preamble>
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
\usepackage[sansdefault]{fontsetup} \usepackage[sansdefault]{fontsetup}
\usepackage{enumitem}
\usepackage{ngutils} \usepackage{ngutils}
\setlist{leftmargin=*} \newcommand{\labelfont}{\normalfont\bfseries\color{NG dark blue}}
%\setlength{\leftmargini}{1.33em}
%\setlength{\leftmarginii}{1.33em}
%\setlength{\leftmarginiii}{1.33em}
%\setlength{\leftmarginvi}{1.33em}
\renewcommand{\labelenumi}{\labelfont\arabic{enumi}.}
\renewcommand{\labelenumii}{\labelfont\alph{enumii})}
\renewcommand{\labelenumiii}{\labelfont\roman{enumiii}.}
\renewcommand{\labelenumiv}{\labelfont\Alph{enumiv}.}
\renewcommand{\labelitemi}{\labelfont $\blockfull$}
\renewcommand{\labelitemii}{\labelfont $\blackpointerright$}
\renewcommand{\labelitemiii}{\labelfont $\bullet$}
\renewcommand{\labelitemiv}{\labelfont $\bullet$}
\setlength{\fboxsep}{1pt}
\newcommand{\bk}{\color{black}} \newcommand{\bk}{\color{black}}
\newcommand{\wt}{\color{white}} \newcommand{\wt}{\color{white}}
@ -22,6 +38,12 @@
\newcommand{\tl}{\color{title}} \newcommand{\tl}{\color{title}}
</preamble> </preamble>
<textstyle name="enumerate" begin="\begin{enumerate}" end="\end{enumerate}"/>
<textstyle name="algorithmic" begin="\begin{algorithmic}" end="\end{algorithmic}"/>
<textstyle name="theorem" begin="\begin{theorem}" end="\end{theorem}"/>
<textstyle name="lemma" begin="\begin{lemma}" end="\end{lemma}"/>
<!-- Arrows that are recessed a bit so that they don't overlap with the marks -->
<symbol name="arrow/ng-fnormal(spx)"> <symbol name="arrow/ng-fnormal(spx)">
<path stroke="sym-stroke" fill="white" pen="sym-pen"> <path stroke="sym-stroke" fill="white" pen="sym-pen">
-0.7 0 m -0.7 0 m
@ -88,6 +110,63 @@ h
</path> </path>
</symbol> </symbol>
<!-- Decorations for groups -->
<symbol name="decoration/remark">
<path stroke="NG dark gray" fill="NG light yellow">
100 204 m
4 0 0 4 100 200 96 200 a
96 100 l
4 0 0 4 100 100 100 96 a
300 96 l
4 0 0 4 300 100 304 100 a
304 200 l
4 0 0 4 300 200 300 204 a
h
</path>
</symbol>
<symbol name="decoration/theorem">
<path stroke="NG dark blue" fill="NG light blue">
100 204 m
4 0 0 4 100 200 96 200 a
96 100 l
4 0 0 4 100 100 100 96 a
300 96 l
4 0 0 4 300 100 304 100 a
304 200 l
4 0 0 4 300 200 300 204 a
h
</path>
</symbol>
<symbol name="decoration/definition">
<path stroke="NG dark gray" fill="NG light yellow">
96 96 m
304 96 l
304 204 l
96 204 l
h
</path>
</symbol>
<symbol name="decoration/algorithm">
<path stroke="NG dark gray" fill="NG light green" dash="dashed">
96 96 m
304 96 l
304 204 l
96 204 l
h</path>
</symbol>
<symbol name="decoration/graph">
<path stroke="NG dark gray">
92 92 m
308 92 l
308 208 l
92 208 l
h
</path>
</symbol>
<color name="NG dark blue" value="0.121 0.47 0.705"/> <color name="NG dark blue" value="0.121 0.47 0.705"/>
<color name="NG dark brown" value="0.651 0.337 0.157"/> <color name="NG dark brown" value="0.651 0.337 0.157"/>
<color name="NG dark cyan" value="0.106 0.62 0.467"/> <color name="NG dark cyan" value="0.106 0.62 0.467"/>
@ -108,35 +187,30 @@ h
<color name="NG light purple" value="0.792 0.698 0.839"/> <color name="NG light purple" value="0.792 0.698 0.839"/>
<color name="NG light red" value="0.984 0.603 0.6"/> <color name="NG light red" value="0.984 0.603 0.6"/>
<color name="NG light yellow" value="1 1 0.8"/> <color name="NG light yellow" value="1 1 0.8"/>
<color name="print blue" value="0.169 0.514 0.729"/>
<color name="print green" value="0.671 0.867 0.643"/>
<color name="print orange" value="0.992 0.682 0.38"/>
<color name="print red" value="0.843 0.098 0.11"/>
<color name="print yellow" value="1 1 0.749"/>
<color name="title" value="0.247 0.282 0.392"/> <color name="title" value="0.247 0.282 0.392"/>
<color name="pagenumber" value="0.5 0.5 0.5"/> <color name="pagenumber" value="0.5 0.5 0.5"/>
<pen name="ultrafat" value="6"/>
<pen name="fat" value="3.6"/> <pen name="fat" value="3.6"/>
<pen name="heavier" value="2.4"/> <pen name="heavier" value="2.4"/>
<pen name="normal" value="1.2"/> <pen name="normal" value="1.2"/>
<pen name="ultrafat" value="6"/>
<symbolsize name="large" value="15"/> <symbolsize name="large" value="15"/>
<symbolsize name="normal" value="9"/> <symbolsize name="normal" value="9"/>
<symbolsize name="small" value="6"/> <symbolsize name="small" value="6"/>
<symbolsize name="tiny" value="3.3"/> <symbolsize name="tiny" value="3.3"/>
<textstretch name="Huge" value="2"/> <textstretch name="Huge" value="2.4"/>
<textstretch name="LARGE" value="2"/> <textstretch name="LARGE" value="2.4"/>
<textstretch name="Large" value="2"/> <textstretch name="Large" value="2.4"/>
<textstretch name="footnote" value="2"/> <textstretch name="footnote" value="2.4"/>
<textstretch name="huge" value="2"/> <textstretch name="huge" value="2.4"/>
<textstretch name="large" value="2"/> <textstretch name="large" value="2.4"/>
<textstretch name="normal" value="2"/> <textstretch name="normal" value="2.4"/>
<textstretch name="script" value="2"/> <textstretch name="script" value="2.4"/>
<textstretch name="small" value="2"/> <textstretch name="small" value="2.4"/>
<textstretch name="tiny" value="2"/> <textstretch name="tiny" value="2.4"/>
<layout paper="1024 576" origin="16 16" frame="992 512" skip="16" crop="no"/> <layout paper="1024 576" origin="16 16" frame="992 496" skip="16" crop="no"/>
<pagenumberstyle pos="1000 552" color="pagenumber" size="tiny" valign="top" halign="right"></pagenumberstyle> <pagenumberstyle pos="1000 552" color="pagenumber" size="tiny" valign="top" halign="right"></pagenumberstyle>
<titlestyle pos="0 544" size="Large" color="title" valign="top"/> <titlestyle pos="0 544" size="Large" color="title" valign="top"/>
</ipestyle> </ipestyle>