TeXhax Digest Friday, May 20, 1988 Volume 88 : Issue 48 [SCORE.STANFORD.EDU]TEXHAX48.88 Moderator: Malcolm Brown Today's Topics: LaTeX tabbing environment Computer Modern fonts in ROM? Re: TeXhax Digest V88 #45 (LaTeX notes) Problems: \tableofcontents command and [titlepage] option VAX VMS manual typesetting Using Postscript Fonts instead of CMxx \makelabels Common TeX on PCs? Request for VMS change file for DVIDOC TeX + LPS40 How to get latest BibTeX? \leaders and \hbox question amcsc10 in lfonts.tex longrightarrow DVI previewer for HDS terminal or Tek 4014 how do I get flexible font Runoff style literals in TeX? Displaying the LaTeX keys for cross-references bibtex.web.1 ---------------------------------------------------------------------- Date: Thu, 12 May 88 13:57:37 EDT From: HOOVER Subject: LaTeX tabbing environment I needed to increase the spacing between lines for a document, so I set \renewcommand{\baselinestretch}{1.5}. Most environments allow me to change back to single spacing by doing \renewcommand{\baselinestretch}{1} or explicitly setting the \baselineskip to something (say 13pt for 11pt fonts). My problem is that the tabbing environment will not change its spacing if I do either of these. I have tried redefining @listi and making a new tabbing environment, but nothing seems to change it. I looked at the tabbing environment definition and it uses the trivlist environment so I set \parsep 0pt and \itemsep 0pt, but still no change. I suspect it really is only creating a 1 item list and what I have tried won't change it (as proven in the above paragraph). So how do I reduce the space between items if I have set all associated parameters to 0pt for the list. All help welcomed, please respond directly to either address below. Anita Hoover University of Delaware Internet : anita@vax1.acs.udel.edu Bitnet : ACS03174 at UDACSVM ------------------------------ Date: Thu, 12 May 1988 20:47 EDT From: Jim Walker Subject: Computer Modern fonts in ROM? Do there exist laser printers for which it is possible to get the Computer Modern fonts in ROM? On our LN03, MASS-11 jobs, which use fonts in ROM, print SOOO much faster than TeX jobs. Of course, they don't look nearly as nice, but why can't I eat my cake as well as have it? -- Jim Walker, Department of Mathematics, Univ. of S. Carolina ------------------------------ From: lamport@src.dec.com (Leslie Lamport) Date: 12 May 1988 2242-PDT (Thursday) Subject: Re: TeXhax Digest V88 #45 (LaTeX notes) I NOTICED THAT THERE WERE SEVERAL LaTeX QUESTIONS THAT DID NOT MENTION LaTeX IN THE SUBJECT. I USUALLY DON'T LOOK AT SUCH QUESTIONS. Jim Walker writes I have a macro which contains \begin{center} \underline{#1} \end{center} This works fine provided #1 is not too long. If #1 is long then the text is not broken into lines and overfull hbox results. I know that underlined text is poor document design, but does anyone have a solution to this problem? and Ken Hill writes Certain legal documents are required to use underlined text, for blocks of up to paragraph size. I can underline a word at a time, but there has to be a better way to do it. I have been completely unable to make underlining for a large block of text work as it should. Linebreaking doesn't seem to work at all, and if I break lines manually (ugly in itself) they aren't adjusted properly. (Seems to go into left to right mode or something) Thus: how can I underline a large block of text (up to a paragraph) properly in normal paragraph mode? All suggestions welcome, including code for macros or new commands. I trust that everyone can figure out what's happening---namely, \underline typesets its argument in LR mode. Text typeset in LR mode is never justified or broken into lines. (That's all explained in the manual.) The proper solution to this problem, suggested by Knuth in the TeXBook, is to create an underlined font. I will assume that this is impossible. Walker's solution is straightforward, if painful---do the linebreaking manually and \underline each line separately. Hill's problem is more subtle. The only way to do this in LaTeX is to break the lines by hand, and put each line in a \makebox[\textwidth]{...} command with \hfill's between the words. Admittedly, not pleasant. A better way would be to underline each complete line separately with a \rule command (plus vertical space) placed inside a TeX \vadjust. The last line would be underlined with \underline. Scott Simpson writes The following doesn't WORK. ... \begin{tabular*}{1in}[t]{@{\extracolsep{\fill}}|c|} ... It appears that the \extracolsep space is never put to the left of the first column. Using the rule for what constitutes a column on page 184, this would produce the same effect as \makebox[1in][r]{\begin{tabular}[t]{|c|} ...} To get the extra space added between the rule and the first column, the best thing is to write \begin{tabular*}{1in}[t]{@{\extracolsep{\fill}}|c@{}c|} and then leave a blank column. I prefer to regard this as an error in the documentation, rather than a LaTeX bug. Cynthia Quinn writes We just received new terminal that do not have square brackets and we are having problems when trying to do this in LaTeX \documentstyle[12pt]{article} How can I define some other character to do the job? Since the only thing more foolish than making an English keyboard without square brackets is buying one, I presume that this is a nonEnglish keyboard--probably for a nonWestern language. If it is Kanji, perhaps the ASCII Corporation in Tokyo can help. In any event, the solution is probably not to substitute other characters for [ and ], but to generate those characters without having them on the keyboard. With a modern text editor, such as Emacs, this is simple. Kang Sun's message begins I am having troubles with floats. I have about 11 figures and 10 tables. I was trying to put them all at the end of the text. However, LaTex told me that "too many unprocessed floats". The probable causes of this error are listed on page 123 of the manual. ("When all else fails, read the instructions.") If this doesn't explain the problem, the next step is to consult your local LaTeX expert--the one listed in your Local Guide. If your Local Guide doesn't list a local expert, or you don't have a Local Guide, complain to whoever installed LaTeX on your system. R. Clayton writes When formatting the document shown below, latex puts an line of white space between paragraphs when the condition stated in the paragraph holds. Changing "\par" to a blank line doesn't remove the white space, but deleting the figure definition does. One solution to this problem is to rewrite the paragraph so the condition doesn't hold. Somebody else may be able to think of a better solution. \documentstyle{article} \begin{document} The last line of this paragraph should touch the right margin to show the problem. A ab abc a ab abc a ab abc a ab abc a ab abc a ab abc a ab abc abc. \begin{figure} \caption{One} \end{figure} \par The last line of this paragraph should touch the right margin to show the problem. A ab abc a ab abc a ab abc a ab abc a ab abc a ab abc a ab abc abc. \begin{figure} \caption{Two} \end{figure} \par The last line of this paragraph should touch the right margin to show the problem. A ab abc a ab abc a ab abc a ab abc a ab abc a ab abc a ab abc abc. \begin{figure} \caption{Three} \end{figure} \end{document} This is one of the "unusual situations where they can produce extra space in the output" mentioned in C.1.5. As stated there, the problem is solved by removing the space between the "figure" environment and the preceding word--for example, by putting "%" immediately after "abc.". Leslie Lamport ------------------------------ Date: Fri, 13 May 88 07:17:21 EST From: i5f@l.cc.purdue.edu (S Bechtolsheim) Subject: Problems: \tableofcontents command and [titlepage] option The \tableofcontents command goes where you want the table of contents printed. The table of contents is always the table of contents from the previous run. So you must process your document twice. Stephan v. Bechtolsheim, i5f@l.cc.purdue.edu, (317) 463 0162 Statistics Department, Purdue University, Math Sc Bldg, W Lafayette, IN 47907 ------------------------------ Date: Fri, 13 May 88 06:34:22 EST From: i5f@l.cc.purdue.edu (S Bechtolsheim) Subject: VAX VMS manual typesetting As far as I know at least the newer manuals are done with their "VAX DOCUMENT" system, an SGML like front end where the input is compiled into TeX. VAX DOCUMENT is a product available for sale from DEC. I actually have the manuals here, but I have not looked at them closely. Stephan Bechtolsheim ------------------------------ Date: Fri, 13 May 88 08:40:03 pdt From: Alex Woo Subject: Using Postscript Fonts instead of CMxx As an experiment I'd like to try to use the default Postscript fonts instead of the standard TeX fonts (which need to be downloaded). Can someone point me to a version of either plain.tex or lfonts.tex with the appropriate definitions and a source for the TFM files? Thanks. Alex Woo woo@pioneer.arc.nasa.gov ------------------------------ Date: Fri, 13 May 88 12:07 EDT From: Subject: \makelabels The \makelabels command for the LaTeX letter style produces mailing labels of an unusual size: two labels across and five down on an 8.5x11 page. While this looks good, and offers some extra space for foreign addresses, the labels are hard to get and are expensive. Has anyone written a modification which will produce output for the standard sheet of labels (three across, and, I believe, eleven down)? It would be greatly appreciated, as these are the only labels which our department keeps in stock. Sincerely, Mark Steinberger, Dept. of Math. and Stat., SUNY @ Albany, Albany, NY 12222 ms361@albny1vx.bitnet or ms361@uacsc1.albany.edu. ------------------------------ Date: 13 May 88 15:11 +0100 From: Igor Metz Subject: Common TeX on PCs? Pat Monardo's Common TeX includes a version for MS-DOS. Is there anybody out there who succeeded to let it run? Two guys here want to make a Common TeX version for a Transputer board, and they have a lot of trouble with the MS-DOS version which they have chosen as a starting point. Thanks in advance for any help! Regards, Igor Metz X400: metz@iam.unibe.ch Institut fuer Informatik ARPA: metz%iam.unibe.ch@relay.cs.net und angewandte Mathematik UUCP: ..!uunet!mcvax!iam.unibe.ch!metz Universitaet Bern Switzerland Phone: (+31) 65 49 02 ------------------------------ From: rich jones Date: Fri, 13 May 88 10:10:07 EDT Subject: Request for VMS change file for DVIDOC Hi. I have downloaded DVIDOC (the dvi-to-lineprinter filter) from Ken Yap's archive at rochester, but i can't (haven't had time to) get it working on our VAX/VMS system. Can anyone send me a WEB change file so this program will work under VMS? We have VAX PASCAL v3.6 and VMS 4.6. Also, Ken Yap seems to have added some external routines written in C. Can you send me the changes required to get these compiled? We have VAX C v2.3. If no one has made these changes, does anyone have another program which has the same functionality? Thanks in advance.......rich -- rich jones E-MAIL: BITNET: rjones@UWOVAX.BITNET computing and ARPA: rjones@UWO.CA communication services CDN: rjones@uwovax.UWO.CDN univ. of western ontario UUCP: ..route..!julian!uwovax.UWO.CDN!rjones london, ontario SENDFILE: canada N6A 5B7 (JNET) rich@UWOVAX (519) 661-2151 ext. 6043 ------------------------------ Date: Fri, 13 May 88 08:09 EST From: Subject: TeX + LPS40 A while ago, someone wrote TeXhax about using TeX with the DEC LPS40's built-in fonts. The (our) LPS40 has 7 built-in's offering pretty good variety and each is available in "normal," italic, bold and bold-italic versions. In addition, each is virtually continuously variable in size from extremely small to huge. It should, as the previous questioner wrote, save considerable disk space and time for the system if TeX could work using those fonts rather than the downloaded ones. I have not seen any reply to that questionner and I have lost the orininal message so cannot write directly. Has anyone out there gotten the TeX+LPS40 combination to work? Please let us know. Thanks. --Tom Flaherty, Connecticut State University ------------------------------ Date: Fri, 13 May 1988 15:42 EDT From: Jim Walker Subject: How to get latest BibTeX? A recent TeXhax contains a VMS changefile for BibTeX .99c from Jerry Leichter. But how does one get BibTeX .99c? The server at TAMVM1 has BibTeX.web version 0.98i. (Pardon me if this question has been asked and answered before.) -- Jim Walker, Dept. of Math., USC East ------------------------------ Date: Fri, 13 May 88 13:14:09 PDT From: darrell%cs@ucsd.edu (Darrell Long) Subject: \leaders and \hbox question I'm trying to format the table of contents for my dissertation, and have written this simple macro: \def\entry#1#2#3{\hbox to 3 em {#1\hfill}#2\leaders\hbox{.}\hfill\hbox to 3 em {\hfill #3}} When I give it my table of contents file, everything works well except for the case where #1 is non-empty: \centerline{{\mc Table of Contents}} \vskip 0.375 true in \rightline{Page} \vskip 0.25 true in \begingroup\obeylines \entry{}{Signature}{iii} \entry{}{Dedication}{iv} \entry{}{Epigraph}{v} \entry{}{Contents}{vi} \entry{}{Acknowledgements}{vii} \entry{}{Curriculum Vitae}{viii} \entry{}{Abstract}{x} \vskip 0.25 true in \entry{I}{Introduction}{1} \endgroup From this, I get: TABLE OF CONTENTS Page Signature .................................................... iii etc... Abstract ..................................................... x I Introduction ................................................. 1 I can see no reason why I get a newline following the "I" -- it just doesn't make sense. All suggestions welcome. Thanks, DL ------------------------------ From: ekrell@ulysses.att.com Date: Fri, 13 May 88 16:16:11 EDT >From: Eduardo Krell Subject: amcsc10 in lfonts.tex The lfonts.tex file (11 November 1986) has a reference to amcsc10: % This file contains the following kludge: 8pt and 9pt versions % of \sc call magnifications of amcsc10 instead of cmcsc10. % Search for KLUDGE to find for both instances. What is the reason for this and what would happen if I replace amcsc10 with cmcsc10?. I don't want to keep both fonts around. ------------------------------ Date: Fri, 13 May 88 15:46:59 BST From: Ian Moor Subject: longrightarrow \longrightarrow comes out with the left half of the stem one pixel lower that the right half, I thought this was a bug in our previewer, but it seems to be a font bug. As far as I can tell from lplain.tex the arrow is made by joining two characters, is there a fix ? ------------------------------ Date: Fri, 13 May 88 18:26:35 edt From: lgy%pupthy2.Princeton.EDU@Princeton.EDU (Larry Yaffe) Subject: DVI previewer for HDS terminal or Tek 4014 I'm looking for a DVI previewer for an HDS-3200 terminal, or a Tektronics 4014 (which the HDS emulates). Either C or Pascal source, running under Unix (mixture of sysV & BSD). I'm aware of the program "dvitovdu", but unfortunately do not have a Modula-2 compiler. Any information appreciated. Apologies for repeating what must be a common request. , and btoa). In Europe and Australia, please contact the following people who have agreed to serve as redistribution points: shapiro@inria.inria.fr France sjl@uk.ac.ukc UK mjj@mimr.dmt.oz Australia Finally: I'm collecting nice examples of TransFig figures to put into the documentation. If you'd like to contribute one, please send me the Fig file. Micah Beck beck@svax.cs.cornell.edu ------------------------------ Date: Fri, 13 May 88 22:32 CST From: rhetorically yours Subject: how do I get flexible font Runoff style literals in TeX? Dear TeXnetlanders: The following macros work to allow emulation of the RUNOFF commands literal and end literal. They do a lot of weird stuff that I can only dimly begin to comprehend. What I want is a way to change the font (and size) which would also change the mono space width proportionally. It wasn't too difficult to change the font, but I can't figure out how to change the spacing. I've tried everything that I could think of, and have spent too much time with this, already. What I'm trying to do is create a program that will allow users of Runoff to have just a little more usefulness added to it, such as different fonts, and linespacing, without having to spend all of the time to learn TeX. I would be effectively trying to expand some of the capabilities of Runoff. The program would not emulate all of Runoff, but it certainly could take care of a small working set of commands. There might be a better way of emulating literals, but I'm not too sure how I'd go about it. Of course, if someone out there in TV land already has such a beast as what I'm proposing, then I would be grateful for a copy. Joseph Maddison Student Programmer/User Consultant Carleton College Northfield, MN 55057 (507) 663-4089 maddisoj@carleton.edu (CSnet) ...!umn-cs!stolaf!agnes!ccnfld!maddisoj (UUCP) % % from the TeXbook-- there's a little bit of unnecessary % stuff mixed in. Sorry about that. %=========================================================== \catcode`@=11 % borrow the private macros of PLAIN (with care) \font\ninett=amtt9 \font\eighttt=amtt8 \hyphenchar\tentt=-1 % inhibit hyphenation in typewriter type \hyphenchar\ninett=-1 \hyphenchar\eighttt=-1 \newskip\ttglue \def\tenpoint{\def\rm{\fam0\tenrm}% \def\tt{\fam\ttfam\tentt}% \textfont\ttfam=\tentt \tt \ttglue=.5em plus.25em minus.15em \normalbaselineskip=12pt \def\MF{{\manual META}\-{\manual FONT}}% \let\sc=\eightrm \let\big=\tenbig \setbox\strutbox=\hbox{\vrule height8.5pt depth3.5pt width\z@}% \normalbaselines\rm} {\obeyspaces\gdef {\ }} \def\parbreak{\hfil\break\indent\strut} \def\stretch{\nobreak\hskip0pt plus2pt\relax} % macros for verbatim scanning \chardef\other=12 \def\ttverbatim{\begingroup \catcode`\\=\other \catcode`\{=\other \catcode`\}=\other \catcode`\$=\other \catcode`\&=\other \catcode`\#=\other \catcode`\%=\other \catcode`\~=\other \catcode`\_=\other \catcode`\^=\other \obeyspaces \obeylines \tt} \outer\def\begintt{$$\let\par=\endgraf \ttverbatim \parskip=\z@ \catcode`\|=0 \rightskip-5pc \ttfinish} {\catcode`\|=0 |catcode`|\=\other % | is temporary escape character |obeylines % end of line is active |gdef|ttfinish#1^^M#2\endtt{#1|vbox{#2}|endgroup$$}} \catcode`\|=\active {\obeylines \gdef|{\ttverbatim \spaceskip\ttglue \let^^M=\ \let|=\endgroup}} ------------------------------ Date: Sat, 14 May 88 18:36:38 GVA From: "John M. Jowett" Subject: Displaying the LaTeX keys for cross-references I don't know if this has been invented before but a poke through TEXHAX suggests it hasn't. When writing a document with LaTeX, it would be nice to be able to see the keys used to refer to equations, tables, figures, bibliography items etc. on typeset drafts. This makes it easy to type in references to previous equations etc. as you fill out the rest of the document. (I know you can make a list of them using LABLST.TEX but this doesn't suit me so well.) So, as a spare time amusement, I have cooked up a style option which I believe will work with most standard LaTeX styles and causes these keys to be printed beside the environments that they label. I also believe that, with the occasional exception of marginal notes, they do not affect the positioning of other pieces of printed text. Occasionally, as with longish figure or table captions, they get superposed on something else. Anyway such buglets are inconsequential since this style option is meant to be switched off in the final version of the text. Style file follows. %%%%%%%%%%%%%%% CUT HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %This is SHOWKEYS.STY in text format as of 14 May 1988. % % It is a style-option which should work with most LaTeX styles and % with most other options which do not have their own versions of the % commands which are redefined below. % % When you use \label to cross-reference some LaTeX environment as % described in the LaTeX manual, this style option causes the key % given as argument to \label to be printed in small typewriter type % in a place where it does not affect the layout of the text. E.g. % it causes the key corresponding to an equation number to be % printed in the right-hand margin beside the equation number. % Entries in the bibliography should have their keys printed in the % margin beside them and figures or tables have it printed beside % (occasionally on top of) the caption. \typeout{*** SHOWKEYS style option - should not be used in final version} \typeout{... Keys for cross-references should appear in margins, etc.} \def\currentkey{\relax} % for cases where there was no \label command % The following definitions are copied from LATEX.TEX and fiddled with to % print the keys so that they do not interfere with layout: % First 4 lines of this defn of \label are new; they deal in turn with 3 % types of environment in which \label can be used meaningfully: % equation ---> equation number % normal paragraph mode ---> section or page number % other cases = floats only (?) ---> figure or table number % \def\label#1{\ifhmode\marginpar{\nintt #1}% normal text \else\ifmmode\def\currentkey{#1}% save for call to \eqno \else{\vskip -\baselineskip% to suck up an extra line \rlap{{\nintt #1}}}\fi\fi% %floats \@bsphack\if@filesw {\let\thepage\relax \xdef\@gtempa{\write\@auxout{\string \newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa \if@nobreak \ifvmode\nobreak\fi\fi\fi \@esphack} % Change definition of the equation number to include the key, this % is called when equation environment is ended, as argument of \eqno % N.B. the definition of \currentkey is local to the current equation % environment. \def\@eqnnum{{\rm (\theequation)}{\rlap{\nintt \currentkey}}} % <------- addition --------> % Now deal with bibliographies, see definition of \bibitem % <-------------------------------addition---------------> \def\@bibitem#1{\item\marginpar{\hbox to\marginparwidth{\hrulefill}\nintt #1} \if@filesw \immediate\write\@auxout {\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces} ------------------------------ Date: Sun, 15 May 88 12:02:47 EDT From: Dominick J. Samperi Subject: bibtex.web.1 I just ftp-ed bibtex.web.1 from your system, and I don't understand why it is not in a readable format. I used tenex (whatever that is?), on the advice of another user. Would you please let me know what I did wrong, and how to properly transfer files. If you don't mind, would you also tell me if the web-to-C translator is available? Thank you very much. Dominick Samperi samperi@acf8.nyu.edu ------------------------------ %%% %%% Concerning subscriptions, address changes, unsubscribing: %%% BITNET: send a one-line mail message to LISTSERV@TAMVM1.BITNET: %%% SUBSCRIBE TEX-L % to subscribe %%% %%% All others: send mail to %%% texhax-request@score.stanford.edu %%% please send a valid arpanet address!! %%% %%% %%% All submissions to: texhax@score.stanford.edu %%% %%%\bye %%% ------------------------------ End of TeXhax Digest ************************** -------