함수 도면을 생성하기 위해 tkz-fct를 만들 수 없습니다. 최근 tlmgr을 사용한 업데이트로 인해 발생한 것 같습니다.
Gnuplot은 잘 작동하며 --enable-write18을 사용하여 컴파일합니다.
여기에 mwe가 있습니다(이것은 tkz-fct 문서의 테스트일 뿐입니다).
\documentclass{scrartcl}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tkz-fct}
\begin{document}
\begin{tikzpicture}[scale=1.25]
\tkzActivOff
\tkzInit[xmin=-5,xmax=5,ymax=2]
\tkzGrid
\tkzAxeXY
\tkzFct[color=red]{2*x**2/(x**2+1)}
\tkzActivOn
\end{tikzpicture}
\end{document}
그리고 여기에 내가 얻은 로그가 있습니다.
(c:/texlive/2019/texmf-dist/tex/latex/jknapltx/ursfs.fd
File: ursfs.fd 1998/03/24 rsfs font definition file (jk)
) ( FP-EVAL ( FP-UPN
! Undefined control sequence.
<argument> \@xa
l.11 \tkzFct[color=red]{2*x**2/(x**2+1)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! I don't know how to \FP@upn[].
\erroraction ... don't know how to \string #1[#2]}
l.11 \tkzFct[color=red]{2*x**2/(x**2+1)}
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
! FP error: UPN stack is empty!.
\FP@errmessage #1->\errmessage {FP error: #1!}
l.11 \tkzFct[color=red]{2*x**2/(x**2+1)}
(That was another \errmessage.)
) ) ( FP-EVAL ( FP-UPN
! Undefined control sequence.
<argument> \@xb
l.11 \tkzFct[color=red]{2*x**2/(x**2+1)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! I don't know how to \FP@upn[].
\erroraction ... don't know how to \string #1[#2]}
l.11 \tkzFct[color=red]{2*x**2/(x**2+1)}
(That was another \errmessage.)
! FP error: UPN stack is empty!.
\FP@errmessage #1->\errmessage {FP error: #1!}
l.11 \tkzFct[color=red]{2*x**2/(x**2+1)}
(That was another \errmessage.)
) ) ( FP-DIV ) ( FP-DIV ) [1
{c:/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )
Here is how much of TeX's memory you used:
28903 strings out of 492162
603961 string characters out of 6129063
752124 words of memory out of 5000000
32871 multiletter control sequences out of 15000+600000
535571 words of font info for 36 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
82i,7n,99p,10139b,861s stack positions out of 5000i,500n,10000p,200000b,80000s
<
c:/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb><c:/texliv
e/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb><c:/texlive/2019/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on test.pdf (1 page, 25654 bytes).
PDF statistics:
23 PDF objects out of 1000 (max. 8388607)
16 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
13 words of extra memory for PDF output out of 10000 (max. 10000000)
답변1
그래 네가 맞아. tkz-base의 새 버전은 tkz-fct.sty 버전과 호환되지 않습니다. CTAN에 새 파일을 업로드하는 데 작은 문제가 발생했습니다. CTAN에서 패키지를 찾으려면 잠시 기다려야 합니다. 현재 v1.2 파일을 찾을 수 있습니다.여기
\tkzActivOff
최신 버전의 TikZ에서는 더 이상 필요하지 않다고 생각합니다 .
\documentclass{standalone}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tkz-fct}
\begin{document}
\begin{tikzpicture}[scale=1.25]
%\tkzActivOff
\tkzInit[xmin=-5,xmax=5,ymax=2]
\tkzGrid
\tkzAxeXY
\tkzFct[color=red]{2*x**2/(x**2+1)}
%\tkzActivOn
\end{tikzpicture}
\end{document}