st: Re: question about SMCL

Well, I did not know that the command was Mac OS X-specific, but it
sort of makes sense that it would be. Mac OS X is the only OS Stata
supports for which PDF is a native format (so that any application
that can print can "print to pdf" ). That's why you can create PDFs
directly with -graph export foo.pdf- only on Mac OS X.

I have updated -hlp2pdf- to allow for the existence of other OS. I
have no way of testing the routine on Windows or *nix Stata (I'm not
running any GUI versions of Linux or other flavors of *nix at
present) but it should work, creating a .ps file on those systems. As
Sergiy mentions, there are plenty of free PS->PDF translators that
would do the last step. For Linux, you should be able to use
"ps2pdf", which I believe is standard issue in any LaTeX
distribution. For convenience, the updated -hlp2pdf- returns r
(printfile), a local macro containing the fully qualified filename,
e.g.,

r(printfile) : "/Users/baum/doc/hlp2pdf.pdf"

I also added a -replace- option.

The updated version of -hlp2pdf- is available from SSC via -ssc
install hlp2pdf- or, if you have it installed, via -adoupdate-.