I want to include a Hyperlink inside of a usage. For example:

function::usage = "function[x] does a complicated calculation
following the algorithms in this paper."


where "this paper" is hyperlinked to a paper on the web.

To get an idea for how the boxes works for Hyperlinks, I did:

Hyperlink["here", "paclet:ref/Plot"] // ToBoxes


That was a lot of boxes to put into the usage string:

function::usage = "function[x] does a complicated calculation
following the algorithms in
\!$$\*TagBox[\(\*ButtonBox[\(\*PaneSelectorBox[]$$,y]\),y]\)"


I got overwhelmed with all the $$\*$$'s so I gave up.

Is there a better way to include hyperlinks inside of usage?

I usually do it this way:

f::usage =
ToString[Row[{
Style["f[ _Integer ]", Bold], " maps ",
" to real number."
}], StandardForm];

?f


• Haven't seen you for some days!:-) – xyz Nov 12 '14 at 13:28
• @ShutaoTang Am kind of busy recently :) – Silvia Nov 13 '14 at 8:33