UKTeX Digest    Friday, 27 Nov 1992    Volume 92 : Issue 44

   ``The UKTeX Digest is brought to you as a free, unfunded and voluntary
        service of the UK TeX Users Group and the UK TeX Archive.''

Today's Topics:
 {Q&A}:
                      Reese's query on hanging indentation
                                    Scoping
                             Help needed with NFSS
                           Re: Help needed with NFSS
                   Conversion from LaTeX to Word-for-Windows?
                            mfpic bug and a solution
                       Double and Single Spacing in LaTeX
                     Re: Double and single spacing in Latex
                     Re: Double and Single Spacing in LaTeX
                     Re: Double and Single Spacing in LaTeX
                            emTeX DVIHPLJ and DVISCR

Administrivia:
    Moderators:     Peter Abbott (Aston University) and
                    David Osborne (University of Nottingham)
    Contributions:  UKTeX@uk.ac.tex
    Administration, subscription and unsubscription requests:
                    UKTeX-request@uk.ac.tex

------------------------------------------------------------

Date:    Thu, 19 Nov 92 16:46:00 +0000
From:    Jonathan Fine <J.Fine@uk.ac.cambridge.dpmms>
Subject: Reese's query on hanging indentation

Allan Reese ask why it is that
        \def\hang{ \hangindent= etc  }
        \everypar{\hang}

does not properly work when
        {\bf This} is the first word of a paragraph

is the text to be typeset.

I dont'w have the TeXbook to hand (or TeX on a familar machine)
but my understanding is this.

1.  The values of \hangindent and \hangafter at the *end* of
the paragraph determine the \hang-indentation.

2.  \hangafter and \hangindent are reset to zero at the end of
each paragraph, and also when a \vbox is begun.

2a.  (It may be that they are reset to zero at the beginning
of the paragraph, but I doubt it.

3.  If the mode is vertical, then horizontal mode material - 
such as a letter, will begin a paragraph, and thus trigger
\everypar.

This, the line above
        {\bf This} is the first word of a paragraph

will first
a) begin a group
then
b) change font
c) horizontal material, and so
d) insert \everypar
e) go on to typeset.

CONCLUSIONS
1.  The \everypar material has taken place within a group.
2.  The values of \hangafter and \hangindent have not changed
at the end of the paragraph.
3.  The problem will "go away" if the \hang command made *\global*
assignments to \hangafter and \hangindent.
4.  This is a trap for the unwary.

Best wishes

Jonathan Fine

------------------------------

Date:    Mon, 23 Nov 92 13:37:17 +0700
From:    "R.A.Reese" <R.A.Reese@uk.ac.hull.cc.sequent>
Subject: Scoping

Looking again at the replies to "another gem", I think there is some
confusion about my original point.  TeX has scoping rules for objects,
i.e., macros, and these follow some convention of a block structured
language.  What I was commen ting on is the use of variables, i.e.,
registers, I haven't fully understood Jerry Leichter's detailed
response, but he also refers to "TeX where macros can defin e other
macros".

The "declarations" involved in using registers are, if anything,
declarations of pointers, since TeX has a fixed number of registers
and a command such as \newcount \comnumber allocates the next
available register and makes \comnumber in some sense synonymous with
its index number.  The pitfall I found (twice in one day) is that if
you write \advance\comnumber by 1 in a group, you get an answer that
is one greater than the value on entry to the group, but on exit from
the group \comnumber reverts to its previous value.  So why does a
local copy get made? A nd given the fixed workspace, where?  The
solution seems to be (almost) always to put \global\advance whenever
doing arithmetic in a macro, since you don't know whether it will be
expanded within a group or not. Conversely, since you don't know
whether the macro will be expanded at the outer level, you can't rely
on i ts leaving the register unchanged. So I don't see the advantage
of not having an implicit \global or just saying that registers, like
macros, stay in scope for inferior blocks unless redefined.

- -- 
(R.) Allan Reese        Janet:          r.a.reese@uk.ac.hull
Head of Applications    Direct voice:   +44 482 465296
Computer Centre         Voice messages: +44 482 465685
Hull University         Fax:            +44 482 466441
Hull HU6 7RX, U.K.

------------------------------

Date:    Mon, 23 Nov 92 09:01:29 +0000
From:    MAHearnden <M.A.Hearnden@uk.ac.loughborough>
Subject: Help needed with NFSS

I hope that someone in the group is able to help me.
My aim is to make AmsLaTex/AmsTeX available to users of our
Hewlett Packard 9000/800 machines, which are using HP-UX v8.
TeX and LaTeX were installed by someone else, mostly by copying
stuff over from another machine.  The person who installed THAT
cant remember the details enough to help me.
But I discovered that AMS needs NFSS fonts, and I needed to update 
LaTex (and, perhaps, Tex).
So I started to update
to the latest version of Latex.  I ftp'd the file - 
from Imperial, I think, anyway, the date on it was Mar92.

Uncompressed it and de-tarred it.  Printed out the installation
instructions.
Running through the instructions in the Latex.ins document,
I've copied the new versions of the files to the relevant directories,
and run initex to create a new version of lplain.fmt.

The next step is to run virtex to produce a core dump: OK.

The 'undump' command which follows this fails.
The documentation says that the current release of WEB-to-C no longer uses 
undump, 'follow the instructions in the WEB-to-C documentation'.

Hence my question: I can't find said instructions .
I've had a poke around, but cant see anything likely.

Can someone tell me what instruction I should
use to create a new Latex which implements NFSS fonts?
Or where I can find the information?

I'm sorry to bother you all, but I'm getting rather desperate.
Mavis
(a very new Latex 'administrator')
 
PS
Seems that I'm half way to installing NFSS, but not far enough.
To add to my troubles, this new version of lplain.fmt (at least, I assume
it's this), when using art10.sty, reports a fault at 
{\reset@font\Large\bf}}

complaining about undefined control sequence.

Please help
- -- 
Mavis Hearnden
Computer Centre
Loughborough University,
Leicestershire
England

------------------------------

Date:    Thu, 26 Nov 92 09:25:15 +0100
From:    Schoepf%de.zib-berlin.sc@uk.ac.uknet-relay
Subject: Re: Help needed with NFSS

Regarding amslatex installation:

 >  Next file asked for was xxxlfont.sty: it got oldlfont.sty.
 > (version 1.3f, Sept 92)
 > initex picked up the latex.tex file, dated Jan 1992.After the \dump command,
a  
 > list of fonts followed: these seemed to
 > be in NFSS format (e.g.,\font\cmsy/m/n/11=cmsy10 at 10.95pt)
 > Finally, I copied the lplain.fmt file into the /formats directory.
 > 
 > Tried the Amslatex file testart.tex, and got the same old message!

This should work, except that basefont.tex should be used instead of
oldlfont.sty. 

 > >>  Now I've found some more files - two with the suffix .dc,
 > and an install.mz3 which invites one to get the docstrip
 > script and use latex install.mz3.
 > I had a try at this: it implied that this produced files which were
 > essential for NFSS.  Unfortunately, it failed when stripping scripts.doc.

Probably an old docstrip (before version 2).

Rainer

------------------------------

Date:    Mon, 23 Nov 92 16:46:47 +0000
From:    Philip Taylor (RHBNC) <P.Taylor@uk.ac.rhbnc.vax>
Subject: Conversion from LaTeX to Word-for-Windows?

Michael Branson (081-908 1686) would like to know if there exists a mechanism
for converting a LaTeX file (including mathematics) into Word-for-Windows
format.

                                        Philip Taylor, RHBNC.

------------------------------

Date:    24 Nov 92 11:52:41 +0000
From:    M.Piff@uk.ac.sheffield
Subject: mfpic bug and a solution

There is a problem that I have noticed with MFPIC. If you try to centre
diagrams with labels in, the diagrams break up. There is an easy fix for
LaTeX pictures, but it would be preferable if the same thing were done
in the plain TeX macros instead. LaTeX fix is appended.

I have set all the diagrams for one of my courses with this package, and
very successfully, although standard MF became amnesic when I gave it the sixth
Fourier approximation to a square wave to draw.

All you need to run MFPIC is MF the program, the plain format and
GFTOPK, which does not occupy that much space on a hard disk.
You don't need all the font sources as well, but you will need the file
with the mode definition for your printer.
In MS-DOS the package can be run from a simple batch file.
Here is mine for generating fonts suitable for a laserjet.

@echo off
rem THIS IS MFPIC.BAT
mf &plain \mode=localfont; input %1
ren SBMF generates %1.300, so...
del %1.gf
rem ...and...
ren %1.300 %1.gf
gftopk %1
rem Now we have %1.tfm and %1.pk in current directory.
del %1.gf

Mode localfont has been set to a laserjet.

One has to tell TeX and the drivers where the .TFM and .PK files
are. This can be done in emTeX by means of environment variables.
The current directory ``.'' is then searched first.

set textfm=.;e:\tfms
set dvidrv=/pf.;e:\fonts\dpi$r

I can thoroughly recommend this package.

Mike Piff

%%%  File:  lamfpic.tex
%%%

\catcode`!=11
\let\!picture=\picture
\let\!endpicture=\endpicture
\input{mfpic}
\let\!pic=\picture
\let\!endpic=\endpicture
\newenvironment{mfpic}%
{\leavevmode\vbox\bgroup\flushleft\!pic}{\!endpic\egroup} %%<--- MJP
\let\picture=\!picture
\let\endpicture=\!endpicture
\catcode`!=12

Dr M J Piff                        JANET:
Department of Pure Mathematics     pm1mjp%hicks1.shef@sunc.shef.ac.uk
University of Sheffield            M.Piff@pa.shef.ac.uk
Hicks Building
Hounsfield Road
SHEFFIELD S3 7RH                   Telephone: SHEFFIELD (0742) 768555
England                                       Ext. 4431

------------------------------

Date:    Tue, 24 Nov 92 14:24:00 +0000
From:    Alastair G Gunn <"ARVAD::AGG"@uk.ac.queens-belfast.armagh.starlink>
Subject: Double and Single Spacing in LaTeX

I have been given your username by my site manager in the
hope that you will be able to help me with a problem I 
have in LaTeX. The problem sounds quite simple - I wish
to be able to change between single and double line spacing
at will in a LaTeX document. So far this simple task has
evaded me. I have not been able to redefine the line spacing
mid document and do not wish to solve the problem by pasting
together many seperate LaTeX runs. I have attempted to use
the \baselinestretch command amongst other things but all of
these seem determined not to be flexible. Can you offer any
help or suggestions?

Alastair G Gunn
Armagh Observatory

------------------------------

Date:    Tue, 24 Nov 92 10:26:34 -0500
From:    fisica@GOV.NASA.DNET.astrpd (Max Calvani - Italy)
Subject: Re: Double and single spacing in Latex

Could not reply directly due to mailer failure here.
I think that doublespace.sty is what you are looking for. It is
at Aston archive under (I hope) [.latex.contrib]

    { Sebastian has moved [.latex] down into a [.macros] top-level
    directory, so it's now [.macros.latex.contrib]doublespace.sty
                                --Ed.}

Max

------------------------------

Date:    Wed, 25 Nov 92 10:29:45 +0000
From:    Peter Abbott <p.abbott@uk.ac.aston>
Subject: Re: Double and Single Spacing in LaTeX

Use the renewcommand to change the spacing where required. The secret
is to the use a sizechanging command such as normalsize, otherwise
the renewcommand is not actioned.
e.g

\renewcommand{baselinestretch}{1.1}\normalsize

Peter Abbott
pp Aston Archivists

------------------------------

Date:    Thu, 26 Nov 92 17:50:03 +0100
From:    Schoepf%de.zib-berlin.sc@uk.ac.uknet-relay
Subject: Re: Double and Single Spacing in LaTeX

Peter wrote:

 > \renewcommand{baselinestretch}{1.1}\normalsize

This might not work as expected, since \normalsize contains an
optimization that acts as a no-op if the current size is already
\normalsize.

The following works under all circumstances:

\renewcommand{baselinestretch}{1.1}\small\normalsize

Rainer

------------------------------

Date:    27 Nov 92 12:40:59 +0000
From:    M.Piff@uk.ac.sheffield
Subject: emTeX DVIHPLJ and DVISCR

I have version 1.4d of these drivers. Contrary to the manual, the
transformations, eg, /tr1, do NOT turn round 
PCX graphics files of about 8k. 

Does anyone know whether there is a later version that DOES do this?

Mike Piff

------------------------------
                                        
                       UK TeX ARCHIVE at ASTON UNIVERSITY
                              >>>  UK.AC.TEX  <<<
                                        
                  *** Interactive and file transfer access ***
           JANET: Host: uk.ac.tex, Username: public, Password: public
                              (DTE 000020120091)
                    Internet: host tex.ac.uk [134.151.40.18]
               For telnet access, login: public, password: public
      For anonymous ftp, login: anonymous, password: <your-e-mail-address>
                                        
                              *** Mail server ***
                    Send mail to TeXserver@uk.ac.tex (JANET)
                   or TeXserver@tex.ac.uk (rest of the world)
                   with message body containing the word HELP
                                        
\section FILES OF INTEREST

    [tex-archive]00readme.txt
    [tex-archive]00directory.list        [tex-archive]00directory.size
    [tex-archive]00directory_dates.list  [tex-archive]00last30days.files
    [tex-archive.doc]TeX-FAQ.txt    (Frequently Asked Questions list)
    [tex-archive.doc]FAQ-Supplement-*.txt    (FAQ supplement)

\section DIGESTS

    This year's UKTeX back issues are stored in the archive in directory
      [tex-archive.digests.uktex.92]
    This year's TeXhax back issues are stored in the archive in directory
      [tex-archive.digests.texhax.92]
      Latest TeXhax: V92 #20
    TeXMaG back issues are stored in the archive in directory
      [tex-archive.digests.tex-mag]
      Latest TeXMaG: V5N3

\section MEDIA DISTRIBUTIONS
    Postal addresses are given below.

\subsection Washington Unix TeX distribution tape
    Latest copy of May/June 1991 contains:
    TeX 3.14, LaTeX 2.09, Metafont 2.7, plus many utilities
    suitable for Unix 4.2/4.3BSD & System V
    tar format, 1600bpi, blockfactor 20, 1 file (36Mb)

    Copies available on:
       One 2400ft 0.5" tape sent to Aston with return labels AND return postage
   OR
       One Quarter-Inch Cartridge, QIC-120 or QIC-150 format (DC600A or DC6150)
       sent with envelope AND stamps for return postage to Nottingham
         (Due to currency exchange, this service is offered only within the UK)

\subsection VMS tapes
    VMS backup of the archive requires three 2400ft tapes at 6250bpi.
    VMS backup of TeX 2.991 plus PSprint requires one 2400ft tape.

\subsection Exabyte 8mm tapes
    Same contents available as 0.5" tapes.
    Following tape types available: SONY Video 8 cassette P5 90MP,
    MAXELL Video 8 cassette P5-90, TDK Video 8 cassette P5-90MPB

\section TeX IMPLEMENTATIONS FOR SMALL COMPUTERS

\subsection OzTeX V1.4 (for Macintosh)
    Send 7 UNFORMATTED 800K disks to Aston with return postage.

\subsection emTeX (for OS/2, PC-DOS and MS-DOS)
    The complete package (3.5" High density disk format ONLY)
    is available from Aston at a cost of 15 pounds sterling,
    including documentation, disks, post and packing (DO NOT SEND DISKS):
      specify Set A.
    Additional utilities including DVIPS, 5 pounds sterling:  specify Set B.
    FLI files for FX, 5 pounds sterling:  specify Set C.
    FLI files for P6M, 5 pounds sterling:  specify Set D.

    For general enquiries, and a free catalogue detailing other disk 
    formats, precompiled fonts and lots of other goodies, contact:
    Eigen PD Software, P.O. Box 722, Swindon SN2 6YB  (tel: 0793-611270)
    (JANET e-mail address: kellett@uk.ac.cran.rmcs)

\subsection TeX for the Atari ST
    All enquiries for disks etc. should be directed to:
    The South West Software Library, P.O. Box 562, Wimborne, Dorset BH21 2YD
    (JANET e-mail address: mdryden@uk.co.compulink.cix)

\section POSTAGE RATES
    All prices in Pounds Sterling.
    For Aston orders, make cheques payable to Aston University.

    0.5" tapes: UK: 2.50 (one tape),  5.00 (two tapes).
            Europe: 5.00 (one tape),  9.00 (two tapes).
            Outside Europe please enquire.
    8mm tapes:
            UK: 1.00,  Europe: 2.00.
    Quarter-inch cartridges:
            UK: 1.00,  Europe: 2.00.
    Diskettes:
    Quantity/Size   Europe   World    UK 1st   UK 2nd
      18/3.5"        3.10     5.10     1.40     1.10
      11/3.5"        1.80     2.90     0.80     0.65
      18/5.25"       1.20     2.00     0.60     0.50
      11/5.25"       0.80     1.30     0.50     0.35

\section POSTAL ADDRESSES
    Please include SELF-ADDRESSED ADHESIVE LABELS for return postage.

    Peter Abbott
    Information Systems, Aston University, Aston Triangle, Birmingham B4 7ET

    David Osborne
    Cripps Computing Centre, University of Nottingham, Nottingham NG7 2RD
    (for Quarter-inch cartridges ONLY -- must include stamps for return postage
)

\section UK TeX USERS GROUP

    For details, contact:
    David Penfold, Edgerton Publishing Services,
    30 Edgerton Road, Edgerton, Huddersfield HD3 3AD (tel: 0484 519462)
 or E McNeil-Sinclair, fax: 0272 236169
\bye

End of UKTeX Digest [Volume 92 Issue 44]
****************************************