Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mathics/format/render/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
# When it get fixed, we can use that table instead of this one:


# FIXME: get the below character symbols from a JSON file derived from named-characters.yml
TEX_REPLACE = {
"{": r"\{",
"}": r"\}",
Expand All @@ -59,8 +60,8 @@
"|": r"\vert{}",
"\u222b": r"\int ",
"\u2146": r"\, d",
"\uF74C": r"\, d",
"\U0001D451": r"\, d",
"\uf74c": r"\, d",
"\U0001d451": r"\, d",
"\u00d7": r"\times ",
}
TEX_TEXT_REPLACE = TEX_REPLACE.copy()
Expand All @@ -73,7 +74,7 @@
"\\": r"$\backslash$",
"^": r"${}^{\wedge}$",
"\u222b": r"$\int$ ",
"\uF74C": r"\, d",
"\uf74c": r"\, d",
"\u00d7": r"$\times$",
}
)
Expand Down
Loading