
Die Änderung des Blickwinkels ändert tikz-3dplot
die verschiedenen Seiten während der Verwendung standalone
. Wie kann ich diese Größe einheitlich halten?
Das Hinzufügen eines Rechtecks als Hintergrund hat auch nicht funktioniert, daher ist es sinnvoller, ein rotationsinvariantes Objekt hinzuzufügen. Eine Kugel mit einer Deckkraft von null, sodass die Größe aus beiden Winkeln (von jedem) unverändert bleiben sollte. Aber es ist mir nicht gelungen, eine solche Kugel zu zeichnen (ein Ballbefehl ist nichts für 3D, oder?).
\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}
Antwort1
Sie könnten das Tikzbild in einer Miniseite zentrieren.
\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}