0
$\begingroup$

For the most part, elements of the Notation package that are part of a package I load work without issues, but InfixNotation appears not to be correctly parsed by package load

For example if I have a package containing

InfixNotation[ParsedBoxWrapper["\[CircleTimes]"],KroneckerProduct];

this has no effect when loaded. Is there something additional I need to do to load InfixNotation definitions?

$\endgroup$

1 Answer 1

0
$\begingroup$

Be sure to put InfixNotation before the "Private" section of your package:

(* ::Package:: *)

BeginPackage["NBug`",{"Notation`"}];

Unprotect@@Names["NBug`*"];
ClearAll@@Names["NBug`*"];

InfixNotation[ParsedBoxWrapper["\[CircleTimes]"],TensorProduct] ;
InfixNotation[ParsedBoxWrapper["\[CenterDot]"],Dot] ;

Begin["`Private`"];
(* Don't put InfixNotation here *)

End[];(*`Private`*)

EndPackage[];
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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