![带有纯 XeTeX 的 pst 文本](https://linux22.com/image/239602/%E5%B8%A6%E6%9C%89%E7%BA%AF%20XeTeX%20%E7%9A%84%20pst%20%E6%96%87%E6%9C%AC.png)
如果可能的话,我该如何使用pst-text
纯 XeTeX?我有 TeX Live 2011。
当我尝试运行最小示例时:
\input pst-text
\pscharpath{TeXnik}
\bye
,我得到了一堆** WARNING
,其中包括:
** WARNING ** Failed to read converted PSTricks image file.
和
** WARNING ** Interpreting special command PST: (ps:) failed.
是我做错了什么,还是它不应该(以这种方式)工作,或者是我遗漏了某些步骤?
我在日志文件中没有收到任何警告或任何奇怪的信息,但我在终端上收到了:
Ilmalaiva% xetex pikakoe.tex
This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./pikakoe.tex
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/pst-text/pst-text.tex
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/pstricks/pstricks.tex
we are running tex and have to define some LaTeX commands ...
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/xkeyval/xkeyval.tex
2008/08/13 v2.6a key=value parser (HA)
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/xkeyval/xkvtxhdr.tex
2005/02/22 v1.1 xkeyval TeX header (HA))
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.20 <2011/04/23> (tvz)
(/usr/local/texlive/2011basic/texmf-dist/tex/xetex/xetex-pstricks/pstricks.con
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.
cfg))
(/usr/local/texlive/2011basic/texmf-dist/tex/xetex/xetex-pstricks/pstricks.con
(/usr/local/texlive/2011basic/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.
cfg
Using PSTricks configuration for XeTeX+xdvipdfmx
))) v1.00, 2006/11/05(tvz,hv)) [1]
** WARNING ** pdf_open: Not a PDF 1.[1-5] file.
** WARNING ** Failed to include image file "/var/folders/2w/40kkgr916n34r23ts240d9bh0000gn/T//dvipdfmx.8Yyf2pkO"
** WARNING ** >> Please check if
** WARNING ** >> rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit
** WARNING ** >> %o = output filename, %i = input filename, %b = input filename without suffix
** WARNING ** >> can really convert "/var/folders/2w/40kkgr916n34r23ts240d9bh0000gn/T//dvipdfmx.8Yyf2pkO" to PDF format image.
** WARNING ** pdf: image inclusion failed for "/var/folders/2w/40kkgr916n34r23ts240d9bh0000gn/T//dvipdfmx.8Yyf2pkO".
** WARNING ** Failed to read converted PSTricks image file.
** WARNING ** Interpreting special command PST: (ps:) failed.
** WARNING ** >> at page="1" position="(123.75, 759.927)" (in PDF)
** WARNING ** >> xxx "PST: tx@Dict begin gsave STV /ArrowA { moveto } def /ArrowB { }"
)
Output written on pikakoe.pdf (1 page).
Transcript written on pikakoe.log.
答案1
你需要GhostScript已安装。
答案2
这是我的日志:
voss@shania:~> xetex Namenlos-2.tex
This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./Namenlos-2.tex
(/usr/local/texlive/2011/../texmf-local/tex/generic/pst-text/pst-text.tex
(/usr/local/texlive/2011/../texmf-local/tex/generic/pstricks/generic/pstricks.t
ex
we are running tex and have to define some LaTeX commands ...
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkeyval.tex
2008/08/13 v2.6a key=value parser (HA)
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkvtxhdr.tex
2005/02/22 v1.1 xkeyval TeX header (HA))
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2011/../texmf-local/tex/generic/pstricks/generic/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.22 <2011/07/09> (tvz)
(/usr/local/texlive/2011/texmf-dist/tex/xetex/xetex-pstricks/pstricks.con
(/usr/local/texlive/2011/../texmf-local/tex/generic/pstricks/config/xdvipdfmx.c
fg)) (/usr/local/texlive/2011/texmf-dist/tex/xetex/xetex-pstricks/pstricks.con
(/usr/local/texlive/2011/../texmf-local/tex/generic/pstricks/config/xdvipdfmx.c
fg
Using PSTricks configuration for XeTeX+xdvipdfmx
))) v1.00, 2006/11/05(tvz,hv)) [1] )
Output written on Namenlos-2.pdf (1 page).
Transcript written on Namenlos-2.log.
我本地树中的文件与 TeXLive 2011 上的文件相同