提问于:
浏览数:
1692
```
\documentclass{ctexart}
\usepackage[a4paper,hmargin={1.5cm},vmargin={2.0cm}]{geometry}
\usepackage{fancyhdr}
\pagestyle{empty}
\fancyhf{}
\setCJKmainfont[BoldFont={FZYingBiKaiShu-S15S}, ItalicFont={FZYingBiKaiShu-S15S}]{FZYingBiKaiShu-S15S}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\begin{document}
\begin{tikzpicture}[scale=1]
\draw[red!80, dash pattern=on 2.5pt off 2.5pt](0,-1.5)grid[step=0.75cm](16.5, 24-1.5);
\draw[step=1.5cm, red!90, semithick](0,-1.5) grid(16.5, 24-1.5);
\draw[red!90, line width=3.5pt](-0.1,-1.5-0.1) rectangle(16.6, 24-1.5+0.1);
\draw (8.4, 23.4)node{\scalebox{1.8}{汉字书写}{下}};
\draw (0.75, 21.75) node[black!100]{\scalebox{2}{咸}};
\draw (0.75, 18.75) node[black!100]{\scalebox{2}{成}};
\draw (0.75, 15.75) node[black!100]{\scalebox{2}{代}};
\draw (0.75, 12.75) node[black!100]{\scalebox{2}{来}}
\draw (0.75, 9.75) node[black!100]{\scalebox{2}{末}};
\draw (0.75, 6.75) node[black!100]{\scalebox{2}{子}};
\draw (0.75, 3.75) node[black!100]{\scalebox{2}{卿}};
\draw (0.75, 0.75) node[black!100]{\scalebox{2}{東}};
\end{tikzpicture}
\end{document}
```
之前还是能运行编译且成功的,但是现在是texlive2019没反应!并且拿到之气能成功的texlive2017下也没反应!
怎么回事
1 回答
0
\draw (0.75, 12.75) node[black!100]{\scalebox{2}{来}};
这一行,最后少了分号!
另外,我没有你那个字体,所以注释了字体相关代码,修改后的代码如下 :
```tex
\documentclass{ctexart}
\usepackage[a4paper,hmargin={1.5cm},vmargin={2.0cm}]{geometry}
\usepackage{fancyhdr}
\pagestyle{empty}
\fancyhf{}
%\setCJKmainfont[BoldFont={FZYingBiKaiShu-S15S}, ItalicFont={FZYingBiKaiShu-S15S}]{FZYingBiKaiShu-S15S}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\begin{document}
\begin{tikzpicture}[scale=1]
\draw[red!80, dash pattern=on 2.5pt off 2.5pt](0,-1.5)grid[step=0.75cm](16.5, 24-1.5);
\draw[step=1.5cm, red!90, semithick](0,-1.5) grid(16.5, 24-1.5);
\draw[red!90, line width=3.5pt](-0.1,-1.5-0.1) rectangle(16.6, 24-1.5+0.1);
\draw (8.4, 23.4)node{\scalebox{1.8}{汉字书写}{下}};
\draw (0.75, 21.75) node[black!100]{\scalebox{2}{咸}};
\draw (0.75, 18.75) node[black!100]{\scalebox{2}{成}};
\draw (0.75, 15.75) node[black!100]{\scalebox{2}{代}};
\draw (0.75, 12.75) node[black!100]{\scalebox{2}{来}};
\draw (0.75, 9.75) node[black!100]{\scalebox{2}{末}};
\draw (0.75, 6.75) node[black!100]{\scalebox{2}{子}};
\draw (0.75, 3.75) node[black!100]{\scalebox{2}{卿}};
\draw (0.75, 0.75) node[black!100]{\scalebox{2}{東}};
\end{tikzpicture}
\end{document}
```
-
回复 xaero :是分号!分号是tikz语句的结束标志。 – registor 2019-10-31 19:32 回复
-
谢谢!少个逗号 就这样了:( – xaero 2019-10-31 19:21 回复
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。