Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3208 > unrolled thread
| Started by | Alexey Popkov <lehin.p@gmail.com> |
|---|---|
| First post | 2011-06-21 09:52 +0000 |
| Last post | 2011-06-21 09:52 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Convenient way to add inline formatting to usage Messages Alexey Popkov <lehin.p@gmail.com> - 2011-06-21 09:52 +0000
| From | Alexey Popkov <lehin.p@gmail.com> |
|---|---|
| Date | 2011-06-21 09:52 +0000 |
| Subject | Convenient way to add inline formatting to usage Messages |
| Message-ID | <itpplp$kda$1@smc.vnet.net> |
Usage Messages of built-in functions have embedded in-line formatting. For example:
In[1]:= AiryAiPrime::usage // FullForm
Out[1]//FullForm=
"\!\(\*RowBox[{\"AiryAiPrime\", \"[\", StyleBox[\"z\", \"TI\"], \"]\"}]\) gives the derivative of the Airy function \!\(\*RowBox[{SuperscriptBox[\"Ai\", \"\[Prime]\"], \"(\", StyleBox[\"z\", \"TI\"], \")\"}]\). "
One can see that this in-line formatting is based on the set of styles defined in "Styles for Inline Formatting" section of the Core.nb stylesheet. But I have not found any description of these styles as well as any description of the convenient way to add formatting to usage Messages.
What is the convenient way to add in-line formatting to user-defined usage Messages in Mathematica? What are the usage rules of default styles for in-line formatting defined in the Core.nb stylesheet? I would like to add in-line formating for messages in my package just with Mathematica, without installing additional components like Workbench etc.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web