Ways of expressing subscripted variable names in DITA?
Posted: Mon May 21, 2018 1:50 pm
Attempts at naming variables using subscripts will fail. Using TeX notation for illustration, the idea is that X_3 or t_P or TEMP_{hazard} are names of single objects, and I want to represent that in DITA.
and I digress.)
Are there different element types in DITA for me to use, other than resorting to MathML (which I am considering), that users of DITA could kindly suggest? Something that does permit <sub>. My current workaround is introducing <varname> elements in more places than I'd like to, as the single variables do not refer to objects, thus
Code: Select all
<varname>X<sub>3</sub></varname>
The failure is formally expected, and formally correct. Arguably, the DITA model does not reflect subscripted names as meaningful units. (Eventually, the model subsumes <sub> under typography, and what has typography got to do with variable names - I speculateInvalid content was found starting with element 'sub'...

Are there different element types in DITA for me to use, other than resorting to MathML (which I am considering), that users of DITA could kindly suggest? Something that does permit <sub>. My current workaround is introducing <varname> elements in more places than I'd like to, as the single variables do not refer to objects, thus
Code: Select all
<equation-inline><varname>t</varname><sub><varname>P</varname></sub></equation-inline>
<equation-inline><varname>TEMP</varname><sub><keyword>hazard</keyword></sub></equation-inline>