パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.5.1

latext

flutter_math ライブラリを使用して、WebView や JavaScript に依存せずに、Android、iOS、Web、デスクトッププラットフォームで科学的な LaTeX 数式を効率的に表示します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1720
いいね数
40
Pub ポイント
155

パッケージをインストール

flutter pub add latext

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Latextは、WebViewやJavaScriptを使用せずに、Android、iOS、Web、macOS、Windows、Linuxで効率的に科学的なLaTeX式をレンダリングするFlutterパッケージです。flutter_mathの上に構築されており、高品質なプラットフォームネイティブな数式表示を実現し、高速なパフォーマンスと正確なタイポグラフィを提供します。教育アプリ、研究ツール、技術文書に最適であり、ターゲットプラットフォームに関係なく一貫したレンダリングを確保します。複雑な数学式をサポートし、既存のFlutterプロジェクトにシームレスに統合できます。

用途

  • 教育アプリ
  • 研究および学術ツール
  • 技術文書
  • Web およびデスクトップアプリケーション内の数学的コンテンツ
  • インタラクティブな学習プラットフォーム

主な機能

  • WebView を使用せずにネイティブレンダリング
  • クロスプラットフォーム互換性
  • 高性能な式表示
  • 複雑な LaTeX 構文のサポート
  • Flutterとのシームレスな統合

適している対象

  • 数学的に負荷の高いアプリケーションを開発する開発者
  • インタラクティブな学習体験を構築する教育者
  • 一貫したUIで複数のプラットフォームをターゲットにするチーム
  • 正確な数学のタイプセットを必要とするアプリ

注意事項

  • LaTeX数式のレンダリングに限定
  • LaTeX構文の理解が必要です
  • 高度なLaTeXパッケージに対する最小限のサポートがある可能性があります
  • 静的または準動的な数学コンテンツに最適

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

latext

Render scientific LaTeX equations using the LaTexT library.

  • Mathematics / Maths Equations (Algebra, Calculus, Geometry, Geometry etc...)
  • Physics Equations
  • Signal Processing Equations
  • Chemistry Equations
  • Statistics / Stats Equations
  • Inherit text style from parent widgets

LaTeX rendering is done using flutter_math_fork and using RichText.

latext is working on Android, iOS, the Web and the Desktop platform.

What's the difference to flutter_math_fork library?

flutter_math_fork is simply taking any input for Math rendering. We split up into Text and Math parts. You can use a separator (eg. the common "$" or "$$"). Content between these separators is rendered as math while anything outside of these separators is rendered as normal Flutter Text. This makes Text containing only some single formula parts much easier.

Use this package as a library

Add this to your package's pubspec.yaml file:

dependencies:
  latext: ^0.4.1

You can install packages from the command line with Flutter:

flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Now in your Dart code, you can use:

import 'package:latext/latext.dart';

...

// A static LaTeX block which may not change on `setState()`
return LaTexT(laTeXCode: Text("\\alpha", style: Theme.of(context)
                      .textTheme
                      .bodyText1
                      .copyWith(color: Colors.red)))

// A dynamic LaTeX block which is rebuilt on `setState()` (less efficient but required sometimes)
return Builder(builder: (context) => LaTexT(laTeXCode: Text("\\alpha", style: Theme.of(context)
                      .textTheme
                      .bodyText1
                      .copyWith(color: Colors.red))))

This package was adapted from KaTexFlutter.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト