免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 发帖

为什么这样画不出来

红色区域说是错误的,但第二个图为什么就可以?这个根号是怎么表示?

QQ截图20210816204511.png (60.67 KB)

QQ截图20210816204511.png

QQ截图20210816204837.png (115.38 KB)

QQ截图20210816204837.png

分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友

代码复制上来啊,不然我们怎么试验

TOP

回复 2# 色k
  1. \documentclass[tikz]{standalone}
  2. \usepackage{tkz-euclide}
  3. \tikzset{xyz/.style={y={(-135:0.5cm)},x={(1cm,0)},z={(0,1cm)}}}
  4. \tikzstyle{every node}=[font=\small]
  5. \begin{document}
  6.         \begin{tikzpicture}[xyz,line width=0.7pt,line join=round,scale=2.6]
  7.                 \coordinate(A)at(0,0,1);
  8.                 \coordinate(B)at(-1,0,0);
  9.                 \coordinate(C)at(1,0,0);
  10.                 \coordinate(D)at(1,2,0);
  11.                 \draw(B)--(D)--(C)--(A)--(B) (A)--(D);
  12.                 \draw[dashed,line width=0.4pt](B)--(C);
  13.                 \tkzLabelPoints[above](A);
  14.                 \tkzLabelPoints[right](C);
  15.                 \tkzLabelPoints[left](B);
  16.                 \tkzLabelPoints[below](D);
  17.         \end{tikzpicture}
  18. \end{document}
复制代码

TOP

回复 2# 色k
  1. \documentclass[tikz]{standalone}
  2. \usepackage{tkz-euclide}
  3. \tikzset{xyz/.style={y={(-135:0.5cm)},x={(1cm,0)},z={(0,1cm)}}}
  4. \tikzstyle{every node}=[font=\small]
  5. \begin{document}
  6.         \begin{tikzpicture}[xyz,line width=0.7pt,line join=round,scale=2.6]
  7.                 \coordinate(A)at(0,0,{\sqrt(3)});
  8.                 \coordinate(B)at(-{\sqrt(3)},0,0);
  9.                 \coordinate(C)at({\sqrt(3)},0,0);
  10.                 \coordinate(D)at({\sqrt(3)},2,0);
  11.                 \draw(B)--(D)--(C)--(A)--(B) (A)--(D);
  12.                 \draw[dashed,line width=0.4pt](B)--(C);
  13.                 \tkzLabelPoints[above](A);
  14.                 \tkzLabelPoints[right](C);
  15.                 \tkzLabelPoints[left](B);
  16.                 \tkzLabelPoints[below](D);
  17.         \end{tikzpicture}
  18. \end{document}
复制代码

TOP

回复 4# The_Asagao

去掉 \sqrt(3) 的 \ 即可,即:
  1. \coordinate(A)at(0,0,{sqrt(3)});
  2. \coordinate(B)at(-{sqrt(3)},0,0);
  3. \coordinate(C)at({sqrt(3)},0,0);
  4. \coordinate(D)at({sqrt(3)},2,0);
复制代码
酱紫

TOP

那这个分数\draw [thick] (frac{1}{3},0)--(2,0);怎么改成对的?

TOP

回复 6# The_Asagao

\draw [thick] (1/3,0)--(2,0);

TOP

感谢ku版回复 7# kuing

TOP

返回列表 回复 发帖