{"id":20799846,"url":"https://github.com/xnacly/tex2math","last_synced_at":"2026-04-26T07:32:55.706Z","repository":{"id":208227026,"uuid":"721074145","full_name":"xnacly/tex2math","owner":"xnacly","description":"tex2mathml - fast, small and embeddable latex math to mathml compiler","archived":false,"fork":false,"pushed_at":"2023-11-20T11:56:53.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T19:42:44.869Z","etag":null,"topics":["latex","mathml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xnacly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-20T09:58:39.000Z","updated_at":"2025-07-30T08:06:33.000Z","dependencies_parsed_at":"2023-11-20T12:48:11.835Z","dependency_job_id":"ebf9f5a7-90d6-4e57-bff5-e7ba5535797b","html_url":"https://github.com/xnacly/tex2math","commit_stats":null,"previous_names":["xnacly/tex2math"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xnacly/tex2math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnacly%2Ftex2math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnacly%2Ftex2math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnacly%2Ftex2math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnacly%2Ftex2math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xnacly","download_url":"https://codeload.github.com/xnacly/tex2math/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnacly%2Ftex2math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32289926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T06:26:00.361Z","status":"ssl_error","status_checked_at":"2026-04-26T06:25:58.791Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latex","mathml"],"created_at":"2024-11-17T18:10:26.521Z","updated_at":"2026-04-26T07:32:55.689Z","avatar_url":"https://github.com/xnacly.png","language":"Go","readme":"# tex2math\n\n\u003e _Warning_\n\u003e\n\u003e `tex2math` is currently in development, do not yet use it in production.\n\nCompile latex math to mathml.\n\n## Features:\n\n- embedable library \u0026 standalone cli tool\n- low memory footprint\n- very fast conversion\n- high performance\n- zero dependencies\n- custom macros\n\n## Usage\n\n### Cli tool\n\n```shell\n$ cat math.tex\n\\sqrt{5} \\pm x_i\n$ tex2math -i math.tex\n\u003cmath xmlns=\"http://www.w3.org/1998/Math/MathML\"\u003e\n  \u003cmrow\u003e\n    \u003cmsqrt\u003e\n      \u003cmn\u003e5\u003c/mn\u003e\n    \u003c/msqrt\u003e\n    \u003cmo\u003e±\u003c/mo\u003e\n  \u003c/mrow\u003e\n  \u003cmrow\u003e\n    \u003cmsub\u003e\n      \u003cmi\u003ex\u003c/mi\u003e\n      \u003cmi\u003ei\u003c/mi\u003e\n    \u003c/msub\u003e\n  \u003c/mrow\u003e\n\u003c/math\u003e\n```\n\n### Library\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/xnacly/tex2math\" t2m\n)\n\nfunc main() {\n    expression := \"\\sqrt{5} \\pm x_i\"\n    converter := t2m.New() // creates necessary internal structures for high performance conversion\n    mathml, err := converter.Convert(expression)\n    if err != nil {\n        panic(err) // can occur on invalid symbols, expressions, missing closing braces, etc\n    }\n    fmt.Println(mathml) // resulting output\n}\n```\n\n## Supported features\n\n\u003e Math features taken from [LaTeX/Mathematics](https://en.wikibooks.org/wiki/LaTeX/Mathematics)\n\n### Relation symbols\n\n### Binary operations\n\n### Set, Logic\n\n### Delimiters\n\n| Implemented | Symbol | Script       |\n| ----------- | ------ | ------------ |\n|             | \\|     | `\\|`, `\\mid` |\n|             | {      | `\\{`         |\n|             | ↑      | `\\uparrow`   |\n|             | ↓      | `\\downarrow` |\n|             | ‖      | `\\|`         |\n|             | }      | `\\}`         |\n|             | ⇑      | `\\Uparrow`   |\n|             | ⇓      | `\\Downarrow` |\n|             | /      | `/`          |\n|             | ⟨      | `\\langle`    |\n|             | ⌈      | `\\lceil`     |\n|             | ⌊      | `\\lfloor`    |\n|             | ∖      | `\\backslash` |\n|             | ⟩      | `\\rangle`    |\n|             | ⌉      | `\\rceil`     |\n|             | ⌋      | `\\rfloor`    |\n\n### Greek Letters\n\n| Implemented | Symbol  | Script                         |\n| ----------- | ------- | ------------------------------ |\n|             | A, α    | `A`, `\\alpha`                  |\n|             | B, β    | `B`, `\\beta`                   |\n|             | Γ, γ    | `\\Gamma`, `\\gamma`             |\n|             | Δ, δ    | `\\Delta`, `\\delta`             |\n|             | E, ϵ, ε | `E`, `\\epsilon`, `\\varepsilon` |\n|             | Z, ζ    | `Z`, `\\zeta`                   |\n|             | H, η    | `H`, `\\eta`                    |\n|             | Θ, θ, ϑ | `\\Theta`, `\\theta`, \\vartheta  |\n|             | I, ι    | `I`, `\\iota`                   |\n|             | K, κ    | `\\kappa`, `\\varkappa`          |\n|             | Λ, λ    | `\\Lambda`, `\\lambda`           |\n|             | M, μ    | `M`, `\\mu`                     |\n\n### Trigonometric functions\n\n| Implemented | Symbol | Script    |\n| ----------- | ------ | --------- |\n|             | sin    | `\\sin`    |\n|             | cos    | `\\cos`    |\n|             | tan    | `\\tan`    |\n|             | cot    | `\\cot`    |\n|             | arcsin | `\\arcsin` |\n|             | arccos | `\\arccos` |\n|             | arctan | `\\arctan` |\n|             | sinh   | `\\sinh`   |\n|             | cosh   | `\\cosh`   |\n|             | tanh   | `\\tanh`   |\n|             | coth   | `\\coth`   |\n|             | sec    | `\\sec`    |\n|             | csc    | `\\csc`    |\n\n### Other\n\n| Implemented | Symbol | Script |\n| ----------- | ------ | ------ |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnacly%2Ftex2math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnacly%2Ftex2math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnacly%2Ftex2math/lists"}