Questions tagged [usage-messages]

Questions related to writing and handling usage messages of symbols.

In Mathematica, any symbol can have usage messages in the form symbol::usage = "...". Such messages can be queried by evaluating ?symbol or Message[symbol::usage] or hitting Ctrl+Shift+K when the caret is at the end of a typed, valid symbol name.

Useful links

47 questions
6
votes
0 answers

How to define two usage messages for a function

Context I notice that built in functions have a drop-down interface that displays multiple usage messages. Question How do I implement more than one usage message (for a single function) in a package. I have tried f::usage = "f[x], …
Conor
  • 7,449
  • 1
  • 22
  • 46
6
votes
0 answers

several problems with ::usage in Mathematica 11

There seems several bugs of ::usage in mathematica 11.2 First one is that the drop down ::usage always showing the first assigned ::usage You can see that the ::usage is changed, and ?f is showing the latest usage, but the drop down is still the…
matheorem
  • 17,132
  • 8
  • 45
  • 115
6
votes
0 answers

Cell format for usage statements

The myFunc::usage statement is intended to be a simple summary of the symbol and its arguments. However, many users like myself opt out of using Workbench and prefer to maximize use of the Notebook interface. That means I often find myself wanting…
Robert
  • 435
  • 2
  • 7
3
votes
1 answer

How to use double quotation marks (") in usage messages?

I have the following code: Remove[f]; f::usage = "f[\"message\"] prints the message"; f[message_] := Print[message]; The usage message works except the quotation marks which are not shown in the information popup. As an alternative one could use…
Qbyte
  • 469
  • 3
  • 9
2
votes
2 answers

Unsetting messages

The following code suggests that Mathematica stores the messages in cache: (*1*)Remove[VariationalD] (*2*)Messages[VariationalD] (*3*)Message[VariationalD::args, OPS] (*4*)Messages[VariationalD] The output of the second line is {} as expected for a…
Hector
  • 6,428
  • 15
  • 34
0
votes
0 answers

the usage message for a function does not display on Mathematica 10.3.1 Linux

I write a function f[x_]:=Module[{},( f::usage="gives the square of x" x^2 )] When I run ?f I get a this output: Global` CreateUUID["Info-"] False False False What is the problem? Is it a bug in mathematica ?
BetterEnglish
  • 2,026
  • 13
  • 19