Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Floats not accepted when using "polar" option. #6

Open
GoogleCodeExporter opened this issue May 7, 2015 · 0 comments
Open

Floats not accepted when using "polar" option. #6

GoogleCodeExporter opened this issue May 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

The following example does not compile:
\documentclass{standalone}
\usepackage{pgf-pie}
\begin{document}
\begin {tikzpicture}[thick]
\tikzstyle{every node}=[font=\LARGE]
\pie[polar,sum=auto,text=inside,after number={}]{10.45/A, 20.78/B, 30.67/C, 
40.10/D}
\end{tikzpicture}
\end{document}

To fix it author should use ifdim instead of ifnum:

  %%%%%%%%%% CIRCLE PIE BGEIN %%%%%%%%%%%    %%%%%%%%%% CIRCLE PIE BGEIN %%%%%%%%%%%
  \ifpolar                                   \ifpolar
  \xdef\maxValue{0}                          \xdef\maxValue{0}
  \newdimen \@temp 
  \foreach \p/\e in {#2} {                   \foreach \p/\e in {#2} {
    \@temp=\maxValue pt
    \ifdim  \p pt > \@temp                     \ifnum \maxValue < \p
    \xdef\maxValue{\p}                         \xdef\maxValue{\p}
    \fi                                        \fi
  }                                          }

Original issue reported on code.google.com by pko...@gmail.com on 4 May 2014 at 9:24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant