Open Arinerron opened 1 year ago
Can't reproduce your result (only "A" has "11%"). Can you provide a complete example?
It seems the the text positioning issue is caused by the rotation
\documentclass{article}
\usepackage{pgf-pie}
\begin{document}
\noindent
\foreach \i in {0,10,...,90} {%
\begin{tikzpicture}
\pie[hide number=true,text=inside,sum=auto,rotate=\i,radius=2]{
11/A,
4/B,
1/C,
4/D
}
\end{tikzpicture}
}
\end{document}
The percent issue I found to be this stupid renewcommand on \pie that somehow made its way into our LaTeX document. I can close the issue if you want and open a separate one for the rotation issue, or rename this? (whichever you prefer)
Issue renamed.
The problem is caused by the newline \\
inserted between label text and number text. The newline should be omitted if one of label or number text is hidden.
I've prepare a patch, see https://github.com/pgf-tikz/pgf-pie/compare/master...muzimuzhi:pgf-pie:optional-newline, but first the workflow file main.yml
need to be updated.
Nice catch haha, I'll test it next time I'm on my laptop. And thanks for the quick response and fix :) this library is a lifesaver tbh
lgtm, thanks again
Let's keep this open until a fix for it is released.
Just came across that problem, fixed it and wanted to provide a quick PR. But now I realize this issue and a fix already exist. What prevents this from being released?
(also, any idea why is the text aligned so weirdly loool)