Support underscores in types.

This commit is contained in:
Achim D. Brucker 2018-06-08 15:42:18 +01:00
parent 675e9e2954
commit de7f94b3c7
1 changed files with 1 additions and 4 deletions

View File

@ -107,10 +107,7 @@ object DofConverter {
case CURLYOPEN::COMMAND("""\isacharcolon""")::CURLYCLOSE :: CURLYOPEN::COMMAND("""\isacharcolon""")::CURLYCLOSE :: tail => {
val (label, shead)= split(List(), head.reverse)
val (typ, stail) = split(List(), delSpace(tail))
val typstring = typ match {
case RAWTEXT(s)::Nil => s.capitalize
case _ => ""
}
val typstring = LaTeXLexer.toString(deMarkUpArgList(typ)).replace("_","").capitalize
(typstring,(shead.reverse)++List(RAWTEXT("""label={"""))++(label.reverse)++List(RAWTEXT("""}, type={"""))++typ++List(RAWTEXT("""}"""))++stail)
}
case CURLYOPEN::COMMAND("""\isacharbrackright""")::CURLYCLOSE :: tail => {