[comp.text] TeXhax Digest V89 #90

TeXhax@cs.washington.edu (TeXhax Digest) (10/11/89)

TeXhax Digest    Tuesday, October 10, 1989  Volume 89 : Issue 90

Moderators: Tiina Modisett and Pierre MacKay

%%% The TeXhax digest is brought to you as a service of the TeX Users Group %%%
%%%       in cooperation with the UnixTeX distribution service at the       %%%
%%%                      University of Washington                           %%%

Today's Topics:         

                   RE: Dvi display on Macintosh
                   Interactive TeX editor wanted
               Rich-Text-File to TeX or LaTeX wanted
   A LaTeX style file to track size-changing commands using Cyrillic
                     Driver for the Deskjet+
                      Problem with w_dvi2ps
      RE: Round-off errors when processing \oval (TeXhax V89 #88)
                 Text in Display Mode for LaTeX
            Screen (ASCII) output of LaTeX documents
                    Long verbatims in LaTeX

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

Date: Sat, 30 Sep 89 08:21:41 -0700
From: Louis M. McDonald <louis@aerospace.aero.org>
Subject: RE: Dvi display on Macintosh
Keywords: dvi display, Macintosh, OzTeX

 I have OzTeX and have successfully transferred DVI files from a VAX and
 have been able to view it with OzTeX. I used Kermit to transfer the file
 in binary mode. NOTE: Hold down the option key when selecting the View DVI
 option under VIEW and you will see all files. If you do not hold the option
 key down, you will only see DVI files created by OzTeX (ODVI)

 Louis McDonald

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

Date: Fri, 29 SEP 89 16:33:27 +01:00
From: MACALLSTR%vax1.physics.oxford.ac.uk@NSFnet-Relay.AC.UK
Subject: Interactive TeX editor wanted
Keywords: TeX, editor

I'm looking for something which will allow secretaries to easily
compile documents, especially ones containing scientific formulae,
without knowing about the more complex aspects of TeX. Something which
would display and allow font selection and movement around the screen
AND AUTOMATICALLY produce a TeX file to reproduce what is actually on
the screen. I'm aware of various packages which will allow
display/compilation and screen dumping in some other format but not
conversion to a TeX file.  Packages which are low-cost or absolutely
free are of most interest. 

 John

X-Info: Nuclear Physics Lab,Keble Rd,Oxford OX1 3RH. Phone+44-865-273388
X-Info2: Fax +44-865-273418. Telex 83295 NUCLOX G.

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

Date: Thu, 28 Sep 89 20:15:11 PDT
From: Alex Woo <woo@pioneer.arc.nasa.gov>
Subject: Rich-Text-File to TeX or LaTeX wanted
Keywords: Rich-Text-File, TeX, LaTeX, converter

Does anyone know of a converter from Microsoft's RTF format to TeX or
LaTeX?  Actually RTF to just about anything would be a start.

Thanks.

Alex Woo
woo@pioneer.arc.nasa.gov

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

Date: Thu,  5 OCT 89 19:28:32 BST
From: TEX%rmcs.cranfield.ac.uk@NSFnet-Relay.AC.UK
Subject: A LaTeX style file to track size-changing commands using Cyrillic
Keywords: Fonts, Cyrillic, LaTeX style file

In response to a query in TeXhax V89 #88 concerning the use of Cyrillic in 
sizes other than the default, I feel it's time to release the following style 
file.  It was written last year by my colleague Niel Kempson and myself, and 
the same principles are used in my GREEK.STY to provide similar support for 
use with my Greek fonts.

It associates additional commands with each of LaTeX's size-changing commands 
through the use of the \@addfontinfo command, such that the \cyr and \cyb 
commands select the appropriately magnified font.
                               Brian {Hamilton Kelly}

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ JANET:     tex@uk.ac.cranfield.rmcs                                     +
+ BITNET:    tex%uk.ac.cranfield.rmcs@ac.uk                               +
+ INTERNET:  tex%uk.ac.cranfield.rmcs@nsfnet-relay.ac.uk                  +
+ Smail:     School of Electrical Engineering & Science, Royal Military   +
+            College of Science, Shrivenham, SWINDON SN6 8LA, U.K.        +
+ Phone:     Swindon (0793) 785252 (UK), +44-793-785252 (International)   +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
P.S. Of course, nowadays it should be converted to use Schoepf and 
Mittelbach's new font coding scheme.
P.P.S. It won't work with SliTeX --- I don't suppose anyone feels like 
rewriting SFONTS.TEX to use a similar selection mechanism to LFONTS.TEX?
%
%------------------------------cut here------------------------------------
%
% CYRILLIC.STY - 08-SEP-1988
% ~~~~~~~~~~~~
%
% Allow LaTeX to use the AMS cyrillic fonts.
%
% \cyr	-	cyrillic
% \cyb	-	cyrillic bold
% 
%
% AUTHORS:	Niel Kempson & Brian Hamilton Kelly,
% 		School of Electrical Engineering and Science,
% 		Royal Military College of Science,
% 		Shrivenham,
% 		SWINDON 
% 		SN6 8LA
% 		ENGLAND
%
% Telephone:	(+793) 785687 / 785252
% JANET:	tex@uk.ac.cranfield.rmcs
%
%
% Input the hyphenation and transliteration macros.
%
\input cyracc.def

%
% The fonts are loaded on demand, but don't demand too many or LaTeX
% will exhaust its font memory.
%

\def\cyr{\protect\pcyr}
\def\cyb{\protect\pcyb}

\def\m@cyr{mcyr10}
\def\m@cyb{mcyb10}

\newfam\cyrfam
\newfam\cybfam

\@addfontinfo\@vpt{\def\pcyr{\@prtct\cyr@vpt\@prtct\cyracc}}
\@addfontinfo\@vipt{\def\pcyr{\@prtct\cyr@vipt\@prtct\cyracc}}
\@addfontinfo\@viipt{\def\pcyr{\@prtct\cyr@viipt\@prtct\cyracc}}
\@addfontinfo\@viiipt{\def\pcyr{\@prtct\cyr@viiipt\@prtct\cyracc}}
\@addfontinfo\@ixpt{\def\pcyr{\@prtct\cyr@ixpt\@prtct\cyracc}}
\@addfontinfo\@xpt{\def\pcyr{\@prtct\cyr@xpt\@prtct\cyracc}}
\@addfontinfo\@xipt{\def\pcyr{\@prtct\cyr@xipt\@prtct\cyracc}}
\@addfontinfo\@xiipt{\def\pcyr{\@prtct\cyr@xiipt\@prtct\cyracc}}
\@addfontinfo\@xivpt{\def\pcyr{\@prtct\cyr@xivpt\@prtct\cyracc}}
\@addfontinfo\@xviipt{\def\pcyr{\@prtct\cyr@xviipt\@prtct\cyracc}}
\@addfontinfo\@xxpt{\def\pcyr{\@prtct\cyr@xxpt\@prtct\cyracc}}
\@addfontinfo\@xxvpt{\def\pcyr{\@prtct\cyr@xxvpt\@prtct\cyracc}}

\@addfontinfo\@vpt{\def\pcyb{\@prtct\cyb@vpt\@prtct\cyracc}}
\@addfontinfo\@vipt{\def\pcyb{\@prtct\cyb@vipt\@prtct\cyracc}}
\@addfontinfo\@viipt{\def\pcyb{\@prtct\cyb@viipt\@prtct\cyracc}}
\@addfontinfo\@viiipt{\def\pcyb{\@prtct\cyb@viiipt\@prtct\cyracc}}
\@addfontinfo\@ixpt{\def\pcyb{\@prtct\cyb@ixpt\@prtct\cyracc}}
\@addfontinfo\@xpt{\def\pcyb{\@prtct\cyb@xpt\@prtct\cyracc}}
\@addfontinfo\@xipt{\def\pcyb{\@prtct\cyb@xipt\@prtct\cyracc}}
\@addfontinfo\@xiipt{\def\pcyb{\@prtct\cyb@xiipt\@prtct\cyracc}}
\@addfontinfo\@xivpt{\def\pcyb{\@prtct\cyb@xivpt\@prtct\cyracc}}
\@addfontinfo\@xviipt{\def\pcyb{\@prtct\cyb@xviipt\@prtct\cyracc}}
\@addfontinfo\@xxpt{\def\pcyb{\@prtct\cyb@xxpt\@prtct\cyracc}}
\@addfontinfo\@xxvpt{\def\pcyb{\@prtct\cyb@xxvpt\@prtct\cyracc}}


\def\cyr@vpt{%
	\@subfont\cyr\rm
	\let\cyr@vpt=\relax}
\def\cyr@vipt{%
	\@getfont\pcyr\cyrfam\@vipt{mcyr6}%
	\let\cyr@vipt=\relax}
\def\cyr@viipt{%
	\@getfont\pcyr\cyrfam\@viipt{mcyr7}%
	\let\cyr@viipt=\relax}
\def\cyr@viiipt{%
	\@getfont\pcyr\cyrfam\@viiipt{mcyr8}%
	\let\cyr@viiipt=\relax}
\def\cyr@ixpt{%
	\@getfont\pcyr\cyrfam\@ixpt{mcyr9}%
	\let\cyr@ixpt=\relax}
\def\cyr@xpt{%
	\@getfont\pcyr\cyrfam\@xpt{\m@cyr}%
	\let\cyr@xpt=\relax}
\def\cyr@xipt{%
	\@getfont\pcyr\cyrfam\@xipt{\m@cyr\@halfmag}%
	\let\cyr@xipt=\relax}
\def\cyr@xiipt{%
	\@getfont\pcyr\cyrfam\@xipt{\m@cyr\@magscale1}%
	\let\cyr@xiipt=\relax}
\def\cyr@xivpt{%
	\@getfont\pcyr\cyrfam\@xipt{\m@cyr\@magscale2}%
	\let\cyr@xivpt=\relax}
\def\cyr@xviipt{%
	\@getfont\pcyr\cyrfam\@xipt{\m@cyr\@magscale3}%
	\let\cyr@xviipt=\relax}
\def\cyr@xxpt{%
	\@getfont\pcyr\cyrfam\@xipt{\m@cyr\@magscale4}%
	\let\cyr@xxpt=\relax}
\def\cyr@xxvpt{%
	\@getfont\pcyr\cyrfam\@xipt{\m@cyr\@magscale5}%
	\let\cyr@xxvpt=\relax}


\def\cyb@vpt{%
	\@subfont\cyb\cyr
	\let\cyb@vpt=\relax}
\def\cyb@vipt{%
	\@subfont\cyb\cyr
	\let\cyb@vipt=\relax}
\def\cyb@viipt{%
	\@subfont\cyb\cyr
	\let\cyb@viipt=\relax}
\def\cyb@viiipt{%
	\@getfont\pcyb\cybfam\@viiipt{mcyb8}%
	\let\cyb@viiipt=\relax}
\def\cyb@ixpt{%
	\@getfont\pcyb\cybfam\@ixpt{mcyb9}%
	\let\cyb@ixpt=\relax}
\def\cyb@xpt{%
	\@getfont\pcyb\cybfam\@xpt{\m@cyb}%
	\let\cyb@xpt=\relax}
\def\cyb@xipt{%
	\@getfont\pcyb\cybfam\@xipt{\m@cyb\@halfmag}%
	\let\cyb@xipt=\relax}
\def\cyb@xiipt{%
	\@getfont\pcyb\cybfam\@xipt{\m@cyb\@magscale1}%
	\let\cyb@xiipt=\relax}
\def\cyb@xivpt{%
	\@getfont\pcyb\cybfam\@xipt{\m@cyb\@magscale2}%
	\let\cyb@xivpt=\relax}
\def\cyb@xviipt{%
	\@getfont\pcyb\cybfam\@xipt{\m@cyb\@magscale3}%
	\let\cyb@xviipt=\relax}
\def\cyb@xxpt{%
	\@getfont\pcyb\cybfam\@xipt{\m@cyb\@magscale4}%
	\let\cyb@xxpt=\relax}
\def\cyb@xxvpt{%
	\@getfont\pcyb\cybfam\@xipt{\m@cyb\@magscale5}%
	\let\cyb@xxvpt=\relax}
%------------------------------and here------------------------------------

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

Date: Fri,  6 OCT 89 13:02:14 +01:00
From: MACALLSTR%vax1.physics.oxford.ac.uk@NSFnet-Relay.AC.UK
Subject: Driver for the Deskjet+
Keywords: dviware, DeskJet+

Does anyone have or know of a driver for the HP Deskjet+ ( DVI to Deskjet+ )?
 It is not compatible with the HP laserjet.
Thanks in advance,
   John

X-Info: Nuclear Physics Lab,Keble Rd,Oxford OX1 3RH. Phone+44-865-273388
X-Info2: Fax +44-865-273418. Telex 83295 NUCLOX G.

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

Date: 5 Oct 1989 12:47:34 EST
From: JIM.THOMPSON@KBESRL.ME.UIUC.EDU
Subject: Problem with w_dvi2ps
Keywords: dvi2ps, IBM RT

i am attempting to build a dvi2ps (from w_dvi2ps on june.cs.washington.edu)
on an ibm rt running aix.  when i try to compile filefile.c i get the
following: 

"/usr/include/sys/low.h", line 22: warning: PS redefined
"findfile.c", line 17: warning: MAXPATHLEN redefined
"findfile.c", line 105: R_OK undefined
"findfile.c", line 113: R_OK undefined
"findfile.c", line 128: DIR undefined
"findfile.c", line 128: dirstream undefined
"findfile.c", line 129: syntax erro
r
"findfile.c", line 136: sdir undefined
"findfile.c", line 138: sdir undefined
"findfile.c", line 140: sdir undefined
"findfile.c", line 141: dirrecord undefined
"findfile.c", line 143: qpoint undefined
"findfile.c", line 144: qmag undefined
"findfile.c", line 145: warning: struct/union or struct/union pointer required
"findfile.c", line 146: qfamily undefined
"findfile.c", line 147: df undefined"findfile.c", line 148: dp undefined
"findfile.c", line 149: dm undefined
"findfile.c", line 153: warning: struct/union or struct/union pointer required
"findfile.c", line 255: d_namlen undefined
"findfile.c", line 255: member of structure or union required
"findfile.c", line 258: d_namlen undefined
"findfile.c", line 258: member of structure or union required

any help would be appreciated.
mail responses directly to thompson@kbesrl.me.uiuc.edu

thanks - jim thompson

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

Date: Thu,  5 OCT 89 18:34:25 BST
From: TEX%rmcs.cranfield.ac.uk@NSFnet-Relay.AC.UK
Subject: RE: Round-off errors when processing \oval (TeXhax V89 #88)
Keywords: LaTeX, \oval

Paul,
    I've just fed your code through LaTeX and cannot reproduce the problem: 
I've examined the output with both a screen previewer (Andy Trevorrow's 
DVItoVDU, which includes Modula-2 implementations of DVItype's rounding 
algorithms) and with my DVItoLN03 program, which definitely has the DVItype 
algorithms included verbatim.  Therefore I don't think the problem arises from 
these algorithms (and after all, DEK was VERY particular about getting these 
right!).  Even magnifying the image so that the lines were about 4mm wide on 
my screen revealed not a sign of any misalignment.  
    If you hadn't said that there's one driver that *does* produce the correct 
picture, I would be inclined to think that you've got problems in your TeX 
program itself --- has it been TRIPped lately?  Just in case, I'm mailing you 
separately the output of DVItype applied to the file, so that you can compare 
it with yours.
    Looks to me like you'd better start shouting (or whispering, if it was 
free) at the supplier(s) of your DVItoXXX programs!
                               Brian {Hamilton Kelly}

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ JANET:     tex@uk.ac.cranfield.rmcs                                     +
+ BITNET:    tex%uk.ac.cranfield.rmcs@ac.uk                               +
+ INTERNET:  tex%uk.ac.cranfield.rmcs@nsfnet-relay.ac.uk                  +
+ Smail:     School of Electrical Engineering & Science, Royal Military   +
+            College of Science, Shrivenham, SWINDON SN6 8LA, U.K.        +
+ Phone:     Swindon (0793) 785252 (UK), +44-793-785252 (International)   +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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

Date: Wed, 04 Oct 89 20:31:31 SST
From: Teck-Wong Soon <ECSSTW%NUSVM.BITNET@UWAVM.ACS.WASHINGTON.EDU>
Subject: Text in Display Mode for LaTeX
Keywords: LaTex, display mode, text

When using AmSTeX, we can type text in display mode with the text
command.  The text command, or its equivalent, does not seem to be
available in LaTeX.  I would be most appreciative if some TeXpert or
LaTeXpert can provide me with a macro to type text in math display
mode.
                                  Teck-Wong Soon
                                  Department of Economics & Statistics
                                  National University of Singapore

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

Date: 04 OCT 89 17:49:01
From: Z3000PA%AWITUW01.BITNET@UWAVM.ACS.WASHINGTON.EDU
Subject: Screen (ASCII) output of LaTeX documents
Keywords: LaTeX, ASCII

In TUGboat 10/2, I presented ideas for a style option file SCREEN.STY
which shall reformat texts in a way that makes them suitable for
storage as line-oriented ASCII text files on a computer (for online
information files, e-mail, help screens, etc.).

( If you haven't read this yet, rush to your TUGboat copy or
  order it from TUG, you shouldn't miss it  :-)

In the meantime, several kind TeXhackers have told me improvements,
which I want to summarize here:

To allow hyphenation in the \tt font used for the text, the
following has to be added:

   \hyphenchar\tentt=`\-
   \hyphenchar\elvtt=`\-
   \hyphenchar\twltt=`\-

and the \raggedright command has to be replaced by
   \rightskip=\z@ plus 5em
   \@rightskip=\rightskip

As a conseqence, the two-letter sequences, that are to be printed
in lieu of the german, scandinavian and other umlaut or special
characters, have to be put into \mbox'es to avoid hyphenation
within these letter pairs:

   \def\"#1{\ifmmode #1\else
         \if \string #1a\mbox{ae}\else
         \if \string #1o\mbox{oe}\else
         \if \string #1u\mbox{ue}\else
         \if \string #1A\mbox{Ae}\else
         \if \string #1O\mbox{Oe}\else
         \if \string #1U\mbox{Ue}\else
         #1\fi \fi \fi \fi \fi \fi \fi}

   \def\ss{\mbox{ss}}
   \def\aa{\mbox{aa}}

and so on (for all of them).

In order to mark items with one dash rather than two hyphens
in second level itemized lists, the following has to be added:

   \def\labelitemii{\tt -}

Finally, \frenchspacing should be switched on to avoid the doubling
of spaces after punctuation marks:

   \frenchspacing

For the quotes and dash problems ( '', ``, --, ---), there is still
no TeX-input solution in sight, but only the adding of ligatures
to the TFM files.  :-(

Together with this message, I am sending the new version of the
SCREEN.STY file. The TeXhax editors will make this file
available by ftp from june.cs.washington.edu.

Further comments and improvements are still welcome!

   Hubert Partl, Vienna, Austria  <z3000pa@awituw01.bitnet>

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

Date: Sat, 30 Sep 89 15:34:56 BST
From: Sebastian Rahtz <spqr%ecs.southampton.ac.uk@NSFnet-Relay.AC.UK>
Subject: Long verbatims in LaTeX
Keywords: LaTeX, verbatims

One of my students has an appendix in his thesis where he says
  \section{Blah code}
  {\footnotesize\input(code.c)}
  \section{More blah}

where code.c contains a pair of \begin(verbatim} and \end{verbatim},
and is about 250 lines long.  When run through LaTeX, the result is
that the appendix number reverts back from Alph to arabic, so the
numbering goes
   D.1
   4.2
   5.1

strange? stranger still is that nothing goes wrong when he removes the
verbatim environment and says

  {\footnotesize\verbfile{code.c}}

(using the verbfile macros written by, I think, Furuta). 

So why is this? I can see nothing at all which makes TeX forget how to
format its counters, or any substantive difference between verbatim
environment and the verbfile macros.

Sebastian Rahtz

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

%%% The TeXhax digest is brought to you as a service of the TeX Users Group
%%%       in cooperation with the UnixTeX distribution service at the 
%%%                      University of Washington
%%%
%%% Concerning subscriptions, address changes, unsubscribing:
%%%  BITNET: send a one-line mail message to LISTSERV@xxx
%%%          where xxx is the nearest geographical site in the
%%%          tree shown below
%%%         SUBSCRIBE TEX-L <your name>    % to subscribe
%%%      or UNSUBSCRIBE TEX-L
%%% Here is the BITNET re-distribution tree as shown in a recent
%%% REVIEW (The geography is guessed at from the subscription list)
%%%
%%%                        CLVM    TAMVM1      FINHUTC
%%%                           |    |     (Finland, UK, Scand, CERN)
%%%                           |    |           |
%%%  TeXhax ----> UWAVM ----- MARIST ----- EB0UB011 ----- BNANDP11
%%%                           |     (France,Italy,Spain)  (Belgium)
%%%                           |                |
%%%                        UBVM      HEARN --- DEARN
%%%                              (Netherlands) (Germany)
%%%
%%% Internet: send a similar one line mail message to
%%%           TeXhax-request@cs.washington.edu
%%%     Please be sure you send a valid internet address!!
%%%        in the form name@domain or name%routing@domain
%%%     and use the style of the Bitnet one-line message, so that
%%%     we can find your subscription request easily.
%%%
%%% JANET users may choose to use
%%%           texhax-request@uk.ac.nsf
%%%
%%% All submissions to: TeXhax@cs.washington.edu
%%%
%%% Back issues available for FTPing as:
%%%          machine:              directory:  filename:
%%%   JUNE.CS.WASHINGTON.EDU         TeXhax/TeXhaxyy.nn
%%%              yy = last two digits of current year
%%%                       nn = issue number
%%%
%%% For further information about TeX Users Group services and publications
%%%  contact Karen at KLB@SEED.AMS.COM or write to TUG at
%%%   TeX Users Group
%%%   P.O. Box 9506
%%%   Providence, R.I. 02940-9506
%%%   Telephone      (401) 751-7760
%%%
%%% Current versions of the software now in general distribution:
%%%    TeX       2.99                  metafont  1.7
%%%    plain.tex 2.94                  plain.mf  1.7
%%%    LaTeX     2.09 ( 5/24/89)       cmbase.mf see cm85.bug
%%%    SliTeX    2.09                  gftodvi   2.0
%%%    tangle    2.9                   gftopk    2.0 
%%%    weave     3.1                   gftype    3.0
%%%    dvitype   2.9                   pktype    2.2 
%%%    pltotf    2.3                   pktogf    1.0
%%%    tftopl    2.5                   mft       1.1
%%%    BibTeX    0.99c                 
%%%    AmSTeX    1.1d
%%%\bye
%%%

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