UKTeX Digest	Friday,  2 Nov 1990
		Volume 90 : Issue 38

Today's Topics:
		       1991 TUG Call for Papers
	       Font Creation problems in Euler and Mtex
		 Getting public domain software dvips
			   7-bit encodings
			Re: VDM and Z in LaTeX
			   Matrix alignment
 New files added to archive: MetaFont and Web (+ utilities) for MS-DOS
		   Imagen/UltraScript/dvips lossage
     New files added to archive: Washington State University IPA
		  Top aligned matrices with brackets
		       Bug in LaTeX or in TeX?
		   Problem invoking EVE from TeX v3
		     Trailing \label and N of NN
- ----------------------------------------------------------------------------
Moderator:       Peter Abbott
Editor:          David Osborne (University of Nottingham)
                 <d.osborne@uk.ac.nott.clan>
Submissions:     uktex@uk.ac.aston
Administration:  uktex-request@uk.ac.aston

Back Issues:     These are stored in the Aston archive, in the directory
                 DISK$TEX:[TEX-ARCHIVE.DIGESTS.UKTEX.90]
Latest TeXhax:    #65
Back Issues:     These are stored in the Aston archive, in the directory
                 DISK$TEX:[TEX-ARCHIVE.DIGESTS.TEXHAX.90]
Latest TeXmag:    V4 N4
Back Issues:     These are stored in the Aston archive, in the directory
                 DISK$TEX:[TEX-ARCHIVE.DIGESTS.TEX-MAG]

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

Date:    Thu, 25 Oct 90 09:37:00 -0500
From:    CHRISTINA_THIELE%CA.CARLETON@UK.AC.NSFNET-RELAY
Subject: 1991 TUG Call for Papers

%% Following is the 1991 TeX Users Group Call for Papers
%% This is a plain.tex file. Please print up and/or distribute
%% as widely as possible.
 
%% Main points: 1991 TUG Meeting in Dedham, Mass. (suburban Boston).
%%              July 15--18, 1991
%%              Theme: `TeX Inroads into Publishing'
%%              Deadline for Proposals: December 15, 1990 for
%%                       papers, workshops, poster talks, etc.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\font\tugXCI=cmb10 scaled \magstep2
\font\conftitlefont=cmb10 scaled \magstep4
\font\confsubtitlefont=cmb10 scaled \magstep2
\font\confsubsubtitlefont=cmb10 scaled \magstep2
\font\datefont=cmb10 scaled \magstep0
\font\callfont=cmb10 scaled\magstep1
\font\subheaderfont=cmssbx10 scaled \magstep0
\font\topicareafont=cmsl10
\font\headerfont=cmssbx10 scaled 1095
\font\pcfont=cmr10
\font\pcsfont=cmr9
\font\twelvepoint=cmr12
\font\smallcaps=cmcsc10 at 12pt
\font\ninepoint=cmr9
\font\logo=logo9
\def\MF{{\logo META}\-{\logo FONT}}
\def\WEB{{\tt WEB}}
 
\catcode`@=11
 
\def\title#1{\def\@title{#1}}
\def\conftitle#1{\def\@conftitle{#1}}
\def\confsubtitle#1{\def\@confsubtitle{#1}}
\def\dates#1{\def\@dates{#1}}
 
\newcount\c@programcommittee
\c@programcommittee=0
\def\programcommittee#1{\advance\c@programcommittee 1
  \expandafter\def\csname @programcommittee\the\c@programcommittee
         \endcsname{#1}}
\def\programcoordinator#1{\def\@programcoordinator{#1}}
\def\programaddress#1{\def\@programaddress{#1}}
 
\def\phone#1{\quad{\tensl Phone\/}: #1}
\def\fax#1{\quad{\tensl FAX\/}: #1}
\def\email#1{\quad{\tensl E-mail\/}: $\langle\hbox{\tt#1}\rangle$}
 
% \introduction prints the top-of-page header and sets up the
% environment
% for the introduction section:
\def\introduction{\@topofpageheader\@beginintro}
 
\def\@topofpageheader{%
\setbox0\vbox{\leftskip0pt plus 1000pt minus 1000pt
  \parfillskip0pt
  \parindent0pt
  \hsize0.3\hsize
  \def\\{\unskip\break}
  \confsubsubtitlefont \baselineskip16pt
  12th Annual \\ \TeX\ Users Group \\ Meeting    \\
  {\datefont\@dates}\endgraf}
\setbox2\vbox{\raggedright
  \rightskip0pt plus 1000pt minus 1000pt
  \def\\{\break}
  \hsize0.7\hsize
  \setbox4\hbox{\conftitlefont\spaceskip\z@\@conftitle:}
  \setbox5\hbox{\tugXCI\@title\hskip2em\callfont Call for Papers}
  \noindent\copy5\endgraf
  \vskip3pt
  \hrule width \wd5
  \vskip9pt
  \noindent\box4\vadjust{\vskip4pt}\\
  \confsubtitlefont\@confsubtitle\endgraf}
\line{\valign{##\cr
    \box2\cr
    \noalign{\hfill}
    \box0\cr}}\bigskip}
 
\def\@beginintro#1 {\begingroup
   \twelvepoint\baselineskip15pt
   \parskip3pt
   \noindent#1
%   {\smallcaps #1 }%
   }
 
\def\callforpapers{\endgroup\smallskip
%  \noindent
  }
 
\def\topiclist{\bgroup
   \hyphenpenalty=5000
   \bigskip
   \noindent{\headerfont Suggested Topics}\endgraf\ninepoint}
 
\def\topicarea{\let\topic=\@firsttopic\vskip4pt\bgroup%\topicareafont
  \tensl\noindent}
 
\def\@firsttopic{\unskip\egroup\quad\let\topic=\@othertopics
   \setbox0=\hbox{$\diamond$ }\copy0\ignorespaces}
 
\def\@othertopics{\ \copy0\ignorespaces}
 
\def\endtopiclist{\endgraf\egroup}
 
\def\deadlines{\let\deadln=\@firstdeadln
  \let\par=\enddeadlnlist}
 
\def\@firstdeadln{\def\deadln##1:{\endgraf\smallskip\hangindent\wd0
      \leavevmode{\bf##1}:}
   \setbox8=\vbox\bgroup
   \setbox0\hbox{}
   \hsize=.47\hsize
   \raggedright
   \advance\rightskip 0pt plus 1000pt
   \hyphenpenalty10000
   \everypar{{\setbox0=\lastbox}\copy0 }
   \leftline{\headerfont Deadlines}\deadln}
 
\def\enddeadlnlist{\egroup\let\par=\@@par }
 
\let\@@par=\par % Save definition of \par
 
\def\miscinfo{\setbox9=\vbox{%
  \hsize=.47\hsize
  \leftline{\headerfont Program Coordinator}
  \smallskip
  \let\\=\cr
  \pcfont
  \halign{##\hfil\cr
  \@programcoordinator\cr
  \pcsfont \@programaddress\crcr}}
  \setbox1=\vbox{\hsize=.47\hsize
 
  \hbox{\headerfont Program Committee}
  \smallskip
%  \let\\=\cr
%  \def\\{\enspace$\diamond$\enspace}%
  \def\\{&\enspace$\diamond$\enspace}%
  \pcsfont
  \baselineskip=10.5pt
  % I'll be cheating to get this done a little more quickly
  \halign{##\hfil&##\hfil\cr
      \csname @programcommittee1\endcsname\cr
      \noalign{\smallskip}
      \csname @programcommittee2\endcsname\cr
      \noalign{\smallskip}
      \csname @programcommittee3\endcsname\cr
      \noalign{\smallskip}
      \csname @programcommittee4\endcsname\cr}}
  \bigskip%\bigskip
  \line{\valign{##\cr\box8\cr\noalign{\hfil}\vbox{\box9\bigskip\box1}\cr}}
  \bigskip
  \bigskip
%  \leftline{\headerfont \TeX\ Users Group}
%  \smallskip\noindent\rm}
  \noindent{\headerfont \TeX\ Users Group}\quad\rm}
 
\def\OKitsdone{\eject\end}
 
\catcode`\_=13
\def_{\_}
 
\catcode`\@=12
 
\vsize 55pc
\nopagenumbers
\overfullrule=0pt
 
%% Start of Call for Papers:
 
\title{TUG'91}
\conftitle{\TeX\ Inroads into Publishing}
\confsubtitle{Document Design, Production and Interchange}
\dates{July 15--18, 1991}
\programcommittee{Michael Doob\\University of Manitoba}
\programcommittee{Don Hosek\\Quixote}
\programcommittee{Mimi Lafrenz\\ETP Services (Oregon)}
\programcommittee{Ron Whitney\\\TeX\ Users Group}
\programcoordinator{Christina Thiele}
\programaddress{JPC DT1711\\
  Carleton University\\
  Ottawa, Canada K1S 5B6\\
  \phone{(613) 788-2340}\\
  \email{Christina_Thiele@Carleton.CA}\\
  \fax{(613)   788-3544}}
 
\introduction
The 1991 \TeX{} Users Group Annual Meeting will be held in Dedham,
Massachusetts (suburban Boston)---just a short distance from
Providence, Rhode Island, home of the \TeX{} Users Group.  The high
quality of the final product, as well as document portability, have
made the \TeX{} typesetting system a wide-spread standard in academic
settings, and it is making significant inroads into many commercial
areas as well.
 
The 1991 Meeting will focus on the issue of \TeX{} in the publishing
world, addressing \TeX{}'s relation to the traditional and developing
publishing markets: from a tool for authors and secretaries in
creating preprints; to its use as an in-house typesetting program for
production of attractive books, journals and articles; to a means of
sharing text from one setting to another in generically tagged
documents.
In addition to the regular paper presentations, there will also be
topical workshops, poster sessions, several extended
courses, a networking lunch, and ``Birds of a Feather'' sessions.
 
\callforpapers
Contributions are now being sought by the Program Committee for
inclusion in the 1991 Meeting.  Submissions for papers, workshops,
and poster sessions may present material on a wide range of topics
related to---but not limited to---the areas suggested below.
Selection will be based on originality, applicability, utility and
interest to the \TeX-using community.  As well, a balance of entry
and advanced levels will be sought.
 
\topiclist
\topicarea Publishing
\topic Publishers and the \TeX-using author
\topic Production cycle: from ms.\ to blues
\topic Traditional typography and \TeX{} quality
\topic Editing, design, and production
\topic Getting \TeX{} into the publishing house
\topic Vendors: Who's doing what and why?
\topic Managing \TeX{} support
 
\topicarea Document Preparation
\topic Document structure
\topic SGML and \TeX{} and the publisher
\topic Portability and interchange
\topic Fonts (\TeX{} and non-\TeX)
\topic Integrating \TeX{} with other programs
\topic Graphics
\topic Modifying formats
 
\topicarea New Frontiers
\topic \TeX: Pros and cons
\topic Developing standards
\topic Novel applications of \TeX, \MF, \WEB
\endtopiclist
 
\deadlines
\deadln December 15, 1990: Proposals should be one page in length, submitted
  to the Program Coordinator by mail, e-mail, or FAX.  Proposals may
  be received after this date, but are then subject to considerations
  of available space in the program.
\deadln January 15, 1991: Notification of acceptance.
\deadln March 15, 1991: Preliminary paper (in duplicate).
\deadln July 1, 1991: Preprint ready.
\deadln July 15--18, 1991: Presentation at 1991 Meeting.
\deadln August 19, 1991: Final paper.
 
\miscinfo
\phone (401) 751-2883
\fax   (401) 751-1071
\email {TUG@Math.AMS.com}
 
\OKitsdone
 
 
Christina Thiele <Christina_Thiele@CARLETON.CA>

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

Date:    Fri, 26 Oct 90 16:44:22 +0000
From:    A42JR@UK.AC.POLY-EAST-LONDON
Subject: Font Creation problems in Euler and Mtex

I have been having problems trying to create fonts from two sources.
Firstly the Euler fonts, and secondly the Mtex fonts. I have been using
Eberhard Matte's MFJOB to create the fonts.

In the case of the Euler fonts, metafont noted a `minor' error in that h#
had already been defined. However mfjob would not continue onto calling
GFtoPK. There is no information about the Euler fonts. Should I use the
&plain base or the &cm base or neither.

My second problem came with MTEX. When trying to make
the music fonts, when creating the music16 font, my screen was almost
immediately changed to a higher-line VGA mode, then when the main MF file calle
d
the vio16.mf file, up came these penpos errors.

Can anyone help. I append the appropriate MFJOB source and log files.

- ---------------------------------
%
% euler.mfj
%
input [modes];
def s=[s0];
{
base=cm;
fonts= eurm10
      ;
mags=s;
mode=hplaser[300];
output=tfm[d:\emtex\tfm] pk[d:\texfonts\$r] log[d:\emtex\mfjob\log];
}
=============
EULER.LOG

This is METAFONT, Version 2.0 [3a] (preloaded base=cm 90.7.14)  11 OCT 1990 14:
46
**&cm \mode=hplaser; mag=1; input eurm10
(eurm10.mf (eurmch.mf (eubase.mf
! Inconsistent equation (off by 0.0027).
<to be read again>
                   ;
l.10 h#=ptsize/programem;

The equation I just read contradicts what was said before.
But don't worry; continue and I'll just ignore it.

) [127] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108]
[109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120]
[121] [122] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76]
[77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [96]
[48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [0] [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]
[39] [64] [125] [58] [59] [60] [61] [62] [123] [124]) )
Here is how much of METAFONT's memory you used:
 190 strings out of 528
 1195 string characters out of 9561
 23027 words of memory out of 65531
 914 symbolic tokens out of 2100
 8i,80n,0r,19p,151b stack positions out of 30i,100n,300r,150p,500b

(You used 2w,1h,1d,1i,14l,1k,0e,22p metric file positions
  out of 256w,16h,16d,64i,5000l,500k,256e,50p)

Font metrics written on eurm10.tfm.
Output written on eurm10.300gf (111 characters, 2156 bytes).
==============
%
% music.mfj
%
input [modes];
def s=[s0];
{
base=cm;
fonts= music16
      ;
mags=s;
mode=hplaser[300];
output=tfm[d:\emtex\tfm] pk[d:\texfonts\$r] log[d:\emtex\mfjob\log];
}
===============
MUSIC16.LOG

This is METAFONT, Version 2.0 [3a] (preloaded base=cm 90.7.14)  11 OCT 1990 14:
39
**&cm \mode=hplaser; mag=1; input music16
(d:\emtex\mfinput\music16.mf (d:\emtex\mfinput\musicdef.mf)
(d:\emtex\mfinput\noten16.mf [33] [34] [35] [40] [41] [42] [43] [44] [45]
[46] [47] [48] [49]) (d:\emtex\mfinput\acc16.mf [50] [51] [52] [53] [54]
[55] [56]) (d:\emtex\mfinput\pause16.mf [58] [59] [60] [61] [62] [63] [64]
[65]) (vio16.mf
! bad penpos.
<to be read again>
                   ;
penpos->...PR3)<=0:errmessage"bad penpos";
                                          fi.fi(x(SUFFIX2)r-x(SUFFIX2...
violin->...y12r+2/15(EXPR0);penpos1(0,180)
                                          ;penpos2((EXPR3),90);penpos...
l.58 ...8nhh,7/4nhh,-3/2nhh,2/5nhh,1/9nhh)
                                          ;
This error message was generated by an `errmessage'
command, so I can't give any explicit help.
Pretend that you're Miss Marple: Examine all clues,
and deduce the truth by inspired guesses.

[71]
! bad penpos.

The same errors recurred several times.

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

Date:    Fri, 26 Oct 90 16:49:00 +0000
From:    GNEA69@UK.AC.GLASGOW.VMS1
Subject: Getting public domain software dvips

I am having trouble getting a copy of dvips for the IBM-PC from Aston. I
understand that the software is public domain.

Could someone please tell me how I can file transfer dvips from Aston to
Glasgow. When I log into Aston via the X.25 network it tells me that I am
not authorized to log in from this source. 

Help much appreciated.

Bob Betz
Dept Elec Eng
Uni of Glasgow
gnea69@uk.ac.glasgow.vms1

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

Date:    Fri, 26 Oct 90 18:00:53 +0100
From:    UCGADKW@UK.AC.UCL
Subject: 7-bit encodings

I keep hearing that various TeX archive sites will be introducing
services that include the ability to encode binary files in a 
7-bit code, for easy mailing (Beebe's archive and Aston).   

These announcements are accompanied by the mention of new 7-bit
coding programs that have been written for this purpose.

May I put in a plea for existing 7-bit encoding schemes to be used?
*Please* don't introduce yet another "useful utility".  There is
nothing wrong with XXencode for the purposes envisaged.  It is widely
supported, and easily available.  For DOS it is available by ftp from
wuarchive.wustl.edu as file /mirrors/msdos/starter/xxinstal.bat, and
the C sources can easily be recompiled on any machine.  It is
gateway-proof.  It is even supported (with auto-recognition) by REM's
excellent uuencode/decode.exe pair.

If another encoder is necessary for some reason, then why not adopt
Wayne Sullivan's equally excellent suencode/sudecode pair, also
available easily, Bitnet-proof, and very handy for splitting big files
up for distribution and reassembly.

Don't reinvent the wheel.  

If I have missed some vital point that makes a new encoder necessary, 
I'd be glad to stand corrected.

Dominik


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

Date:    Mon, 29 Oct 90 12:39:00 +0000
From:    FX@UK.AC.DARESBURY.NNGA
Subject: Re: VDM and Z in LaTeX

The archive contains ZED.STY and ZMACROS.TEX, the style file and guide
to a Spivey package that you can use for setting Z without buying fuzz.
It seems quite satisfactory.

There are also VDM.STY and VDM-DOC.TEX which I don't know anything
about.

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

Date:    Mon, 29 Oct 90 12:55:19 +0000
From:    JEREMY.GIBBONS%UK.AC.OXFORD.PRG@UK.AC.OXFORD.PRG.TEST
Subject: Matrix alignment

David Handscomb asks

> Is there an easy way of setting a formula involving matrices so that they
> are aligned on their top rows, rather than on their centrelines?

The answer is, no, not an easy way. You have to figure out the math axis
and the position of the baseline of the top row yourself, vcenter and
bracket the array, and then undo the vertical positioning done by the
vcenter.

Vcentering a box consists of raising it by the math axis plus half of the
depth-minus-height of the box. The height and depth are easy to calculate,
but the math axis? Well, that's just half the height-minus-depth of a
vcentered box!

Try the following code:

\documentstyle{article}
\begin{document}
$ \left( a \; b \right) . 
\bgroup % to keep box and dimen manipulations local
   \setbox0=\hbox{$\begin{array}[t]{@{}c@{}} c\\d \end{array}$}
      % set the contents of the array
   \dimen0=\dp0 \advance\dimen0 by -\ht0
      % twice distance of baseline above centerline of array
   \setbox0=\hbox{$\left( \vcenter{\box0} \right)$}
      % center array in its brackets
   \advance\dimen0 by \ht0 \advance\dimen0 by -\dp0
      % increase \dimen0 by twice mathaxis
   \divide\dimen0 by 2 
      % now mathaxis plus half depth-minus-height
   \lower\dimen0\box0 
      % undo the positioning done by vcenter
\egroup$
\end{document}

You should of course put it in a macro...

*-----------------------------------------------------------------------*
|  Jeremy Gibbons (jg@uk.ac.oxford.prg)   Funky Monkey Multimedia Corp  |
*-----------------------------------------------------------------------*

      

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

Date:    Tue, 30 Oct 90 15:07:39 -0000
From:    P.TAYLOR@UK.AC.RHBNC.VAX
Subject: New files added to archive: MetaFont and Web (+ utilities) for MS-DOS

Three new directories have been created within the archive:

	[TeX-Archive.MetaFont.Ms-Dos.Sbmf]
	[TeX-Archive.Web.Ms-Dos.Margolis]
	[TeX-Archive.Web.Ms-Dos.Breitenlohner]

The first contains Wayne Sullivan's port of MetaFont to MS-DOS (SBMF11.BOO);
the second contains copies of the files which were until today in

	[TeX-Archive.Web.Ms-Dos]

which have been moved to allow for the creation of the third, which contains
Peter Breitenlohner's port of the Web utilities to MS-DOS (DVITYPE.BOO
GFTODVI.BOO GFTOPK.BOO GFTYPE.BOO MFT.BOO PKTYPE.BOO PLTOTF.BOO  POOLTYPE.BOO
TEXUT-ZIP.BOO TFTOPL.BOO VFTOVP.BOO VPTOVF.BOO) 

					Philip Taylor
				(pp the Aston Archive Group)

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

Date:    Tue, 30 Oct 90 15:29:24 +0000
From:    TIM@UK.AC.EDINBURGH.CSTR
Subject: Imagen/UltraScript/dvips lossage

We have an Imagen 3308 with Ultrascript, which we're driving with
dvips 5.38.  There is a problem somewhere either with Ultrascript or
with the Imagen's font metric information, which causes lines to be
slightly the wrong length -- i.e. margins are slightly ragged when
they shouldn't be.  I have checked that this does not happen on our
LaserWriters (well actually maybe it *does* but the effect is in the
noise).

The fonts I'm using are new century schoolbook roman & small caps
(which I think is just roman in a smaller size via virtual fonts?).

The problem seems to be particularly associated with the LaTeX logo
itself -- the same postScript produces logos which are noticably
different sizes.  However it's actually more interesting, because if
you typeset \LaTeX{} at, say, 128pt, then the error does not scale.
So I don't understand it unless it's some kind of rounding error in
the interpreter which I guess is quite bad news.  I have dumped at
least one afm from the printer, and the numbers do seem different than
the ones supplied with dvips (but I have no idea as to their
significance).  It's hard to get the afms because the log output goes
to the printer's console, not anywhere civilised.  And anyway if it
was really an afm problem the the errors should scale?

I'd like to get more concrete evidence (the errors are small) before I
chase Imagen who are likely to deny everything I expect (who *cares*
about the odd point error anyway? ... me): if anyone is working with
both an imagen and a LaserWriter it would be nice if they could repeat
this experiment.  If you do then I can send you a PostScript file
which shows this problem.  If you use some other driver it would be
nice to try equivalent experiments.  If anyone understands PostScript
well enough to see how this weird non-scaling business happens please
tell me!

- --tim
Tim Bradshaw.  Internet: tim%ed.cstr@nsfnet-relay.ac.uk
UUCP: ...!uunet!mcvax!ukc!cstr!tim  JANET: tim@uk.ac.ed.cstr
"...wizzards & inchanters..."


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

Date:    Tue, 30 Oct 90 20:19:29 -0000
From:    P.TAYLOR@UK.AC.RHBNC.VAX
Subject: New files added to archive: Washington State University IPA

Five new directories have been created within the archive:

	[TeX-Archive.Fonts.Ipa.Old-Wsu]
	[TeX-Archive.Fonts.Ipa.Old-Wsu.Tfm]
	[TeX-Archive.Fonts.Ipa.Old-Wsu.Gf118]
	[TeX-Archive.Fonts.Ipa.Old-Wsu.Gf300]
	[TeX-Archive.Fonts.Ipa.Old-Wsu.Gf1270]

These directories contain the files which were previously in (or under)

	[TeX-Archive.Fonts.Ipa.Wsu]

which directory now contains the MetaFont source for the latest revision
of the Washington State University Internation Phonetic Alphabetic fonts;
as source is now available, GF/PK files have NOT been archived.

					Philip Taylor
				(pp the Aston Archive Group)

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

Date:    Wed, 31 Oct 90 12:13:46 +0000
From:    PM1MJP@UK.AC.SHEFFIELD.PRIMEA
Subject: Top aligned matrices with brackets

David Handscomb's problem with top-aligned matrices can presumably be solved by
the  following.   However,  the  problem  is essentially undefined.  Should the
alignment be done on the baseline of the top rows of the matrices?  If so,  the
tops  of  the  large  brackets will vary in height according to the size of the
entries on that row.  Or should the tops of the brackets be  aligned,  and,  if
so, at what height above the baseline?  The first approach is taken below.  The
second, once a height has been chosen, is an easy exercise, left to the reader.

PS If the matrix brackets in this example do not align, then you probably need
to update your version of TeX.


Mike Piff


\documentstyle[12pt]{article}
\makeatletter

\newdimen\Dp % how much to shift down the centered matrix
\newbox\matbx % box to set the matrix in
\def\Mat#1#2{\setbox\matbx=\hbox{$\begin{array}[t]{#1}#2\end{array}$}%
   \Dp=\dp\matbx \advance\Dp by -\ht\matbx \divide\Dp by 2\relax
%  \Dp now holds the shift from baseline of row1 to center of matrix
   \advance\Dp by \fontdimen22\textfont2 %height of axis used for centering
                                         %Evaluate now, as size dependent
   \lower\Dp\hbox{$\left[\vcenter{\box\matbx}\right]$} % [a_{i,j}]
%  \lower\Dp\hbox{$\left(\vcenter{\box\matbx}\right)$} % (a_{i,j})
}

\begin{document}
These are top aligned
$$ A=\lambda
\Mat{ccc}{1&2&3 \\ 3&4&0}
\Mat{cc}{1&2\\ 3&4\\ 5&6}
$$
and these aren't.
$$ A=\lambda
\left[\begin{array}{ccc}1&2&3 \\ 3&4&0\end{array}\right]
\left[\begin{array}{cc}1&2\\ 3&4\\ 5&6\end{array}\right]
$$
\end{document}

- ----------------------------------------------------------------------------
From   Dr M. J. Piff, Department of Pure Mathematics, PO Box 597,
       Hicks Dreadful Cold Noisy Building Site, Hounsfield Road,
       SHEFFIELD S10 2UN, England.
Tel.   SHEFFIELD(0742) 768555 Extension 4431.
JANET  MPiff@UK.AC.SHEF.PA  or MPiff@UK.AC.SHEF.IBM
- ----------------------------------------------------------------------------

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

Date:    Wed, 31 Oct 90 12:53:19 +0000
From:    PM1MJP@UK.AC.SHEFFIELD.PRIMEA
Subject: Bug in LaTeX or in TeX?

Consider

\[ A=
\left[\begin{array}{ccc}1&2&3 \\ 3&4&0\end{array}\right]
\left[\begin{array}{cc}1&2\\ 3&4\\ 5&6\end{array}\right]
\]

in LaTeX.  Print this in 10pt, and you will see little wrong, except  that  the
brackets might appear to extend a little low in both matrices.

Now print it in 12pt style.  Look very carefully at the  entries  1  and  their
relationship  to  the  top  of  the  left  brackets.  One bracket is positioned
differently to the other.

This only became obvious when I tried to align the top rows in a previous  note
to UKTeX.  It does not seem to have been cured in the latest  versions  of  TeX
and LaTeX, as I previously thought.

Mike Piff

- ----------------------------------------------------------------------------
From   Dr M. J. Piff, Department of Pure Mathematics, PO Box 597,
       Hicks Dreadful Cold Noisy Building Site, Hounsfield Road,
       SHEFFIELD S10 2UN, England.
Tel.   SHEFFIELD(0742) 768555 Extension 4431.
JANET  MPiff@UK.AC.SHEF.PA  or MPiff@UK.AC.SHEF.IBM
- ----------------------------------------------------------------------------

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

Date:    Wed, 31 Oct 90 15:21:00 -0000
From:    LOCKE@UK.AC.BRUNEL.GRAY
Subject: Problem invoking EVE from TeX v3

I fetched the object files for version 3 of TeX for VAX/VMS from 
[TEX-ARCHIVE.BINARY.VMS] and linked them under VMS 5.3.

Everything worked fine until I tried to invoke EVE from TeX to correct an 
error, then I got the message :-

%DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters 
\7\

Inspection of the .LIS file showed that an incorrect command had been 
issued, i.e. EVE <filename> <row> <column> :-

========================= File HUGE.LIS =====================

This is TeX, Version 3.0 on VAX/VMS (preloaded format=plain 90.4.18) 
31 OCT 1990 14:57

**huge
(OLIVER$DUA0:[TEX.TEX_V3]HUGE.TEX;11
! Undefined control sequence.
l.7 \DUMM
         2
? E
Issuing the following command:
EVE OLIVER$DUA0:[TEX.TEX_V3]HUGE.TEX;11 7 6
You want to edit file OLIVER$DUA0:[TEX.TEX_V3]HUGE.TEX;11 at line 7
No pages of output.

================================================================

EDT had the same problem.
Is this a known problem or have I done something wrong ?
(I can't build TeX V3 from sources as we don't have a Pascal compiler).

Ros Locke

PS. Advice from Brian Hamilton Kelly which got us this far was much 
appreciated.


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

Date:    Thu, 01 Nov 90 15:45:28 +0000
From:    PM1MJP@UK.AC.SHEFFIELD.PRIMEA
Subject: Trailing \label and N of NN

Chris Thompson writes:

> A user here (Dr D.M.R.Gray-Stephens: DGS1@UK.AC.CAM.PHX) came across the
> following problem. If the final page of a LaTeX document contains only
> \label's, then the corresponding definitions never get output into the
> .aux file. For example:
>
>   \documentstyle{article}
>   \begin{document}
>   Arbitrary text.
>   \clearpage
>   \label{what-have-you}
>   \end{document}
>
> Originally, of course, the page break before the trailing \label was
> accidental (it followed an \end{itemize}).
>
> Is this a known problem/bug/feature of LaTeX? The user wanted to use
> \pageref{...} to generate a page head/footing containing `page N of M'.
> Can anyone provide an alternative way of doing this, other than tieing
> the \label securely to the last piece of text (which is difficult to do
> in a way that survives modification of the document)?

The problem is, of course, that \label generates a \write, and \write is  saved
till  the  next  \shipout,  but  in  this case the \shipout is not encountered,
because TeX' \end is executed first, by LaTeX' \end{document}.

The following should do what you want.  It gets the output routine to write the
last  page number to the AUX file every time it does a \shipout.  The AUX file,
if it exists, is read at the start of the job, and so the next LaTeX  run  will
get  the  last page right.  It just needs to survive the first run, that's all,
so first time round it sets the last page to 10000.

Mike Piff

\documentstyle{article}
% produce footlines saying
%              1  of   50
%              2  of   50
%etc in LaTeX
% Mike Piff, Sheffield
\makeatletter
%Hack output routine---safest way to ensure page exists
\def\@outputpage{\begingroup\catcode`\ =10
     \let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii
    \if@specialpage
     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
     \if@twoside
       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
            \let\@themargin\oddsidemargin
          \else \let\@thehead\@evenhead
          \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
     \fi\fi
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \let\par\@@par %% 15 Sep 87
           \vskip \topmargin \moveright\@themargin
           \vbox{\setbox\@tempboxa
                   \vbox to\headheight{\vfil \hbox to\textwidth
                                       {\let\label\@gobble \let\index\@gobble
                                         \@thehead}} %% 22 Feb 87
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \box\@outputbox
                 \baselineskip\footskip
                 \hbox to\textwidth{\let\label\@gobble
                           \let\index\@gobble  %% 22 Feb 87
                           \@thefoot}}}\global\@colht\textheight
           \endgroup
           %INSERTED TEXT
           \immediate\write\@auxout{\string\gdef\string\lstpage{\arabic{page}}}
%
           %END OF INSERTED TEXT
           \stepcounter{page}\let\firstmark\botmark}

% define the footlines---adapt as necessary, or redefine \ps@headings
% as in style file
\def\@oddfoot{\rm\hfill\arabic{page} of \lstpage\hfill}
\def\@evenfoot{\rm\hfill\arabic{page} of \lstpage\hfill}
\makeatother

% first time, don't know what the page number will be at the end, so
\def\guesslastpage{\ifx\lstpage\undefined\def\lstpage{10000}\fi}
\begin{document}
\guesslastpage
a\clearpage

b\clearpage

c\clearpage

\end{document}




- ----------------------------------------------------------------------------
From   Dr M. J. Piff, Department of Pure Mathematics, PO Box 597,
       Hicks Dreadful Cold Noisy Building Site, Hounsfield Road,
       SHEFFIELD S10 2UN, England.
Tel.   SHEFFIELD(0742) 768555 Extension 4431.
JANET  MPiff@UK.AC.SHEF.PA  or MPiff@UK.AC.SHEF.IBM
- ----------------------------------------------------------------------------

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

!! UK TeX ARCHIVE at ASTON UNIVERSITY:
!!
!! NIFTP access: site      uk.ac.aston.tex
!!               username  public
!!               password  public
!!
!! Files of interest 
!!    [tex-archive]00readme.txt         [tex-archive]00files.txt
!!    [tex-archive]00directory.list     [tex-archive]00directory.size
!!    [tex-archive]00last7days.files    [tex-archive]00last30days.files
!!
!!
!! Washington TeX tape distribution:
!! The latest tape is labelled
!!
!!   TeX 3.0, Metafont 2.0, LaTeX 2.09;
!!   utilityfonts, cmfonts, LaTeXfonts, amsfonts.
!!   Unix 4.2/3BSD, Sys V.
!!   Tar, 1600bpi, blocked 20, 1 file
!!
!! I have the facility to copy this tape for anyone who sends the following
!! 1 2400 tape with return labels AND RETURN postage. (2.50 pounds sterling 
!! for UK users, payable to `Aston University') Outside UK please ask me.
!! UK users send 4.25 for two tapes or 6.60 for three tapes. 
!! Send to
!!
!! P Abbott
!! Computing Service
!! Aston University
!! Aston Triangle
!! Birmingham B4 7ET
!!
!! A VMS backup of the archive requires two 2400' tapes at 6250bpi.
!! Remaining details as above.
!!  
!! A VMS backup of TeX 2.991 plus PSprint is available; one tape is needed.
!!
!! Exabyte tape drive with Video 8 cassettes:
!!   Same formats available as 1/2in tapes.  We use the following tapes
!!     SONY Video 8 cassette  P5 90MP, MAXCELL Video 8 cassette P5-90
!!     TDK Video 8 cassette P5-90MPB
!! Postage 35p UK (stamp please), 1 pound sterling Europe, other areas 2 pounds
!!
!! OzTeX - Send 10 UNFORMATTED (800k) disks with return postage.
!!
!! ---Peter Abbott.

End of UKTeX Digest
*******************