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:
\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}
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: