NanoMichael / MicroTeX

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

Itemize doesn't render correctly #175

Open afalkenhahn opened 4 months ago

afalkenhahn commented 4 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 1 month 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 1 month 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.