Skip to content

alvarosh15/text2math

Repository files navigation

Text2Math

Text2Math (https://text2math.vercel.app) is a web application that allows you to convert text into mathematical equations using LaTeX or AsciiMath. The application also includes a toolbar that enables users to change text alignment, background color, and text color.

Features

  • Render Mathematical Equations: Supports both LaTeX and AsciiMath syntax.
  • Inline Math: You can write inline math such as (2^2) using LaTeX or 2^2 using AsciiMath.
  • Customizable Appearance: Use the toolbar to adjust text alignment, background color, and text color.
  • Download or Copy Image: Easily download the generated image as a PNG or copy it to the clipboard. This solves the problem of sharing mathematical text quickly on social media, enhancing readability.

Screenshots

Light Mode

Dark Mode

Background Changed

Installation

  1. Clone the repository:

    git clone https://github.com/alvarosh15/text2math.git
    cd text2math
  2. Install dependencies:

    npm install
  3. Run the application:

    npm run dev

Usage

  1. Enter your text with LaTeX or AsciiMath syntax.
  2. Use the toolbar to adjust text alignment, background color, and text color.
  3. Click on the download button to save the preview as a PNG image.
  4. Click on the copy button to copy the preview to the clipboard.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements.

License

This project is licensed under the MIT License.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published