I am working on a custom (lua) writer for PreTeXt (
https://pretextbook.org/), which I use to write open math textbooks. In terms of syntax, PreTeXt is xml and is very similar to docbook, so a lot of what I need was easily modified from the sample.lau custom writer.
What I haven't been able to figure out is how to wrap sections in <section> tags. That is, in the built in docbook writer, if you have a header, I think it creates a section with a title around the appropriate content. Is there any way to do this with a custom lua writer?
Perhaps a better approach would be to contribute a new built in writer by modifying the docbook writer. I think there would be a good number of people who would find this writer useful. Would such a contribution be considered?
Thanks,
Oscar.