The basic workflow recommendations for Stata code and folder hierarchy given by Scott Long is relative easy to extend with inclusion of graphics in pdf log files.
In Stata using point-and-click:
*Get links to template files find workflow

*Install graphlog (and updates) find graphlog
Run example:
pwd mkdir “C:\WorkFlow” cd “C:\WorkFlow” preserve capture log close log using workflowtest.log, replace *// test.do: *// gunnar 2019/03/10 version 10 clear all macro drop _all set linesize 80 * my commands start here sysuse auto summarize trunk histogram trunk, normal graph export graph.pdf, replace log close restore *Assume installed pdflatex (TeXLive, MikTeX) graphlog using workflowtest, lspacing(1) replace *exit
