UKTeX Digest Friday, 31 Jan 1992 Volume 92 : Issue 04 Today's Topics: {Q&A}: Re: marnote.sty Making \if work RE: Making \if work RE: Making \if work RE: Making \if work Re: emTeX beta-test versions, switch /mp HP Laserjet IIIsi (and alternatives) floatfig.sty, anyone? table and figure side by side {Announcements}: BBFIG available on FILESERV Sauter's any size CM: Unix version 1.0 Administrivia: Moderators: Peter Abbott (Aston University) and David Osborne (University of Nottingham) Contributions: UKTeX@uk.ac.tex Administration, subscription and unsubscription requests: UKTeX-request@uk.ac.tex ------------------------------------------------------------ Date: Sat, 25 Jan 92 14:07:00 +0100 From: J.L.Braams%nl.pttrnl@uk.ac.earn-relay Subject: Re: marnote.sty Hi, In the UKTeX Digest v92i02 I read about marnote.sty. It can be made even more useful when the following piece of PostScript code is added to the file tex.pro. It defines the PostScript verb add-bop-hook which enables you to hang more than one thing on the hook. Modify marnote.sty, replacing each occurence of /bop-hook {...} def with {...} add-bop-hook and you can have leftnotes as well as right notes as well as the word "draft" across the page. Regards, Johannes Braams PTT Research Neher Laboratorium, P.O. box 421, 2260 AK Leidschendam, The Netherlands. Phone : +31 70 3325051 E-mail : JL_Braams@pttrnl.nl Fax : +31 70 3326477 becomes 1-2-92 : J.L.Braams@research.ptt.nl ------------------------------------------------------------------------------- /add-bop-hook { userdict begin userdict /bop-hook known { % bop-hook is known... % % Give the procedure body on the stack a name... /proc-to-add exch cvlit def % % Put the existing definition of bop-hook on the stack and give it a name /old-bop-hook /bop-hook load cvlit def % % Reserve an array with length equal to % the sum of the lengths of both procedures /newproc old-bop-hook length proc-to-add length add array def % % Copy the old definition of bop-hook into the new array newproc 0 old-bop-hook putinterval % % Add the new procedure newproc old-bop-hook length proc-to-add putinterval newproc cvx % put newproc executable on the stack } if /bop-hook exch def % this is what we did this all for end } bind def ------------------------------ Date: Sat, 25 Jan 92 21:16:00 +0000 From: CBTS8001%ie.ucc.iruccvax@uk.ac.earn-relay Subject: Making \if work THIS ONE IS ULTRA-URGENT. SEVERAL PINTS OF YOUR FAVORITE BEER ARE ON OFFER FOR A SOLUTION. A problem of understanding: I want to make some .sty files for a customer which contain embedded documentation, in such a way that if I TEX the style file on its own it will produce the docs, but if I run a production job which merely \inputs the style file, it will simply operate as a style file. I know there is a LaTeXy routine for embedding docs in .sty files, Rainer's I think, apologies if not (it's used to distribute the edmac package) but getting it to work requires a very deep knowledge of LaTeX, and a cluster of ancillary files, most of which didn't work when I tried them: this was probably me, but I just want a simple routine. Here's the skeleton of what I have: I define a \newif\ifdoc so that I can set \doctrue when the \jobname matches the string argument of the \docid macro. I can then embed my documentation text in the style file inside macros which are only defined in pdoc.sty (or at that location below where pdoc.sty is referenced. If the \jobname and the argument to \docid are not the same, then \docfalse is set, the documentation macro names are dummied to {} and the style file simply functions as such. Problem: I can't get the \if\thisjob\thisfile construction to behave. If I use \showthe\thisfile and \showthe\thisjob they both echo `mytest' to the screen when I type TEX MYTEST.STY, but the \if fails, and it treats the style file *as* a style file, which is not what I want. I have clearly badly misunderstood the function and nature of \jobname as it is obviously not behaving as a token register. In fact, in nearly 10 years of TeXing, I have never found a way to do a plain string compare using \if, and I know TeX is capable of it. The question is, how? ///Peter Flynn %----------------------------- snip snip ------------------------------- % contents of file `pdoc.tex' \newif\ifdoc % used to provide logical identification of whether a % style file is being used as such or being run on its own % in order to get the documentation out of it. \newtoks\thisfile % holds name of the style file \newtoks\thisjob % takes the current value of \jobname \edef\makename{\thisjob={\jobname}} \makename % this forces \thisjob to contain the name of the job: % just doing thisjob={\jobname} leaves \thisjob equal % to `\jobname' not to the real job name \def\docid#1{\thisfile={#1} \if\thisjob\thisfile \doctrue \input pdoc.sty % or insert documentation macros here \message{Documentation run for \jobname } \else\docfalse \input qdoc.sty % or dummy out the documentation macro names here \message{The `#1' style } \fi} %----------------------------- snip snip ------------------------------- % contents of file `mytest.sty' \input pdoc.tex \docid{mytest} % % etc: the bits removed here work perfectly using \ifdoc so long % as I can get pdoc.tex correctly to set \doctrue or \docfalse % \ifdoc\vfill\eject\expandafter\end\fi %----------------------------- snip snip ------------------------------- % contents of file `client.tex' \input mytest.sty % % customer TeX matter % \bye ------------------------------ Date: Mon, 27 Jan 92 11:33:47 +0000 From: Philip Taylor (RHBNC) Subject: RE: Making \if work % modified contents of file `pdoc.tex' \newif\ifdoc % used to provide logical identification of whether a % style file is being used as such or being run on its own % in order to get the documentation out of it. \def\docid#1{\def \thisfile {#1}% \ifx\jobname\thisfile \doctrue \input pdoc.sty % or insert documentation macros here \message{Documentation run for \jobname } \else\docfalse \input qdoc.sty % or dummy out the documentation macro names here \message{The `#1' style } \fi} ** Phil. ------------------------------ Date: Mon, 27 Jan 92 13:49:41 +0000 From: CA_ROWLEY@uk.ac.open.acs.vax Subject: RE: Making \if work Subtitle: hand over the beer! In message 684 of Mon, 27 JAN 92 11:33:47 BST, Philip Taylor (RHBNC) wrote: > % modified contents of file `pdoc.tex' > \newif\ifdoc % used to provide logical identification of whether a > % style file is being used as such or being run on its own > % in order to get the documentation out of it. > \def\docid#1{\def \thisfile {#1}% > \ifx\jobname\thisfile > \doctrue > \input pdoc.sty % or insert documentation macros here > \message{Documentation run for \jobname } > \else\docfalse > \input qdoc.sty % or dummy out the documentation macro names here > \message{The `#1' style } > \fi} > Not wishing to lower myself to testing Phil's actual code, I tried the following, and convinced myself that his soi--disant "solution" is nothing of the kind. (Some people will do anything for a few murphy's these days!) chris %---------------- % File jj.tex NB it MUST be called this! % \gdef\yy{jj} {\catcode`\j=12 \gdef\xx{jj} } % Now comes the exciting part: place your bets now! % \ifx\jobname\yy \message {yy OK} \else \message{yy not OK} \fi \ifx\jobname\xx \message {xx OK} \else \message{xx not OK} \fi % Now let us try something more subtle: % \edef\bb{\jobname} \ifx\bb\yy \message {yy now OK} \else \message{yy still not OK} \fi \ifx\bb\xx \message {xx now OK} \else \message{xx still not OK} \fi Page 1. \end ------------------------------ Date: Mon, 27 Jan 92 17:30:00 +0000 From: ARCH6@uk.ac.york.vaxb Subject: RE: Making \if work I used to think the Mittelbach and Schoepf `doc' system was complicated. But it really isnt when you get into it, and becomes very satisfactory. I dont use all the stuff they do, just % % documentation % \begin{macrocode} \code etc % \end{macrocode} % more text which does what is needed. Isn't life too short to re-invent such systems? sebastian ------------------------------ Date: Tue, 28 Jan 92 18:08:43 +0100 From: Eberhard Mattes Subject: Re: emTeX beta-test versions, switch /mp Mike Piff writes: > The beta-test versions of EMTeX appear not to understand the option > /mp=# > despite the documentation. There are three possible reasons for that behaviour: - - When using a batch file, please note that `=' characters are deleted by MS-DOS in arguments to batch files - - emTeX complains if the argument of /mp is out of range. The maximum value is 65500. The maximum value will be 1048576 for emTeX386 beta-7 - - If you have changed the switch character of MS-DOS to '-', you have to use -mp instead of /mp Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de) ------------------------------ Date: Thu, 30 Jan 92 12:49:20 +0000 From: David_Rhead@uk.ac.nottingham.ccc.vme Subject: HP Laserjet IIIsi (and alternatives) We currently have 2 laserprinters that each print about 78,000 pages/year i.e., about 6500 pages/month. They are used for a mixture of "office documents", project-reports, dissertations, and theses, mostly produced using either Wordperfect or TeX. One of our present printers is a 300 dpi Xerox 3700, the other is a 406 dpi Agfa P400PS. (We have the P400PS on loan after persistent problems with an Agfa P3400PS.) There are other devices on campus that can deal with documents for which higher resolution is required. We are considering whether to replace both these laserprinters by a single Hewlett Packard LaserJet IIIsi, which would presumably be called on to print about 156,000 pages/year, i.e., about 13,000 pages/month. Does anyone have any comments about the LaserJet IIIsi's suitability for such work? In our situation, a printer that produces consistent good quality is preferable to one whose output varies (depending on whether the engineer has tweaked things recently) between superb and unacceptable. Does anyone have any other suggestions about reasonably priced PostScript printers, that can produce 13,000 consistently good-quality pages/month, which we should be considering? David Rhead JANET: d.rhead@uk.ac.nottingham.ccc.vme ------------------------------ Date: Thu, 30 Jan 92 16:30:47 +0000 From: Adrian F Clark Subject: floatfig.sty, anyone? I remember that, at the TUG conference at Cork, someone presented a paper on a LaTeX style file which made it possible to create "side figures", having the text flow around the edges of them in much the same way as one might do with a DTP package. I believe the style file was called (a little misleadingly) `floatfig.sty'. I now find myself in the position of wanting to achieve precisely this effect. I found the paper in the appropriate volume of TUGboat and sent a message off to the Heidelberg server, but alas the file seems to be missing. Does anyone have a copy of this style file, or perhaps point me to someone who has? Dr Adrian F. Clark JANET: alien@uk.ac.essex INTERNET: alien%uk.ac.essex@nsfnet-relay.ac.uk FAX: (+44) 206-872900 BITNET: alien%uk.ac.essex@ac.uk PHONE: (+44) 206-872432 (direct) Dept ESE, University of Essex, Wivenhoe Park, Colchester, Essex, C04 3SQ, UK. ------------------------------ Date: Thu, 30 Jan 92 16:44:28 +0000 From: Zuqiang Zhao (5n.7.11) Subject: table and figure side by side Dear Sir, Could you tell me how I can put one table and one figure side by side in LaTeX and label them properly? The reason I am doing this is that I want to show the reader both detailed experimental results and plot which shows the comparison among different experiments. Thank you very much for your help. Z. Zhao Dept. ESE Uni. of Essex email: zzhao@uk.ac.essex ------------------------------ Date: Thu, 30 Jan 92 14:57:26 -0600 From: George D. Greenwade"George D. Greenwade" Subject: BBFIG available on FILESERV We received an update to a very interesting PostScript program which calculates the %%BoundingBox of PostScript figures. Thought I'd pass along the description for your consideration. - --George ============================================================================== BBFIG ----- The BBFIG package includes the files in the Jan 4, 1992, release of Bernie Cosell's bbfig, as posted to comp.lang.postscript on January 24, 1992. His newsgroup post, originally in shar format, has been split into individual files. Thanks are extended to William Kath for bringing this updated set to my attention. BBFIG is a PostScript program which calculates the %%BoundingBox of PostScript figures. Since a number of dvi to PostScript converters can make use of this information, it is a very useful tool to have around for users of TeX-related products. To retrieve the entire package of 4 files, include the command: SENDME BBFIG in the body of a mail message to FILESERV@SHSU.BITNET (FILESERV@SHSU.edu). If, for some reason, you should only need one of these files, say BBFIG.INSTALLATION, use the command: SENDME BBFIG.INSTALLATION in your MAIL message to FILESERV. Files in this package: (1 Block = 512 bytes) File Blocks Save file as: ------------------------------------------------------------------------------- BBFIG.BBFIG 2 bbfig BBFIG.BBFIG_L 3 bbfig.l BBFIG.BB_PS 26 bb.ps BBFIG.INSTALLATION 2 INSTALLATION Approximate total blocks in full BBFIG package = 33 ------------------------------ Date: Mon, 27 Jan 92 14:16:15 -0500 From: karl%edu.umb.cs@uk.ac.nsfnet-relay Subject: Sauter's any size CM: Unix version 1.0 I've again updated my packaging for Unix of John Sauter's Metafont files to make Computer Modern fonts at any point size. You can get version 1.0 by ftp from ftp.cs.umb.edu [192.12.26.23]:pub/tex/sauter.tar.Z. Like the previous version of a few weeks ago, this includes a modified lfonts.tex from LaTeX 14 Jan 91 (you can get this by ftp from archive.cs.ruu.nl [131.211.80.5]:TEX/TEX3/latex). Also a modified MakeTeXPK from dvips which tries to make these fonts at different magnifications when necessary (you can get dvips from labrea.stanford.edu, in pub/dvips*.tar.Z). The other change was rearranging things to keep the filenames less than 14 characters, for system V, and not in subdirectories. This version also incorporates a change to cmcsc from Wayne Sullivan. For all of the standard Computer Modern fonts, these files produce the same TFM files as Knuth's sources. So it is ok to call the output from these `cm...'. Let me know if you have questions or suggestions. karl@cs.umb.edu ------------------------------ UK TeX ARCHIVE at ASTON UNIVERSITY >>> UK.AC.TEX <<< JANET Interactive and NIFTP access Host: uk.ac.tex (JANET DTE 000020120091) Username: public Password: public [Internet ftp access should be available soon!] *** Mail server *** Send mail to TeXserver@uk.ac.tex (JANET) or TeXserver@tex.ac.uk (rest of the world) with message body containing the word HELP \section FILES OF INTEREST [tex-archive]00readme.txt [tex-archive]00directory.list [tex-archive]00directory.size [tex-archive]00directory_dates.list [tex-archive]00last30days.files \section DIGESTS This year's UKTeX back issues are stored in the archive in directory [tex-archive.digests.uktex.92] This year's TeXhax back issues are stored in the archive in directory [tex-archive.digests.texhax.92] Latest TeXhax: V91 #51 (No issues in 1992, as far as we can tell) TeXMaG back issues are stored in the archive in directory [tex-archive.digests.tex-mag] Latest TeXMaG: V5N3 \section MEDIA DISTRIBUTIONS \subsection Washington Unix TeX distribution tape Latest copy of May/June 1991 contains: TeX 3.14, LaTeX 2.09, Metafont 2.7, plus many utilities suitable for Unix 4.2/4.3BSD & System V tar format, 1600bpi, blockfactor 20, 1 file (36Mb) Copies available on: One 2400ft 0.5" tape sent with return labels AND return postage to Aston OR One Quarter-Inch Cartridge, QIC-120 or QIC-150 format (DC600A or DC6150) sent with envelope AND stamps for return postage to Nottingham (addresses below). \subsection VMS tapes VMS backup of the archive requires two 2400ft tapes at 6250bpi. VMS backup of TeX 2.991 plus PSprint requires one 2400ft tape. \subsection Exabyte 8mm tapes Same contents available as 0.5" tapes. Following tape types available: SONY Video 8 cassette P5 90MP, MAXELL Video 8 cassette P5-90, TDK Video 8 cassette P5-90MPB \section TeX IMPLEMENTATIONS FOR SMALL COMPUTERS \subsection OzTeX (for Macintosh) Send 10 UNFORMATTED 800K disks to Aston with return postage. \subsection emTeX (for MS-DOS) The complete package (3.5" High density disk format ONLY) is available from Aston at a cost of 15 pounds, including disks, post and packing. All other enquiries and disk formats should be directed to: Eigen PD Software, P.O. Box 722, Swindon SN2 6YB (tel: 0793-611270) (JANET e-mail address: kellett@uk.ac.cran.rmcs) \subsection TeX for the Atari ST All enquiries for disks etc. should be directed to: The South West Software Library, P.O. Box 562, Wimborne, Dorset BH21 2YD (JANET e-mail address: mdryden@uk.co.compulink.cix) \section POSTAGE RATES All prices in Pounds Sterling. For Aston orders, make cheques payable to Aston University. 0.5" tapes: UK: 2.50 (one tape), 5.00 (two tapes). Europe: 5.00 (one tape), 9.00 (two tapes). Outside Europe please enquire. 8mm tapes: UK: 1.00, Europe: 2.00. Quarter-inch cartridges: UK: 1.00, Europe: 2.00. Diskettes: Quantity/Size Europe World UK 1st UK 2nd 18/3.5" 3.10 5.10 1.40 1.10 11/3.5" 1.80 2.90 0.80 0.65 18/5.25" 1.20 2.00 0.60 0.50 11/5.25" 0.80 1.30 0.50 0.35 \section POSTAL ADDRESSES Please include SELF-ADDRESSED ADHESIVE LABELS for return postage. Peter Abbott Information Systems, Aston University, Aston Triangle, Birmingham B4 7ET David Osborne Cripps Computing Centre, University of Nottingham, Nottingham NG7 2RD, UK (for Quarter-inch cartridges ONLY -- include stamps for return postage) \section UK TeX USERS GROUP For details, contact: Geeti Granger, Text Processing Dept, John Wiley & Sons, Baffins Lane, Chichester, W Sussex PO19 1UD (tel: 0243 770329) or David Penfold, Edgerton Publishing Services, 30 Edgerton Road, Edgerton, Huddersfield HD3 3AD (tel: 0484 519462) \bye End of UKTeX Digest [Volume 92 Issue 4] ***************************************