[comp.text] TeXhax Digest V89 #89

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

TeXhax Digest   Monday,  October 2, 1989  Volume 89 : Issue 89

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:         

                              Hats in boldmath
                      Re: WordPerfect to TeX converter
                           ??MacroTeX version 1.0
                        Typesetting and online text
            Latex help (page numbers in the bottom right corners)
                      Re: LaTeX help with page numbers

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

Date: Mon, 25 Sep 89 11:07:30 EDT
From: mroth%galaxy@afit-ab.arpa (Mark A. Roth)
Subject: Hats in boldmath
Keywords: TeX, \boldmath, hats

When \boldmath is in effect, the math accents like \hat, etc. select
the wrong symbols.  It looks like it is selecting from cmmib instead of
cmbx (or cmr).

I can get around it by defining a special macro for each accented character 
in my formulas, but I am hoping there is a more general solution.  
The latex source files haven't provided many clues.

Your suggestions are appreciated.

Mark Roth
mroth@afit.af.mil

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

Date: 25 Sep 89 17:53:52 EDT (Mon)
From: Jan-Gunnar Tingsell <tingsell@hum.gu.se>
Subject: Re: WordPerfect to TeX converter
Keywords: TeX, WordPerfect

Here at Gothenburg University, Rudolf Rydstedt has written a
program, WpToTeX. It is developent for a UNIX system. It
is probably easy to transfer to other UNIX systems, because of
the plain code. It can handle national characters, headers and
all other features in WordPerfect version 4. You can also add
your own TeX commands. 

The bad thing is that the manual for time being is written only
in swedish.

For futher informaion, please write to:
   <rydstedt@hum.gu.se>
or to myself:
   <tingsell@hum.gu.se>

Jan-Gunnar Tingsell

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

Date: Tue, 26 Sep 89 15:48:54 CST
From: Robert Coleman <COLEMAN%UREGINA1.BITNET@UWAVM.ACS.WASHINGTON.EDU>
Subject:  ??MacroTeX version 1.0
Keywords: MacroTeX

  Did anyone who purchased version .99 of MacroTeX ever receive
version 1.0? Please reply to
              coleman@uregina2.bitnet

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

Date: Mon, 25 Sep 89 13:56:20 pdt
From: Bill Kaster <wsk@hpclpa.hp.com>
Subject: Typesetting and online text
Keywords: GNU, typesetting, online manual

Seems like the GNU project has a good solution to the typeset and online
manual problem.  The GNU Emacs manual is available in book form.
The manual is also available online in INFO form.  Both forms contain
the same text from a common source.  INFO is much frendlier than man.

(Everyone already knew about INFO, right?)

I would guess not, since I haven't seen it used outside of the
brave GNU world.


-Bill Kaster

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

Date: Tue, 26 Sep 89 20:51:52 EDT
From: Anand Mehta <amehta@heifetz.mit.edu>
Subject: Latex help (page numbers in the bottom right corners)
Keywords: LaTeX, page numbering

> Just for starters, is there a good *tutorial* on tex and latex?  The
> Knuth and Lamport books are not very good from a tutorial nature (they're
> references).  I having a hard time to page number my latex files (I'm
> making overheads - and no, I don't want to use Slitex....).  I neeed page
> numbers in the bottom rite corner along with the chapter number,
> e.g., 1-1, 1-2, 1-3,....2-1, 2-2, etc...  And, a string in the bottom
> left corner.  I've read both books and I just cannot seem to find out
> how to do this.  Any help would be appreciated very much.
> 
> Thanks,
> 
> Frank Greco

I don't know of any tutorial other than the first section of the LaTeX
manual.  The best way to learn is to start with simple things that you
do often and figure out how to do them, and build from there.

About the page numbering, I know it can be done, but I have tried
doing this and have been unsuccessful in the past.  I am forwarding
this to other LaTeX-helpers, so I'm hoping someone else has had better
luck.

	Anand Mehta  (LaTeX-helper-attempter)

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

Date: Tue, 26 Sep 1989 19:41:12 PDT
From: Max Hailperin <mxh@sumex-aim.stanford.edu>
Subject: Re: LaTeX help with page numbers
Keywords: LaTeX, page numbers

There is a style-option file in the Clarkson archive that can do this
(among other things) called fancyheadings.sty.  I enclose a copy below,
together with the Readme file from Clarkson in case you don't know about
it (most problems I've encountered there's already been a solution for
waiting there)
%------------- cut here for fancyheadings.sty --------------------------------
% fancyheadings.sty version 1.0
% Fancy headers and footers.
% Piet van Oostrum, Dept of Computer Science, University of Utrecht
% Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands
% Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)
% March, 1989.

% Here is a documentstylestyle option that allows you to customize your
% page headers and footers in an easy way. It combines features that were
% separately available in other pagestyles, without introducing much
% complexity. You can define:
%     - three-part headers and footers
%     - rules in header and footer
%     - headers and footers wider than \textwidth
%     - multiline headers and footers
%     - separate headers and footers for even and odd pages
%     - separate headers and footers for chapter pages
% 
% To use this pagestyle, you must include the ``fancyheadings'' style
% option in your \documentstyle, and issue the \pagestyle{fancy} command.
% The \pagestyle{fancy} command should be issued after any changes made to
% \textwidth.
% 
% The page layout will be as follows:
% 
% 		LHEAD          CHEAD          RHEAD
% 		----------------------------------- (rule)
% 
% 			     page body
% 
% 
% 		----------------------------------- (rule)
% 		LFOOT	       CFOOT	      RFOOT
% 
% The L-fields will be leftadjusted, the C-fields centered and the
% R-fields rightadjusted.
% Each of the six fields and the two rules can be defined separately.
% 
% Simple use:
% 
% The header and footer fields can be defined by commands \lhead{LHEAD}
% and so on for the other fields. If the field depends on something in the
% document (e.g. section titles) you must in general use the \markboth and
% \markright commands, otherwise a title may end on the wrong page. You
% can do this e.g. by redefining the commands \chaptermark, \sectionmark
% and so on (see example below). The defaults for these marks are as in
% the standard pagestyles. The marks can be put into a header or footer
% field by referencing \leftmark and \rightmark.
% 
% Rules in header and footer
% 
% The thickness of the rules below the header and above the footer can be
% changed by redefining the length parameters \headrulewidth (default
% 0.4pt) and \footrulewidth (default 0). These may be redefined by the
% \setlength command. A thickness of 0pt makes the rule invisible.
% If you want to make more complicated changes, you have to redefine the
% commands \headrule and/or \footrule.
% 
% Headers and footers wider than \textwidth
% 
% The headers and footers are set in a box of width \headwidth. The
% default for this is the value of \textwidth. You can make it wider (or
% smaller) by redefining \headwidth with the \setlength or \addtolength
% command. The headers and footers will stick out the page on the same
% side as the marginal notes. For example to include the marginal notes,
% add both \marginparsep and \marginparwidth to \headwidth (see also the
% example below).
% 
% Multiline headers and footers
% 
% Each of the six fields is set in an appropriate parbox, so you can put a
% multiline part in it with the \\ command. It is also possible to put
% extra space in it with the \vspace command. Note that if you do this you
% will probably have to increase the \headheight or \footskip lengths.
% 
% Separate headers and footers for even and odd pages
% 
% If you want the headers and footers to be different on even- and
% odd-numbered pages in the ``twoside'' style, the field-defining macros
% can be given an optional argument, to be used on the even-numbered
% pages, like \lhead[EVEN-LHEAD]{ODD-RHEAD}.
% 
% Separate headers and footers for chapter pages
% 
% LaTeX gives a \thispagestyle{plain} command for the first page of the
% document, the first page of each chapter and a couple of other pages. It
% might be incompatible with your pagestyle. In this case you can use a
% slightly different version of the pagestyle, called \pagestyle{fancyplain}. 
% This pagestyle redefines the pagestyle ``plain'' to also use pagestyle
% ``fancy'' with the following modifications:
%     - the thicknesses of the rules is defined by \plainheadrulewidth and
%       \plainfootrulewidth (both default 0).
%     - the 6 fields may be defined separately for the plain pages by
%       giving them the value \fancyplain{PLAIN-VALUE}{NORMAL-VALUE}. This
%       construct may be used in both the optional argument and the normal
%       argument. Thus \lhead[\fancyplain{F1}{F2}]{\fancyplain{F3}{F4}}
%       specifies the LHEAD value in a two-sided document:
% 	F1 on an even-numbered ``plain'' page
% 	F2 on an even-numbered normal page
% 	F3 on an odd-numbered ``plain'' page
% 	F4 on an odd-numbered normal page.
% 
% Defaults:
% 
% \headrulewidth 	      0.4pt
% \footrulewidth		0pt
% \plainheadrulewidth	0pt
% \plainfootrulewidth	0pt
% 
% \lhead[\fancyplain{}{\sl\rightmark}]{\fancyplain{}{\sl\leftmark}}
% %  i.e. empty on ``plain'' pages \rightmark on even, \leftmark on odd pages
% \chead{}
% \rhead[\fancyplain{}{\sl\leftmark}]{\fancyplain{}{\sl\rightmark}}
% %  i.e. empty on ``plain'' pages \leftmark on even, \rightmark on odd pages
% \lfoot{}
% \cfoot{\rm\thepage} % page number
% \rfoot{}
% 
% Examples:
% 
% To put two lines containing the section title and the subsection title
% in the righthandside corner, use:
% 
% \documentstyle[fancyheadings]{article}
% \pagestyle{fancy}
% \renewcommand{\sectionmark}[1]{\markboth{#1}{}}
% \renewcommand{\subsectionmark}[1]{\markright{#1}}
% \rfoot{\leftmark\\\rightmark}
% 
% The following definitions give an approximation of the style used in the
% LaTeX book:
% 
% \documentstyle[fancyheadings]{book}
% \pagestyle{fancyplain}
% \addtolength{\headwidth}{\marginparsep}
% \addtolength{\headwidth}{\marginparwidth}
% \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} % remember chapter title
% \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
%                                                 % section number and title
% \lhead[\fancyplain{}{\bf\thepage}]{\fancyplain{}{\bf\rightmark}}
% \rhead[\fancyplain{}{\bf\leftmark}]{\fancyplain{}{\bf\thepage}}
% \cfoot{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\lhead{\@ifnextchar[{\@xlhead}{\@ylhead}}
\def\@xlhead[#1]#2{\gdef\@elhead{#1}\gdef\@olhead{#2}}
\def\@ylhead#1{\gdef\@elhead{#1}\gdef\@olhead{#1}}

\def\chead{\@ifnextchar[{\@xchead}{\@ychead}}
\def\@xchead[#1]#2{\gdef\@echead{#1}\gdef\@ochead{#2}}
\def\@ychead#1{\gdef\@echead{#1}\gdef\@ochead{#1}}

\def\rhead{\@ifnextchar[{\@xrhead}{\@yrhead}}
\def\@xrhead[#1]#2{\gdef\@erhead{#1}\gdef\@orhead{#2}}
\def\@yrhead#1{\gdef\@erhead{#1}\gdef\@orhead{#1}}

\def\lfoot{\@ifnextchar[{\@xlfoot}{\@ylfoot}}
\def\@xlfoot[#1]#2{\gdef\@elfoot{#1}\gdef\@olfoot{#2}}
\def\@ylfoot#1{\gdef\@elfoot{#1}\gdef\@olfoot{#1}}

\def\cfoot{\@ifnextchar[{\@xcfoot}{\@ycfoot}}
\def\@xcfoot[#1]#2{\gdef\@ecfoot{#1}\gdef\@ocfoot{#2}}
\def\@ycfoot#1{\gdef\@ecfoot{#1}\gdef\@ocfoot{#1}}

\def\rfoot{\@ifnextchar[{\@xrfoot}{\@yrfoot}}
\def\@xrfoot[#1]#2{\gdef\@erfoot{#1}\gdef\@orfoot{#2}}
\def\@yrfoot#1{\gdef\@erfoot{#1}\gdef\@orfoot{#1}}

\newdimen\headrulewidth
\newdimen\footrulewidth
\newdimen\plainheadrulewidth
\newdimen\plainfootrulewidth
\newdimen\headwidth
\newif\if@fancyplain \@fancyplainfalse
\def\fancyplain#1#2{\if@fancyplain#1\else#2\fi}

% Initialization of the head and foot text.

\headrulewidth 0.4pt
\footrulewidth\z@
\plainheadrulewidth\z@
\plainfootrulewidth\z@

\lhead[\fancyplain{}{\sl\rightmark}]{\fancyplain{}{\sl\leftmark}}
%  i.e. empty on ``plain'' pages \rightmark on even, \leftmark on odd pages
\chead{}
\rhead[\fancyplain{}{\sl\leftmark}]{\fancyplain{}{\sl\rightmark}}
%  i.e. empty on ``plain'' pages \leftmark on even, \rightmark on odd pages
\lfoot{}
\cfoot{\rm\thepage} % page number
\rfoot{}

% Put together a header or footer given the left, center and
% right text, fillers at left and right and a rule.
% The \lap commands put the text into an hbox of zero size,
% so overlapping text does not generate an errormessage.

\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\vbox{\hbox
{\rlap{\parbox[b]{\headwidth}{\raggedright#2\strut}}\hfill
\parbox[b]{\headwidth}{\centering#3\strut}\hfill
\llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}\headrule}}#5}


\def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\vbox{\footrule
\hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2\strut}}\hfill
\parbox[t]{\headwidth}{\centering#3\strut}\hfill
\llap{\parbox[t]{\headwidth}{\raggedleft#4\strut}}}}}#5}

\def\headrule{{\if@fancyplain\headrulewidth\plainheadrulewidth\fi
\hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}

\def\footrule{{\if@fancyplain\footrulewidth\plainfootrulewidth\fi
\vskip-0.3\normalbaselineskip\vskip-\footrulewidth
\hrule\@width\headwidth\@height\footrulewidth\vskip0.3\normalbaselineskip}}

\def\ps@fancy{
\let\@mkboth\markboth
\@ifundefined{chapter}{\def\sectionmark##1{\markboth
{\uppercase{\ifnum \c@secnumdepth>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}
\def\subsectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
{\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}{}}
\def\sectionmark##1{\markright{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\def\@oddhead{\@fancyhead\relax\@olhead\@ochead\@orhead\hss}
\def\@oddfoot{\@fancyfoot\relax\@olfoot\@ocfoot\@orfoot\hss}
\def\@evenhead{\@fancyhead\hss\@elhead\@echead\@erhead\relax}
\def\@evenfoot{\@fancyfoot\hss\@elfoot\@ecfoot\@erfoot\relax}
\headwidth\textwidth}
\def\ps@fancyplain{\ps@fancy \let\ps@plain\ps@plain@fancy}
\def\ps@plain@fancy{\@fancyplaintrue\ps@fancy}
%------------- cut here between fancyheadings.sty and Readme -----------------
To see the index for any category, send the server a message saying
"index <archive>" eg. "index latex-style". Capitalization does not
matter.  In the examples you should  replace latex-style with whatever
archive you are interested in.

Send server requests to archive-server@sun.soe.clarkson.edu
Send mail to archive-management@sun.soe.clarkson.edu if you must
speak to a real person.

1. For Internet users - how to ftp:

An example session is shown below.  Users should realize that ftp
syntax varies from host to host.  Your syntax may be different.  The
syntax presented here is that of Unix ftp. Comments are in
parentheses. 

% ftp sun.soe.clarkson.edu	(a.k.a. 128.153.12.2)
 ...				(general blurb)
user: anonymous
password: <any non-null string>
ftp> cd pub/latex-style		(where the files are)
ftp> ls				(to see what is there)
 ...				(lots of output)
ftp> get Index
 ...				(more blurb)
ftp> quit

2. Non-Internet users: how to retrieve by mail

To retrieve files or help documentation send mail to
archive-server@sun.soe.clarkson.edu with the body of the mail message
containing the command help or index or send.  The send command must
be followed by latex-style and then the files you want.  Users who are
not in the uucp maps database are strongly encourage to include a path
command followed by a path from clarkson to you. If you don't include
a path command, your mail may not get to you and will definitely be
delayed as Michael will have to mail it by hand.  You should realize
that Clarkson does not have a uucp connection, therefore you must send
it to an internet or bitnet host that does have a uucp connection.
For example, host!user@uunet.uu.net should send:

To: archive-server@clarkson.edu
Subject:
path host!user@uunet.uu.net
send latex-style Readme Index
send latex-style resume.sty


3. Distribution for IBM PC and clone users:

There are two sources.

	David W. Hopper
	446 Main Street
	Toronto, Ontario
	Canada M4C 4Y2

has LaTeX style files only.

1. Either one 1.2 MB diskette or three 360KB diskettes, blank and formatted.
2. Indication of the format required,
3. A self-addressed mailer, and
4. A $5.00 donation per set of files, to cover postage and equipment
wear & tear. (If you live outside North America, airmail delivery will
probably require more postage. You should probably contact David for
details.)
5. No phone calls or personal visits please.

	Jon Radel
	P.O. Box 2276
	Reston, VA 22090

has LaTeX style files and utilities. For a list or other information
send a SASE.

4) Keepers of Slave Repositories of the LaTeX Style Collection 

UK users: Aston University maintains a TeX archive covering all aspects of
TeX/LaTeX/Metafont and ancilliary software. UKTeX (like TeXhax) digests are
distributed from Aston. For users with Colour book software `FTP'
access is available, for all users mail access is available. Send enquires in
the first instance to info-tex@uk.ac.aston (via internet use
pabbott@nss.cs.ucl.ac.uk). 

Italian users: Marisa Luvisetto maintains a SPAN/DECNET depository.
He has software for redistribution like the latex-style collection,
Beebe's driver family, TeXhax, TeXMaG, UKTeX magazines, dvitovdu,
psprint, texsis.  For more info on what is available and how to get
it, please send a mail message to 39947::luvisetto or 39003::fisica
American users can also contact Ed Bell at 7388::bell.  Marisa
Luvisetto's internet address is fisica@astrpd.infn.it.

Canadian users: A shadow copy of the LaTeX-style directory is kept on
neat.ai.utoronto.ca, and is updated automatically from the master source.  It
can be accessed via anonymous FTP (128.100.1.65).  Mail access is also
possible by mailing to info@ai.utoronto.ca or utai!info.  For more details
about mail access, send a message to that address with a message body that
reads

        request: info
        topic: help
        request: latex-style
        topic: info

Bitnet users: Texas A&M maintains a list-server and file-server which is
already handling (with TEX-L) much of the Bitnet distribution of
TeXhax.  An inquiry via listserv will retrieve a list of all
TeX-related files:
tell listserv at tamvm1 get tex filelist

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

%%% Further information about the TeXhax Digest, the TeX
%%% Users Group, and the latest software versions is available
%%% in every tenth issue of the TeXhax Digest.
%%%
%%% Concerning subscriptions, address changes, unsubscribing:
%%%
%%%  BITNET: send a one-line mail message to LISTSERV@xxx
%%%         SUBSCRIBE TEX-L <your name>    % to subscribe
%%%      or UNSUBSCRIBE TEX-L
%%%
%%% Internet: send a similar one line mail message to
%%%           TeXhax-request@cs.washington.edu
%%% 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
%%%
%%%\bye
%%%

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