Message Boards Message Boards

0
|
5770 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

SyntaxInformation ignored when MA creates a package automatically - .m file

Posted 11 years ago
$Version
"9.0 for Microsoft Windows (64-bit) (January 25, 2013)"

I have a line in my .nb file that reads comething like this:
SyntaxInformation[myFunc] = {"ArgumentsPattern" -> {_, _}};

I tried placing it in both the private and public sections - same result
When Mathematica writes the .m file upon saving the notebook the SyntaxInformation line is simply missing
If I manually add it to the .m file things work as expected. Is there something I'm not doing right?
POSTED BY: Todor Latev
3 Replies
Do you have a version of this notebook that you can share here? It's difficult to answer this question without seeing the exact problem.
POSTED BY: Arnoud Buzing
Posted 11 years ago
Yes it is...the entire nb file actually contains just one initialization cell
POSTED BY: Todor Latev
Is the cell that contains the "SyntaxInformation = ..." statement an initialization cell? (it needs to be, to be included in the auto save package)

http://reference.wolfram.com/mathematica/ref/AutoGeneratedPackage.html
POSTED BY: Arnoud Buzing
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract