[NTG-pdftex] outpu tfile in pdftex

Taco Hoekwater taco@elvenkind.com
Mon Jul 5 10:53:10 CEST 2004


This is a multi-part message in MIME format.

--Multipart=_Mon__5_Jul_2004_11_53_10_+0200_NqvUwkQgwl0lH5Bz
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Hi,

The attached 3-line patch should do the trick. It saves the 'current name'
before calling prompt_input () and restores that value when the net 
result of prompt_input() is empty.

This changes all cases where tex explicitly asks for a file name on the terminal,
not just the one for pdf file. I think this is ok, because similar 'null file' problems
appear in all cases of the keypress "<return>".

On Mon, 05 Jul 2004 10:14:04 +0200, Hans wrote:

> Hi,
> 
> Since we're in 'making pdftex robust' mode ...
> 
> when the pdf file cannot be written, pdftex asks for a filename; is it 
> possible to replace en empty name (one hits return after closing the 
> file in acroread for instance) by the 'normal' one? Now er can get funny 
> names like .pdf and such; so:
> 
> while invalidfile
>   asknameonconsole
>   useoriginalname if emptyname
> end
> 
> Hans
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> 
> _______________________________________________
> ntg-pdftex mailing list
> ntg-pdftex@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-pdftex


-- 
groeten,

Taco

--Multipart=_Mon__5_Jul_2004_11_53_10_+0200_NqvUwkQgwl0lH5Bz
Content-Type: application/octet-stream;
 name="empty_filename.patch"
Content-Disposition: attachment;
 filename="empty_filename.patch"
Content-Transfer-Encoding: base64

LS0tIHBkZmV0ZXgud2ViCTIwMDQtMDctMDUgMTE6NDk6NTYuNDkxODc2Mjg3ICswMjAwCisrKyBw
ZGZldGV4LndlYi5vcmcJMjAwNC0wNy0wNSAxMTo0MTo0Ny4wMjUwMTE0MjggKzAyMDAKQEAgLTEw
OTA1LDcgKzEwOTA1LDYgQEAKIEB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