summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/literate/MAIL.ireland
blob: d9e94e8bbbe9387531d8ed070c0f23d91d6d3d7e (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From E.Ireland@massey.ac.nz Wed Aug 21 01:56:20 1991
X-VM-Attributes: [nil nil nil nil t]
Status: RO
Via: uk.ac.nsf; Wed, 21 Aug 91 01:56:14 BST
Received: from vax.nsfnet-relay.ac.uk by sun2.nsfnet-relay.ac.uk 
          with SMTP inbound id <26022-5@sun2.nsfnet-relay.ac.uk>;
          Wed, 21 Aug 1991 01:54:16 +0100
Received: from [130.123.1.7] by vax.NSFnet-Relay.AC.UK via NSFnet with SMTP 
          id aa23150; 21 Aug 91 1:39 BST
Received: from sis-a by cc-server4.massey.ac.nz (5.64+IDA-1.3.1) id AA15464;
          Wed, 21 Aug 91 12:48:43 +1200
Received: from sis-c.sis by sis-a (4.1/SMI-4.0) id AA00751;
          Wed, 21 Aug 91 12:48:26 NZS
Message-Id: <9108210048.AA00751@sis-a>
Received: by sis-c.sis (4.1/SMI-4.1) id AA13550; Wed, 21 Aug 91 12:48:20 NZS
In-Reply-To: Will Partain's message of Sat, 6 Jul 91 04:21:31 BST <16225.9107060321@dcs.glasgow.ac.uk>
From: E.Ireland@massey.ac.nz
To: partain, simonpj
Subject: Literate Haskell:
Date: Wed, 21 Aug 91 12:48:26 NZS

Will and/or Simon,

I have all the literate Haskell stuff up and running here, but I can't see how
to do a few of the things that I thought I would be able to.  If I put code in
code or pseudocode environments, it is typeset flush with the left margin.  I
would like

\begin{code}
f x y = x + y
\end{code}

to typeset as

    > f x y = x + y

and would like

\begin{pseudocode}
f x y = x + y
\end{pseudocode}

to typeset as

    f x y = x + y

After a section title or code environment, the second and subsequent following
paragraphs should have the first line indented, but this is not happening.  I
don't remember having to specify anything to LaTeX in the past to get this
behaviour, but I am not a LaTeX hacker, and neither is any member of our
support staff.  How can I fix this?

Ideally, I would like the code and pseudocode environments to be indented by
the same amount as the indentation for the first line of a `subsequent'
paragraph.  Thus I would like things to appear much as they do in the recent
S.P.E. article on Lambda Lifting by Simon and David Lester, but with a smaller
amount of indentation for code environments.

In summary, my questions are:

(1) How do I get the first line indentation for `subsequent' paragraphs?

(2) How do I get the same amount of indentation for code environments?

(3) How do I get the '>'s for code environments (but not for pseudocode
    environments)?

I would appreciate a prompt reply: I am hoping to complete a paper which has a
3 Sept. deadline.

	Thanks in advance,
_______________________________________________________________________________

E.Ireland@massey.ac.nz          Evan Ireland, Department of Computer Science,
 +64-6-3569099 x8541          Massey University, Palmerston North, New Zealand.