{"id":13787000,"url":"https://github.com/judemanutd/KaTeXView","last_synced_at":"2025-05-12T00:30:39.241Z","repository":{"id":96037911,"uuid":"175671526","full_name":"judemanutd/KaTeXView","owner":"judemanutd","description":"KaTeX View for android","archived":false,"fork":false,"pushed_at":"2020-02-16T07:42:40.000Z","size":1637,"stargazers_count":55,"open_issues_count":6,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T00:37:16.808Z","etag":null,"topics":["android","android-library","katex","kotlin","kotlin-android","tex","webview","webview-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/judemanutd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-14T17:43:16.000Z","updated_at":"2024-06-03T17:48:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"7085580b-a05b-4670-a4a0-066f2ce6cb8b","html_url":"https://github.com/judemanutd/KaTeXView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judemanutd%2FKaTeXView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judemanutd%2FKaTeXView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judemanutd%2FKaTeXView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/judemanutd%2FKaTeXView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/judemanutd","download_url":"https://codeload.github.com/judemanutd/KaTeXView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655755,"owners_count":21943068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","katex","kotlin","kotlin-android","tex","webview","webview-library"],"created_at":"2024-08-03T20:00:24.483Z","updated_at":"2025-05-12T00:30:37.492Z","avatar_url":"https://github.com/judemanutd.png","language":"Kotlin","funding_links":[],"categories":["Library"],"sub_categories":[],"readme":"# KaTeX View\n\n[![Download](https://api.bintray.com/packages/jude-manutd/maven/katexview/images/download.svg) ](https://bintray.com/jude-manutd/maven/katexview/_latestVersion)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://opensource.org/licenses/MIT) \n[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)\n\nA library that uses [Khan Academy KaTeX](https://github.com/KaTeX/KaTeX) for TeX math rendering.\n\n## Usage\n\n### Gradle\n\nAdd this to your module's build.gradle file:\n\n```groovy\n\ndependencies {\n    // ... other dependencies\n    implementation 'com.github.judemanutd:katexview:1.0.2'\n}\n\n```\n\n### Maven\n\n```xml\n\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.judemanutd\u003c/groupId\u003e\n  \u003cartifactId\u003ekatexview\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.2\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n\n```\n__________\n\nInclude the following code in your xml layout\n\n```xml\n\u003ccom.judemanutd.katexview.KatexView\n    android:id=\"@+id/katex_text\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    app:textColor=\"@color/colorPrimary\" /\u003e\n```\n\nYou can then supply the text to be rendered in kotlin or java\n\n```kotlin\n\nval text = \"$$ c = \\\\pm\\\\sqrt{a^2 + b^2} $$\"\nkatex_text.setText(text)\n\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/judemanutd/KatexView/master/example.png\" /\u003e\n\n## Supported Attributes\n\nAll webview attributes are automatically inherited, in addition to that, the following can be customized \n- `color` \n    - can be specified in xml using the `textColor` attribute\n    - can be used in code by calling the `setTextColor` on the `KatexView`\n- `text size` - _coming soon_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudemanutd%2FKaTeXView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjudemanutd%2FKaTeXView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudemanutd%2FKaTeXView/lists"}