2
$\begingroup$

I have pasted this code in from Mathematica 10

<< Notation`
Symbolize[ParsedBoxWrapper[SubscriptBox["_", "_"]]]
a = Subscript[q, m]
b = Subscript[q, f]
TraditionalForm[a + b]

Though the definition of a and b look of identical form when pasted here, I entered a explicitly using Subscript while b is entered q then Ctrl+_+f. The Head of a is Subscript and the Head of b is Symbol (which is what I want in order to work with traditional notation in my field). In TraditionalForm, a is formatted correctly while b is formatted as q\[Underbracket]Subscript\[Underbracket]f.

So can I use something of the form q sub f as a symbol and still get nice output in traditional form?

I this case I think it is useful to post an image capture of the notebook:

enter image description here

$\endgroup$
  • $\begingroup$ Quoting reference.wolfram.com/language/ref/Subscript.html "Subscript[x,y] formats as ... in StandardForm and TraditionalForm" - but that might not be what you want? $\endgroup$ – dr.blochwave Aug 1 '14 at 20:45
  • $\begingroup$ Everything seems to be working OK here. We need a complete example where the output is not as you desire. $\endgroup$ – Mr.Wizard Aug 1 '14 at 21:26
  • $\begingroup$ I've added a screen capture which I think demonstrates the OPs problem. I think the question is related to creating subscripted symbols and whether or not the Notation package is the right way to do this. $\endgroup$ – bobthechemist Aug 2 '14 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.