Article 100 of ucam.mlist.texhax: From: texhax-admin@tex.ac.uk Subject: TeXhax Digest, Vol 1999 #13 - 9 msgs Mime-version: 1.0 Content-Type: text/plain Date: Thu, 01 Jun 2000 09:43:48 +0100 TeXhax Digest ________________________________________ Volume 1999 : Number 13 Today's Topics: 1. Re: TeXhax Digest, Vol 1999 #12 - 7 msgs (Donald Arseneau) 2. Re: TeXhax Digest, Vol 1999 #12 - 7 msgs (Dr Engelbert Buxbaum) 3. theorem.sty (Serkan Impram) 4. Global variables (Roger Price) 5. Plain text from LaTeX (Roger Gawley) 6. LaTeX printing question (Goode, Kenny) 7. Migration form WBiBdB to what (on Linux) ? (Massimo Pinto) 8. Roman type Greek letters (Igor Katkov) 9. psfonts (andrej t. hocevar) ---------- Message: 1 To: Yan Wong , texhax@tex.ac.uk Subject: Re: TeXhax Digest, Vol 1999 #12 - 7 msgs Organization: TRIUMF: Canada's national meson facility From: Donald Arseneau Date: 28 Feb 2000 01:39:34 -0800 The following message is a courtesy copy of an article that has been posted to comp.text.tex as well. In Texhax Volume 1999 : Number 12, "Max Schäfer" wrote: > format text in three columns > put in a picture at a fixed position. Now I want my text to > float around that picture, which > means that the first column has to be slimmed down in its middle, the > middle column has to be interrupted and the right column has to be > indented. Using wrapfig to span multiple columns ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wrapfig can't automatically make matching cutouts in adjacent columns because it doesn't know which text will land in just the right place in the column next-door. It certainly can't handle floating in such situations! Here are some methods for doing such layout "by hand". They are practical for one or a few such figures where you can tweak the layout for the final copy. It is too painful to do this for long or frequently-revised documents. If you do have multiple fiddling, fix the first one in each chapter (or after any forced page break), rerun, then fix the second, etc. (These examples use calc.sty to evaluate overhangs in place.) Cutouts in Matching Columns ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ Initially, write the document without the wrapfigure, and locate the desired natural linebreak at "X". (This first step is used for all methods described here.) Then change to ~~~~~~~~X \begin{wrapfigure}[6]{r}[.5\width+.5\columnsep]{6cm} .. \end{wrapfigure} ~~~~.... and run LaTeX again. This will print the figure overlapping the right column, but no matter. Use this run to locate position "Y" in the text. For the final run, switch to: ~~~~~~~~X \begin{wrapfigure}[6]{r}[.5\width+.5\columnsep]{6cm} .. \end{wrapfigure} ~~~~.... ..~~~~~~~Y \begin{wrapfigure}[6]{l}[.5\width+.5\columnsep]{6cm} \vfill \end{wrapfigure} ~~~~~~~~~~~ Taking a whole column plus a cutout ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ Locate "X" first, without any figure, as above, then write the document like: ~~~~~~~~X \begin{wrapfigure}[6]{r}[\columnwidth+\columnsep]{9cm} .. \end{wrapfigure} ~~~~.... and ignore the overprinting of the right column. Then, after locating "Y" in the text, switch to: ~~~~~~~~X \begin{wrapfigure}[6]{r}[\columnwidth+\columnsep]{9cm} .. \end{wrapfigure} ~~~~.... ..~~~~~~~Y\vspace{6\baselinskip} ~~~~~~~~~~~ for the final layout a whole column preceding a cutout ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ After locating "X", write the draft document like: ~~~~~~~~X\vspace{6\baselinskip} ~~~~.... ~~~~~~~~~~~~~ ~~~~~~~~~ run LaTeX to locate "Y", and then switch to: ~~~~~~~~X\vspace{6\baselinskip} ~~~~.... ~~~~~~~~~~~~~Y \begin{wrapfigure}[6]{l}[\columnwidth+\columnsep]{9cm} .. \end{wrapfigure} ~~~~~~~~~ Spanning (parts of) three columns ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y ~~~~~~~~~~~~~~~~~Z ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ This uses a combination of the above. First locate X, then use ~~~~~~~~X \begin{wrapfigure}[6]{r}[.5\width+.5\columnwidth+\columnsep]{12cm} .. \end{wrapfigure} ~~~~.... Locate Y from this, and change to ~~~~~~~~X \begin{wrapfigure}[6]{r}[.5\width+.5\columnwidth+\columnsep]{12cm} .. \end{wrapfigure} ~~~~.... ~~~~~~~~~~~~Y\vspace{6\baselineskip} ~~~~~~~.... which allows you to locate Z, to end up with ~~~~~~~~X \begin{wrapfigure}[6]{r}[.5\width+.5\columnwidth+\columnsep]{12cm} .. \end{wrapfigure} ~~~~.... ~~~~~~~~~~~~Y\vspace{6\baselineskip} ~~~~~~~.... ~~~~~~~~~~~~Z \begin{wrapfigure}[6]{l}[.5\width+.5\columnwidth+\columnsep]{12cm} \vfill \end{wrapfigure} Donald Arseneau asnd@triumf.ca ---------- Message: 2 Date: Mon, 28 Feb 2000 09:05:25 +0300 From: Dr Engelbert Buxbaum To: texhax@tex.ac.uk Subject: Re: TeXhax Digest, Vol 1999 #12 - 7 msgs > Subject: Printing Labels/Envelopes via LaTex . The solution which I prefer is to print the address onto the letter and then use envelopes with windows, through wich the address can be seen (available from any good stationary store in all common formats). The KOMA-Script package contains a scr-letter class that does this nicely, including use of address data banks for serial letters. Compared to the label solution this saves a lot of hassle, prevents a letter from being baged into an envelope with the wrong label (I have recieved those!) and gives a much more professional looking result. > Subject: Help Windvi WinEdt is set up by its author to work with MikTeX (and its DVI viewer YAP), and it does so quite flawlessly, as I can attest from constant use. So if you have a good Web access, I would suggest you download MikTeX from your friendly neighbourhood CTAN server and use that. I am sure that there is a way to set everything up with other TeX distributions, but I have never done it. > Subject: gif/bmp/jpeg files for LaTeX This depends on the DVI driver you are using. I have used JPEG pictures with dvipdfm, which creates PDF-files from DVI. As I use TeX to create student manuals for publication on the net, this is ideal for me. If you want to go this route, you have to convert any EPS files you may still have left into PDF first (as dvipdfm can not use EPS). This can be achieved with epstopdf from the Ghostscript site or with Photoshop and has the additional advantage of creating much smaller files. But now I have two question of my own: How can I tell LaTeX to put an image on a given position of the page (specifically topmost left corner for a logo)? Idealy, TeX should then forget that the picture is there at all, and typeset the rest of the page as if it were not. Can this be done? Also: In report class, can a picture be placed on the title page? The obvious solution \begin{abstract} \begin{figure} \includegraphics{titlepicture.eps} \end{figure} \end{abstract} \maketitle leads to the picture printed on a separate page before the titlepage, even with the H option of the float package. Definetly not what I want. Thanks for any ideas Engelbert Buxbaum ---------- Message: 3 Date: Thu, 09 Mar 2000 11:40:10 +0000 From: Serkan Impram Organization: csc, umist To: texhax@tex.ac.uk Subject: theorem.sty hi, i'm using the theorem.sty file but i cannot change the line spacing settings it uses by default - the spacings it leaves before and after a , say a theorem or lemma. how can i force it to leave exactly one blank line before and after the theorem (or lemma or definiton) irrespective of what is before and after the theorem ? could you please help me if you know a solution ? thanks in advance, serkan. ---------- Message: 4 Date: Thu, 27 Apr 2000 17:13:08 -0400 (EDT) From: Roger Price To: texhax@tex.ac.uk Subject: Global variables Dear List, I use teTeX (tetex-0.4pl8-11.src.rpm). I am trying to define a LaTeX class in which two environments A and B communicate via global variables (booleans). I wish to check that the environments are being used in the correct order. In the main code section of the class file (see the LaTeX Companion p.468) I declare three booleans: \newboolean{P@rt0} \setboolean{P@rt0}{true} % Initial value = true \newboolean{P@rt1} % Initial value = false \newboolean{P@rt2} % Initial value = false and a command which will check that A and B are in the correct order. The first argument is the number of the previous part, the second is the number of the current part. \newcommand{\CheckOrder}[2]{\ifthenelse{\boolean{P@rt#1}} {\setboolean{P@rt#2}{true} \typeout{Correct order.} } {\setboolean{P@rt#2}{true} \typeout{Incorrect order.} }} The environment declarations are \newenvironment{A}{\CheckOrder{0}{1}}{} \newenvironment{B}{\CheckOrder{1}{2}}{} The document instance contains the environments in the correct order: \begin{document} \begin{A} Hello \end{A} \begin{B} World \end{B} \end{document} xdvi shows the correct "Hello World", but the console output is: Correct order. Incorrect order. Why can't environments A and B communicate with each other? Is this because P@rt0, P@rt1 and P@rt2 are not global variables? How does one create global variables in LaTeX? My apologies if this is a FAQ. Any help would be much appreciated. Roger rprice@cs.uml.edu ---------- Message: 5 Date: Wed, 3 May 2000 17:10:32 +0100 (BST) From: Roger Gawley To: texhax@nottingham.ac.uk Subject: Plain text from LaTeX We have a demand to word-count LaTeX documents. Leaving aside issues like just what is a word, we have several thoughts involving such routes as dvitype of latex2html. Does anyone have or know of either a program to count the word in a latex document or (even better) a program to extract a plain text representation from a dvi file? Roger Gawley IT Service Durham University ---------- Message: 6 Date: Wed, 24 May 2000 00:55:38 -0400 From: "Goode, Kenny" Subject: LaTeX printing question To: "'texhax@tex.ac.uk'" To someone smarter than me, Is there a way to add a printer to the list of printers found in the Windows NT version of LaTeX? In other programs, such as PageMaker, you add a PostScript Printer Definition file to the program directory structure and it picks up the printer to add to the list. I'm trying to print to a Xerox DocuTech 65 laser printer. It wants to use 1200 dpi graphics support. If I select a 1200 dpi printer such as a Varityper, my printed text is correct, but it's white text in black boxes. If you have a suggestion, I'd be very pleased to hear back from you. Thanks much in advance, Kenny Goode ---------- Message: 7 Date: Wed, 24 May 2000 15:40:02 +0100 To: texhax@tex.ac.uk From: "Massimo Pinto" Subject: Migration form WBiBdB to what (on Linux) ? Hello, as I am beggining to use LaTeX on my laptop running Linux, I was wondering what' your opinion on a Bibliography data base package, holding BiBTeX archives, that does approximately the same job as WBiBdB for Windows32s. I have also used EndNote just for downloading a reference from a Web-medical database, PubMed. This feature is very convenient and it would be nice to know whether the application that you will suggest has got such a functionality as well, or may be it can be implemented? All the best Massimo -------- -------- -------- -------- -------- -------- Massimo Pinto Gray Laboratory Cancer Research Trust P.O. box 100 Mount Vernon Hospital Northwood Middx HA6 2JR United Kingdom ph: +44(0)1923.828611 fax: +44(0)1923.835210 pinto@graylab.ac.uk -------- -------- -------- -------- -------- ------- ---------- Message: 8 Date: Mon, 15 May 2000 12:02:30 +0400 (MSD) From: Igor Katkov To: texhax@tex.ac.uk Subject: Roman type Greek letters Hello! Could anyone tell whether it's possible to make Greek letters look like Roman type? Should I look for special font (if it exists?) with such symbols or are there other ways to settle the problem? Thank You very much. All the best, Igor ---------- Message: 9 From: "andrej t. hocevar" To: Subject: psfonts Date: Mon, 29 May 2000 16:26:32 +0200 charset="iso-8859-1" hey, could someone, please, tell me how to configure my emtex latex2e to understand that i want to use ps fonts? i have downloaded several packages for this reason but i somehow don't seem to be smart enough to make them work. the readmes and other documentation usualy says something like move the ... files to a directory, where tex can find them and so on. i cannot do it. i won't work. which are the directories? which directory structure is to be used? or do i simply move the files in question to the _ directory? and what are the commands, then? thank you very much. i know this can be a painful question. thank's again. ---------- About TeXhax... For information on the TeX Users Group, please send a message to office@tug.org, or write TeX Users Group, 1466 NW Front Avenue, Suite 3141, Portland, OR 97209-2820 USA (phone: 1 503 223 9994, fax: 1 503 223 3960). Send TeXhax mailing list submissions to texhax@tex.ac.uk To subscribe or unsubscribe via the web, visit http://lists.nottingham.ac.uk/mailman/listinfo/texhax or, via email, send a message with subject or body 'help' to texhax-request@tex.ac.uk You can reach the person managing the list at texhax-admin@tex.ac.uk End of TeXhax Digest