登录 注册

texmath

去点 Star
其他
410
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Haskell
语言
—
创建时间
最近更新

项目能做什么

texmath 是一个用于数学公式格式转换的 Haskell 库。它支持在 TeX math、MathML 和 OMML 之间相互转换,并能输出为 Typst、Gnu eqn、StarMath 及 Pandoc 原生格式。除作为代码库使用外,它还可编译为命令行工具或提供 JSON API 的 Web 服务。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# texmath

[![CI
tests](https://github.com/jgm/texmath/workflows/CI%20tests/badge.svg)](https://github.com/jgm/texmath/actions)

texmath is a Haskell library for converting between formats used to
represent mathematics.  Currently it provides functions to read and
write TeX math, presentation MathML, and OMML (Office Math Markup
Language, used in Microsoft Office), and to write Gnu eqn, typst,
StarMath (used by LibreOffice), and [pandoc]'s native format
(allowing conversion, using pandoc, to a variety of different
markup formats). The TeX reader and writer supports basic LaTeX
and AMS extensions, and it can parse and apply LaTeX macros. The
package also includes several utility modules which may be useful
for anyone looking to manipulate either TeX math or MathML. For
example, a copy of the MathML operator dictionary is included.

[pandoc]: http://github.com/jgm/pandoc

You can [try it out online here](http://johnmacfarlane.net/texmath.html).

By default, only the Haskell library is installed.  To install a
test program, `texmath`, use the `executable` Cabal flag:

    cabal install -fexecutable

By default, the executable will be installed in `~/.cabal/bin`.

The `texmath` binary will be put in `~/.local/bin`.

Macro definitions may be included before a LaTeX formula.

# Running texmath as a server

`texmath` will behave as a CGI script when called under the name
`texmath-cgi` (e.g. through a symbolic link).

But it is also possible to compile a full webserver with a JSON
API.  To do this, set the `server` cabal flag, e.g.

    cabal install -fserver

To run the server on port 3000:

    texmath-server -p 3000

Sample of use, with `httpie`:

```
% http --verbose localhost:3000 text='2^2' from=tex to=mathml display:=false Accept:'text/plain'
POST /convert HTTP/1.1
Accept: text/plain
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 64
Content-Type: application/json
Host: localhost:3000
User-Agent: HTTPie/3.1.0

{
    "display": false,
    "from": "tex",
    "text": "2^2",
    "to": "mathml"
}


HTTP/1.1 200 OK
Content-Type: text/plain;charset=utf-8
Date: Mon, 21 Mar 2022 18:29:26 GMT
Server: Warp/3.3.17
Transfer-Encoding: chunked

<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
  <msup>
    <mn>2</mn>
    <mn>2</mn>
  </msup>
</math>
```

Possible values for `from` are `tex`, `mathml`, and `omml`.
Possible values for `to` are `tex`, `mathml`, `omml`, `eqn`,
`typst` and `pandoc` (JSON-encoded Pandoc).

Alternatively, you can use the `/batch` endpoint, passing
in in a JSON-encoded list of conversions and getting back a
JSON-encoded list of results.

If you rename `pandoc-server` to `pandoc-server.cgi`, it will
function as a CGI program that accepts POST requests.

# Generating lookup tables

There are three main lookup tables which are built form externally compiled lists.
This section contains information about how to modify and regenerate these tables.

In the `lib` direction there are two sub-directories wh
阅读完整原文

项目深度分析 规则生成(AI 未配置)

综合评分 41.4 分。该项目在“个人可实施性”维度得 30 分,“付费可能性”维度得 15.0 分,差异化空间 45.0 分(评分依据见评分卡)。

面向细分需求的二次开发产品

产品构想基于 texmath 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
goessner/markdown-it-texmath 中文介绍暂未生成
Support TeX math equations with your Markdown documents.
183 HTML
shoujiaxin/texmath 中文介绍暂未生成
A simple helper and editor of LaTeX mathematical equations f
8 Swift
hollingberry/texmath-ruby 中文介绍暂未生成
Convert math markup between LaTeX, MathML, and OMML using Ru
6 Ruby
sp1ritCS/TexMaths 中文介绍暂未生成
Mirror of TexMaths, Upstream: https://sourceforge.net/projec
3 JavaScript
dedbox/racket-texmath 中文介绍暂未生成
Pseudo-(La)TeX mathematical notation for Racket Scribble doc
3 Racket
BasemRajjoub/bsm_texmath_bitmap 中文介绍暂未生成
Simplified LaTeX math layout for a fixed-width bitmap font (
2 C
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送
社区活跃Star 410 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。