![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 2/6/20 10:26 PM, Wolfgang Schuster wrote:
On Thu, 6 Feb 2020 22:04:47 +0100 Pablo Rodriguez wrote:
[...] At least, creating and removing empty files with Lua would be more portable. And not having to use an external file would be better.
Your example is still very confusing and I have no idea what you're trying to achieve. They way to go depends also what you try to achieve, when you need an exact copy of the first page the above is the way to go.
Sorry again for the poor explanation, Wolfgang. I must recognize that I need this as a workaround to avoid crap at work (and that is all I’m allowed to explain there). I need an exact copy of the first page in the documents that only contain a single page. Sorry, I cannot provide a minimal sample (only an explanation [and I’m not sure it would be minimal]). What I discovered after my previous message is that both "\savebuffer[whatever][αβδ.γεζ]" and "\ctxlua{os.remove([[\jobname]].."-αβδ.γεζ")}" are portable ways of creating and removing empty files.
Another way is to use a make file (or a ctx-file for ConTeXt) to add a image of the first page to your document afterwards.
I’m not sure I’m getting this: do you mean something similar to \typesetbuffer? Many thanks for your help, Pablo -- http://www.ousia.tk