Hello everyone,
I am currently working on a paper for uni, and I want to document some of the do-files I used in its appendix.
As I am typesetting everything in Latex, I am wondering wether a way exists to get nicely looking Latex-code from do-files (ideally, I want to match the syntax markup from the do-file editor, row numbers etc. Absolute icing on the cake would be something that mirrors the left hand brackets that indicate how far loops span.).
I wasn't able to find anything via google, which perhaps has to do with the fact that I find it hard to find suitable search terms - "Stata" and "Latex" tend to give answers pertaining to conversion of Stata output, and adding "do-file", "code" and the like unsurprisingly doesn't change this...
Or maybe I am the only one wanting to do such a thing? In that case, I will of course be ok with the second best option of including pdf-printouts from the do-file editor itself.
I am currently working on a paper for uni, and I want to document some of the do-files I used in its appendix.
As I am typesetting everything in Latex, I am wondering wether a way exists to get nicely looking Latex-code from do-files (ideally, I want to match the syntax markup from the do-file editor, row numbers etc. Absolute icing on the cake would be something that mirrors the left hand brackets that indicate how far loops span.).
I wasn't able to find anything via google, which perhaps has to do with the fact that I find it hard to find suitable search terms - "Stata" and "Latex" tend to give answers pertaining to conversion of Stata output, and adding "do-file", "code" and the like unsurprisingly doesn't change this...
Or maybe I am the only one wanting to do such a thing? In that case, I will of course be ok with the second best option of including pdf-printouts from the do-file editor itself.
Comment