blefloch / latex-morewrites

Always room for a new write
6 stars 0 forks source link

Simply dispatch to streams if fewer than 15 files are open #2

Closed blefloch closed 7 years ago

blefloch commented 10 years ago

Most often, there is no need to use the full machinery of putting each write into a file, rereading right away and collecting in a tl, before writing the whole file in one go. When there are still some streams available, I can go the faster route of using one of the available streams.

blefloch commented 10 years ago

This should also allow to do useful stuff for input streams.

blefloch commented 9 years ago

Maybe this should be what LaTeX3 does: let stream numbers go above 16, mapping them at point of use to valid TeX numbers.

blefloch commented 7 years ago

I went for a slightly easier way of asking the user to decide how many streams morewrites can use. Then morewrites sends material to files directly if morewrites-managed streams are available. The reason for not using the maximum number of streams for morewrites is that expl3 may (in some versions?) be using the original \newwrite not patched by morewrites.