不同的系统中倒腾latex时,出现了错误提示 File `pstricks.sty' not found. ^^M,刚开始根据查到的操作:
一、安装pstricks包:sudo tlmgr install pstricks
二、查询安装情况:tlmgr search --global --file pstricks.sty,返回的结果为:
tlmgr: package repository /usr/share (not verified: unknown) lwarp:texmf-dist/tex/latex/lwarp/lwarp-pstricks.sty pstricks:texmf-dist/tex/latex/pstricks/pstricks.sty
三、显示包安装的信息,tlmgr info pstricks
package: pstricks category: Package shortdesc: PostScript macros for TeX longdesc: PSTricks offers an extensive collection of macros for generating PostScript that is usable with most TeX macro formats, including Plain TeX, LaTeX, AMS-TeX, and AMS-LaTeX. Included are macros for colour, graphics, pie charts, rotation, trees and overlays. It has many special features, including a wide variety of graphics (picture drawing) macros, with a flexible interface and with colour support. There are macros for colouring or shading the cells of tables. The package pstricks-add contains bug-fixes and additions for PSTricks (among other things). PSTricks ordinarily uses PostScript \special commands, which are not supported by pdf(La)TeX. This limitation may be overcome by using either the pst-pdf or the pdftricks package, to generate a PDF inclusion from a PSTricks diagram. PSTricks macros can also generate PDF output when the document is processed XeTeX, without the need for other supporting packages. installed: Yes revision: 78101 sizes: doc: 13721k, run: 609k relocatable: No cat-version: 3.22a cat-license: lppl1.3 cat-topics: graphics-in-tex colour pstricks dvips-special xetex tagged-pdf-incompatible cat-related: pstricks-add cat-contact-home: https://tug.org/PSTricks/main.cgi/ cat-contact-support: https://tug.org/mailman/listinfo/pstricks cat-contact-repository: https://archiv.dante.de/~herbert/TeXnik/ collection: collection-pstricks
一切貌似都很正常,继续编译依旧还有提示,结果到查询的目录中查看,发现根本就没有目录和文件,原来tlmgr的安装完全是假的,根本没有安装,也没有提示信息。后来还是一招解决:使用系统的软件安装方式:sudo pacman -S texlive-pstricks,就能解决问题了。
