summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/literate/code-bug.tex
blob: 7007b2b8eedd63952b54418980d705be67a27c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\documentstyle[11pt,code]{article}
\begin{document}

\section{Section 1}

Here is a non-first paragraph of code.

\begin{code}
f x y = x
g x y = x
f1 x y = x
g1 x y = x\end{code}

Here is the same thing with some index entries immediately following.

\begin{code}
f x y = x
g x y = x
f1 x y = x
g1 x y = x\end{code}
\index{foo}%
\index{bar}%
\index{baz}

{\em The bug is the overly-big space above this line.}

\section{Section 2}

Now we do the same thing, but with `quotation' (another `list'
environment), not `code'.

\begin{quotation}
f x y = x
g x y = x
f1 x y = x
g1 x y = x\end{quotation}

Here is the same thing with some index entries immediately following.

\begin{quotation}
f x y = x
g x y = x
f1 x y = x
g1 x y = x\end{quotation}
\index{foo}%
\index{bar}%
\index{baz}

And some final text for this section.
\end{document}