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 -----------------------------------------------------------------
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
On 2004-07-05 11:53:10 +0200, Taco Hoekwater wrote:
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 seems like a case for Olaf, as pdfTeX currently doesn't change the routine. Olaf? Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
Martin Schröder writes:
On 2004-07-05 11:53:10 +0200, Taco Hoekwater wrote:
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 seems like a case for Olaf, as pdfTeX currently doesn't change the routine.
Olaf?
I'd like to see more opinions on this. Please propose on the tex-live list. -- Olaf Weber (This space left blank for technical reasons.)
participants (4)
-
Hans Hagen
-
Martin Schröder
-
Olaf Weber
-
Taco Hoekwater