{"id":15696279,"url":"https://github.com/nwtgck/math2image-npm","last_synced_at":"2025-08-15T20:47:58.790Z","repository":{"id":27398313,"uuid":"113750274","full_name":"nwtgck/math2image-npm","owner":"nwtgck","description":"CLI for generating beautiful SVG/PNG mathematical image ∑ ∫ π² ∞ ","archived":false,"fork":false,"pushed_at":"2023-01-10T08:05:22.000Z","size":346,"stargazers_count":8,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-31T19:21:16.088Z","etag":null,"topics":["cli","latex","math","npm","svg"],"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/nwtgck.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}},"created_at":"2017-12-10T13:01:18.000Z","updated_at":"2024-09-03T08:16:08.000Z","dependencies_parsed_at":"2023-01-14T06:39:34.728Z","dependency_job_id":null,"html_url":"https://github.com/nwtgck/math2image-npm","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fmath2image-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fmath2image-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fmath2image-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fmath2image-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwtgck","download_url":"https://codeload.github.com/nwtgck/math2image-npm/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253161463,"owners_count":21863745,"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","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":["cli","latex","math","npm","svg"],"created_at":"2024-10-03T19:08:35.607Z","updated_at":"2025-05-08T23:21:27.540Z","avatar_url":"https://github.com/nwtgck.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# math2image\n\n[![npm](https://img.shields.io/npm/v/math2image.svg)](https://www.npmjs.com/package/math2image) [![Node CI](https://github.com/nwtgck/math2image-npm/actions/workflows/ci.yml/badge.svg)](https://github.com/nwtgck/math2image-npm/actions/workflows/ci.yml)\n\nCLI for generating beautiful SVG/PNG mathematical image from LaTeX syntax\n\n## Installation\n\n```bash\nnpm install -g math2image\n```\n\n### Usages\n\n#### from stdin\n\n```bash\necho \"e^{i \\pi} + 1 = 0\" | math2image \u003e euler-identity.svg\n```\n\n#### from a file\n\n```bash\nmath2image sample7.math.tex\n```\n\n#### from a file specifying output name\n\n```bash\nmath2image -o output.svg sample7.math.tex\n```\n\n#### save as .png\n\n```bash\nmath2image --to-png --png-width=500 sample7.math.tex\n```\n\n##### `sample7.math.tex`\n\n```tex\n% (from: https://en.wikibooks.org/wiki/LaTeX/Mathematics)\nf(n) =\n\\begin{cases}\n  n/2       \u0026 \\quad \\text{if } n \\text{ is even}\\\\\n  -(n+1)/2  \u0026 \\quad \\text{if } n \\text{ is odd}\n\\end{cases}\n```\n\n## Gallery\n\n\u003cimg src=\"demo_svgs/euler-identity.svg\" height=\"50\"\u003e\u003cbr\u003e\n\n\n\u003cimg src=\"demo_svgs/sample7.math.tex.svg\" height=\"50\"\u003e\n\n\n## My Note\n\n[MYNOTE.md](MYNOTE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2Fmath2image-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwtgck%2Fmath2image-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2Fmath2image-npm/lists"}