[NTG-pdftex] input
Hans Hagen
pragma at wxs.nl
Sun Jul 3 22:51:47 CEST 2005
Reinhard Kotucha wrote:
>>>>>>"Hans" == Hans Hagen <pragma at wxs.nl> writes:
>
>
> > Reinhard Kotucha wrote:
>
> >> Hi, if you provide new primitives, it would be nice to have a
> >> switch which forces \pdfopenout to create a file with the name
> >> <filename>.
> >>
> >> It's quite annoying that `\openout\x=Makefile' creates a file
> >> `Makefile.tex'.
>
> > how about instead of a switch an extra:
>
> > \pdfopenoutfile {filename}
>
> Hans, I meant `switch' in a more general way.
>
> 1. A command-line switch would be possible but that would determine
> the behaviour of all occurrences of \pdfopenoutfile within the
> current job.
>
> 2. Another solution would be a prefix command like \immediate. This
> can be useful if it can be applied to some other primitives. But
> since we need it for opening a file only, it doesn't look like a
> good solution.
>
> 3. A primitive that acts like a switch, like \pdfcompresslevel would
> be possible.
>
> 4. The best solution is certainly to add an optional argument to
> \pdfopenoutfile. This would avoid the need for new primitives
> (which reduces the probability of name clashes).
>
> I prefer 4., and if people need a switch (3.) then they can do that by
> macro programming.
yet another alternative is
5. \pdfdefaultoutsuffix{toks}
so that we can say \pdfdefaultoutsuffix{} to get rid of the funny default
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
-----------------------------------------------------------------
More information about the ntg-pdftex
mailing list