When I use the following code:
\usetikzlibrary{calc}
\begin{tikzpicture}
\draw (0,0) circle (.2*tan(10) and .4*tan(10));
\end{tikzpicture}
... then I get an error message. How can I solve this problem?
When I use the following code:
\usetikzlibrary{calc}
\begin{tikzpicture}
\draw (0,0) circle (.2*tan(10) and .4*tan(10));
\end{tikzpicture}
... then I get an error message. How can I solve this problem?
It seems to work if we put the computed radii in brackets.
Martin Scharrer explains it here better than I can.
\documentclass[tikz]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\draw (0,0) circle ({.2*tan(10)} and {.4*tan(10)});
\end{tikzpicture}
\end{document}
Cheers,
\documentclass,\usepackages,\begin{document}or\end{document}so if I compile your code I will not replicate your error but amissing \documentclassinstead. – Dai Bowen Feb 28 '17 at 12:39