Skip to content

Commit 93e660b

Browse files
committed
- Adjust \schemedisplay{} to preserve the existing layout with the switch to <!DOCTYPE html>. inputs/scheme.hsty, doc/stex.css
1 parent 5d73fbf commit 93e660b

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

doc/stex.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ a.image:link, a.image:active, a.image:visited, a.image:hover {
1414
background: #FFFFFF;
1515
}
1616

17+
.schemedisplay { line-height: 1.0625; }
18+
1719
ul.tocchapter { list-style: none; }
1820
ul.tocsection { list-style: circle; color: #923a3a }
1921

doc/stex.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ <h3><a name="./stex:h1"></a>2. Installation</h3>
172172

173173
<p>
174174

175-
<p><tt>make&nbsp;Scheme=<i>schemepath</i></tt>
175+
<p class="schemedisplay"><tt>make&nbsp;Scheme=<i>schemepath</i></tt>
176176
<p>where <tt><i>schemepath</i></tt> is the path to the scheme executable.
177177

178178
<p>
@@ -184,7 +184,7 @@ <h3><a name="./stex:h1"></a>2. Installation</h3>
184184

185185
<p>
186186

187-
<p><tt>sudo&nbsp;make&nbsp;install&nbsp;Scheme=<i>schemepath</i>&nbsp;LIB=<i>libdir</i></tt>
187+
<p class="schemedisplay"><tt>sudo&nbsp;make&nbsp;install&nbsp;Scheme=<i>schemepath</i>&nbsp;LIB=<i>libdir</i></tt>
188188
<p>where <tt><i>schemepath</i></tt> is as described above, and <tt><i>libdir</i></tt> is the
189189
directory where the stex library directory should be installed.
190190
If <tt><i>libdir</i></tt> is writable by the current user, then <tt>sudo</tt>
@@ -195,15 +195,15 @@ <h3><a name="./stex:h1"></a>2. Installation</h3>
195195

196196
<p>
197197

198-
<p><tt>sudo&nbsp;make&nbsp;install&nbsp;PREFIX=<i>prefixdir</i></tt>
198+
<p class="schemedisplay"><tt>sudo&nbsp;make&nbsp;install&nbsp;PREFIX=<i>prefixdir</i></tt>
199199
<p>where <tt><i>prefixdir</i></tt> specifies in one shot the tree under which
200200
the Scheme executable is installed and
201201
under which the stex library should be installed.
202202
This concise invocation is equivalent to:
203203

204204
<p>
205205

206-
<p><tt>sudo&nbsp;make&nbsp;install&nbsp;Scheme=<i>prefixdir</i>/bin/scheme&nbsp;LIB=<i>prefixdir</i>/lib/stex<i>version</i></tt>
206+
<p class="schemedisplay"><tt>sudo&nbsp;make&nbsp;install&nbsp;Scheme=<i>prefixdir</i>/bin/scheme&nbsp;LIB=<i>prefixdir</i>/lib/stex<i>version</i></tt>
207207
<p>where <tt><i>version</i></tt> is the stex version number.
208208

209209
<p>
@@ -326,7 +326,7 @@ <h4><a name="./stex:h5"></a>4.2. Code displays</h4>
326326
<p>
327327
<blockquote>
328328

329-
<p><tt>(define&nbsp;fact<br>
329+
<p class="schemedisplay"><tt>(define&nbsp;fact<br>
330330

331331
&nbsp;&nbsp;(lambda&nbsp;(x)<br>
332332

@@ -378,14 +378,14 @@ <h4><a name="./stex:h5"></a>4.2. Code displays</h4>
378378
A <tt>let</tt> expression expands into a call to a <tt>lambda</tt>
379379
expression, e.g.:
380380

381-
<p><tt>(let&nbsp;([a&nbsp;17])&nbsp;<!-- Beginning of KaTeX output from "math/stex/3.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/3.html" -->&nbsp;((lambda&nbsp;(a)&nbsp;(+&nbsp;a&nbsp;a))<br>
381+
<p class="schemedisplay"><tt>(let&nbsp;([a&nbsp;17])&nbsp;<!-- Beginning of KaTeX output from "math/stex/3.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/3.html" -->&nbsp;((lambda&nbsp;(a)&nbsp;(+&nbsp;a&nbsp;a))<br>
382382

383383
&nbsp;&nbsp;(+&nbsp;a&nbsp;a))&nbsp;&nbsp;&nbsp;&nbsp;<span style="visibility: hidden"><!-- Beginning of KaTeX output from "math/stex/2.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" --></span>&nbsp;&nbsp;17)</tt>
384384
<p>A <tt>let</tt> expression first evaluates the right-hand-side
385385
expression, then evaluates the body in an environment that binds
386386
the left-hand-side variable to the resulting value, e.g.:
387387

388-
<p><tt>(let&nbsp;([a&nbsp;17])&nbsp;<!-- Beginning of KaTeX output from "math/stex/2.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" -->&nbsp;17<br>
388+
<p class="schemedisplay"><tt>(let&nbsp;([a&nbsp;17])&nbsp;<!-- Beginning of KaTeX output from "math/stex/2.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" -->&nbsp;17<br>
389389

390390
&nbsp;&nbsp;(+&nbsp;a&nbsp;a))</tt>
391391
<p></blockquote>
@@ -467,7 +467,7 @@ <h4><a name="./stex:h7"></a>4.4. Raw text in code</h4>
467467
<p>
468468
<blockquote>
469469

470-
<p><tt>(sqrt&nbsp;<i>x</i>)&nbsp;<!-- Beginning of KaTeX output from "math/stex/2.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" -->&nbsp;<!-- Beginning of KaTeX output from "math/stex/4.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mi>x</mi></msqrt></mrow><annotation encoding="application/x-tex">\sqrt{x}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.04em;vertical-align:-0.2397em;"></span><span class="mord sqrt"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8003em;"><span class="svg-align" style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord" style="padding-left:0.833em;"><span class="mord mathnormal">x</span></span></span><span style="top:-2.7603em;"><span class="pstrut" style="height:3em;"></span><span class="hide-tail" style="min-width:0.853em;height:1.08em;"><svg xmlns="http://www.w3.org/2000/svg" width='400em' height='1.08em' viewBox='0 0 400000 1080' preserveAspectRatio='xMinYMin slice'><path d='M95,702
470+
<p class="schemedisplay"><tt>(sqrt&nbsp;<i>x</i>)&nbsp;<!-- Beginning of KaTeX output from "math/stex/2.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo></mo></mrow><annotation encoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel"></span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" -->&nbsp;<!-- Beginning of KaTeX output from "math/stex/4.html" --><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mi>x</mi></msqrt></mrow><annotation encoding="application/x-tex">\sqrt{x}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.04em;vertical-align:-0.2397em;"></span><span class="mord sqrt"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8003em;"><span class="svg-align" style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord" style="padding-left:0.833em;"><span class="mord mathnormal">x</span></span></span><span style="top:-2.7603em;"><span class="pstrut" style="height:3em;"></span><span class="hide-tail" style="min-width:0.853em;height:1.08em;"><svg xmlns="http://www.w3.org/2000/svg" width='400em' height='1.08em' viewBox='0 0 400000 1080' preserveAspectRatio='xMinYMin slice'><path d='M95,702
471471
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
472472
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
473473
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -613,7 +613,7 @@ <h4><a name="./stex:h11"></a>5.1. Automatic transcript generation</h4>
613613
<p>
614614
<blockquote>
615615

616-
<p><tt>&gt;&nbsp;(define&nbsp;f<br>
616+
<p class="schemedisplay"><tt>&gt;&nbsp;(define&nbsp;f<br>
617617

618618
&nbsp;&nbsp;&nbsp;&nbsp;(lambda&nbsp;(x)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;&nbsp;indentation&nbsp;and&nbsp;comments&nbsp;are<br>
619619

@@ -715,7 +715,7 @@ <h4><a name="./stex:h11"></a>5.1. Automatic transcript generation</h4>
715715
<p>
716716
<blockquote>
717717

718-
<p><tt>&gt;&nbsp;#e4.5<br>
718+
<p class="schemedisplay"><tt>&gt;&nbsp;#e4.5<br>
719719

720720
9/2<br>
721721

@@ -825,7 +825,7 @@ <h4><a name="./stex:h11"></a>5.1. Automatic transcript generation</h4>
825825
<p>
826826
<blockquote>
827827

828-
<p><tt>&gt;&nbsp;(begin&nbsp;(display&nbsp;"&gt;&nbsp;\n")&nbsp;(exit))<br>
828+
<p class="schemedisplay"><tt>&gt;&nbsp;(begin&nbsp;(display&nbsp;"&gt;&nbsp;\n")&nbsp;(exit))<br>
829829

830830
<font color="#0000ff">&gt;&nbsp;<br>
831831

@@ -856,7 +856,7 @@ <h4><a name="./stex:h11"></a>5.1. Automatic transcript generation</h4>
856856
<p>
857857
<blockquote>
858858

859-
<p><tt>&gt;&nbsp;(waiter-prompt-string&nbsp;"antelope?&nbsp;")<br>
859+
<p class="schemedisplay"><tt>&gt;&nbsp;(waiter-prompt-string&nbsp;"antelope?&nbsp;")<br>
860860

861861
antelope?&nbsp;&nbsp;"no&nbsp;thanks"<br>
862862

@@ -922,7 +922,7 @@ <h4><a name="./stex:h12"></a>5.2. Loading initialization code</h4>
922922
<p>
923923
<i>The <tt>compute-length</tt> procedure behaves as follows:</i>
924924

925-
<p><tt>&gt;&nbsp;(compute-length&nbsp;'())<br>
925+
<p class="schemedisplay"><tt>&gt;&nbsp;(compute-length&nbsp;'())<br>
926926

927927
0<br>
928928

doc/stex.pdf

0 Bytes
Binary file not shown.

inputs/scheme.hsty

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
\def\scheme#1{{\tt #1}}
1919
\def\longcode\schemedisplay{\schemedisplay}
2020
\def\noskip\schemedisplay{\schemedisplay}
21-
\def\schemedisplay{\par\begingroup\tt\hardspaces}
21+
\def\schemedisplay{\begingroup\renewcommand{\par}{\raw{
22+
<p class="schemedisplay">}}\par\endgroup\begingroup\tt\hardspaces}
2223
\def\endschemedisplay{\endgroup\par}
2324
\def\schemeindent{}
2425
\def\schatsign{\raw{@}}

0 commit comments

Comments
 (0)