lvjr / codehigh

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

Extra vertical space with the package "ctex" or documentclass "ctex**" #6

Open Meiting-Wang opened 2 years ago

Meiting-Wang commented 2 years ago

Hello Mr. Lu, I find that both codehigh and demohigh environments have extra vertical space in the last row with the package "ctex" or documentclass "ctexart", "ctexrep", "ctexbook", but there is no such problem in documentclass "ctexbeamer", "article"...

I don't know where is the problem? Maybe codehigh and ctex are in conflict?

Thanks in advance

PS. my system: win10 compiling engine: pdflatex, xelatex and lualatex lead to the same result Tex Live version: TeX 3.141592653 (TeX Live 2022) tlmgr update time: August 6, 2022 My MWE:

image

\documentclass{article}
\usepackage{lipsum}
\usepackage{ctex}
\usepackage{codehigh}
\CodeHigh{style/main=azure9,style/code=azure9}

\begin{document}

\begin{codehigh}
There is a sentence.
There is a sentence.
There is a sentence.
There is a sentence.
There is a sentence.
There is a sentence.
\end{codehigh}

\begin{demohigh}
There is a sentence.
There is a sentence.
There is a sentence.
There is a sentence.
There is a sentence.
There is a sentence.
\end{demohigh}

\end{document}
lvjr commented 2 years ago

Thanks for your report. I will look into it later.