Giter Site home page Giter Site logo

jlatexmath-android's Introduction

JLatexMath Android

This is a fork of jlatextmath project that brings rendering of LaTeX math to Android. Fork tries to keep as close as possible to the parent project by mimicking java.awt.* package classes.

Installation

jlatexmath-android jlatexmath-android-font-cyrillic jlatexmath-android-font-greek

implementation 'ru.noties:jlatexmath-android:${version}'

// for Cyrillic symbols
implementation 'ru.noties:jlatexmath-android-font-cyrillic:${version}'

// for Greek symbols 
implementation 'ru.noties:jlatexmath-android-font-greek:${version}'

Screenshots

Other screenshots can be found ./app/screenshots folder

Usage

final JLatexMathDrawable drawable = JLatexMathDrawable.builder(latex)
        .textSize(70)
        .padding(8)
        .background(0xFFffffff)
        .align(JLatexMathDrawable.ALIGN_RIGHT)
        .build();
<ru.noties.jlatexmath.JLatexMathView
    android:id="@+id/j_latex_math_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="16dip"
    android:background="@color/white"
    app:jlmv_alignVertical="center"
    app:jlmv_alignHorizontal="center"
    app:jlmv_textSize="16sp" />

Licence

GNU GENERAL PUBLIC LICENSE Version 2, June 1991

jlatexmath-android's People

Contributors

calixteman avatar davidmoten avatar fnatter avatar noties avatar opcodevoid avatar sylvestre avatar vlad-ivanov-name avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jlatexmath-android's Issues

style tag not rendaring

org.scilab.forge.jlatexmath.ParseException: Unknown symbol or command or predefined TeXFormula: 'style'
at org.scilab.forge.jlatexmath.TeXParser.processEscape(TeXParser.java:1243)
at org.scilab.forge.jlatexmath.TeXParser.parse(TeXParser.java:705)
at org.scilab.forge.jlatexmath.TeXFormula.(TeXFormula.java:256)
at org.scilab.forge.jlatexmath.TeXFormula.(TeXFormula.java:240)

The issue for rendering style Tag in Android application.

Catch LaTeX Parse Exceptions

Markwon#225

It seems that in case of bad LaTeX library tries to load some system font to display text instead of a rendered formula. For example this code in org.scilab.forge.jlatexmath.JavaFontRenderingBox:

private static Font font = new Font("Serif", Font.PLAIN, 10);

bold italic symbols

Hi, Is it possible (in an easy way) bold italic font. In geogebra I use \mathbf{\mathit{R}}.
Thanks for an advice
Andrzej

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.