lvjr / codehigh

Highlight codes and demos with l3regex and lpeg
https://ctan.org/pkg/codehigh
11 stars 6 forks source link

"demohigh" environment displaystyle mathematical formula bug #8

Open Meiting-Wang opened 2 years ago

Meiting-Wang commented 2 years ago

Hello Mr. Lu. I find that demonstrating displaystyle mathematical formula will have a bit of a typographical clutter as follows:

image

Best wishes

PS. my system: win10 Tex Live version: TeX 3.141592653 (TeX Live 2022) tlmgr update time: August 6, 2022 My MWE:

\documentclass{article}
\usepackage[tbtags]{mathtools}
\usepackage{lipsum}
\usepackage{codehigh}
\CodeHigh{style/main=azure9,style/code=azure9}

\begin{document}

\begin{demohigh}[language=latex/math]
\begin{gather}
    a+b=c
\end{gather}
\end{demohigh}

\begin{demohigh}[language=latex/math]
\lipsum[1][1]
\begin{gather}
    a+b=c
\end{gather}
\end{demohigh}

\end{document}