Skip to content

Commit

Permalink
Quick patch to avoid LaTeX errors with double subscripts, now that I'…
Browse files Browse the repository at this point in the history
…m using katex-convert-unicode to convert some characters to LaTeX directly (I should do this only for HTML output… to be fixed later)
  • Loading branch information
SuzanneSoy committed Jul 11, 2017
1 parent 8714493 commit a03874e
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions katex-convert-unicode.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,40 @@
(if (string? str)
(string-replace*
str
'([₀ "_0"]
[₁ "_1"]
[₂ "_2"]
[₃ "_3"]
[₄ "_4"]
[₅ "_5"]
[₆ "_6"]
[₇ "_7"]
[₈ "_8"]
[₉ "_9"]
[ᵢ "_i"]
[ⱼ "_j"]
[ₖ "_k"]
[ₗ "_l"]
[ₘ "_m"]
[ₙ "_n"]
[ₒ "_o"]
[⁰ "^0"]
"^1"]
"^2"]
"^3"]
[⁴ "^4"]
[⁵ "^5"]
[⁶ "^6"]
[⁷ "^7"]
[⁸ "^8"]
[⁹ "^9"]
[ⁱ "^i"]
"^j"]
[ᵏ "^k"]
"^l"]
[ᵐ "^m"]
[ⁿ "^n"]
[ᵒ "^o"]
'([₀ "{}_0"]
[₁ "{}_1"]
[₂ "{}_2"]
[₃ "{}_3"]
[₄ "{}_4"]
[₅ "{}_5"]
[₆ "{}_6"]
[₇ "{}_7"]
[₈ "{}_8"]
[₉ "{}_9"]
[ᵢ "{}_i"]
[ⱼ "{}_j"]
[ₖ "{}_k"]
[ₗ "{}_l"]
[ₘ "{}_m"]
[ₙ "{}_n"]
[ₒ "{}_o"]
[⁰ "{}^0"]
"{}^1"]
"{}^2"]
"{}^3"]
[⁴ "{}^4"]
[⁵ "{}^5"]
[⁶ "{}^6"]
[⁷ "{}^7"]
[⁸ "{}^8"]
[⁹ "{}^9"]
[ⁱ "{}^i"]
"{}^j"]
[ᵏ "{}^k"]
"{}^l"]
[ᵐ "{}^m"]
[ⁿ "{}^n"]
[ᵒ "{}^o"]
[⊆ "\\subseteq" "\\ensuremath{\\subseteq}"]
[⊂ "\\subset" "\\ensuremath{\\subset}"]
[⊇ "\\supseteq" "\\ensuremath{\\supseteq}"]
Expand Down

0 comments on commit a03874e

Please sign in to comment.