给中文加拼音,但是引入xpinyin宏包后相关命令显示为未知命令

2020-03-14 09:51发布

\documentclass[UTF8]{ctexart} \usepackage{tikz} \usepackage{xpinyin} \setmainfont{Courier New} \xpin...

\documentclass[UTF8]{ctexart} \usepackage{tikz} \usepackage{xpinyin} \setmainfont{Courier New} \xpinyinsetup{ratio = 0.7} \begin{document} \begin{tikzpicture} \coordinate(A)at(0,0); \draw(A)node{\Huge 大}; \draw(A) ++ (0,1) node{\large \pinyin{da4}} \end{tikzpicture} \end{document} ![](https://pics.latexstudio.net/data/images/202003/b7b251f43fbd753.png) 使用的是texlive2019+texstudio