我正在使用 Sphinx 构建一个使用列表和一些框字符的项目。我遇到以下错误:
Missing character: There is no ─ in font [lmmono9-regular]:!
Missing character: There is no ┬ in font [lmmono9-regular]:!
Missing character: There is no ─ in font [lmmono9-regular]:!
Missing character: There is no ┦ in font [lmmono9-regular]:!
Missing character: There is no │ in font [lmmono9-regular]:!
Missing character: There is no │ in font [lmmono9-regular]:!
例如我的 RST 文件中有以下内容:
.. code-block:: text
┌─┬─┬─┬─┬─┬─┬─┬─┐
│0│1│0│1│0│0│1│1│ = 0b1010011 = 83
└─┴─┴─┴─┴─┴─┴─┴─┘
其被翻译成:
\begin{sphinxVerbatim}[commandchars=\\\{\}]
┌─┬─┬─┬─┬─┬─┬─┬─┐
│0│1│0│1│0│0│1│1│ = 0b1010011 = 83
└─┴─┴─┴─┴─┴─┴─┴─┘
\end{sphinxVerbatim}
我可以做哪些改变来支持普通的unicode字符?
我使用以下命令构建 tex 文件:
latexmk -xelatex -pdf main.tex
答案1
我建议这样做:
\usepackage{xeCJK}
\usepackage{lstfiracode}
\setCJKmainfont{ipaexm.ttf}
\setmonofont{Fira Code}