Hi folks,
I’m very new to DoenetML. I’ve had it recommended for me as a publishing platform for OER books, similar to PreTeXt. Efficient conversion from LaTeX is extremely important to me in terms of being able to adopt this platform.
Are there any deterministic conversion tools for conversion from (relatively vanilla) LaTeX documents to DoenetML? For example, a regex script that handles the most common structures and environments in LaTeX, or a Pandoc plugin?
I have searched both the documentation and this forum and have turned nothing up with the expected keywords, but I do apologize if I am asking a redundant question! In this case, I kindly request you direct me to where my question is answered.
I am aware there is an LLM-based tool for conversion, but I have both practical and ethical objections to using an LLM for this kind of task.
Many thanks for your time and consideration!
We don’t have tools to autoamtically convert from LaTeX to DoenetML. Would it work to convert from Latex to PreTeXt, for example via pretext.plus? Doenet is similar to PreTeXt, so that would get you most of the way there. We don’t have a PreTeXt-to-DoenetML converter (just the other way around). No one has asked for such a thing…
DoenetML does not have the full textbook vocabulary of PreTeXt, as it is designed for smaller activities. But, many of the basic constructions are the same.
Does that help?
Thank you, that’s all very helpful information!
For some context, I recently received an enthusiastic recommendation for DoenetML as (to my understanding of the conversation) an alternative to PreTeXt, intended for hosting full OER textbooks and other large documents. Clearly I misunderstood something along the way!
I don’t think of DoenetML as an alternative to PreTeXt. I think of it as an extension to PreTeXt for dynamical exercises and rich interactivity. You can’t print a textbook from DoenetML. To print any DoenetML, the pathway is to convert it to PreTeXt for printing.
If you want to create a full textbook, the recommended approach is to write the larger text itself in PreTeXt and use DoenetML for the interactives. When we get everything working seamlessly, the idea is that the DoenetML will be converted to static PreTeXt for print and other static version.