Superscripts in HTML and LaTeX
svn: r1503
This commit is contained in:
parent
695f4298a0
commit
54931d3a6a
@ -408,6 +408,8 @@ class HtmlDoc(TextDoc.TextDoc):
|
|||||||
text = string.replace(text,'<','<');
|
text = string.replace(text,'<','<');
|
||||||
text = string.replace(text,'>','>');
|
text = string.replace(text,'>','>');
|
||||||
text = string.replace(text,'\n','<br>')
|
text = string.replace(text,'\n','<br>')
|
||||||
|
text = text.replace('<super>','<sup>')
|
||||||
|
text = text.replace('</super>','</sup>')
|
||||||
if text != "":
|
if text != "":
|
||||||
self.empty = 0
|
self.empty = 0
|
||||||
self.f.write(text)
|
self.f.write(text)
|
||||||
|
@ -381,6 +381,8 @@ class LaTeXDoc(TextDoc.TextDoc):
|
|||||||
if text == '\n':
|
if text == '\n':
|
||||||
text = '\\newline\n'
|
text = '\\newline\n'
|
||||||
text = string.replace(text,'#','\#')
|
text = string.replace(text,'#','\#')
|
||||||
|
text = text.replace('<super>','\\textsuperscript{')
|
||||||
|
text = text.replace('</super>','}')
|
||||||
self.f.write(text)
|
self.f.write(text)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user