MicroTeX icon indicating copy to clipboard operation
MicroTeX copied to clipboard

Itemize doesn't render correctly

Open afalkenhahn opened this issue 1 year ago • 2 comments

When trying to render the following text with MicroTeX using the Cairo backend:

\begin{itemize} \item item1. \item item2 \item item3 \end{itemize}

I get this result:

itemize

As you can see, it's all on a single line instead of multiple lines. What can be done to make this render correctly?

afalkenhahn avatar May 19 '24 14:05 afalkenhahn

I have a similar issue where \begin(document} environments seem to get rendered literally (using graphic_cairo.h in the openmath branch as well). I'm not quite sure where to look in the code to add support for additional environments like \begin{itemize} or \begin{document}

Shootfast avatar Aug 07 '24 02:08 Shootfast

@Shootfast look at lib/macro/macro_def.cpp. The document environment can probably just be a no-op, but itemize will probably need custom code written for it.

sp1ritCS avatar Aug 07 '24 07:08 sp1ritCS