我试图在 TikZ 中使用 LaTeXiT 实现类似的功能,以便在非 TeX 环境中将其用作 .svg 或 .png:
使用此代码:
\documentclass[11pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[x=1cm,y=1cm]
%Center
\coordinate[label=below:Z] (Z) at (3.5,1);
\fill[black] (Z) circle (0.875mm);
\fill[white, label=hi] (Z) circle (0.625mm);
%Original triangle
\coordinate[label=right:A](A) at (2,2);
\coordinate[label=below:B](B) at (1,0);
\coordinate[label=below:C](C) at (0,0);
\draw[black,line width=0.5mm] (A) -- (B) -- (C) -- cycle node at (-0.5,0) [black,above left] {Original};
%Rotated triangle
\begin{scope}[rotate around={-160:(Z)}]
\coordinate[label=below:A'](A) at (2,2);
\coordinate[label=below left:B'](B) at (1,0);
\coordinate[label=right:C'](C) at (0,0);
\draw[black,line width=0.5mm,dashed] (A) -- (B) -- (C) -- cycle node at (0.5,1) [black,right] {Bild};
\end{scope}
\end{tikzpicture}
\end{document}
并在这个帖子(在找到这个之前,我尝试了很多次……)我走到这一步,但我不知道如何继续用弧线连接这些坐标。还是我的方法完全错误?
答案1
解决方案
经过进一步的谷歌搜索后,我发现我可以简单地使用范围环境中的坐标名称。
因此出现了这个代码并解决了我的问题:
\documentclass[11pt]{standalone} % Remove font size option when using LaTeXiT, or you'll risk the clipping problem I encountered (see below)
\usepackage{tikz,tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}[x=1cm,y=1cm]
%Center
\coordinate[label=below:Z] (Z) at (3.5,1);
\fill[black] (Z) circle (0.875mm);
\fill[white] (Z) circle (0.625mm);
%Original triangle
\coordinate[label=right:A](A) at (2,2);
\coordinate[label=below:B](B) at (1,0);
\coordinate[label=below:C](C) at (0,0);
\draw[black,line width=0.5mm] (A) -- (B) -- (C) -- cycle node at (-0.5,0) [black,above left] {Original};
%Rotated triangle
\begin{scope}[rotate around={-160:(Z)}]
\coordinate[label=below:A'](A2) at (2,2);
\coordinate[label=below left:B'](B2) at (1,0);
\coordinate[label=right:C'](C2) at (0,0);
\tkzMarkAngle[size=2.693cm,arc=l,helpline](B2,Z,B);
\tkzMarkAngle[size=3.640cm,arc=l,helpline](C2,Z,C);
\tkzMarkAngle[size=1.803cm,arc=l,helpline](A2,Z,A);
\draw[black,line width=0.5mm,dashed] (A2) -- (B2) -- (C2) -- cycle node at (0.5,1) [black,right] {Bild};
\end{scope}
\end{tikzpicture}
\end{document}
结果是:
是的,圆弧的半径是手工计算的。
现在我必须弄清楚为什么 f* C' 和“Bild”没有显示?