为什么这不起作用?
[asy]
pair A = (5, 12);
pair B = (0, 0);
pair C = (5 + 2035/69, 0);
pair D = (10, 0);
pair E = (5/2 + 2035/138, -400/23);
draw(A--B--C--cycle);
draw(A--D);
draw(B--E--C);
draw(D--E);
draw(anglemark(B, A, D, 75), blue);
draw(anglemark(D, A, C, 75), blue);
draw(anglemark(E, B, D, 75), blue);
Path g=((0,0)--(5,12));
pathticks(path g, int n=1, real r=.5, spacing=1, s=2);
label("$A$", A, N);
label("$B$", B, NW);
label("$C$", C, NE);
label("$D$", D, NE);
label("$E$", E, S);
[/asy]
答案1
欢迎!这是运行的版本。如果您还没有下载,请下载奥林匹克运动会。则以下操作不会导致错误:
\documentclass{standalone}
\usepackage{asypictureB}
\begin{document}
\begin{asypicture}{name=Label}
import olympiad;
pair pA = (5, 12);
pair pB = (0, 0);
pair pC = (5 + 2035/69, 0);
pair pD = (10, 0);
pair pE = (5/2 + 2035/138, -400/23);
draw(pA--pB--pC--cycle);
draw(pA--pD);
draw(pB--pE--pC);
draw(pD--pE);
draw(anglemark(pB, pA, pD, 75), blue);
draw(anglemark(pD, pA, pC, 75), blue);
draw(anglemark(pE, pB, pD, 75), blue);
path g=((0,0)--(5,12));
//pathticks(g,10);
label("$A$", pA, N);
label("$B$", pB, NW);
label("$C$", pC, NE);
label("$D$", pD, NE);
label("$E$", pE, S);
\end{asypicture}
\end{document}
至于pathticks
,我不知道你想的是什么。
编辑:更改了点/对的名称,非常感谢@OG 告知我潜在的陷阱。