Skip to content

Library for create and displaying math equations in native way, using Jetpack Compose

License

Notifications You must be signed in to change notification settings

mikelantzelo/EquationDisplayer

 
 

Repository files navigation

EquationDisplayer

Hello everyone!

If you use Jetpack Compose in your app and want to display different types of equation - welcome! I started to create native library for displaying equations, using Compose.

The main goal is create DSL based on only one object - EquationItem. You can create and decorate this object for displaying different types of equations. By nesting one object into another, you get more variety.

See some examples below

  1. For display simplest example, add EquationItem object, set value in constructor and call compose functions Show() on the object:

  1. EquationItem has different parameters in constructor. Couple examples below:

  1. You can mix parameters incide EquationItem and include one EquationItem inside another. But don't call Show() on inner EquationItems, it won't work!

  1. You can place list incide EquationItem component. Also, note, that Show() function can take inside FontParams for decorate your equation visibility:

  1. Finally, more complex example:

Android SDK version requirements

  • min sdk version: 21
  • target sdk version: 32

Using the lib in your gradle project

If you project use gradle version '7.1.0' or higher, add maven { url 'https://jitpack.io' } in your root settings.gradle file:

dependencyResolutionManagement {
    ...
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

If you gradle version is lower, add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
}

Finally, add dependency 'com.github.vkochenkov:EquationDisplayer:1.2' in build.gradle dependencies section:

dependencies {
    ...
    implementation 'com.github.vkochenkov:EquationDisplayer:1.2'
}

Feedback

I will be glad to hear any feedback from you. Please, connect me by email [email protected]

About

Library for create and displaying math equations in native way, using Jetpack Compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%