悠闲数学娱乐论坛(第2版)'s Archiver

The_Asagao 发表于 2021-8-16 20:50

为什么这样画不出来

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

色k 发表于 2021-8-16 21:06

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

The_Asagao 发表于 2021-8-16 21:21

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=40831&ptid=8152]2#[/url] [i]色k[/i] [/b][code]\documentclass[tikz]{standalone}
\usepackage{tkz-euclide}
\tikzset{xyz/.style={y={(-135:0.5cm)},x={(1cm,0)},z={(0,1cm)}}}
\tikzstyle{every node}=[font=\small]
\begin{document}
        \begin{tikzpicture}[xyz,line width=0.7pt,line join=round,scale=2.6]
                \coordinate(A)at(0,0,1);
                \coordinate(B)at(-1,0,0);
                \coordinate(C)at(1,0,0);
                \coordinate(D)at(1,2,0);
                \draw(B)--(D)--(C)--(A)--(B) (A)--(D);
                \draw[dashed,line width=0.4pt](B)--(C);
                \tkzLabelPoints[above](A);
                \tkzLabelPoints[right](C);
                \tkzLabelPoints[left](B);
                \tkzLabelPoints[below](D);
        \end{tikzpicture}
\end{document}[/code]

The_Asagao 发表于 2021-8-16 21:22

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=40831&ptid=8152]2#[/url] [i]色k[/i] [/b][code]\documentclass[tikz]{standalone}
\usepackage{tkz-euclide}
\tikzset{xyz/.style={y={(-135:0.5cm)},x={(1cm,0)},z={(0,1cm)}}}
\tikzstyle{every node}=[font=\small]
\begin{document}
        \begin{tikzpicture}[xyz,line width=0.7pt,line join=round,scale=2.6]
                \coordinate(A)at(0,0,{\sqrt(3)});
                \coordinate(B)at(-{\sqrt(3)},0,0);
                \coordinate(C)at({\sqrt(3)},0,0);
                \coordinate(D)at({\sqrt(3)},2,0);
                \draw(B)--(D)--(C)--(A)--(B) (A)--(D);
                \draw[dashed,line width=0.4pt](B)--(C);
                \tkzLabelPoints[above](A);
                \tkzLabelPoints[right](C);
                \tkzLabelPoints[left](B);
                \tkzLabelPoints[below](D);
        \end{tikzpicture}
\end{document}[/code]

kuing 发表于 2021-8-16 21:46

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=40833&ptid=8152]4#[/url] [i]The_Asagao[/i] [/b]

去掉 \sqrt(3) 的 \ 即可,即:[code]\coordinate(A)at(0,0,{sqrt(3)});
\coordinate(B)at(-{sqrt(3)},0,0);
\coordinate(C)at({sqrt(3)},0,0);
\coordinate(D)at({sqrt(3)},2,0);[/code]酱紫

The_Asagao 发表于 2021-8-22 10:24

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

kuing 发表于 2021-8-22 12:58

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=40884&ptid=8152]6#[/url] [i]The_Asagao[/i] [/b]

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

The_Asagao 发表于 2021-8-22 19:34

感谢ku版{:smile:}[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=40885&ptid=8152]7#[/url] [i]kuing[/i] [/b]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.