我正在绘制一个三角形及其角度,但 tikz 在每个角的每个弧上添加了一条小线。这不应该发生,例如可以看到这里.我的代码:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{cancel}
\usepackage{amsmath}
\usepackage{makecell}
\usepackage{tikz}
\usepackage{tkz-euclide}
\begin{tikzpicture}[]
\coordinate (O) at (0,0);
\coordinate (A) at (4,0);
\coordinate (B) at (-1,2);
\draw (O)--(A)--(B)--cycle;
\tkzMarkAngle[size=0.5](A,O,B);
\tkzLabelAngle[pos = 0.25](A,O,B){$\gamma$}
\tkzMarkAngle[size=0.8cm](B,A,O)
\tkzLabelAngle[pos = 0.6](B,A,O){$\alpha$}
\tkzMarkAngle[size=0.7cm](O,B,A)
\tkzLabelAngle[pos = 0.5](O,B,A){$\beta$}
\end{tikzpicture}
\end{document}
结果如下:
如何在没有小线的情况下绘制圆弧?
答案1
在新版本3.0
的 tkz-euclide 中,默认情况下,宏\tkzMarkAngle
会用一条小线标记角度。要删除它,请添加选项mark=none
。
\tkzMarkAngle[size=0.5,mark=none](A,O,B);
要修改它,您可以选择以下选项|, ||,|||, z, s, x, o, oo
\documentclass{article}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (A) at (4,0);
\coordinate (B) at (-1,2);
\draw (O)--(A)--(B)--cycle;
\tkzMarkAngle[size=0.5,mark=none](A,O,B);
\tkzLabelAngle[pos = 0.25](A,O,B){$\gamma$}
\tkzMarkAngle[size=0.8cm,mark=none](B,A,O)
\tkzLabelAngle[pos = 0.6](B,A,O){$\alpha$}
\tkzMarkAngle[size=0.7cm,mark=none](O,B,A)
\tkzLabelAngle[pos = 0.5](O,B,A){$\beta$}
\end{tikzpicture}
\end{document}
其他商标示例: |, ||,|||, z, s, x, o, oo
\documentclass{article}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (A) at (4,0);
\coordinate (B) at (-1,2);
\draw (O)--(A)--(B)--cycle;
\tkzMarkAngle[size=0.5,mark=o](A,O,B);
\tkzLabelAngle[pos = 0.25](A,O,B){$\gamma$}
\tkzMarkAngle[size=1cm,mark=x](B,A,O)
\tkzLabelAngle[pos = 0.6](B,A,O){$\alpha$}
\tkzMarkAngle[size=0.8cm,mark=||](O,B,A)
\tkzLabelAngle[pos = 0.5](O,B,A){$\beta$}
\end{tikzpicture}
\end{document}