Similar to html. For example, using http/html_write, I can produce HTML text like this,
html(b(Text)), resulting in <HTML><B>Text*</B></HTML>, and Text* quoted if necessary.
Is there something similar for Latex output, e.g., document(emph(Text)) producing \begin{document}\emph{Text*}\end{document}? If not, I guess it is a good idea to use html_write as a starting point, isn’t it?