persiantex / xepersian

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

Using the tkz-fct package between the curves is not colored! #13

Open mojtabaahmadi2020tl opened 4 years ago

mojtabaahmadi2020tl commented 4 years ago
\documentclass[border=3mm]{standalone}
\usepackage{amsmath,tkz-fct}
\usepackage{xepersian}
\settextfont{Yas}
\setdigitfont{Yas}

\begin{document}

\begin{tikzpicture}[scale=2.5]
\tkzInit[xmin=-1,xmax=4,ymin=0,ymax=5]
\tkzGrid
\tkzAxeXY
\tkzFct[domain = -.5:4]{ 4*x-x**2+4/(x**2+1)**2}
\tkzFct[domain = -.5:4]{x-1+4/(x**2+1)**2}
\tkzDrawAreafg[color=green,domain = 1:4]
\tkzDrawAreafg[pattern=north west lines,domain = -.5:1]
\tkzRep
\tkzText(2.5,4.5){$C_f$}
\tkzText(2.5,1){$C_g$}
\end{tikzpicture}

\end{document}

output: tkz-fct-xepersian-TL2020.log

tkz-fct-xepersian-TL2020.pdf

output Without xepersian: tkz-fct-TL2020.log

tkz-fct-TL2020.pdf

vafakhalighi commented 4 years ago

I can also reproduce the problem without using xepersian. I get some warnings from pgf

Package pgf Warning: Plot data file `test.tkzfonct.table' not found. on input l
ine 13.

( FP-EVAL ( FP-UPN ( FP-SUB ) ) ) ( FP-EVAL ( FP-UPN ) ) ( FP-DIV ) ( FP-DIV )

Package pgf Warning: Plot data file `test.tkzfonct.table' not found. on input l
ine 14.

( FP-EVAL ( FP-UPN ) ) ( FP-EVAL ( FP-UPN ) ) ( FP-DIV ) ( FP-DIV )

Package pgf Warning: Plot data file `test.tkzfonct.table' not found. on input l
ine 15.

Package pgf Warning: Plot data file `test.tkzfonct.table' not found. on input l
ine 15.

( FP-EVAL ( FP-UPN ) ) ( FP-EVAL ( FP-UPN ) ) ( FP-EVAL ( FP-UPN ( FP-SUB ) )
) ( FP-EVAL ( FP-UPN ) ) ( FP-DIV ) ( FP-DIV )

Package pgf Warning: Plot data file `test.tkzfonct.table' not found. on input l
ine 16.

Package pgf Warning: Plot data file `test.tkzfonct.table' not found. on input l
ine 16.