Skip to content

Extra space appearing when generating Chinese strings into PDF file in Latex #466

@hnsylzg

Description

@hnsylzg

An extra space appearing when generating Chinese strings into PDF file in Latex
E.g. when I try to write print("你好"), after converting into pdf file format, the pdf one will add an extra space, like the below pic.

The env tools: xelatex

Additionly, pervious version didn't appear this issue, after updated the TeX live 2025, the extra space issue occurred.

\documentclass{ctexart}
\usepackage{minted}
\begin{document}
\begin{minted}{python}
def hello_world():
    print("你好")
\end{minted}
\end{document}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions