我一直在試圖讓pstricks工作,但無濟於事。我正在使用Miktex,我從軟件包管理器下載了軟件包。但是當我試圖建立它時,它總是失敗:在MikTex的窗口中安裝pstricks
This is XeTeX, Version 3.1415926-2.2-0.9995.1 (MiKTeX 2.8)
entering extended mode
(C:\xxxx\Desktop\untitled-6.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, portuguese, l
oaded.
("C:\Program Files\MiKTeX 2.8\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.8\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.8\tex\latex\oberdiek\epstopdf.sty"
("C:\Program Files\MiKTeX 2.8\tex\latex\oberdiek\epstopdf-base.sty"
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\infwarerr.sty")
("C:\Program Files\MiKTeX 2.8\tex\latex\oberdiek\grfext.sty")
("C:\Program Files\MiKTeX 2.8\tex\latex\oberdiek\kvoptions.sty"
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\kvsetkeys.sty"
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\etexcmds.sty")))
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\pdftexcmds.sty"
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\ifluatex.sty")
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\ltxcmds.sty"))
Package epstopdf Warning: No graphics package `graphic{s,x}' loaded.
)) ("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\graphics.cfg")
("C:\Program Files\MiKTeX 2.8\tex\xelatex\xetex-def\xetex.def"))
("C:\Program Files\MiKTeX 2.8\tex\latex\pstricks\pstricks.sty"
("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pstricks.tex"
`PSTricks' v1.29 <2009/05/19> (tvz)
======================================================================
starting package maintenance...
installation directory: "C:\Program Files\MiKTeX 2.8"
package repository: http://ftp.eq.uc.pt/software/TeX/systems/win32/miktex/tm/packages/
lightweight database digest: ecef59fd2592919972b79117b8fcd1c8
going to download 1520 bytes
going to install 4 file(s) (1 package(s))
downloading http://ftp.eq.uc.pt/software/TeX/systems/win32/miktex/tm/packages/xetex-pstricks.tar.lzma...
1520 bytes, 8.84 KB/Sec
extracting files from xetex-pstricks.tar.lzma...
miktex-xetex.exe: Windows API error 87: The parameter is incorrect.
miktex-xetex.exe: Data: C:\ProgramData\MiKTeX\2.8\miktex\config\1567d83d412396067c84a669e65114a0.fndb
======================================================================
("C:\Program Files\MiKTeX 2.8\tex\generic\pstricks\pstricks.con"))
("C:\Program Files\MiKTeX 2.8\tex\latex\xcolor\xcolor.sty"
("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\color.cfg")))
(C:\xxxx\Desktop\untitled-6.aux)
! Undefined control sequence.
<recently read> \[email protected]@[email protected]
l.8 \psframe(0.7,2)(3.3,3)
?
任何特別我必須做的?
感謝 編輯:
下面是代碼:
\documentclass{article}
\usepackage{epstopdf}
\usepackage{graphics}
\usepackage{pstricks}
\begin{document}
\begin{figure}
\begin{pspicture}(4,5)
\psframe(0.7,2)(3.3,3)
\rput(2,2.5){First Example}
\end{pspicture}
\end{figure}
\end{document}
您是否需要重建Miktex中的tex數據庫?如果是這樣,應該有一個選擇。它可以被稱爲「texhash」或「重建樹」或類似的。只是猜測。 – 2010-01-21 05:59:36
有一個xetex-pstricks包http://tug.ctan.org/tex-archive/graphics/xetex-pstricks/雖然如果你打算去PDF,爲什麼不使用tikz/pgf? – Mica 2010-01-21 16:19:16
pstricks _comes with_您正在使用的MikTeX發行版..您不應該安裝任何東西 – bobobobo 2010-02-16 18:13:43