Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: AW: Log in PDF format


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: AW: Log in PDF format
Date   Sun, 20 Dec 2009 10:52:00 +0100

<>

Whenever an OS supports pdf natively, Stata does take advantage of this
feature. So the lack of pdf support on Windows machines has more to do with
the OS itself than with Stata. Stata does have a feature in its -translate-
command to transfer its own "words", i.e. smcl-output, to postscript, and
from there it is only a small step to pdf. There are probably other
utilities that can transfer ps to pdf, but as I am a miktex user anyway, I
tend to use the ones I already have.

Note that most of the commands in the template I posted are commented out
via "//", so you can safely erase the lines thus marked and put your own
commands there. "Strange commands" should not be a worry for you, as Stata,
not you, has to execute them :-)


HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Charles Koss
Sent: Sonntag, 20. Dezember 2009 02:20
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: AW: Log in PDF format

Thanks Martin!!! I was realizing today that GRETL can produce the
output in PDF without miktek and all those strange commands; right
from the menu! I wonder why stata does not implement that feature?

Regards,

Charles

On Fri, Dec 18, 2009 at 10:42 AM, Martin Weiss <martin.weiss1@gmx.de> wrote:
>
> <>
>
>
>
> BTW, the utilities can be installed from the Miktex page at
> http://miktex.org/.
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Charles Koss
> Gesendet: Freitag, 18. Dezember 2009 17:43
> An: statalist@hsphsun2.harvard.edu
> Betreff: Re: st: AW: Log in PDF format
>
> Martin, thanks for sharing your experience on doing a pdf from the log
file.
>
> Regards,
>
> Charles
>
> --
> Charles
>
>
> On Fri, Dec 18, 2009 at 9:11 AM, Martin Weiss <martin.weiss1@gmx.de>
wrote:
>>
>> <>
>>
>> Depending on your platform, pdf can be a natural format - as for Macs- or
>> must be "imposed" on the OS. I have consistently used Windows, so I have
a
>> template for pdflogs in my text editor that relies on Miktex utility
>> "ps2pdf" to transfer the smcl file:
>>
>>
>> *************
>> //to log in an additional log and have it transferred to pdf
>>
>> //can set -linesize-
>> set linesize 120
>>
>> //close if open
>> capt log close newlog
>> di in red _rc
>>
>> log using mylog.smcl, name(newlog) replace
>> //do whatever you want in the log
>>
>> //trace the thing with Ben Jann`s tool
>> //tr:
>>
>> //or use conventional set trace on/off
>> //set trace on
>>
>> //set trace off
>>
>> log close newlog
>>
>> //translate
>> translate mylog.smcl mylog.ps, replace
>> //need Miktex utilities running on computer for this step
>> !ps2pdf mylog.ps
>> capt erase mylog.ps
>> !start mylog.pdf
>> *************
>>
>>
>>
>> HTH
>> Martin
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: owner-statalist@hsphsun2.harvard.edu
>> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Charles Koss
>> Gesendet: Freitag, 18. Dezember 2009 16:12
>> An: statalist@hsphsun2.harvard.edu
>> Betreff: st: Log in PDF format
>>
>> Hello Stata list members;
>>
>> I am running an ado file which outputs the log. Before closing or
>> right after closing it, I want to print the log in PDF. How can i do
>> that automatically?
>>
>> Cheers!
>>
>> --
>> Charles
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>



-- 
Charles

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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