Hello,
Does anyone know of a good way to render and print a specified SMCL file located on the disk, while using Console Stata? I'll give a trivial and easily reproducible test case here, but my goal in asking this question is to solve a bug report with my program -maptile-.
In a Stata GUI window, one can open a rendered view of a SMCL file using the -view- command. For example:
If you try the exact same thing in Console Stata, you get the following error:
I've given this issue some thought, and the help files that are distributed with Stata ado-files are simply SMCL markup stored with a .sthlp file extension instead of a .smcl file extension. If one runs -help regress- in a Stata GUI window, the help file is rendered in a viewer. If one runs -help regress- in a Stata Console window, the help file is rendered and printed to the console.
I inspected help.ado, and unfortunately the -chelp- command that does the rendering for Console Stata is a built-in command. So I can't point -chelp- to a .smcl file, nor can I view and adapt the -chelp- code.
Any advice and guidance is appreciated!
Does anyone know of a good way to render and print a specified SMCL file located on the disk, while using Console Stata? I'll give a trivial and easily reproducible test case here, but my goal in asking this question is to solve a bug report with my program -maptile-.
In a Stata GUI window, one can open a rendered view of a SMCL file using the -view- command. For example:
Code:
log using test.smcl sysuse auto reg price mpg log off view test.smcl
Code:
. view test.smcl the -view- command is not available under Stata(console) r(199);
I inspected help.ado, and unfortunately the -chelp- command that does the rendering for Console Stata is a built-in command. So I can't point -chelp- to a .smcl file, nor can I view and adapt the -chelp- code.
Any advice and guidance is appreciated!
Comment