Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Copying Stata code with line numbers


From   Phil Clayton <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index