Skip to content

Commit c01b658

Browse files
authored
Add more wow effect to the rule example (#48)
1 parent e5a860f commit c01b658

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

content/examples/rule.sil

+24-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,30 @@
33
\use[module=packages.rules]
44
\use[module=packages.raiselower]
55
\font[size=14pt]
6-
S\glue[width=-0.1en]\raise[height=-0.5ex]{\font[size=9pt]{I}}\glue[width=-0.1en]L\glue[width=-0.4en]\raise[height=0.5ex]{\font[size=7pt]{E}}
7-
comes with a number of packages which provide additional functionality.
86

9-
A box: \raise[height=1ex]{\hrule[width=3em, height=0.4pt]} here.
7+
“Rules” are rectangular ink blobs that can be be used to create a variety of effects.
8+
9+
\fullrule
10+
11+
Simple rectangular boxes are easy. QED \hrule[height=1ex, width=1ex]
12+
13+
\noindent\hfill\raise[height=0.5ex]{\hrule[width=25%lw, height=0.4pt]}\hfill
14+
15+
One can also underline \underline{content} or strike \strikethrough{content}.
16+
These can be nested and can span multiple lines as paragraphs are line-wrapped:
17+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. \underline{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor}. \strikethrough{Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.} Duis semper. Duis arcu massa, \underline{scelerisque \strikethrough{vita} vitae}, consequat in, pretium a, enim.
18+
19+
\noindent\hfill\raise[height=0.5ex]{\hrule[width=25%lw, height=0.4pt]}\hfill
20+
21+
Rule “fills” stretch to the available width of the line.
22+
23+
Placeholder for some input: \hrulefill[position=underline].
24+
25+
\medskip
26+
Obviously, the following example is just for the Wow! factor.
27+
There are many ways to display a glider from Conway’s Game of Life, and this one is certainly not the most efficient and elegant!
28+
29+
\noindent\hrulefill[raise=9pt, thickness=1pt]\glue[width=2pt]\rebox[height=20pt]{\hrule[height=5pt, width=5pt]\glue[width=1pt]\hrule[height=5pt, width=5pt]\glue[width=1pt]\hrule[height=5pt, width=5pt]\glue[width=-5pt]\raise[height=6pt]{\hrule[height=5pt, width=5pt]}%
30+
\glue[width=-11pt]\raise[height=12pt]{\hrule[height=5pt, width=5pt]}}\glue[width=9pt]\hrulefill[raise=9pt, thickness=1pt]
1031

11-
Test \underline{underlining several words}.
1232
\end{document}

0 commit comments

Comments
 (0)