Many TeX commands now work with key-value pairs, like this:


I can generate that sort of thing with TeXML (below), but it's ugly. Is there a better way?

<cmd name="mycommand">
    <TeXML escape="0">key1={</TeXML><xsl:value-of select="myselector1"/>
    <TeXML escape="0">},key2={</TeXML><xsl:value-of select="myselector2"/>
    <TeXML escape="0">}</TeXML>
  • This seems off-topic ... ?
    – cfr
    Apr 19, 2016 at 1:29
  • Because it's about TeXML?
    – adam.baker
    Apr 19, 2016 at 3:37
  • Is that TeX-based?
    – cfr
    Apr 19, 2016 at 11:55
  • 2
    TeXML is a program that converts XML documents (in the TeXML format) into TeX files—more or less an intermediate format if you're generating TeX from XML. So it's not TeX but it's for TeX.
    – adam.baker
    Apr 20, 2016 at 3:39


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.