[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: question about SMCL

From   Kit Baum <>
Subject   st: Re: question about SMCL
Date   Sat, 12 Apr 2008 08:38:39 -0400

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-.


Kit Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:

On Apr 12, 2008, at 02:33 , David wrote:

Shameful! Kit has neglected to say his command is Mac specific.
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index