我将 pdf 选项发送给 pstricks,然后使用 pdflatex --shell-escape 编译 Olaf 的 poker.sty 修改文件。我将 .eps 图形替换为 .svg \includesvg 图形。
现在它给了我一些奇怪的错误。这是 poker-ranks.log 文件的结尾:
> > \@envbody=\toks34 ))) Package caption Info: Begin \AtBeginDocument code. Package caption Info: subfig package v1.3 is loaded. Package
> caption Info: End \AtBeginDocument code.
>
> <poker-ranks-pics.pdf, id=2, page=1, 40.15pt x 55.20625pt> File:
> poker-ranks-pics.pdf Graphic file (type pdf)
>
> <use poker-ranks-pics.pdf, page 1> Package pdftex.def Info:
> poker-ranks-pics.pdf, page1 used on input line 11. (pdftex.def)
> Requested size: 40.14989pt x 55.2061pt.
>
>
> ! LaTeX Error: \begin{pspicture} on input line 11 ended by
> \end{cards}.
>
> See the LaTeX manual or LaTeX Companion for explanation. Type H
> <return> for immediate help. ...
>
> l.20 \end{cards}
> ? X Here is how much of TeX's memory you used: 13523 strings out of 493104 232925 string characters out of 6136932
> 351179 words of memory out of 5000000 16717 multiletter control
> sequences out of 15000+600000 4218 words of font info for 15 fonts,
> out of 8000000 for 9000 1141 hyphenation exceptions out of 8191
> 75i,8n,100p,665b,569s stack positions out of
> 5000i,500n,10000p,200000b,80000s No pages of output. PDF statistics:
> 2 PDF objects out of 1000 (max. 8388607) 0 named destinations out of
> 1000 (max. 500000) 11 words of extra memory for PDF output out of
> 10000 (max. 10000000)
它确实将 svg 转换为 pdf,但是后来它坏了。
它失败了,看起来像是不匹配的 \begin \end。对这种错误有什么想法吗?谢谢
好的,我从 poker.sty 中取出 \includesvg 命令,并针对 poker-ranks.tex 运行原始 latex,它吐出一堆错误,我按下回车键后就消失了,所以 David C. 你说得对,这可能早于我对它的更改。但是当我这样做时,它确实生成了一个 .dvi,转换后生成了正确的 .pdf。