lingarajsankaravelu / Katex

Android Katex library to render math Formula faster in android using khanacademy Katex

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Katex

Markdown Preview Enhanced
One of the 'BEST' markdown preview extensions for Atom editor!
Stars: ✭ 3,478 (+2476.3%)
Mutual labels:  katex
Dominhhai.github.io
My Blog
Stars: ✭ 8 (-94.07%)
Mutual labels:  katex
Spmathkit
Render math exercises for your view. Contains the rendering of mathematical formulas and mathematical graphics, as well as the general text
Stars: ✭ 81 (-40%)
Mutual labels:  katex
React Katex
Display math in TeX with KaTeX and ReactJS
Stars: ✭ 345 (+155.56%)
Mutual labels:  katex
Mdmath
LaTeX Math for Markdown inside of Visual Studio Code.
Stars: ✭ 675 (+400%)
Mutual labels:  katex
Yii2 Quill
Yii 2 implementation of Quill, modern WYSIWYG editor
Stars: ✭ 52 (-61.48%)
Mutual labels:  katex
vuepress-theme-gungnir
A blog theme for VuePress 2.
Stars: ✭ 160 (+18.52%)
Mutual labels:  katex
Remark Math
remark and rehype plugins to support math
Stars: ✭ 129 (-4.44%)
Mutual labels:  katex
Ngx Markdown
Angular markdown component/directive/pipe/service to parse static, dynamic or remote content to HTML with syntax highlight
Stars: ✭ 687 (+408.89%)
Mutual labels:  katex
Article
Components for interactive scientific writing, reactive documents and explorable explanations.
Stars: ✭ 77 (-42.96%)
Mutual labels:  katex
Liandi
📕 一款桌面端的 Markdown 块级引用和双向链接笔记应用,支持 Windows、Mac 和 Linux。A desktop Markdown Block-Reference and Bidirectional-Link note-taking application, supports Windows, Mac and Linux.
Stars: ✭ 354 (+162.22%)
Mutual labels:  katex
Franklin.jl
(yet another) static site generator. Simple, customisable, fast, maths with KaTeX, code evaluation, optional pre-rendering, in Julia.
Stars: ✭ 413 (+205.93%)
Mutual labels:  katex
Hepek
Web content generators in Scala. Intuitive, scalable, powerful.
Stars: ✭ 69 (-48.89%)
Mutual labels:  katex
Qilin App
Fully hackable text editor developed for exact sciences with built-in KaTeX and AsciiMath support. Extensible via plugins and themes. Exportable as HTML, PDF and GFM.
Stars: ✭ 336 (+148.89%)
Mutual labels:  katex
Vue Katex
Vue plugin for KaTeX
Stars: ✭ 82 (-39.26%)
Mutual labels:  katex
Noteless
A Markdown-based note-taking app for mobile devices.
Stars: ✭ 302 (+123.7%)
Mutual labels:  katex
Prosemirror Math
Schema and plugins for "first-class" math support in ProseMirror!
Stars: ✭ 43 (-68.15%)
Mutual labels:  katex
Editor.md
The open source embeddable online markdown editor (component).
Stars: ✭ 11,741 (+8597.04%)
Mutual labels:  katex
Gatsby Starter Lumen
A constantly evolving and thoughtful architecture for creating static blogs.
Stars: ✭ 1,797 (+1231.11%)
Mutual labels:  katex
Jekyll Katex
Jekyll plugin for easy server-side math rendering via KaTeX
Stars: ✭ 73 (-45.93%)
Mutual labels:  katex

Android Arsenal Stable

A KhanAcademy Katex based Library for Rendering math faster in various Android Devices. This a View which is created from extending webview. This view allows you to render latex in your android devices. It can load normal text, text with latex and latex alone. The only thing you have to make sure is your latex should be enclosed inside either $your latex formula$ or $$your latex formula$$. This will also allow you to beautify your formula text by setting color and text size.


Accepted Inputs

$x=\frac{1+y}{1+2z^2}$

or

 $$x=\frac{1+y}{1+2z^2}$$

or

 sum of ratios =4+3=7 $=\frac{4}{7}\times560=320$

or

 Data Included inside HTML TAGS
 
 <p>If <span class="latexEle" data-latex="x:35::48:60">$x:35::48:60$</span><span>  </span>, find the value of <span class="latexEle" data-latex="x">$x$</span><span>  </span>.</p>

Setup

Dependencies
{
  implementation 'in.hourglass.mathrender:katexmathview:1.0.3'
}

Attributes supported

 setTextColor          -> Allows you to beautify your latex with specific color of your choice
 setTextSize           -> Allows you to set text size of the latex displayed on screen
 setViewBackgroudColor -> set the background color of the view.
 setClickable  
   i.True     -> Setting this to true will allow KatexMathview to act as Textview and it will also intercept parent layout touchevent useful to register click 
   when this view is used with List,Recyclerview.
   ii.False   -> Setting this to false will make katexMathvview act as an webview with zoom in controls etc. 

Adding to your XML Layout

    <katex.hourglass.in.mathlib.MathView
      app:setTextColor="@color/primary"
      app:setTextSize="14sp"
      app:setClickable="true"
      app:setText="@string/single_formula"
      android:layout_gravity="center"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" />

Adding at runtime

    MathView mathView = new MathView(getApplicationContext());
    mathView.setClickable(true);
    mathView.setTextSize(14);
    mathView.setTextColor(ContextCompat.getColor(getApplicationContext(),android.R.color.white));
    mathView.setDisplayText(getResources().getString(R.string.runtime_formula));
    mathView.setViewBackgroundColor(ContextCompat.getColor(getApplicationContext(),android.R.color.black));
    parent_layout.addView(mathView);

Demo

demo_katex_list_200 demo_katex_layout_200 demo_katex_runtime_200

Sample code is available under the app module, in this same repo

License

 The MIT License (MIT)

 Copyright (c) 2017 Lingaraj Sankaravelu

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].