xuyuan / pgf-pie

This project is transfered to https://github.com/pgf-tikz/pgf-pie
https://github.com/pgf-tikz/pgf-pie
Other
2 stars 13 forks source link

Conflict with babel-french commands #16

Open yguilhem opened 4 years ago

yguilhem commented 4 years ago

The redefinition of \scalefont command changes the result of babel-french commands \ier and \ieme, based on \up{...} command. Here is a MWE.

\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{pgf-pie} % loading it or not -> it will change the superscripts position
\begin{document}
1\ier{} 2\ieme{} 3\up{e}
\end{document}

Maybe instead of redefining \scalefont command, it is possible to define a new \pgfpie@scalefont command and use it in place of \scalefont inside the pgf-pie package? I tested it and it solved my problem, but it might bring other issues with pgf-pie features.

PS : I also opened an issue on the forked project https://github.com/pgf-tikz/pgf-pie/issues/1