Hello friends!
I got an issue when writing a help file (.sthlp) for my ado file. The view command displays perfectly in the viewer window.

However, the help command displays slightly different in the viewer window. It seems some letters in the original .sthlp file are lost, leading to smcl directive not understood properly.

The original smcl code in .sthlp file looks like below. This means "s:Kamstr" is lost.
This situation happens in another part of the file where "both the test assets" became "both t assets" when using help.
Since my intension is to post on SSC, I'm worried that users cannot see the help document properly using help command. Besides, nobody uses view mycmd.sthlp to check help files. Any idea what may cause this? and how to fix it?
I'm using Stata 16.1 on Mac.
My mycmd.ado requires version 14;
I wrote sthlp file in do-editor then saved as .sthlp
Thank you in advance!
Cliff
I got an issue when writing a help file (.sthlp) for my ado file. The view command displays perfectly in the viewer window.
Code:
view mycmd.sthlp
However, the help command displays slightly different in the viewer window. It seems some letters in the original .sthlp file are lost, leading to smcl directive not understood properly.
Code:
help mycmd
The original smcl code in .sthlp file looks like below. This means "s:Kamstr" is lost.
Code:
See {it:{help mycmd##references:Kamstra and Shi,2020}} for more.
Since my intension is to post on SSC, I'm worried that users cannot see the help document properly using help command. Besides, nobody uses view mycmd.sthlp to check help files. Any idea what may cause this? and how to fix it?
I'm using Stata 16.1 on Mac.
My mycmd.ado requires version 14;
I wrote sthlp file in do-editor then saved as .sthlp
Thank you in advance!
Cliff
Comment