16 Dec
2023
16 Dec
'23
9:44 p.m.
Am 16.12.23 um 22:30 schrieb Joel via ntg-context:
With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore the rest of the lines.
With \typebuffer you can define a "range", see https://wiki.contextgarden.net/Command/typebuffer But I guess you should write a Lua function that suits your use case. Hraban