TeXhax Digest   Friday, March 25, 1988   Volume 88 : Issue 29
                  [SCORE.STANFORD.EDU]<TEX.TEXHAX>TEXHAX29.88

Editor: Malcolm Brown

Today's Topics:

                       \immediate\write problem
                   Lowercase Greek letters in bold
                       Distribution of TeXware
           Request for "thesis" macros and a naive question
                        bibtex deleting files
                    response to bold math symbols
                       change the default font
                  Re: 'miscellaneous' font directory
                    Chemistry Journal BiBTeX Style
               LaTeX Notes (Re: TeXhax Digest V88 #26)
                      Different fonts for LN03's
                           LaTeX and Fonts
               Solution of "Table of Contents" Problem
                      LaTeX pages in log files.
                          TeXHaX and UseNet
             symbols for special sets of numbers in LATEX
               RE: A problem with \immediate and \write
   For what paper-sizes are LaTeX standard styles/options designed?
                    Hyphenation in LaTeX, tt font
            Converting METAFONT fonts to Macintosh format

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

Date:     Tue, 15 Mar 88 9:48:59 GMT
From:     R Fairbairns <rf%computer-lab.cambridge.ac.uk@NSS.Cs.Ucl.AC.UK>
Subject:  \immediate\write problem

Murali Krishnamurti in issue 88/22 reports trouble with \write-to-TOC.

I have had an analagous problem---my application was generating a file that was
to become a summary of actions that form the appendix to the minutes of a
meeting.

My solution was to have two instances of every count. The first is used in
the text of the document, and the second in the stuff that is sent out to
file by way of \write.

Thus Murali's two macros (in my scheme) would be amended to read:

\def\tocsection#1#2{\global\advance\tocsectcount by 1
   ...
   \noindent\llap{\hbox to 0.5truein{\romannumeral\tocsectcount\hfil}}#
   #2\leaderfill ...}

\def\section#1{\par\penalty -250
  \global\advance \sectcount by 1
  ...
  \write\toc{noexpand\tocsection{#1}{\the\pageno}
}

This works, but is (in my view) desparately inelegant. Does anyone have the
RIGHT solution?

Robin Fairbairns                    email: rf%cl.cam.ac.uk@nss.ucl.ac.uk
Laser Scan Laboratories
Science Park
Milton Rd
Cambridge CB4 4FY
UK

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

Date:		15-MAR-1988 10:33:19 GMT +00:00
From:		ALLCOCK%vax1.physics.oxford.ac.uk@NSS.Cs.Ucl.AC.UK
Subject:	Lowercase Greek letters in bold

    >From: CFTE%MCGILLA.BITNET@forsythe.stanford.edu
    >Date: TUE MAR 08, 1988 10.10.06
    >Subject: Lowercase Greek letters in bold
    >Hello there,
    >
    >I was wondering if anybody knows of an available font or of a way
    >to get lowercase Greek letters to print in bold face.
    >
    >Thanks,
    >
    >Shawn

Shawn,

We use the following macro definition:

  \def\pmb#1{\setbox0=\hbox{#1}

    \kern-.025em\copy0\kern-\wd0
    \kern.05em\copy0\kern-\wd0
    \kern-.025em\raise.0433em\box0 }

  \def\balpha{\pmb{$\alpha$}}

which produces reasonable if not perfect results (some letters
look better than others).

             Susan Allcock

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

Date:     Tue, 15 Mar 88 16:25 N
From: <POPPELIE%HUTRUU51.BITNET@forsythe.stanford.edu> (Nico Poppelier)
Subject:  Distribution of TeXware

A few questions concerning distribution of TeXware.

1. I would like to have the most recent version of BibTeX (0.99c),
btxdoc.tex, btxhak.tex, and the BibTeX style files (0.99a). FTP is
impossible because I am on BITNET. Where/how can I obtain the
abovementioned material?

2. In general: where/how do I obtain an arbitrary .WEB file, .STY
file, ...(anything), after its availability via FTP is mentioned in
TeXhax?

         Nico Poppelier
         (BITNET address: Poppelier@Hutruu51)

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

Date: Tue, 15 Mar 88 16:14:46 EST
From: vemula@gondor.cs.psu.edu (Udaya Bhaskar Vemulapati)
Subject: Request for "thesis" macros and a naive question

	Can someone e-mail me the set of "latex" macros used for producing
a typical doctoral thesis? I could modify to suit the local grad school
requiremnets.

	I've a very naive question regarding "latex" and I donot seem to find
the answer in Lamport's book. How does one get double-spaced document in a 
controlled fashion? If I use \renewcommand to set \baselinestretch to 2, the
horizontal spacing is doubled everywhere including tables. Is it possible
to have single spacing when making table,algorithms...etc? Thanks in advance.

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

Date: Tue, 15 Mar 88 15:08:19 PST
From: rusty%velveeta.Berkeley.EDU@berkeley.edu (rusty wright)
Subject: bibtex deleting files

My message was intended as a joke, bibtex doesn't really delete any of
my files.  I apologize for any inconvenience or problems that I may
have caused.

It's a pretty obscure joke because you have to read the .web code to
see where it came from:


@^system dependencies@>
@^user abuse@>
I mean, this is truly disgraceful.  A user has to type something in to
the terminal just once during the entire run.  And it's not some
complicated string where you have to get every last punctuation mark
just right, and it's not some fancy list where you get nervous because
if you forget one item you have to type the whole thing again; it's
just a simple, ordinary, file name.  Now you'd think a five-year-old
could do it; you'd think it's so simple a user should be able to do it
in his sleep.  But noooooooooo.  He had to sit there droning on and on
about who knows what until he exceeded the bounds of common sense, and
he probably didn't even realize it.  Just pitiful.  What's this world
coming to?  We should probably just delete all his files and be done
with him.  Note: The |term_out| file is system dependent.

@d sam_you_made_the_file_name_too_long == begin
					  sam_too_long_file_name_print;
					  goto aux_not_found;
					  end

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

Date:     Wed, 16 Mar 88 08:54 EST
From: <FREELS%UTKVX4.BITNET@forsythe.stanford.edu>
Subject:  response to bold math symbols

In response to CFTE@MCGILLA.BITNET in #25 of TeXhax 88 concerning how to
create lowercase bold math symbols, I share the following information:

Using LaTeX, place commands similar to the following in your preamble:

\newfont{\bmi}{cmmib10 scaled \magstep1}
\newfont{\bms}{cmbsy10 scaled \magstep1}
\newcommand{\boldeta}{\mbox{{\bmi \symbol{"11}}}}
\newcommand{\boldnabla}{\mbox{{\bms \symbol{"72}}}}

Then simply use \boldeta of \boldnabla in your math sections in place of
\eta and \nabla in order to get bold.

If you try to define all math symbols to equivalent bold in this way, you
will run out of TeX memory.  So I only define those I need.

There is probably a better way to do this.  But this way I don't have to
know all the details of TeX and I can use LaTeX as a "user" which I fully
admit that I am.

freels@utkvx1.bitnet

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

Date:     Wed, 16 Mar 88 09:02 EST
From: <FREELS%UTKVX4.BITNET@forsythe.stanford.edu>
Subject:  change the default font

A LaTeX question (or even a TeX question):

Is there a simple way to convert the default font from \rm to say
\sf for Sans Serif?  I have done the following:

1. defined \sf to be Sans Serif.  This works

2. refined the \rm command using \renewcommand in LaTeX.  This picks up
   the majority of occurances

3. put \sf at the start of the document.  Probably unneccessary due to number
   2 above.

However, this alone will not do it.  I still get section titles, page numbers,
equation numbers, etc. appearing in \rm.  So then I went into the
style files which I am using, such as article.sty and art12.sty, and redefined
what section, subsection, etc..  This worked but seemed like a lot of trouble.
Hence this request for information.

freels@utkvx1.bitnet

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

Date: Wed, 16 Mar 88 09:32:08 EST
From: Chris Torek <chris@mimsy.umd.edu>
Subject: Re: 'miscellaneous' font directory

Joachim Schrod (XITIJSCH@DDATHD21 on BITNET suggests that

>if you want to write (and maintain) a portable driver family which
>runs on several different operating systems ... [you] should search
>for a font in the personal device area first and afterwards in the
>standard device area.

I agree with this *as a minimum*.  Better yet, allow searching for
fonts *anywhere*.  Provide a mechanism by which a configuration file is
read at runtime.  This file will tell where to look and (just as
important) *how* to look for fonts.  On our Unix systems, for instance,
if a font exists in the standard area, it will be found in, e.g.,
`/usr/local/lib/tex/fonts/cmr10/cmr10.300gf'.  Other Unix systems might
place the same font in `/usr/lib/tex/fonts/cmr10.300gf'.  Yet others
might want it in `/local/texlib/fonts/gf/300/cmr10', or any other
imaginable variation.

Yet if you implement your font lookup routine cleverly, you need not
compile in *any* of these formats.  My drivers use a library of font-
reading routines that first reads a configuration file; this file
says that to read a `gf' file on my system, the library should
expand the string

	/usr/local/lib/tex/fonts/%f/%f.%mgf

That is, each `%f' is replaced by the font name (cmr10) and each %m
by its magnification (300, or 1500 if it is a PXL file).  Thus there
is only *one* name that is hardcoded into the entire system, namely
where to find the configuration file, and even that can be overridden
at runtime.

In fact, we actually keep only PK format files around; they take
less space than GF files and are faster to decode.  (Why, oh why does
METAFONT allow the bounding box values in a GF file character description
to be larger than the minimal bounding box for that character?)  Hence
the specification looks rather more like this:

	#	TYPE	SPEC	SLOP	PATH
	font	gf	*	3	%f.%mgf	# current directory first
	font	box	*	1	%f.tfm

	font	pk	canon	3	/usr/local/lib/tex/fonts/%f/%f.%mpk
	font	invis	*	1	/usr/local/lib/tex/slitexfonts/%f.tfm
	font	box	*	1	/usr/local/lib/tex/fonts/%f.tfm
	# `canon' means the font is tuned for the Canon write-black
	# engine (so that a `ricoh' font reader, e.g., will not see it).
	# An invis or box font works on any print engine.  When we get
	# a write-white engine we will rearrange the font directories,
	# perhaps along the lines:
	#	canon	/usr/local/lib/tex/fonts/canon/%f/%mpk
	#	ricoh	/usr/local/lib/tex/fonts/ricoh/%f/%mpk

The `invis' font allows one to support arbitrarily sizes SliTeX
`invisible' fonts without storing any GF or PK files whatsoever.
Instead, the implementation of the `invis' font reader creates fonts
with no pixels set, but with dimensions according to the specified TFM
file.  As long as a copy of the corresponding TFM file appears in the
`slitexfonts' directory (which might better be called the `invisfonts'
or directory), the font reader will assume that it is an invisible font
and will create one dynamically.

The `box' font is used when all else fails:  If a font cannot be
found at some magnification, the TFM dimensions are used to create
a `box' around the character, much as in the examples in The TeXbook
with `a line of type'.  The entry can, of course, be commented out
if you decide you cannot stand the sight of boxes replacing missing
characters.

(`Slop' is used in those cases where magnifications just do not work
out.  A slop of 3 allows a deviation of [-2,+2].  This will someday
be changed to a deviation of [-3,+3], and the TFM-based fonts will
have 0 slop rather than 1.)

Well, this has become rather longer than I intended, but I hope
DVI driver writers get the idea:  make EVERYTHING configurable,
preferably at runtime.

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

Date: Wed, 16 Mar 88 13:57 EST
From: "Yates, John H." <YATES@a.chem.upenn.edu>
Subject: Chemistry Journal BiBTeX Style

I have Talaris' TeXsupport-VMS Release 4.0 for a QMS QUIC laser printer.
Is there a way to get BiBTeX to use Chem Journal (esp. JCP and JACS)
format? Please reply directly to me as I don't subscribe to the net.
Thanks in advance,
John H. Yates
yates%a.chem.upenn.edu@relay.upenn.edu

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

Date: Wed, 16 Mar 88 11:48:08 PST
From: lamport@src.dec.com (Leslie Lamport)
Subject: LaTeX Notes (Re: TeXhax Digest V88 #26)

Robert Kasper and HANCHE%NORUNIT.BITNET@CUNYVM.CUNY.EDU 
observed that 

   \renewcommand{\theenumi}{\roman{enumi}}

Does not change the numbering of first-level enumerations.  Browsing
through latex.tex, one comes upon:

%  Enumeration is done with four counters: enumi, enumii, enumiii
%  and enumiv, where enumN controls the numbering of the Nth level
%  enumeration.  The label is generated by the commands 
%  \labelenumi ... \labelenumiv, which should be defined by the
%  document style.  Note that \p@enumN\theenumN defines the output
%  of a \ref command.  A typical definition might be:
%     \def\theenumii{\alph{enumii}}
%     \def\p@enumii{\theenumi\theenumii}
%     \def\labelenumii{(\theenumii)}
% which will print the labels as '(a)', '(b)', ... and print a \ref as
% '3a'.

However, examining the document styles reveals that these directions
were not followed, and instead there is

\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}

This will be corrected.  Meanwhile, it should be clear how to redefine
\labelenum...  and \theenum...  to change the numbering of enumerated
items.

Leslie Lamport

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

Date: Wed, 16 Mar 88 15:35 EDT
From: Ted Nieland - SRL <@WPAFB-AAMRL.ARPA:TNIELAND@FALCON>
Subject: Different fonts for LN03's

Has anyone out there created different conts for the LN03?  

Some parts of some letters (the thin parts of r's, t's, etc.) under the roman
fonts tend to disappear when copies are made of the original laser printer
outputs.   We have very high quality copiers, but those extremely thin lines
still have problems.

I am looking for some other font than I can use to replace the roman font.  I
am not neccessarily limitted to PD fonts, if anyone has information on
comercial fonts for TeX for the LN03, please let me know. 

Thanks in advance.


  M. Edward (Ted) Nieland - Systems Analyst                     |

| US Snail:                            | Arpa Internet:
| Systems Research Laboratories, Inc.  | TNIELAND@WPAFB-AAMRL.ARPA
| 2800 Indian Ripple Road   WP 196     | TNIELAND%FALCON@WPAFB-AAMRL.ARPA
| Dayton, OH  45440

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

Date: Wed, 16 Mar 88 17:22:56 EST
From: Charlie Martin <crm@cs.duke.edu>
Subject: LaTeX and Fonts

I've just (finally) installed TeX and LaTeX from the new tape on our
nice new suns, and gotten the Utah drivers up and running.  All seems to
work quite nicely (thanks folks) except for one little thing: LaTeX
seems to call for several odd fonts, e.g. cmbx10.2160pxl.  These fonts
(or their gf forms)
are not in the distribution as far as I can see --- but it seems
unlikely that this sort of standard font would not be provided.

Could someone tell me (a) what I screwed up on and (b) how I can fix it?
I'd druther not have to run Metafont for this, if only because of the
time involved.

Thanks very much,

Charlie Martin (crm@cs.duke.edu,mcnc!duke!crm) 

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

Date:    Wed, 16 Mar 88 15:22:54 PST
From:     trenfrow@VLSI.JPL.NASA.GOV
Subject: Solution of "Table of Contents" Problem

A problem with \immediate and \write in Tex was documented in TEXHAX22.88
and was responded to by Pierre A. MacKay in TEXHAX25.88. The problem was how
to write out entries to a file that will be used later to build a table of
contents. Part of the problem comes when a section heading comes near the
bottom of a page and gets placed at the top of the next page by the page
breaking algorithm. Pierre's solution was to hand inspect the table of
contents and correct the occasional error. 
 
I have a macro which does the complete job and there are no errors (at least
none in all the documents that I have checked). As is so often the case the
germ of the idea for this macro came from an exercise in the TEXBook
(Exercise 21.10). 
 
I have included the macro for making a section below:
 
\def\section#1{\par\medskip\advance\count2 by 1
\count3=0\count4=0
\leftline{\tenrm \bf \thechapterorappendix .\the\count2\ \ #1}
%%This is the tricky code that solve the TOC problem
{\let\the=0
\edef\next{\write\filenumber{\tocentry%
{1}{\chapterorappendixoutput.\number\count2}%
{#1}{\the\count0}}}\next}
%%End of tricky code
\nobreak
\medskip\nobreak}
 
Some of this macro is specific to the way that I generate section headings
and a reasonably seasoned Tex reader can decipher that. The real neat part
that completely solves the "TOC problem" has been highlighted. By using
"\edef" you get everything that you want defined (i. e., section name,
section number) immediately but you don't use the \immediate which is really
not the solution. The "\let\the=0" is certainly difficult to understand but
it basically inactivates the expansion of \the\count0 during the edef
process. After the edef process a "whatsit" is created in the main vertical
list which contains the almost completely defined table of contents entry.
What isn't expanded is the "\the\count0". The "whatsit" only gets evaluated
when the page is shipped out (and it is at this time that the "\the\count0"
gets expanded) and so the page number gets recorded correctly. It may take
some study but this really works.
 
An added feature is the "nobreak" stuff at the end which ensures that the
first line of text of the section appears on the same page as the section
title - no widow section titles!
 
I have prepared a whole set of report generation and table of contents
generation macros which I am currently updating. If you want a copy, drop me
an electronic message (Internet - TRENFROW@vlsi.jpl.nasa.gov).
 
Tom Renfrow
Jet Propulsion Laboratory
Pasadena, CA
818-354-6347

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

Date: Wed, 16 Mar 88 18:20:25 EST
From: "Karl Berry." <karl%red.umb.edu@RELAY.CS.NET>
Subject: LaTeX pages in log files.

In the transcript files of a LateX job, all the page numbers
seem to come out as, e.g.,
[1

]

or something like that. Is this intentional (or at least
explicable), or should I go make a triptex?

Has anyone tracked this down?

Karl.    karl@umb.edu           harvard!umb!karl

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

Date:    Wed, 16 Mar 88 21:14 EST
From: "Lee Sailer 814-898-6268" <UH2%PSUVM.BITNET@forsythe.stanford.edu>
Subject: TeXHaX and UseNet

I just "discovered" TeXHaX-L about 5 minutes, and already I lke it.
I have been reading comp.text over on UseNet for a long time.  Why
isn't TeXHaX gateway'ed over to UseNet?  I am sure those folks would
like to see this stuff.

                       lee

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

From: AM30360%DHHUNI4.BITNET@CUNYVM.CUNY.EDU
Date: 88-03-17 11:02:26 MEZ
Subject: symbols for special sets of numbers in LATEX

As everybody knows mathematicians use a lot of special symbols.
Many of them are covered by LATEX's mathsymbol fonts. But some
are not. So my question to whom it may concern:

Has anybody out there a special font containing symbols for
the set of real numbers, complex numbers, integers and so on
for IBM-PC? Or has anybody experience in constructing them with
METAFONT?

thanks for listening

Rainer

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

Date:         Thu, 17 Mar 1988 11:27 EST
From: Jim Walker <N410109%univscvm.BITNET@forsythe.stanford.edu>
Subject:      RE: A problem with \immediate and \write

The problem brought up by Murali Krishnamurthi in TeXhax22.88 sounds
like exactly the problem discussed in Exercise 21.10 in the TeXbook.
   --Jim Walker, University of South Carolina, N410109.univscvm.bitnet

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

Date:     17-MAR-1988 17:11:16 GMT
From: CCZDGR%VAXA.NOTT.AC.UK@forsythe.stanford.edu
Subject:  For what paper-sizes are LaTeX standard styles/options designed?

Leslie Lamport (or the typographer he consulted) seems to have gone to a lot
of trouble to design the various aspects of the standard LaTeX styles as
appropriate for various point sizes.  However, I'm not clear about the size of
paper for which they were designed.

There are various references in TeXhax to 11x8.5 paper, there are
references to "margin dimensions measured from a point one inch from the top
and side of page" in files like BK10.DOC, and LPLAIN.TEX sets \hsize and
\vsize as for 11x8.5.  So perhaps the standard styles are designed to do as
well as can be expected on 11x8.5 paper.

On the other hand, perhaps the styles were designed for reproduction onto
paper that is smaller than 11x8.5.  For example,
   \documentstyle[10pt],book-
seems to give a text area that is similar to that in "LaTeX: A Document
Preparation System".  Perhaps the output from
   \documentstyle[10pt],book-
is intended for reproduction onto paper that is similar in size to the
paper that Addison-Wesley use for the book.

If the standard styles (or some of them) were designed for reproduction onto
paper that is smaller than 11x8.5, would it be possible for Leslie to provide
us with:
- a matrix giving the paper-size for which each of the 4 standard styles
  and 3 standard point-size option-files were designed
- instructions for placing the "text area" onto the specified paper in such
  a way as to give the effect that the designer intended?
(I suppose that, strictly speaking, it may also be necessary to specify the
type of binding that the designer assumed.)
To avoid future problems, would it be possible for this information to be
put in comments in future editions of ART10.DOC, ... , BK12.DOC?

I apologise if I'm asking for information that is available in the book
or in the relevant files:  I've not been able to find it.  I also apologise
for the quantity of information that I'm requesting:  but the designer's
work may be wasted if the finished document isn't placed on the paper in
the way that the designer intended.

  David Rhead

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

Date:         Thu, 17 Mar 88 18:47:17 GVA
From: Klaus Wacker <WACKER%CERNVM.BITNET@forsythe.stanford.edu>
Subject:      Hyphenation in LaTeX, tt font

Please excuse me if this has been asked before, I am new to TeXhax.

It seems that LaTeX doesn't hyphenate automatically when in font \tt.
I tried

\showhyphens{random {\tt random} {\tt RANDOM} }

in LaTeX and I got

   ran-dom random RANDOM

The same in plain TeX gave me

   ran-dom ran-dom RAN-DOM

Is this a bug or a feature? How can I get LaTeX to hyphenate in font \tt?

Regards, Klaus.

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

Date:	  Thu, 17 Mar 88 10:08:35 PST
From:     KARNEY%PPC.MFENET@NMFECC.ARPA
Subject:   Converting METAFONT fonts to Macintosh format

Thanks to zaccone@bknlvms.bitnet, I have assembled the necessary tools to
convert METAFONT-generated fonts to Macintosh format so that they can be
used with TeXtures.  The programs you need are:
    pktor               convert PK files to Rmaker format
    tftopl              convert TFM files to text format
    EdMetrics           insert TFM info into TeX metrics file
    Rmaker              convert font files to Macintosh format
    Font/DA mover       move font files around and add FOND resource
EdMetrics is obtained by sending a floppy disk to Kellerman and Smith.
tftopl is part of the standard TeX distribution.
Rmaker and Font/DA mover are parts of Mac OS software.
pktor is a C program written by Gerald A. Edgar (TS1871@OHSTVMA.bitnet).

I have used this to move the AMS fonts to TeXtures.  However, there is a
limitation on the size of the font which prevents me from converting fonts
bigger than approx 50pt (i.e., 10pt font at 1.2 mag at 300/in).  TeXtures
has some mechanism for getting big fonts into the system.  This involves (I
believe) splitting up the font and sticking some of it into e.g., cmr17 and
the rest in .cmr17.  Does anyone know how to accomplish this.

    Charles Karney
    Plasma Physics Laboratory   Phone:   +1 609 243 2607
    Princeton University        MFEnet:  Karney@PPC.MFEnet
    PO Box 451                  ARPAnet: Karney%PPC.MFEnet@NMFECC.ARPA
    Princeton, NJ 08543-0451    Bitnet:  Karney%PPC.MFEnet@ANLVMS.Bitnet

------------------------------
%%%
%%% subscriptions, address changes to: texhax-request@score.stanford.edu
%%%     please send a valid arpanet address!!
%%%
%%% BITNET distribution: subscribe by sending the following
%%%   line to LISTSERV@TAMVM1.BITNET:
%%%       SUBSCRIBE TEX-L <your name>
%%%
%%% submissions to: texhax@score.stanford.edu
%%%
%%%\bye
%%%
------------------------------

End of TeXhax Digest
**************************
-------