Skip to main content
8 votes
Accepted

What is the status of `::usage` and Templates in Mathematica v11?

1) The complete failure of Make Template with formatted usages is fixed in our next release. I can't promise you it will look 100% beautiful in all cases, but the number of templates will match the ...
Itai Seggev's user avatar
  • 14.2k
6 votes

User-defined usage message template; removing repeated text

The short answer is: there isn't currently a way to do so. As @istvan has correctly guessed, both the usage messages and the templates come from a common source, which is in fact the source notebooks ...
Itai Seggev's user avatar
  • 14.2k
6 votes

Usage displays properly only after second call

As I mentioned here, this particular issue is fixed in our next release (11.2). This issue was noticed internally in one of the beta release of V6 (but was never reported to support by external users),...
Itai Seggev's user avatar
  • 14.2k
5 votes

How to prevent Mathematica from inserting random line breaks in usage messages?

I usually discourage the use of StandardForm strings, but this is a case where it makes sense, since usage messages have to be strings. The key is to format the ...
Carl Woll's user avatar
  • 131k
4 votes
Accepted

Internal function overload when calling ReadString on a fresh kernel

(analysis current as of version 11.1) 1) Why is ReadString so special and what is that error? In a fresh kernel, ReadString is auto-loaded from the ...
WReach's user avatar
  • 69k
4 votes
Accepted

Apply on Message resolves MessageName before applying

Message is HoldFirst in order to handle MessageName well. You need to prevent ...
Kuba's user avatar
  • 137k
4 votes
Accepted

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

Here's a way around that, making use of the very-hard-to-work-with string-embedded syntax for boxes: ...
b3m2a1's user avatar
  • 46.9k
4 votes
Accepted

How to prevent Mathematica from inserting random line breaks in usage messages?

I faced the same problem when writing my own package (OGRe: An Object-Oriented General Relativity Package). My initial solution, which I first posted here, was to convert spaces to ...
Barak Shoshany's user avatar
3 votes

How can I automatically generate usage messages?

Here's a partial implementation, working from the DownValues and friends: We start with a bunch of DownValues cleaning: ...
b3m2a1's user avatar
  • 46.9k
3 votes

Strange bug with "MessageName[a,b] is not of the form symbol::name ", Debugger & cursor location

Weird. I can sometimes reproduce this, but only on Windows, and only some of the time. If I take a cell which suffers from this, copy and paste it, and try again, it will disappear. This is a bug ...
Itai Seggev's user avatar
  • 14.2k
2 votes
Accepted

How to produce an error message for function with a wrong parameter and default values for other parameter

I don't think there is a nice solution that does exactly what you're asking, as it is not really possible to give a well-define behavior: Since x doesn't match any ...
Lukas Lang's user avatar
  • 34.1k
2 votes
Accepted

Assigning ::usage in a package for in Private generated symbols?

Is this what you want? I've changed your Evaluate[Symbol["my" <> list[i, "name"]]] =... to something more flexible. Read more in: How do you programatically ...
Kuba's user avatar
  • 137k
2 votes
Accepted

Information/Information`InformationValueForm using Full- or InputForm

I found the answer to my question in the source code of several Mathematica core functions. Using the immensely helpful function GeneralUtilities`PrintDefinitions ...
N0va's user avatar
  • 3,410
2 votes

Ignore message in `Check` without silencing

Method 1 ...
Michael E2's user avatar
  • 237k
2 votes
Accepted

Symbols leak into Global context when using Information

This is due to usage message, with which Information attempts to provide for user. ...
rnotlnglgq's user avatar
  • 3,740
1 vote
Accepted

Restore messages function to the default ones

AFTER evaluation of NDSolve[ ] command evaluate Messages[NDSolve]. It will list all messages that occurred during evaluation. Suppressed messages are wrapped by head $Off.
Acus's user avatar
  • 3,680
1 vote

Strange bug with "MessageName[a,b] is not of the form symbol::name ", Debugger & cursor location

Response from Wolfram Technical Support: "It does appear that MessageName is not behaving properly when the Debugger is enabled, and I have forwarded an incident report to our developers with the ...
FalafelPita's user avatar
1 vote

Transform fancy usage messages in 1D string

In order to obtain the non-formatted usage string for any symbol, e.g. Integrate, you can just use ...
JEM_Mosig's user avatar
  • 3,003

Only top scored, non community-wiki answers of a minimum length are eligible