Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!murtoa.cs.mu.oz.au!ditmela!diemen!tasis!ben From: ben@tasis.utas.oz.au@munnari.oz (Ben Lian) Newsgroups: comp.text Subject: Monospace in TeX/LaTeX Message-ID: <955@diemen.cc.utas.oz> Date: 11 Jul 89 06:30:49 GMT Sender: root@diemen.cc.utas.oz Lines: 43 I am trying to typeset some program fragments in typewriter style. At the moment I do this by defining a new (LaTeX) tabbing environment and then doing things like \begin{program} \>{\tt TYPE} \\ \>\>{\tt T1 = PRODUCT} \\ \>\>\>{\tt f1 : word} \\ \>\>\>{\tt f2 : word} \\ \>\>{\tt END} \>{\tt END} \end{program} (1) There must be an easier way of doing this, and I'd appreciate it if you could let me in on the secret; (2) The single space between each colon and the following 'word' gets expanded to what looks like something between 1.5 and 2 spaces. Why is this happening? And what can be done about it? (This is also happening with 'c ! e' and 'c ? v'. I must have program fragments in typewriter style in order to distinguish them from other examples which may be mistaken for program fragments. Ben Lian ----------------------------------------------------------------------- Benjamin Y H Lian ACSnet: ben@tasis.utas.oz Dept. of EE & CS ARPA : ben%tasis.utas.oz.au@uunet.uu.net University of Tasmania BITnet: munnari!tasis.utas.oz!ben@ GPO Box 252C uunet.uu.net Hobart, Tasmania 7001 UUCP : {enea,hplabs,mcvax,uunet,ukc}! A U S T R A L I A munnari!tasis.utas.oz!ben Tel: +61-02-202380 Fax: +61-02-202713 ----------------------------------------------------------------------- "Fortunately the computer virus did no harm to our records. It was immediately devoured by all the bugs in our programming." -- Cartoon, CW Australia