I am working on some code, and have found it easier to use a Mathematica package because
- it is easier to run via command-line (lightweight)
- it allows for easier source versioning (Git), and
- it allows me to use another text editor for indentation alignment (for me, the FrontEnd does not behave too well in this regard).
I notice that it parses the package files and substitutes symbol escape sequences \[MathSymbol]
, but it does not parse out subscripts.
I can add subscripts in when editing via the FrontEnd, but once I save it and reload it, the subscripts are simply represented as InputFormat[]
.
I looked through the Option Inspector for parsing options and found the DefaultPackageStyleDefinitions
at
$InstallationDirectory/SystemFiles/FrontEnd/StyleSheets/Package.nb
EDIT: Four years later, but yes, I agree with the comments below in that I did not specify a clear question. Thinking back, my question here was: Is there a way to have the FrontEnd display symbols rather than their long-form version?
Symbol[]
expression in-place to return the math-style subscript expression. When it saves the file, it would simply save as it normally does, asSubscript[A, ...]
in plain-text. $\endgroup$Symbol[]
of an expression in-place, holding any child expressions so it only changes type-setting. Couldn't edit after 5 minutes, meh. $\endgroup$