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: One help file for two program
From
John Antonakis <[email protected]>
To
[email protected]
Subject
Re: st: One help file for two program
Date
Fri, 22 Mar 2013 22:00:08 +0100
Nicely put!
Bon weekend.
J.
__________________________________________
John Antonakis
Professor of Organizational Behavior
Director, Ph.D. Program in Management
Faculty of Business and Economics
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis
Associate Editor
The Leadership Quarterly
__________________________________________
On 22.03.2013 21:05, Nick Cox wrote:
I think "look somewhere else" always requires a diversion sign.
Nick
On Fri, Mar 22, 2013 at 8:01 PM, John Antonakis <[email protected]> wrote:
Hi Nick:
Thanks.....but, this requires one master/mistress helpfile (in your case,
diagplots2.hlp), and then many "little" help files all doing the ".h trick".
So, it is correct that there is only one help file to edit. I was hoping to
have to do away with the "little" help files. Anyway, the .h trick does the
trick for me.
Best,
J.
__________________________________________
John Antonakis
Professor of Organizational Behavior
Director, Ph.D. Program in Management
Faculty of Business and Economics
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis
Associate Editor
The Leadership Quarterly
__________________________________________
On 22.03.2013 20:44, Nick Cox wrote:
No; precisely the opposite. You can do this. For example, look at the
package -qpfit- on SSC. Most of the help files are just one-liners
pointing to a master/mistress help file.
Nick
On Fri, Mar 22, 2013 at 7:40 PM, John Antonakis <[email protected]>
wrote:
OK. Thus, it does not appear possible for us (outside of Stata) to have
two
programs point to the same help file.
At least
.h program_name
does the trick.
Thanks everyone, Austin, Daniel, and Ken.
Best,
J.
__________________________________________
John Antonakis
Professor of Organizational Behavior
Director, Ph.D. Program in Management
Faculty of Business and Economics
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis
Associate Editor
The Leadership Quarterly
__________________________________________
On 22.03.2013 20:28, [email protected] wrote:
Daniel Klein <[email protected]> is correct:
you can point to another help file simply saving the one line
.h john
(note the dot is not followed by a space) in the file johni.sthlp. If
you then type
h johni
the help file for -john- (john.sthlp) will pop up.
This is how users add aliases for help files. It is better than
having several differently named files with identical content.
Using ".h" you can avoid editing several files every time you
want to make a change.
Long ago, Stata used .h to create all of it's help aliases -- and
the method still works and is available to you. However, now the
official Stata help files determine aliases from alias .maint
files. We did this because of the large number of aliases that
we were wanting for the help system.
The help alias files have names like xhelp_alias.maint, and
there is one for each letter. If curious, you can
. viewsource xhelp_alias.maint
to see the alias file for the letter x, or
. viewsource bhelp_alias.maint
to see the alias file for the letter b. The files have two columns,
the second column is the name of the help file to show when help is
requested for the item in the first column.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/