Subject: TeXhax Digest V89 #55 From: TeXhax Digest Errors-To: TeXhax-request@cs.washington.edu Maint-Path: TeXhax-request@cs.washington.edu To: TeXhax-Distribution-List:; Reply-To: TeXhax@cs.washington.edu TeXhax Digest Friday, May 26, 1989 Volume 89 : Issue 55 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: Could we reduce the amount of stuff after the %%%? Dvipage on 386i still doesn't work Problem with \hrule Re: TeXhax Digest V89 #43 (problem with indenting) Re: \twocolumn[ ] problem Including TIFF images in LaTeX documents Extra space after LaTeX "alleqno.sty" usage Invisible fonts/dvi2ps Font selection in LaTeX Re: TeXhax Digest V89 #46 Needed: DVI-to-LA75 Incorrect figure reference -------------------------------------------------------------------------- %%%Moderator's note: We would appreciate your response to the %%%following suggestion. Date: Mon, 22 May 89 13:04:43 PDT From: dennis@yang.cpac.washington.edu (Dennis Gentry) Subject: Could we reduce the amount of stuff after the %%%? Keywords: suggestions Gentle Moderators Perhaps this has been already put to a vote, or decided by fiat, but I would like to register my request for a reduction in the amount of text that is included in every version of TeXHax. In particular, I suggest that there only be one copy of this message (which is currently in both the "cover page" and the "trailer") per issue: 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 Also, perhaps the current trailer could be included in only every 5th or tenth issue since many sites and individuals archive issues. A "mini-trailer" could be used on the other issues. For example: For more information on subscriptions and submissions, see the end of a TeXHax issue whose number ends in 0 or 5. Internet subscriptions to: TeXHax-request@cs.washington.edu. If you think this letter is worth inclusion in TeXhax, feel free to include it. In any case, I appreciate the work that you must do just to maintain the mailing list and assemble each issue. Sincerely, Dennis Gentry (dennis@cpac.washington.edu) ------------------------------------------------------------------------- Date: Wed, 24 May 89 09:15:22 EDT From: dph@astro.psu.edu (David P. Huenemoerder) Subject: Dvipage on 386i still doesn't work Keywords: Sun 386i, dvipage I have tried the latest release of dvipage (3.0 w/ diffs) with the modifications purported to support the Sun 386i. When sampled, fonts are still sliced and flipped on vertical axes. With no sampling, the display is correct. Are there any real fixes for the 386i version? David Huenemoerder dph@astro.psu.edu (128.118.30.150) ------------------------------------------------------------------------ Date: Thu, 25 May 89 03:17:50 EDT From: Andrew Arensburger Subject: Problem with \hrule Keywords: \hrule I've been trying for some time now to produce an \hrule that extends beyond the margins. The effect I'm trying to produce is something like \par \hskip-5cm\hrule width 20cm but nothing I've tried seems to make the slightest difference. Text behaves the way it seems it ought to, but \hrule has decided to rebel. Please help! %------------------------------------------------------------------\\\\^ Andrew Arensburger | K&R C! | This space o\\\\\- ...!uunet!mimsy!cvl!arensb | ANSI no! | unintentionally __ / arensb@cvl.umd.edu | | left blank \_/ --------------------------------------------------------------------------- Date: Thu, 25 May 89 09:36:43 PDT From: lamport@src.dec.com (Leslie Lamport) Subject: Re: TeXhax Digest V89 #43 (problem with indenting) Keywords: LaTeX, indenting Mary Keogh writes: I've been having some trouble indenting lines in LaTeX. I tried such things as \hspace{10mm} \hskip10mm ~\hspace{10mm} ~\hskip10mm ~~~ none of which worked; When all else fails, try reading the manual. Looking in the index under "\hspace" or "space/at beginning or end of output line" leads one to page 95, which says TeX removes space from the beginning or end of each line of output text... including space added with \hspace. The \hspace* command is the same as \hspace except that the space it produces is never removed. I have no idea why Ms. Keogh wants to indent lines in this way, but there is probably a better approach to what she is trying to do than inserting formatting commands in the text. Leslie Lamport ------------------------------------------------------------------------------ Date: 23-MAY-1989 20:05:37 GMT From: CA_ROWLEY%vax.acs.open.ac.uk@NSFnet-Relay.AC.UK Subject: Re: \twocolumn[ ] problem Keywords: LaTeX, optional parameters, error message The problem with the following code \twocolumn[ ... \\[3ex] ] is that you have embedded one optional argument within another. Unlike braces {}, TeX does no balancing of brackets (or anything else) when looking for the arguments of a macro. Thus it tries to treat the first ], the one after the 3ex, as the end of the material to be set over two columns: this results in total confusion and a somewhat unenlightening error message from deep within a LaTeX macro. The simplest solution (for \twocolumn and similar commands ONLY) is to put some braces immediately inside the [] of the optional parameter of \twocolumn to protect (to coin a phrase) the other []s. Thus \twocolumn[{ ... \\[3ex] }] chris rowley ***************************************************************************** You have either been reading or just missed--- ---Network Mail from: Chris Rowley, Open University (Maths/R01), UK ***************************************************************************** User Name: ca_rowley Network: janet janet Address: uk.ac.open.acs.vax [+JANET.000041500030.FTP.MAIL] [+PSS.23429080010330.FTP.MAIL] From North America try: vax.acs.open.ac.uk@nss.cs.ucl.ac.uk Dr C A Rowley l Bitnet/Netnorth/Earn/Uucp: Open University l ca_rowley@vax.acs.open.ac.uk 527 Finchley Road l Internet/Arpa/Csnet: London NW3 7BG l ca_rowley%vax.acs.open.ac.uk UK l Telephone: (+44) 1 794 0575 l ------------------------------------------------------------------------------ Date: Tue, 23 May 89 22:48:44 EDT From: achhabra@uceng.uc.edu (atul k chhabra) Subject: Including TIFF images in LaTeX documents Keywords: LaTeX, TIFF images Is it possible to include TIFF (black and white) images in LaTeX documents? I am using an Imagen laser printer (if that helps). Please reply by email. I will summarize if there is enough interest. Thanks, Atul Atul K. Chhabra INTERNET: achhabra@uceng.uc.edu (129.137.33.1) 811J Rhodes Hall, ML 030 UUCP: ...!{mit-eddie,hal}!uccba!uceng!achhabra Dept of Elec & Computer Eng University of Cincinnati Cincinnati, OH 45221-0030 Phone: (513)556-4766 ------------------------------------------------------------------------------- Date: Tue, 23 May 89 20:48:54 PDT From: Jonathan_Thornburg@mtsg.ubc.ca Subject: Extra space after LaTeX "alleqno.sty" usage Keywords: LaTeX, equation, numbering, space A few months ago, I posted a LaTeX document-style option file to TeXhax which makes *all* displayed equations numbered by default. It redefines things so that single displayed equations (equation environment) are made with \[ ... \], while multiple displayed equations (eqnarray environment) are made with \[[ ... \]]. It uses some \futurelet trickery to decide which form of invocation is being used on any given call. It works, but it produces an extra space at the beginning of the first line of text after a \[[ ... \]], i.e. \[[ 2 + 2 & = & 4 \\ 2 + 3 & = & 5 %%%\\ \]] *in this example, the asterisk at the start of this line denotes the place where extra space is introduced. I have put "%%%" at the end of each line of the style file to avoid having the carrige returns ("newline"s) in the file seen by TeX, but this obviously isn't sufficient. If I don't use this style file, the usual LaTeX environments, \begin{eqnarray} <<>> \end{eqnarray} don't cause any extra space. Can some macro wizard help me figure out (a) where this is coming from, and (b) how to get rid of it (while still keeping the short \[ ... \] and \[[ ... \]] forms)? The document-style file itself looks like this: %--- cut here --- % alleqno.sty -- LaTeX style file to make displayed equations numbered % by default. % % This document style option makes all displayed equations numbered by % default. In particular, it defines things so that \[, \], \[[, and % \]] may be used as follows: % % \[ ... \] ==> \begin{equation} ... \end{equation} % \[[ ... \]] ==> \begin{eqnarray} ... \end{eqnarray} % % These new commands are short, and they stand out clearly from the % surrounding text on a terminal screen. % % Note that \begin{displaymath} ... \end{displaymath} should *not* be % used with this style file -- use \[ ... \] instead. To override the % default and get an unnumbered displayed equation, use a one-line % \begin{eqnarray} ... \end{eqnarray}. % % - Jonathan Thornburg, 25/Sept/88 % % Dept of Geophysics & Astronomy thornburg@mtsg.ubc.ca % The University of British Columbia userbkis@ubcmtsg.bitnet % Vancouver BC V6T 1W5 userbkis%ubc@um.cc.umich.edu % Canada ubc-vision!ubcmtsg.bitnet!thornburg % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Thanks to Donald Arseneau for help with the following macro. \def\mygobbletoken{\let\myjunktoken= }%%% % \def\[{\futurelet\mydisplayselect\mydisplay}%%% \def\mydisplay{%%% \if\mydisplayselect[%%% \begin{eqnarray}\let\mynextcommand=\mygobbletoken%%% \else%%% \begin{equation}\let\mynextcommand=\relax%%% \fi%%% \mynextcommand%%% }%%% % \def\]{\futurelet\mydisplayselect\myenddisplay}%%% \def\myenddisplay{%%% \if\mydisplayselect]%%% \end{eqnarray}\let\mynextcommand=\mygobbletoken%%% \else%%% \end{equation}\let\mynextcommand=\relax%%% \fi%%% \mynextcommand%%% }%%% %--- cut here --- Thanks 1.0e6, Jonathan Thornburg Dept. of Geophysics & Astronomy thornburg@mtsg.ubc.ca The University of British Columbia userbkis@ubcmtsg.bitnet Vancouver BC V6T 1W5 userbkis%ubcmtsg@um.cc.umich.edu Canada ubc-vision!ubcmtsg.bitnet!thornburg --------------------------------------------------------------------- Date: Wed, 24 May 89 22:08:16 EDT From: tara@gauss.rutgers.edu (Tara Madhyastha) Subject: Invisible fonts/dvi2ps Keywords: dvi2ps, fonts, slitex I recently built slitex on a Sun 3(4.0), and found that although the invisible fonts (pxl format) preview just fine (the spacing is correct for color slides and overlays), the dvi2ps output is very skewed, as if invisible gf fonts are being translated to postscript with widths just slightly greater than 0. The dvi2ps we are using is Ld-dvi2ps version 2.3. Has anyone else encountered such a problem? Tara Madhyastha tara@rutgers.edu ----------------------------------------------------------------------- Date: Wed, 24 May 89 16:31 N From: "SCHOEPF@DMZNAT51.BITNET" PLEASE REPLY TO ! Subject: Font selection in LaTeX Keywords: LaTeX, fonts To whom it may concern! In recent TeXhax several people have asked how to change the font selection mechanism of LaTeX to be more flexible, e.g., to typeset the whole document in a sans serif typeface, with \bf switching to sans serif bold, \it or \em to sans serif italic, using the Euler fonts or DEK's concrete roman family, etc. We have implemented such a scheme which will be published in the forthcoming issue of TUGboat. This scheme is not limited to LaTeX, although we do not provide an interface to other macro packages yet. Characteristics: - Space requirements of about the same size as the original lfonts.tex - Takes about the same time to switch fonts as standard LaTeX - Preloaded and load-on-demand fonts are treated exactly the same way, even in math mode We are planning to make the relevant files available at the usual places (Clarkson, etc.) in the near future. Interested parties (i.e. server managers) should contact us and specify which format they prefer (BITNET file transfer, UNIX or VMS shell archives). The code is documented with the `doc' option developed at Mainz, (cf. TUGboat) which will be distributed via the same channels. Frank Mittelbach Rainer Sch\"opf ---------------------------------------------------------------- Date: Wed, 24 May 89 09:11:23 PDT From: lamport@src.dec.com (Leslie Lamport) Subject: Re: TeXhax Digest V89 #46 Keywords: LaTeX, \topnewpage Bo Thide' writes In the "COMMAND LIST" and "USER COMMANDS THAT CALL OR AFFECT THE OUTPUT ROUTINE" portions of the latex.tex file (LaTeX 2.09) \topnewpage is mentioned. However, this command is not defined anywhere. I had hoped that this command could have been used to modify \section so that the section title would span the full page also in two-column output. Now, my section titles span only one column. Apparently, \topnewpage became \@topnewpage, and its function was subsumed by the optional argument of \twocolumn. The \twocolumn command makes it straightforward to define a sectioning command in a two-column style that starts a new page with a full-column heading. Leslie Lamport ---------------------------------------------------------------------------- Date: 24 May 89 8:30 -0600 From: Jim Walker Subject: Needed: DVI-to-LA75 Keywords: DVI-to-LA75 Can anybody let me know where I can find (or preferably send me!) a program to print dvi files on a dec la75 printer. I can't ftp from here. I am running vms and I know that the resolution will be less than superb. I have a set of pk and pxl files that John Sauter was kind enough to send to me. Thanks, Jim Walker -------------------------------------------------------------------------- Date: Wed, 24 May 89 14:31:55 CDT From: keiper%caviar.cs.uiuc.edu@a.cs.uiuc.edu (Jerry B. Keiper) Subject: Incorrect figure reference Keywords: TeX, figure references, error It seems that figure references in an appendix don't work properly. In particular the following source, aux, and log files are associated with an occurance of this phenomenon in which the reference in the text comes out as "A and A" although the figures themselves are labeled as "A.1" and "A.2". Source: \documentstyle[11pt,twoside]{report} \voffset=0pt \hoffset=0pt \vsize=9truein \textheight 600pt \textwidth 450pt \topmargin 0pt \oddsidemargin 20pt \evensidemargin 20pt \pagestyle{empty} \begin{document} { \setlength{\baselineskip}{20.4pt} \pagestyle{plain} \appendix \chapter{A picture} Look at the two pictures. ({\em cf.\/} figures \ref{fig1} and \ref{fig2}) % ^^^^^^^^^^ ^^^^^^^^^^ % The above two references just come out as A and A \begin{figure} \label{fig1} \setlength{\unitlength}{0.01 in} \begin{picture}(235,344)(-217,465) % origin is at (80,760) \put(245,540){\circle*{14}} % this is the bob \put(245,527){\vector( 0,-1){ 45}} % force of gravity vector \put(65,760){\line(-1, 0){260}} % x-axis \put(70,760){\line( 1, 0){ 20}} % short x-axis \put(95,760){\line( 1, 0){260}} % short x-axis \thicklines \put(80,760){\line( 3,-4){165}} % pendulum string \put(60,774){\framebox(40,20){}} % mounting block \put(70,774){\line( 2,-3){ 10}} \put(80,759){\line( 2, 3){ 10}} \thinlines \put(80,770){\line( 0,-1){ 20}} % vertical line (-y axis) \put(80,745){\line( 0,-1){260}} % vertical line (-y axis) \put(90,700){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $\theta$}}} \put(255,540){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $(x,y)$}}} \put(250,505){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $mg$}}} \put(165,650){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $r$}}} \end{picture} \caption{Simple Pendulum} \end{figure} \begin{figure} \label{fig2} \setlength{\unitlength}{0.01 in} \begin{picture}(235,344)(-217,465) % origin is at (80,760) \put(245,540){\circle*{14}} % this is the bob \put(245,527){\vector( 0,-1){ 45}} % force of gravity vector \put(65,760){\line(-1, 0){260}} % x-axis \put(70,760){\line( 1, 0){ 20}} % short x-axis \put(95,760){\line( 1, 0){260}} % short x-axis \thicklines \put(80,760){\line( 3,-4){165}} % pendulum string \put(60,774){\framebox(40,20){}} % mounting block \put(70,774){\line( 2,-3){ 10}} \put(80,759){\line( 2, 3){ 10}} \thinlines \put(80,770){\line( 0,-1){ 20}} % vertical line (-y axis) \put(80,745){\line( 0,-1){260}} % vertical line (-y axis) \put(90,700){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $\theta$}}} \put(255,540){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $(x,y)$}}} \put(250,505){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $mg$}}} \put(165,650){\makebox(0,0)[lb]{\raisebox{0pt}[0pt][0pt]{\twltt $r$}}} \end{picture} \caption{Simple Pendulum} \end{figure} } \end{document} aux: \relax \@writefile{toc}{\string\contentsline\space {chapter}{\string\numberline\space {A}A picture}{1}} \@writefile{lof}{\string\addvspace\space {10pt}} \@writefile{lot}{\string\addvspace\space {10pt}} \newlabel{fig1}{{A}{2}} \@writefile{lof}{\string\contentsline\space {figure}{\string\numberline\space {A.1}{\ignorespaces Simple Pendulum}}{2}} \newlabel{fig2}{{A}{2}} \@writefile{lof}{\string\contentsline\space {figure}{\string\numberline\space {A.2}{\ignorespaces Simple Pendulum}}{2}} log: This is TeX, C Version 2.93 (preloaded format=lplain 88.9.24) 24 MAY 1989 14:14 **&/usr/local/lib/tex82/fmt/lplain bug (bug.tex LaTeX Version 2.09 <26 Feb 1988> (/usr/local/lib/tex82/macros/report.sty Document Style `report' <16 Mar 88>. (/usr/local/lib/tex82/macros/rep11.sty) \descriptionmargin=\dimen99 \c@part=\count78 \c@chapter=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 (/usr/local/lib/tex82/macros/titlepage.sty)) (bug.aux) Appendix A. [1 ] [2] (bug.aux) Here is how much of TeX's memory you used: 167 strings out of 1480 1606 string characters out of 28811 29151 words of memory out of 65531 2123 multiletter control sequences out of 3000 22508 words of font info for 84 fonts, out of 36000 for 150 14 hyphenation exceptions out of 307 15i,8n,15p,184b,202s stack positions out of 200i,40n,60p,2000b,2000s Output written on bug.dvi (2 pages, 2020 bytes). ------------------------------------------------------------------------------- %%% %%% 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 % 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. %%% %%% 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 ************************** -------