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 on April 23, 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   Phil Clayton <philclayton@internode.on.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Copying Stata code with line numbers
Date   Wed, 7 Mar 2012 23:13:28 +1100

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/


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