{"id":22686483,"url":"https://github.com/continuous-foundation/tex-to-typst","last_synced_at":"2025-10-12T14:07:18.981Z","repository":{"id":180217386,"uuid":"664797459","full_name":"continuous-foundation/tex-to-typst","owner":"continuous-foundation","description":"Translate LaTeX or TeX math markup to typst","archived":false,"fork":false,"pushed_at":"2025-10-10T20:22:00.000Z","size":115,"stargazers_count":32,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-11T09:28:07.309Z","etag":null,"topics":["converter","latex","typst"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/continuous-foundation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-10T19:14:19.000Z","updated_at":"2025-10-10T20:21:58.000Z","dependencies_parsed_at":"2025-01-06T17:27:06.773Z","dependency_job_id":"71eab8a4-8323-429b-951e-794cd41a870d","html_url":"https://github.com/continuous-foundation/tex-to-typst","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.09999999999999998,"last_synced_commit":"c6a74028c3fe30f7510c9af160e501d2f81b546c"},"previous_names":["curvenote/tex-to-typst","continuous-foundation/tex-to-typst"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/continuous-foundation/tex-to-typst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous-foundation%2Ftex-to-typst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous-foundation%2Ftex-to-typst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous-foundation%2Ftex-to-typst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous-foundation%2Ftex-to-typst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/continuous-foundation","download_url":"https://codeload.github.com/continuous-foundation/tex-to-typst/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous-foundation%2Ftex-to-typst/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011060,"owners_count":26084864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["converter","latex","typst"],"created_at":"2024-12-09T23:01:40.058Z","updated_at":"2025-10-12T14:07:18.976Z","avatar_url":"https://github.com/continuous-foundation.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# tex-to-typst\n\n[![tex-to-typst on npm](https://img.shields.io/npm/v/tex-to-typst.svg)](https://www.npmjs.com/package/tex-to-typst)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/continuous-foundation/tex-to-typst/blob/main/LICENSE)\n![CI](https://github.com/continuous-foundation/tex-to-typst/workflows/CI/badge.svg)\n\nA utility for translating LaTeX math to typst.\n\n\u003e **Note**: The library is in alpha, it will likely not work for the majority of math at the moment! More updates to come soon!\n\n```shell\nnpm install tex-to-typst\n```\n\nThe library uses `@unified-latex` for the LaTeX parsing.\n\n## Overview \u0026 Usage\n\n```ts\nimport { texToTypst } from 'tex-to-typst';\n\nconst typst = texToTypst(\n  '\\\\frac{1}{4} \\\\sum_{i=1}^4 \\\\mathbf{P}_i^\\\\top \\\\sqrt{v} \\\\mathbf{\\\\Sigma}^{-1} \\\\sqrt{v} \\\\mathbf{P}_i \\\\mathbf{j} = \\\\mathbf{D}^\\\\top v \\\\phi',\n);\n\nconsole.log(typst.value);\n// frac(1, 4) sum_(i = 1)^4 bold(P)_i^top sqrt(v) bold(Sigma)^(-1) sqrt(v) bold(P)_i bold(j) = bold(D)^top v phi\n```\n\n## Included Utilities\n\n- `texToTypst` - translates tex markup to an equivalent typst string\n\n---\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\n\n---\n\n\u003cp style=\"text-align: center; color: #aaa; padding-top: 50px\"\u003e\n  Made with love by\n  \u003ca href=\"https://continuous.foundation\" target=\"_blank\" style=\"color: #aaa\"\u003e\n    Continuous Science Foundation \u003cimg src=\"https://continuous.foundation/images/logo-small.svg\" style=\"height: 1em\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontinuous-foundation%2Ftex-to-typst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontinuous-foundation%2Ftex-to-typst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontinuous-foundation%2Ftex-to-typst/lists"}