패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.5.1

latext

flutter_math 라이브러리를 사용하여 WebView 또는 JavaScript에 의존하지 않고 Android, iOS, Web 및 데스크톱 플랫폼에서 과학적 LaTeX 수식을 효율적으로 표시합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.7천
좋아요
40
Pub 점수
155

패키지 설치

flutter pub add latext

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Latext는 WebView나 JavaScript 없이 Android, iOS, Web, macOS, Windows, Linux에서 과학적 LaTeX 수식을 효율적으로 렌더링하는 Flutter 패키지입니다. flutter_math 위에 구축되어 있으며, 고품질의 플랫폼 네이티브 방정식 표시를 제공하며 빠른 성능과 정확한 타이포그래피를 갖추고 있습니다. 교육 앱, 연구 도구, 기술 문서에 이상적이며, 대상 플랫폼에 관계없이 일관된 렌더링을 보장합니다. 복잡한 수학 표현식을 지원하며 기존 Flutter 프로젝트에 원활하게 통합됩니다.

사용 사례

  • 교육 앱
  • 연구 및 학술 도구
  • 기술 문서
  • 웹 및 데스크톱 앱에서의 수학 콘텐츠
  • 인터랙티브 학습 플랫폼

주요 기능

  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트