persiantex / xepersian

Persian for LaTeX, using XeTeX
https://ctan.org/pkg/xepersian
79 stars 3 forks source link

Error when using blur shadow with setdigitfont command #11

Closed mojtabaahmadi2020tl closed 4 years ago

mojtabaahmadi2020tl commented 4 years ago

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}
\usepackage{xepersian}
\settextfont{Yas}
%استفاده از 2 دستور زیر با گزینه مثال shadows.blur خطا دارد!
\setdigitfont{Yas}
%\settextdigitfont{Yas}
% استفاده از دستور زیر مشکلی ندارد.
%\setmathdigitfont{Yas}

\begin{document}
تست
\begin{tikzpicture}
\filldraw[fill=white, draw=black,blur shadow](0,0) rectangle (1,1);
\end{tikzpicture}

\end{document}

output: shadows-blur-TL2020.log

shadows-blur-TL2020.pdf

vafakhalighi commented 4 years ago

Thanks for your report. This seems to be caused by the \settextdigitfont control sequence. You can in the meanwhile, use the control sequence \setmathdigitfont instead the control sequence \setdigitfont to set the digit font in math mode.

mojtabaahmadi2020tl commented 4 years ago

Thanks, I controlled with \TextDigitFontOff and \TextDigitFontOn

mojtabaahmadi2020tl commented 3 years ago

درود جناب وفا جهت اطلاع: در تک لایو 2021 این مشکل حل شده