jianzhongli / MathView

A library for displaying math formula in Android apps.
Apache License 2.0
1.01k stars 189 forks source link

"overrightarrow" does not work with KaTeX #65

Closed programmeraditya closed 5 years ago

programmeraditya commented 5 years ago

I replaced the KateX's source with the latest version's files, but still "overrightarrow" does not work. This keyword totally breaks the view, but when I use "vec" instead, it works properly. overrightarrow was added later on, I believe, but still after replacing the files, it did not work. Any solutions?

programmeraditya commented 5 years ago

Never mind, it works now.

For anyone else currently facing issues as I did, do this:

  1. Download the source of MathView.
  2. Download Katex's latest version from katex.org
  3. Navigate inside MathView's source folder, go to "assets" folder.
  4. Replace the files inside "katex" with the ones from Katex's latest version
  5. Now go to Android Studio and import the "MathView" folder as a "module"
  6. Add the following code to your app-level build.gradle

compile project(:<module_name>)

Replace with the name you entered in step 5

  1. Sync and build