
를 사용하는 동안 에서 시점 각도를 변경하면 tikz-3dplot
다른 페이지가 변경됩니다 standalone
. 어떻게 그 크기를 균일하게 유지할 수 있습니까?
배경으로 직사각형을 추가해도 작동하지 않았으므로 더 합리적인 해결책은 회전 불변 객체를 추가하는 것입니다. 두 각도 모두에서 크기가 변하지 않도록 불투명도가 0인 구입니다. 그러나 나는 그런 구체를 그리는 데 성공하지 못했습니다. (공 명령은 3D용이 아니죠?)
\documentclass[tikz,border=2pt]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{60}{50}
\begin{tikzpicture} [tdplot_main_coords]
\draw[-latex] (-1,-1,-1) -- (1,1,1);
\end{tikzpicture}
% now arrow seen from other angle, but the page shrinks
\tdplotsetmaincoords{30}{90}
\begin{tikzpicture} [tdplot_main_coords]
\draw[-latex] (-1,-1,-1) -- (1,1,1);
\end{tikzpicture}
\end{document}
답변1
tikzpicture를 미니페이지 중앙에 배치할 수 있습니다.
\documentclass[multi={minipage},border=2pt]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\begin{minipage}[c][3.47cm][c]{3.47cm}% sqrt(12)
\centering
\tdplotsetmaincoords{60}{50}
\begin{tikzpicture} [tdplot_main_coords]
\draw[-latex] (-1,-1,-1) -- (1,1,1);
\end{tikzpicture}
\end{minipage}
\begin{minipage}[c][3.47cm][c]{3.47cm}
\centering
% now arrow seen from other angle, but the page shrinks
\tdplotsetmaincoords{30}{90}
\begin{tikzpicture} [tdplot_main_coords]
\draw[-latex] (-1,-1,-1) -- (1,1,1);
\end{tikzpicture}
\end{minipage}
\end{document}