if k == 'Link':
out.write(" link type %s\n" %
(type(v[1][0])))
- if k == 'RawInline' and v[0] == 'html' \
- and re.fullmatch(r"< *br */? *>", v[1]):
- return [RawInline('latex', r'\\')]
+ if k == 'RawInline' and v[0] == 'html':
+ if re.fullmatch(r"< *br */? *>", v[1]):
+ return [RawInline('latex', r'\\')]
+ if re.fullmatch(r"< *sup *>", v[1]):
+ return [RawInline('latex', r'\textsuperscript{')]
+ if re.fullmatch(r"< */ *sup *>", v[1]):
+ return [RawInline('latex', '}')]
+ if re.fullmatch(r"< *sub *>", v[1]):
+ return [RawInline('latex', r'\textsubscript{')]
+ if re.fullmatch(r"< */ *sub *>", v[1]):
+ return [RawInline('latex', '}')]
+ if re.fullmatch(r"< *small *>", v[1]):
+ return [RawInline('latex', r'{\small ')]
+ if re.fullmatch(r"< */ *small *>", v[1]):
+ return [RawInline('latex', '}')]
if __name__ == "__main__":