Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

It is not clear, what symbol is used in Notation function description for arrows? How to enter it in textual mode within Workbench?

Here: http://reference.wolfram.com/mathematica/Notation/ref/Notation.html

share|improve this question
    
Perhaps if you copy the code from the front end as inputform? –  Ajasja Jan 25 '13 at 13:53
add comment

1 Answer

The Notation function is part of the Notation package. You need to load the package first, then you can use the Notation palette to simply paste the Notation template and fill the placeholders.

If you cannot use the notation palette,for ex. because you are using a code editor like in WB, then you use the notation template with option Action -> PrintNotationRules. The Notation templates are user interfaces to easily input NotationMakeExpression and/or NotationMakeBoxes commands. So my suggested workflow is the following:

  • load the Notation package in a new notebook
  • using the notation palette, make your special notation. Use the Action -> PrintNotationRules option in the template

The output are NotationMakeExpression and/or NotationMakeBoxes cells. Select the contents of these cells and paste them in the code cells of your .m file in WB. Of course you must also have a Needs["Notation`"] command present in your .m file.

That's it!

Personally I use a different workflow for my packages (my WildCats package heavily uses the Notation package). I use WB calling MMA as editor of my .nb files which autogenerate the .m files for my package. I described this technique here.

You can read the documentation page:"Options and Auxiliary Functions". At the end the section :"The Option Action" the option Action -> PrintNotationRules is explained.

Happy Notation creation! :-)

share|improve this answer
    
I need to enter code from Within Wolfram Workbench. This is programmers environment based on Eclipse and has no any palettes. –  Suzan Cioc Mar 26 '13 at 11:32
    
@SuzanCioc I just updated my answer to cover this case –  magma Mar 26 '13 at 13:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.