## 编译环境 操作系统 * [ x] Windows 7/8/10 Tex发行版 * [x ] TexLive `2020` ## 我的问题 书中第826页,有如下示例: ```tex \tikz{ \coordinate["$A$"] (A) at (2,2); \coordinate["$B$" below] (B) at (0,0); \coordinate["$C$" below] (C) at (3,0); \draw (A) -- (B) -- (C) -- cycle; \path let \p1 =($(A)-(B)$), \p2 =($(A)-(C)$), \n1 = {veclen(\x1,\y1)}, \n2 = {veclen(\x2,\y2)} in coordinate ["$D$" below] (D) at ($ (B)!scalar(\n1/(\n1+\n2))!(C) $); \draw (A) -- (D); } ``` 这段代码怎么才能编译通过? 我将其写入测试文件: ```tex \documentclass[UTF8]{ctexart} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \tikz{ \coordinate["$A$"] (A) at (2,2); \coordinate["$B$" below] (B) at (0,0); \coordinate["$C$" below] (C) at (3,0); \draw (A) -- (B) -- (C) -- cycle; \path let \p1 =($(A)-(B)$), \p2 =($(A)-(C)$), \n1 = {veclen(\x1,\y1)}, \n2 = {veclen(\x2,\y2)} in coordinate ["$D$" below] (D) at ($ (B)!scalar(\n1/(\n1+\n2))!(C) $); \draw (A) -- (D); } \end{document} ``` 系统报错: > Package pgfkeys: I do not know the key '/tikz/\"$A$\"' and I am going to ignore it. Perhaps you misspelled it.

1 回答1

0
```tex \usetikzlibrary{calc,quotes} ``` texdoc tikz, P1028
  • 非常感谢! – 五行真人 2020-08-12 14:37 回复
  • 谢谢,找到出处就好办了。 – 五行真人 2020-08-12 14:37 回复

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。