summaryrefslogtreecommitdiff
path: root/info/digests/texhax/02/texhax.04
blob: 7c9c866fbc199c34d9235a33f7d098beffdd2ee6 (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
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
From: texhax-request@tex.ac.uk
Subject: TeXhax digest, Vol 2002 #4 - 8 msgs
Date: Fri, 12 Apr 2002 11:05:05 +0100

Send TeXhax mailing list submissions to
	texhax@tex.ac.uk

To subscribe or unsubscribe via the World Wide 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

When replying, please edit your Subject line so it is more specific
than "Re: Contents of TeXhax digest..."

TeXhax Digest ________________________________________ Volume 2002 : Number 4

Today's Topics:

   1. ALternate images in a PDF file (Joel Coltoff)
   2. TUG 2002: further call for papers (Robin Fairbairns)
   3. Side by side (Roger Gawley)
   4. Re: Side by side (Hartmut Henkel)
   5. Q: \time command? (Andreas Hadjiprocopis)
   6. Re: Q: \time command? (Robin Fairbairns)
   7. Re: Q: \time command? (Nelson H. F. Beebe)
   8. Re: Q: \time command? (John W. Shipman)

--__--__--

Message: 1
Date: Tue, 26 Feb 2002 13:33:57 -0500 (EST)
From: Joel Coltoff <joel@wmi.com>
To: <TeXhax@tex.ac.uk>
Subject: ALternate images in a PDF file

Hi,

I think I know what I want. I'm just not sure if it can be done
or how to get there if it can. What I want to do is have two versions
of each image in a file. If the printer is color capable then I
want to use image A. If not then use image B. Sound simple enough.
I can even do it in postscript. The problem is that when you distill
it the black and white stuff gets thrown away. I've not used pdftex
but as best as I can tell it supports the alternate image capabilities
of PDF. Does this give me what I want/need? All I've gotten so far is
the PDFTeX User Manual. Is there something else that shows some examples
of how to do this? A gentle nudge down the correct path would be greatly
appreciated.

Thanks.

--
Joel Coltoff

Blessed is the man who, having nothing to say, abstains from giving
wordy evidence of the fact.
    -- George Eliot

--__--__--

Message: 2
To: tug-board@tug.org, tub-prod@csit.fsu.edu, office@tug.org,
    texhax@tex.ac.uk, tex-eds@nic.surfnet.nl
cc: tug2002@tug.org.in, Robin.Fairbairns@cl.cam.ac.uk
Subject: TUG 2002: further call for papers
Date: Fri, 08 Mar 2002 10:02:25 +0000
From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>

Followup call for papers --

TUG 2002 Annual Meeting and Conference
September 1-7, Trivandrum, India
======================================

Even though the official deadline has passed, there is still time to
submit a proposal for a paper to be presented at the most exciting TeX
event of 2002, the international conference of TeX Users Group is
scheduled to be conducted in India during September 1--7, 2002 at Park
Center, Technopark, Trivandrum, Kerala.

The theme for TUG 2002 is `Stand up and be proud of TeX!'.  Show us
why it is still the typesetting tool of choice, the range of material
it can handle, and especially how it can coexist with the new world of
XML. We want to hear about

    * using TeX to typeset XML
    * multilingual typesetting using Omega
    * high-quality hyperdocuments using pdfTeX
    * fonts for non-Latin languages
    * new directions for Metafont and Metapost

Full conference details can be found at

   http://www.tug.org.in/tug2002/

Proposals for papers should be sent to papers@tug2002.tug.org.in

We can accept proposals for a further two weeks (until the end of
March 2002), and will notify authors of the acceptance at the end of
that period.  Other dates are:

    * 12 April 2002: preliminary program available
    * May 2002: send first version of full paper
    * July 2002: send final version of full paper
    * 4th-7th September 2002: TUG conference in India

Email addresses for contact:

   tug2002@tug.org.in         -- General information
   papers@tug2002.tug.org.in  -- Submission of papers
   finance@tug2002.tug.org.in -- Financial matters
   travel@tug2002.tug.org.in  -- Travel information
   media@tug2002.tug.org.in   -- Media contact

Robin Fairbairns
For TUG 2002 Organising Committee

[please circulate this as widely as seems appropriate; in particular,
if you have membership mailing lists, please consider forwarding this
message, or a pointer to the conference web site, to the list.]

--__--__--

Message: 3
Date: Wed, 10 Apr 2002 11:41:23 +0100 (BST)
From: Roger Gawley <Roger.Gawley@durham.ac.uk>
To: texhax@tex.ac.uk
Subject: Side by side

Can anyone help? I am trying to format a document using plain TeX. There
any many instances of a structure like this:

   Concertina Workshop                         Now out of print but
   Tutor for the English Concertina            excellent if you can
   by Alistair Anderson                        get it. Folk oriented.
   Topic Records Ltd                           Accompanying record
   50 Stroud Green Road                        used to be available, but
   London N4 3EF                               not necessary.(Authorised)
   England                                     photocopies available from
                                               Andy's Front Hall,
                                               Voorheesville, NY
.
I have tried to adapt a macro that I have used for addresses for years
(if you are the long-forgotten contibutor of this macro, many thanks)

\def\address#1=#2={\hbox{\hsize3truein\vtop{#1}\hfil\vtop{#2}}\bigskip}
{\obeylines
\address
Tony Young
Mowbray House
Crook
Co. Durham
DL15 9JG
=
Roger Gawley
17 Dryburn Road
Durham
DH1 5AJ
=
}% stop obeying lines

But I really want lines to be obeyed in the lefthand box, #1, but not in
the righthand, #2, box. It seems that \obeylines is more subtle than I
though because no ammount of moving it around seems to produce what I am
after.

Can anyone spot what I am missing, or more positively, tell me how to get
the effect I am after?

--__--__--

Message: 4
Date: Thu, 11 Apr 2002 10:01:05 +0200 (CEST)
From: Hartmut Henkel <henkel@vh-s.de>
To: Roger Gawley <Roger.Gawley@durham.ac.uk>
cc: TeXhax <texhax@tex.ac.uk>
Subject: Re: Side by side

Dear Roger,

with inspiration from Salomon's Advanced TeXBook I found the following:

{\obeylines
  \gdef\aaa#1=#2\endblk{
    \hbox to 140pt{
      \vtop{\hsize=50pt
        \parindent=0pt
        #1}
      \hss
      \vtop{\hsize=90pt
        \parindent=0pt
        \let^^M\space
        #2}}
    \endblk
  }
}

\def\startblk{\hrule\bgroup\obeylines\aaa}
\def\endblk{\egroup\hrule}

\startblk
  Hello
  You
  out there
  in a
  Stack!
=
  Hello
  You
  out
  there
  in a
  Paragraph!
\endblk

\bye

Best Regards

Hartmut

On Wed, 10 Apr 2002, Roger Gawley wrote:

> Can anyone help? I am trying to format a document using plain TeX. There
> any many instances of a structure like this:
>
>    Concertina Workshop                         Now out of print but
>    Tutor for the English Concertina            excellent if you can
>    by Alistair Anderson                        get it. Folk oriented.
>    Topic Records Ltd                           Accompanying record
>    50 Stroud Green Road                        used to be available, but
>    London N4 3EF                               not necessary.(Authorised)
>    England                                     photocopies available from
>                                                Andy's Front Hall,
>                                                Voorheesville, NY
>
> I have tried to adapt a macro that I have used for addresses for years
> (if you are the long-forgotten contibutor of this macro, many thanks)
>
> \def\address#1=#2={\hbox{\hsize3truein\vtop{#1}\hfil\vtop{#2}}\bigskip}
> {\obeylines
> \address
> Tony Young
> Mowbray House
> Crook
> Co. Durham
> DL15 9JG
> =
> Roger Gawley
> 17 Dryburn Road
> Durham
> DH1 5AJ
> =
> }% stop obeying lines
>
> But I really want lines to be obeyed in the lefthand box, #1, but not in
> the righthand, #2, box. It seems that \obeylines is more subtle than I
> though because no ammount of moving it around seems to produce what I am
> after.
>
> Can anyone spot what I am missing, or more positively, tell me how to get
> the effect I am after?
>
> _______________________________________________
> TeXhax mailing list
> TeXhax@tex.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/texhax

------------------------------------------------------------------------
Dr.-Ing. Hartmut Henkel
von Hoerner & Sulger GmbH
Schlossplatz 8, D-68723 Schwetzingen, Germany
E-Mail henkel@vh-s.de
WWW http://www.vh-s.de
------------------------------------------------------------------------

--__--__--

Message: 5
Date: Thu, 11 Apr 2002 10:32:40 +0100 (BST)
From: Andreas Hadjiprocopis <livantes@soi.city.ac.uk>
To: TeXhax <texhax@tex.ac.uk>
Subject: Q: \time command?

Hello texhackers,

I was wondering whether the \today command may be adjusted so as to
give me the current time as well (e.g. the time the document was
formatted with latex)

many thanks,

Andreas Hadjiprocopis                         livantes@soi.city.ac.uk
Computer Science Department    www.soi.city.ac.uk/~livantes/home.html

On Thu, 11 Apr 2002, Hartmut Henkel wrote:

> Dear Roger,
>
> with inspiration from Salomon's Advanced TeXBook I found the following:
>
> {\obeylines
>   \gdef\aaa#1=#2\endblk{
>     \hbox to 140pt{
>       \vtop{\hsize=50pt
>         \parindent=0pt
>         #1}
>       \hss
>       \vtop{\hsize=90pt
>         \parindent=0pt
>         \let^^M\space
>         #2}}
>     \endblk
>   }
> }
>
> \def\startblk{\hrule\bgroup\obeylines\aaa}
> \def\endblk{\egroup\hrule}
>
> \startblk
>   Hello
>   You
>   out there
>   in a
>   Stack!
> =
>   Hello
>   You
>   out
>   there
>   in a
>   Paragraph!
> \endblk
>
> \bye
>
> Best Regards
>
> Hartmut
>
> On Wed, 10 Apr 2002, Roger Gawley wrote:
>
> > Can anyone help? I am trying to format a document using plain TeX. There
> > any many instances of a structure like this:
> >
> >    Concertina Workshop                         Now out of print but
> >    Tutor for the English Concertina            excellent if you can
> >    by Alistair Anderson                        get it. Folk oriented.
> >    Topic Records Ltd                           Accompanying record
> >    50 Stroud Green Road                        used to be available, but
> >    London N4 3EF                               not necessary.(Authorised)
> >    England                                     photocopies available from
> >                                                Andy's Front Hall,
> >                                                Voorheesville, NY
> >
> > I have tried to adapt a macro that I have used for addresses for years
> > (if you are the long-forgotten contibutor of this macro, many thanks)
> >
> > \def\address#1=#2={\hbox{\hsize3truein\vtop{#1}\hfil\vtop{#2}}\bigskip}
> > {\obeylines
> > \address
> > Tony Young
> > Mowbray House
> > Crook
> > Co. Durham
> > DL15 9JG
> > =
> > Roger Gawley
> > 17 Dryburn Road
> > Durham
> > DH1 5AJ
> > =
> > }% stop obeying lines
> >
> > But I really want lines to be obeyed in the lefthand box, #1, but not in
> > the righthand, #2, box. It seems that \obeylines is more subtle than I
> > though because no ammount of moving it around seems to produce what I am
> > after.
> >
> > Can anyone spot what I am missing, or more positively, tell me how to get
> > the effect I am after?
> >
> >
> > _______________________________________________
> > TeXhax mailing list
> > TeXhax@tex.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/texhax
>
> ------------------------------------------------------------------------
> Dr.-Ing. Hartmut Henkel
> von Hoerner & Sulger GmbH
> Schlossplatz 8, D-68723 Schwetzingen, Germany
> E-Mail henkel@vh-s.de
> WWW http://www.vh-s.de
> ------------------------------------------------------------------------
>
> _______________________________________________
> TeXhax mailing list
> TeXhax@tex.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/texhax

--__--__--

Message: 6
To: Andreas Hadjiprocopis <livantes@soi.city.ac.uk>
cc: TeXhax <texhax@tex.ac.uk>
Subject: Re: Q: \time command?
Date: Thu, 11 Apr 2002 11:28:18 +0100
From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>

the ctan catalogue isn't terribly clever, but with the keyword "time"
returned (amongst lots of stuff about "times fonts")

time   Defines a macro \now to   macros/latex/contrib/supported/piff/
       print the current time.

--__--__--

Message: 7
Date: Thu, 11 Apr 2002 06:29:42 -0600 (MDT)
From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
To: TeXhax <texhax@tex.ac.uk>
Subject: Re: Q: \time command?

Andreas Hadjiprocopis <livantes@soi.city.ac.uk> asks on
Thu, 11 Apr 2002 10:32:40 +0100 (BST)

>> I was wondering whether the \today command may be adjusted so as to
>> give me the current time as well...

Instead of the \today command, use the \time command.

Here is a solution lifted from a style file that I've used for years
to get a timestamp in typeset letters:

% ----------------------------------------------------------------------
%
% TIME OF DAY
%
\newcount\hh
\newcount\mm
\mm=\time
\hh=\time
\divide\hh by 60
\divide\mm by 60
\multiply\mm by 60
\mm=-\mm
\advance\mm by \time
\def\hhmm{\number\hh:\ifnum\mm<10{}0\fi\number\mm}

Use it like this in a LaTeX document:

	\date{\today{ }\hhmm}

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: beebe@math.utah.edu  -
- Department of Mathematics, 110 LCB        beebe@acm.org  beebe@computer.org -
- 155 S 1400 E RM 233                       beebe@ieee.org                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------

--__--__--

Message: 8
Date: Thu, 11 Apr 2002 14:38:04 -0600 (MDT)
From: "John W. Shipman" <john@nmt.edu>
To: Andreas Hadjiprocopis <livantes@soi.city.ac.uk>
cc: TeXhax <texhax@tex.ac.uk>
Subject: Re: Q: \time command?

On Thu, 11 Apr 2002, Andreas Hadjiprocopis asked:

+--
| I was wondering whether the \today command may be adjusted so as to
| give me the current time as well (e.g. the time the document was
| formatted with latex)
+--

Below my .signature you will find the macros I use for timestamping
documents in the ANSI standard order (year-month-day hour:minute).

Best regards,
John Shipman (john@nmt.edu), Applications Specialist, NM Tech Computer Center,
Speare 128, Socorro, NM 87801, (505) 835-5950, http://www.nmt.edu/~john
  ``Let's go outside and commiserate with nature.''  --Dave Farber

================================================================
% today.tex: Macro to print today's date
%--
% Author: John W. Shipman, NM Tech Computer Center,
%   Socorro, NM 87801; john@nmt.edu
%--
% EXPORTED FUNCTIONS:
%   \today: Outputs today's date as ``yyyy-mm-dd''
%   \now: Outputs the current time as ``hh:dd''
%   \timestamp: \today, plus one space, plus \now
%--
\newcount\minute	% Current minute within the hour
\newcount\hour		% Current hour (24-hour type)
\newcount\hourMins  % Temporary for taking hour modulo 60
%
% - - -   \ n o w   - - -
%
\def\now%
{% Displays today's time as ``hh:mm''
%  The \time macro gives the minutes since midnight.  Compute
%  the whole hours by dividing this by 60, then find the
%  minute by effectively taking the minutes modulo 60.
%
  \minute=\time    % Number of minutes since midnight
  \hour=\time \divide \hour by 60 % Get hours
  \hourMins=\hour \multiply\hourMins by 60
  \advance\minute by -\hourMins % Hours modulo 60
%
  \zeroPadTwo{\the\hour}:\zeroPadTwo{\the\minute}%
}% --- \now ---
%
% - - -   \ t i m e s t a m p   - - -
%
\def\timestamp%
{% Displays ``yyyy-mm-dd hh:mm''
  \today\ \now
}% --- \timestamp ---
%
% - - -   \ t o d a y   - - -
%
\def\today%
{% Displays today's date and time as ``yyyy-mm-dd hh:mm''
  \the\year-\zeroPadTwo{\the\month}-\zeroPadTwo{\the\day}%
}% --- \today ---
%
% - - -   z e r o P a d T w o   - - -
%
\def\zeroPadTwo#1%
{% Left zero pad of the argument to 2 digits.  The argument
%  should be a number between 1 and 99.  This macro outputs
%  a `0' if the argument is less than ten, then it outputs
%  the argument.
%
  \ifnum #1<10 0\fi    % Conditionally output a zero
  #1%    Then output the argument
}% --- \zeroPadTwo ---

--__--__--

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).

End of TeXhax Digest