Quick patch to avoid LaTeX errors with double subscripts, now that I'm using katex-convert-unicode to convert some characters to LaTeX directly (I should do this only for HTML output… to be fixed later)

This commit is contained in:
Georges Dupéron 2017-07-11 02:45:42 +02:00
parent 8714493822
commit a03874e520

View File

@ -23,40 +23,40 @@
(if (string? str) (if (string? str)
(string-replace* (string-replace*
str str
'([ "_0"] '([ "{}_0"]
[ "_1"] [ "{}_1"]
[ "_2"] [ "{}_2"]
[ "_3"] [ "{}_3"]
[ "_4"] [ "{}_4"]
[ "_5"] [ "{}_5"]
[ "_6"] [ "{}_6"]
[ "_7"] [ "{}_7"]
[ "_8"] [ "{}_8"]
[ "_9"] [ "{}_9"]
[ "_i"] [ "{}_i"]
[ "_j"] [ "{}_j"]
[ "_k"] [ "{}_k"]
[ "_l"] [ "{}_l"]
[ "_m"] [ "{}_m"]
[ "_n"] [ "{}_n"]
[ "_o"] [ "{}_o"]
[ "^0"] [ "{}^0"]
[¹ "^1"] [¹ "{}^1"]
[² "^2"] [² "{}^2"]
[³ "^3"] [³ "{}^3"]
[ "^4"] [ "{}^4"]
[ "^5"] [ "{}^5"]
[ "^6"] [ "{}^6"]
[ "^7"] [ "{}^7"]
[ "^8"] [ "{}^8"]
[ "^9"] [ "{}^9"]
[ "^i"] [ "{}^i"]
[ʲ "^j"] [ʲ "{}^j"]
[ "^k"] [ "{}^k"]
[ˡ "^l"] [ˡ "{}^l"]
[ "^m"] [ "{}^m"]
[ "^n"] [ "{}^n"]
[ "^o"] [ "{}^o"]
[ "\\subseteq" "\\ensuremath{\\subseteq}"] [ "\\subseteq" "\\ensuremath{\\subseteq}"]
[ "\\subset" "\\ensuremath{\\subset}"] [ "\\subset" "\\ensuremath{\\subset}"]
[ "\\supseteq" "\\ensuremath{\\supseteq}"] [ "\\supseteq" "\\ensuremath{\\supseteq}"]