summaryrefslogtreecommitdiff
path: root/info/digests/texhax/99/texhax.13
blob: ab133a40405c0ab626e2e22bb4db04e03bd8ffb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
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 <ywong@enme.ucalgary.ca>, texhax@tex.ac.uk
Subject: Re: TeXhax Digest, Vol 1999 #12 - 7 msgs
Organization: TRIUMF: Canada's national meson facility
From: Donald Arseneau <asnd@triumf.ca>
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"
   <maxschaefer@maxschaefer.de> 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 <engelbert@hsc.kuniv.edu.kw>
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 <mchsssti@fs5.ee.umist.ac.uk>
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 <rprice@woodworm.cs.uml.edu>
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 <Roger.Gawley@durham.ac.uk>
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" <Kenny.Goode@usa.xerox.com>
Subject: LaTeX printing question
To: "'texhax@tex.ac.uk'" <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" <pinto@graylab.ac.uk>
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 <katkov@monet.npi.msu.su>
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" <ah@siol.net>
To: <texhax@tex.ac.uk>
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