Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Added replacement to \cdot for *•×
Browse files Browse the repository at this point in the history
  • Loading branch information
LimoDerEchte committed Mar 13, 2024
1 parent f338e3f commit b782c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/com/limo/notecompanion/LatexEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ public void onTextChanged(CharSequence charSequence, int start, int count, int a
builder .append("$")
.append(lines[i]
.replace("=", "$ & $=$ & $")
.replace("\\tab", "$ & & $"))
.replace("\\tab", "$ & & $")
.replace("*", " \\cdot ")
.replace("•", " \\cdot ")
.replace("×", " \\cdot "))
.append("$");
int tabs = lines[i].split("=").length;
if(tabs > 0)
Expand Down

0 comments on commit b782c89

Please sign in to comment.