postscript - Detecting output device in LaTeX -
Is there a way, in the latex style / class file, to find out which output device is being used Is (or have minimal abilities)? The reason for this is that I am writing a class file in which I want to use some postScript-specific packages (such as pstricks ) when PostScript is available, but if I only
\ RequirePackage {pstricks} Then there are definitely bad things if I'm compiling the document with pdflatex . So ideally, I'm seeing something that I use
\ if @ postcriptokay \ RequirePackage {pstricks} \ fi it looks like It should be as it is possible because I know that the package output such as pgf can change its behavior to use the appropriate graphics commands, but I have completed some Google searches and Checked in my latex book and I can not find any way Is there.
\ usepackage {ifpdf} \ ifpdf% nothing \ else \ requirement package {pstricks} Fi
Comments
Post a Comment