When I start this I get pdflatex to use all the CPU without any result:

\pgfmathsetmacro\rx{\b/2}; %    rx = 1
\def\p{0.3};                %   p = 0.3
\pgfmathsetmacro\ry{\rx*\p};%   ry = 0.3
\pgfmathsetmacro\ta{90-atan2(\h,\ry)}; % ta = 8.www
\fill [gray!50]
(0, \h) --  (\ta:\rx+0 and \ry) arc (\ta:180-\ta:\rx+0 and \ry) -- cycle;
\node (\ta:\rx+0 and \ry){orco}
\fill [gray!75] (0,0) ellipse [x radius=\rx, y radius=\ry];
\draw [dashed] (\ta:\rx+0 and \ry) arc (\ta:180-\ta:\rx+0 and \ry);
\draw (0, \h) -- (\ta:\rx+0 and \ry) arc (\ta:-180-\ta:\rx+0 and \ry) -- cycle;
%\draw  [dotted] (\rx,0) -| (0, \h);

Apparently this is the problematic line:

\node (\ta:\rx+0 and \ry){orco}

Ending with ; solves the problem. Is it only my laptop (Debian 8) and shouldn't it show a warning?

  • 4
    On my computer it reads \fill and asks me if I forgot a semicolon, as usual. – Symbol 1 Oct 1 '16 at 4:10
  • 1
    A compilation with nonstopmode loops forever... – Paul Gaborit Oct 1 '16 at 8:57
  • Off-topic: note that \def\singleletter is a very bad idea, especially when you do it globally. Either you haven't checked these macros are not already defined or checked but don't care that you are overwriting at least one of the three ... ;) – cfr Oct 1 '16 at 12:34
  • 1
    @PaulGaborit Which is not unusual for PGF/TikZ errors .... At least, not unusual for my PGF/TikZ errors! – cfr Oct 1 '16 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.