diff options
author | p <grr@lo2.org> | 2024-11-19 21:30:01 -0500 |
---|---|---|
committer | p <grr@lo2.org> | 2024-11-19 21:30:01 -0500 |
commit | b2fa572ad0c9b9ae693f0dbca745863c66b7fdf1 (patch) | |
tree | c21e3e5c730bd536377b059f78d4c3d1ceb7e9e9 /aux.otx | |
parent | 4fcc9bf9b03e32618cfdad1b40ab828d321df583 (diff) | |
download | blueprint-b2fa572ad0c9b9ae693f0dbca745863c66b7fdf1.tar.gz |
first bad stab at styles
Diffstat (limited to 'aux.otx')
-rw-r--r-- | aux.otx | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ +\def\blankstyle{ + \headline={} + \footline={}} + +\def\frontmatterstyle{ + \headline={} + \footline={\_hss\rmfixed \romannumeral\_folio \_hss}} + + +\def\essaytitle#1{\ul{#1}} + +% --- strikeouts +% --- TODO this should be moved into sal.otx probably +\def\cancel#1#{\isempty{#1}\iftrue \afterfi{\cancel/} + \else + \lowercase{\casesof #1} + / {\let\cancline=\drawFslash} + \\ {\let\cancline=\drawBslash} + x {\def\cancline{\drawBslash\drawFslash}} + - {\let\cancline=\drawHline} + \_finc {}% + \ea\cancelA + \fi +} +\def\cancelA{\ifmmode \ea\cancelM \else \ea\cancelT \fi} +\def\cancelT#1{\setbox0=\hbox{#1}\cancelF} % text mode +\def\cancelM#1{\mathstyles{\setbox0=\hbox{$\currstyle#1$}\cancelF}} % math mode +\def\cancelF{\edef\tmp{\cancline}\quitvmode\box0 \pdfliteral{q \useit{\cancelparams} \tmp S Q}} +\def\drawFslash{\bp{-\wd0} \bp{-\dp0} m 0 \bp{\ht0} l } % forward slash +\def\drawBslash{\bp{-\wd0} \bp{\ht0} m 0 \bp{-\dp0} l } % backward slash +\def\drawHline {\bp{-\wd0} \bp{.5ex} m 0 \bp{.5ex} l } % horizontal line +\def\cancelparams{1 0 0 RG 1 J .6 w} % color RG linetype J linewidth w +% --------- + +\typosize[10/13]
\ No newline at end of file |