TeXhax Digest Tuesday, July 21, 1987 Volume 87 : Issue 58 [SCORE.STANFORD.EDU]TEXHAX58.87 Editor: Malcolm Brown Today's Topics: Re: Cross-referencing labels in LaTeX Re: Cross-referencing labels in LaTeX Re: Hyphenation for other languages Re: dumb question: how much room do PK fonts need? Mode_def for LaserWriter. Size of PK files. Where is source for MakeIndex (indexer for LaTeX)? driver query Non-english Latex style dvi->postscript for CMS on IBM mainframes references in figure captions ---------------------------------------------------------------------- Date: Wed, 8 Jul 87 19:55:41 pdt From: jbaker@ee.UCLA.EDU (Joe Baker) To: texhax@score.stanford.edu Subject: Re: Cross-referencing labels in LaTeX Dr. Rouben Rostamian (MATH) writes: ... > It will be nice to have a `draft' documentstyle option which will do the > following. The equation numbers (also theorems, etc.) will be printed > together with their corresponding labels. Also, \ref or \cite will cause > both the number and the label to be printed. For example, an equation > number may appear as the array: (3.14) > my_equation > > (printed in a smallish type size) both at the equation itself, and elsewhere > when the equation is referred to. This will substantially ease the proofreader's > task. > > Does such a documentstyle option already exist? Is it hard to create? I have hacked together a draft option that works along these lines: it sets up a very small left margin, and then uses the extra space in the right margin to print equation, figure, and table labels, and it also prints index entries. Right now, the style file (or lack-of-style file :-) is very messy and poorly designed. I have been playing with it to see what options and bells \& whistles it should have (then I will produce a very messy and poorly designed final version.) Probably the best thing would be for someone who knows what they are doing to produce a nice draft option. Barring that, if people are interested I will try to clean up and generalize what I have and post it to Rochester. I would be happy to hear what features you would like to see. - Joe Baker Dept. of Electrical Engineering UCLA (213) 825-7079, 825-2327 ARPA: jbaker@ee.ucla.edu UUCP: {ihnp4|randvax|ucbvax}!ucla-cs!uclaee!jbaker ------------------------------ Date: Thu, 9 Jul 87 09:39:53 EDT From: gil@svax.cs.cornell.edu (Gil Neiger) To: texhax@score.stanford.edu Subject: Re: Cross-referencing labels in LaTeX Rouben Rostamian has written: >It will be nice to have a `draft' documentstyle option which will do the >following. The equations numbers (also theorems, etc.) will be printed >together with their corresponding labels. Also, \ref or \cite will cause >both the number and the label to be printed. For example, an equation >number may appear as the array: (3.14) > my_equation > >(printed in a smallish type size) both at the equation itself, and elsewhere >when the equation is refered to. This will substantially ease the >proofreader's task. I have a style file that will print the symbolic label whenever a \label is given, and will also print it when \ref'ed or \pageref'd if the actual label is undefined. \cite works similarly to \ref and \pageref in this respect. Two caveats: if you have redefined, for example, \cite (as I have, to allow multiple citation to split across lines), you may want to include such changes in your redefinition. Secondly, use of this style files restricts your labels to being things that LaTeX will not complain about, e.g., use of special characters. :::::::::::::: showlabels.sty :::::::::::::: % % Change \label, \ref, and \pageref to show labels in line % \makeatletter \def\ref#1{\@ifundefined{r@#1}{\mbox{\tt[#1?]}\@warning {Reference `#1' on page \thepage \space undefined}}{\edef\@tempa{\@nameuse{r@#1}}\expandafter \@car\@tempa \@nil\null}} \def\pageref#1{\@ifundefined{r@#1}{\mbox{\tt[#1?]}\@warning {Reference `#1' on page \thepage \space undefined}}{\edef\@tempa{\@nameuse{r@#1}}\expandafter \@cdr\@tempa\@nil\null}} \def\label#1{\@bsphack\if@filesw {\let\thepage\relax \xdef\@gtempa{\write\@auxout{\string \newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa \if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack \mbox{\tt[#1]}} \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi \def\@citea{}\@cite{\@for\@citeb:=#2\do {\@citea\def\@citea{,}\@ifundefined {b@\@citeb}{\mbox{\tt\@citeb?}\@warning {Citation `\@citeb' on page \thepage \space undefined}}% \hbox{\csname b@\@citeb\endcsname}}}{#1}} \makeatother ------------------------------ Date: Thu, 09 Jul 87 15:08:20 Greenwich Mean Time To: From: Subject: Re: Hyphenation for other languages The problem of hyphenation in french or italian is addressed (beside others) in the Proceedings of the First European Conference on TeX for scientific documentation Edited by Dario Lucarella Addison-Wesley 1985 There you will find the hyphenation patterns and descritptions of several adaptations of TeX to other languages. For those people who are interested: the proceedings of the 1986 conference were published as Springer Lecture Notes in Computer Science. Rainer Schoepf ------------------------------ Date: Thu, 9 Jul 87 13:32:39 CDT From: amit@umn-cs.arpa (Neta Amit) To: phr@prep.ai.mit.edu Subject: Re: dumb question: how much room do PK fonts need? Paul Rubin writes: > Could somebody please tell me how much disk space a reasonable set of > PK fonts needs at 300 dpi? I have in mind all the Plain TeX fonts in > the normal range of sizes, but use your own definition of "reasonable" > (saying what it is) if you think it should be something different. I decided to first try it all, and then prune if proven necessary. In other words, I created pk files for all the standard TeX, LaTeX and SliTeX fonts, in all the standard sizes. Here are the scripts that I wrote for this purpose (only mf-->gf step is shown) #!/bin/csh # Magsteps: 0 .5 1 2 3 4 5 # set fontsdir=/usr/local/src/tex; setenv MFINPUTS $fontsdir/cmfonts/mf cd $fontsdir/cmfonts/gf # foreach f (cmb10 cmbsy10 cmbx10 cmbx12 cmbx5 cmbx6 cmbx7 cmbx8 cmbx9 cmbxsl10 cmbxti10 cmcsc10 cmdunh10 cmex10 cmff10 cmfi10 cmfib8 cminch cmitt10 cmmi10 c foreach m (0 .5 1 2 3 4 5) cmmf \\mode=localfont\; mag=magstep $m\; batchmode\; input $f end end #!/bin/csh # Magsteps: LaTeX -- 0 .5 1 2 3 4 5 ; SliTeX -- 3 4 5 6 7 8 9 (varying) set fontsdir=/usr/local/src/tex/fonts setenv MFINPUTS "$fontsdir/cmfonts/mf:$fontsdir/LaTeXfonts/mf" cd $fontsdir/LaTeXfonts/gf # foreach f ( circle10 circlew line10 linew10 lasy5 lasy6 lasy7 lasy8 lasy9 lasy10 lasyb10 ) foreach m ( 0 .5 1 2 3 4 5 ) cmmf \\mode=localfont\; magstep= $m\; batchmode\; input $f end end foreach f ( cmex10 cmmi8 cmsy8 cmtt8 lasy8 lcmss8 lcmssb8 lcmssi8 icmex10 icmmi8 icmsy8 icmtt8 ilasy8 ilcmss8 ilcmssb8 ilcmssi8 ) foreach m ( 1.728 2.074 2.488 2.986 3.583 4.300 5.160 ) if ( ( $m == 1.728 ) || ( $m != 1.728 && $m != 5.160 && $f != cmex10 && $f != icmex10 ) || cmmf \\mode=localfont\; mag=$m\; batchmode\; input $f endif end end Total space requirement -- 5.75 MByte, which is tolerable, compared to our previous, far less extensive pxl files. I left it that way. --Neta Amit (amit@umn-cs.arpa) University of Minnesota CSci ------------------------------ Date: Thu, 9 Jul 87 15:28:26 PDT From: KARNEY%PPC.MFENET@nmfecc.arpa To: TeXhax@Score.Stanford.EDU Subject: Mode_def for LaserWriter. Size of PK files. This is in answer to lear@aramis.rutgers.edu's question about mode_def of the Apple LaserWriter. I believe the following Imagen mode (from WAITS.MF) is suitable for a LaserWriter (because both use the same print engine). mode_def imagen = % imagen mode: for the Imagen 8/300 (Canon engine) proofing:=0; % no, we're not making proofs fontmaking:=1; % yes, we are making a font tracingtitles:=0; % no, don't show titles in the log pixels_per_inch:=300; blacker:=0; % Canon engine is black enough fillin:=.2; % and it tends to fill in diagonals o_correction:=.6; % enddef; And this answers phr@PREP.AI.MIT.EDU's question about how much space 300 dpi PK files take up. We have the following fonts 75 CM fonts 20 AMS fonts (Cyrillic + symbols) 11 LaTeX fonts (lasy, circle, etc) 3 SliTeX fonts 8 Invisible SliTeX fonts 1 local symbol font (just one font) 11 MF fonts (cmman, logo, black, gray, etc) All the fonts are available at magsteps 0 thru 5, except for the 10 MF fonts (which are available only at magstep 0). In addition, the SliTeX fonts are all available at magsteps 6 thru 8, and lcmss8 and ilcmss8 at magstep 9. On our VAX the PK files use up. (1 block = 512 bytes.) magstep # fonts blocks 0 129 1191 1/2 118 1235 1 118 1337 2 118 1593 3 118 1925 4 118 2354 5 118 2905 6 14 199 7 14 244 8 14 299 9 2 52 tot 881 13334 \approx 7 MB Charles Karney PHONE: 609/682-2607 MFENET: Karney@PPC.MFENET ARPANET: Karney%PPC.MFENET@NMFECC.ARPA BITNET: Karney%PPC.MFENET@ANLVMS.BITNET CC: TeXhax@Score.Stanford.EDU LEAR@ARAMIS.RUTGERS.EDU PHR@PREP.AI.MIT.EDU ------------------------------ Date: 10-JUL-1987 16:04:57 From: ABBOTTP%UK.AC.ASTON.MAIL%UK.AC.RL.GB@ac.uk To: TEXHAX@score.stanford.edu Aston University - Electronic Mail Date: 10-Jul-1987 15:38 BST From: Peter Abbott ABBOTTP@UK.AC.ASTON.MAIL Dept: Computing Service Tel No: 021 359 5492 -direct Subject: Nelson Beebe and Andrew Trevorrow files The files from Nelson Beebe at Utah and Andrew Trevorrow (PSPRINT and DVITOVDU) have been installed in public accounts at Aston University. They are accessible to sites using the VAX VMS transfer command (or equivalent).The files containing the lists of files to be `sucked' are called 000fetch.list Here is a sample of part of one of the files. ! 10 files 559 blocks of 512 bytes @fetch 00DIR.LST;1 @fetch 00TDIR.LST;1 .. etc Sites should write there own FETCH command procedure obeying any local rules about queue lengths etc.The 000fetch.list files addresses are (I am using KIRK but SPOCK is also valid) The password is PUBLIC Nelson Beebe files aston.kirk::[public.beebe]000fetch.list aston.kirk::[public.beebedoc]000fetch.list PSPRINT files aston.kirk::[public.psprint]000fetch.list DVITOVDU files aston.kirk::[public.dvitovdu]000fetch.list Please contact me if you have any problems accessing the files. Peter Abbott JANET abbottp@uk.ac.aston.mail ARPA abbottp@mail.aston.ac.uk UUCP ...!ukc!aston!abbottp BITNET abbottp%uk.ac.aston.mail@ac.uk ------------------------------ Date: Fri, 10 Jul 87 09:56:26 PDT From: KARNEY%PPC.MFENET@nmfecc.arpa To: TeXhax@Score.Stanford.EDU Subject: Where is source for MakeIndex (indexer for LaTeX)? Can anyone give me a pointer to the source for MakeIndex (an indexer for LaTeX)? A description of MakeIndex recently appeared in @ SCORE. This indicates that MakeIndex is a C program written by Peehong Chen. I'd be interested in getting it working under VAX/VMS. Charles Karney PHONE: 609/682-2607 MFENET: Karney@PPC.MFENET ARPANET: Karney%PPC.MFENET@NMFECC.ARPA BITNET: Karney%PPC.MFENET@ANLVMS.BITNET ------------------------------ From: DLATEX%UCBCMSA.BITNET@forsythe.stanford.edu Date: Fri, 10 Jul 87 09:30 PDT Subject: driver query To: TeXhax@score.stanford.edu Hello TeXhax, Has anyone created (in any form) a driver for the Xerox 3700 printer? I have probably seen this query myself but as those asking may be receiving direct responses I thought I would echo it again. Thanks Doug Henderson ------------------------------ Date: Fri, 10 Jul 87 12:15:09 EDT To: TeXhax@score.stanford.edu From: mcvax!cs-hcx!piet@seismo.CSS.GOV (Piet van Oostrum) Reply-To: mcvax!ruuinfvax!piet@seismo.CSS.GOV Subject: Non-english Latex style This is my NL.sty file for dutch headings and texts. It clearly indicates which words are language dependant. I think I had them all. % Met ========== onderstreept nederlandse teksten \@ifundefined{chapter} {%%%%%%%%%%%%%%% dit is voor article style %%%%%%%%%%%%%%%%%%%%% \def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{part} \addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else \addcontentsline{toc}{part}{#1}\fi { \parindent 0pt \raggedright \ifnum \c@secnumdepth >\m@ne \Large \bf Deel \thepart \par \nobreak \fi \huge % ==== \bf #2\markboth{}{}\par } \nobreak \vskip 3ex \@afterheading } \def\tableofcontents{\section*{Inhoud\markboth{INHOUD}{INHOUD}} % ====== ====== ====== \@starttoc{toc}} \def\listoffigures{\section*{Lijst van figuren\markboth % ================== {LIJST VAN FIGUREN}{LIJST VAN FIGUREN}}\@starttoc{lof}} % ================= ================= \def\listoftables{\section*{Lijst van tabellen\markboth % ================== {LIJST VAN TABELLEN}{LIJST VAN TABELLEN}}\@starttoc{lot}} % ================== ================== \def\thebibliography#1{\section*{Referenties\markboth % =========== {REFERENTIES}{REFERENTIES}}\list % =========== =========== {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth \advance\leftmargin\labelsep \usecounter{enumi}} \def\newblock{\hskip .11em plus .33em minus -.07em} \sloppy \sfcode`\.=1000\relax} \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi \columnseprule \z@ \columnsep 35pt\twocolumn[\section*{Index}] % ===== \markboth{INDEX}{INDEX}\thispagestyle{plain}\parindent\z@ % ===== ===== \parskip\z@ plus .3pt\relax\let\item\@idxitem} \def\abstract{\if@twocolumn \section*{Samenvatting} % ============ \else \small \begin{center} {\bf Samenvatting\vspace{-.5em}\vspace{0pt}} % ============ \end{center} \quotation \fi}} {%%%%%%%%%%%%%% Dit is voor report en book style %%%%%%%%%%%%%%% \def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax \refstepcounter{part} \addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else \addcontentsline{toc}{part}{#1}\fi \markboth{}{} \ifnum \c@secnumdepth >-2\relax \huge\bf Deel \thepart \par \vskip 20pt \fi % ==== \Huge \bf #1\@endpart} \def\@chapapp{Hoofdstuk} % ========= \def\appendix{\par \setcounter{chapter}{0} \setcounter{section}{0} \def\@chapapp{Appendix} % ======== \def\thechapter{\Alph{chapter}}} \def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn \fi\chapter*{Inhoud\@mkboth{INHOUD}{INHOUD}} % ====== ====== ====== \@starttoc{toc}\if@restonecol\twocolumn\fi} \def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn \fi\chapter*{Lijst van figuren\@mkboth % ================= {LIJST VAN FIGUREN}{LIJST VAN FIGUREN}}\@starttoc{lof}\if@restonecol\twocolumn % ================= ================= \fi} \def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn \fi\chapter*{Lijst van tabellen\@mkboth % ================== {LIJST VAN TABELLEN}{LIJST VAN TABELLEN}}\@starttoc{lot}\if@restonecol % ================== ================== \twocolumn\fi} \def\thebibliography#1{\chapter*{Referenties\@mkboth % =========== {REFERENTIES}{REFERENTIES}}\list % ============ ============ {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth \advance\leftmargin\labelsep \usecounter{enumi}} \def\newblock{\hskip .11em plus .33em minus -.07em} \sloppy \sfcode`\.=1000\relax} \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi \columnseprule \z@ \columnsep 35pt\twocolumn[\@makeschapterhead{Index}] % ===== \@mkboth{INDEX}{INDEX}\thispagestyle{plain}\parindent\z@ % ===== ===== \parskip\z@ plus .3pt\relax\let\item\@idxitem} \def\abstract{\titlepage \null\vfil \begin{center} {\bf Samenvatting} % ============ \end{center}} } %%%%%%%%%%%%%%%%%%% dit is voor allebei %%%%%%%%%%%%%%%%%%%%%%%%%% \def\today{\number\day\space\ifcase\month% \or jan\or feb\or maart\or apr\or mei\or juni% % === === ===== === === ==== \or juli\or aug\or sept\or okt\or nov\or dec\fi % ==== === ==== === === === \space\number\year} \def\fnum@figure{Figuur \thefigure} % ====== \def\fnum@table{Tabel \thetable} % ===== ------------------------------ Date: Sat, 11 Jul 87 12:55:22 MEZ From: Bernhard Nebel Subject: dvi->postscript for CMS on IBM mainframes To: TEXHAX@score.stanford.edu Hi. Does anybody know about a dvi to postscript converter running under CMS on IBM mainframes? - Bernhard (nebel@db0tui11.bitnet) Acknowledge-To: ------------------------------ Date: Sun, 12 Jul 87 11:56:56 PDT From: gfoster@violet.Berkeley.EDU To: texhax@score.stanford.edu Subject: references in figure captions Occasionally, when I place a \ref{} inside a figure caption, I get a Latex error message; "Paragraph ended before \@writefile was complete" and/or "Extra } or forgotten \endgroup". What gives? gfoster@violet.Berkeley.EDU