NanoMichael / MicroTeX

A dynamic, cross-platform, and embeddable LaTeX rendering library
MIT License
435 stars 74 forks source link

Itemize doesn't render correctly #175

Open afalkenhahn opened 6 months ago

afalkenhahn commented 6 months ago

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?

Shootfast commented 3 months ago

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}

sp1ritCS commented 3 months ago

@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.