-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when code contains non english comments, \newtcbinputlisting fails to show the comments! #131
Comments
Please edit your issue to (always) mark the codes as fenced code blocks in GitHub Flavored Markdown. For example,
This avoids wrongly creating issue references to |
@zqudm You didn't specify the capable font used to typeset Chinese. You may find
This is reproducible in the following simpler example, hence has nothing to do with % compile with xelatex or lualatex
\documentclass{article}
\begin{document}
中文
\end{document} Loading |
including |
It depends, and is off-topic here. Try tex.stackexchange.com or https://github.com/CTeX-org/forum instead. |
First , the code to be highlighted is shown as follows:
import numpy as np
a = np.array([1,2,3]) #这里是中文注释
print (a)
the above code is saved in a file named 'list1.py'
the latex source code is shown as follows:
However, after compiling the latex code above to a pdf document, the comment in the source code does not exist. How to solve this issue? Thanks!
The text was updated successfully, but these errors were encountered: