xunicode&xeCJK TeX 容量超出,抱歉 [输入堆栈大小=5000]。 \begin{document}

xunicode&xeCJK TeX 容量超出,抱歉 [输入堆栈大小=5000]。 \begin{document}

我正在使用 moderncv 制作我的中文简历,但遇到了一些问题。我花了一下午的时间寻找解决方案,但没有奏效。我在 win10 中使用 texlive2019。请帮忙。提前谢谢。

\documentclass[14pt,a4paper]{moderncv}
\usepackage{xunicode}
\usepackage{xeCJK}
\name 啊啊
\begin{document}
    啊啊啊
\end{document}

此外,我还收到了一些警告,例如:

Unknown slot number of character(microtype) `\`A'(microtype) in font encoding `TU' in inheritance list(microtype) `microtype.cfg/376(protrusion)'.
Unknown slot number of character(microtype) `\'A'(microtype) in font encoding `TU' in inheritance list(microtype) `microtype.cfg/376(protrusion)'.
Unknown slot number of character(microtype) `\^A'(microtype) in font encoding `TU' in inheritance list(microtype) `microtype.cfg/376(protrusion)'.

我认为这是 xunicode 或 xeCJK 的问题。并且我确保我的 microtype 已更新。

它在 overleaf.com 上不起作用。

更新:当我不使用 xunicode 时,它​​可以工作。但是当我在文档中使用 itemize 时,我遇到了另一个问题:

\documentclass[14pt,a4paper]{moderncv}
\moderncvstyle{classic}
\usepackage{xeCJK}
\name {啊}{}
\begin{document}
    \section{}
    \cventry{}{}{}{}{}{
    \begin{itemize}
            \item 啊
    \end{itemize}}
\end{document}

我得到了一些这样的信息:

name = umvs, rootname = umvs, pointsize = mktexmf: empty or non-existent rootfile!

Cannot find font umvs in map file(s).

kpathsea: Running mktexmf umvs.mf The command name is C:\texlive\2018\bin\win32\mktexmf Cannot find umvs.mf . I try ps2pk --> gsftopk --> ttf2pk --> hbf2gf. ps2pk cannot be used. I try gsftopk. gsftopk.exe umvs 600 gsftopk cannot be used. Next I try ttf2pk. ttf2pk.exe -q umvs 600 ttf2pk failed. Finally I try hbf2gf. hbf2gf.exe -q -p umvs 600 All trials failed. kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 umvs The command name is C:\texlive\2018\bin\win32\mktexpk kpathsea: Appending font creation commands to missfont.log. xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output... No output PDF file written.

答案1

不要使用 xunicode 包。它现在已经过时了。

这可以编译(但我不知道应该如何正确设置名称):

\documentclass[14pt,a4paper]{moderncv}
\usepackage{xeCJK}
\name{啊啊}{}
\begin{document}
    啊啊啊
\end{document}

相关内容