tkzMarkAngle 改變 tikzpicutre 的大小

tkzMarkAngle 改變 tikzpicutre 的大小

我正在嘗試標記一些 3D 人物。這是一個 MWE:

\documentclass[tikz]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\tdplotsetmaincoords{70}{110}
\begin{tikzpicture}[scale=2.54,tdplot_main_coords]
    \def\a{0.5}
    \draw[->] (0,0,0) -- (1,0,0) node[anchor=north east]{x};
    \draw[->] (0,0,0) -- (0,1,0) node[anchor=north west]{y};
    \draw[,->] (0,0,0) -- (0,0,1) node[anchor=south]{z};
    \coordinate (E) at (\a,0,0);  
    \coordinate (A) at (0,0,0);
    \coordinate (B) at (0,\a,0);
    \coordinate (C) at (0,0,\a); 
    \tkzMarkAngle[size=0.2cm,draw=red](B,A,C);
%   \tkzMarkAngle[size=0.2cm,draw=blue](C,A,E);
\end{tikzpicture}
\end{document}

這正如我所希望的那樣: 一切看起來都不錯 然而,揭開註解行會導致圖像左側引入額外的空白。有什麼辦法可以停用這個功能嗎?我有一個更複雜的圖像,我想依次標記不同的角度,但我不能每次都改變大小: 尺寸變化

答案1

CTAN 上最新版本的 tkz-euclidev 3.01c

您不需要加載 TikZ 因為tikz-3dplot加載tkz-euclideTikZ

\documentclass[tikz]{standalone}
\usepackage{tikz-3dplot}
\usepackage{tkz-euclide}

\begin{document}
\tdplotsetmaincoords{70}{110}
\begin{tikzpicture}[scale=2.54,tdplot_main_coords]
    \def\a{0.5}
    \draw[->] (0,0,0) -- (1,0,0) node[anchor=north east]{x};
    \draw[->] (0,0,0) -- (0,1,0) node[anchor=north west]{y};
    \draw[,->] (0,0,0) -- (0,0,1) node[anchor=south]{z};
    \coordinate (E) at (\a,0,0);  
    \coordinate (A) at (0,0,0);
    \coordinate (B) at (0,\a,0);
    \coordinate (C) at (0,0,\a); 
    \tkzMarkAngle[size=0.2cm,draw=red](B,A,C);
   \tkzMarkAngle[size=0.2cm,draw=blue](C,A,E);
\end{tikzpicture}
\end{document}

在此輸入影像描述在此輸入影像描述

相關內容