Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Copying Stata code with line numbers


From   Charles Vellutini <charles.vellutini@ecopa.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Copying Stata code with line numbers
Date   Wed, 7 Mar 2012 04:35:12 -0800

Thanks Phil and Nick for your suggestions

-----Message d'origine-----
De : owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] De la part de Phil Clayton
Envoyé : mercredi 7 mars 2012 13:13
À : statalist@hsphsun2.harvard.edu
Objet : Re: st: Copying Stata code with line numbers

I don't know of any direct way but you could:
1. copy the text in the do-file editor
2. paste it into a spreadsheet starting in column B 3. auto-fill column A with the line numbers 4. copy the result into your word processor, pasting as unformatted text

Phil

On 07/03/2012, at 11:01 PM, Charles Vellutini wrote:

> Dear Statalisters,
> 
> Would anyone know how to copy the content of an do-file (from Stata's standard do-file editor) and paste it in a word processor *with the line numbers*?
> 
> We use Stata 12.1 on a Windows system.
> 
> Thanks in advance,
> 
> 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/


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