Closed blefloch closed 7 years ago
This should also allow to do useful stuff for input streams.
Maybe this should be what LaTeX3 does: let stream numbers go above 16, mapping them at point of use to valid TeX numbers.
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
.
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.