{"id":22921152,"url":"https://github.com/soficshift/xparsejax","last_synced_at":"2025-04-06T11:51:00.331Z","repository":{"id":198355170,"uuid":"640342253","full_name":"soficshift/xparsejax","owner":"soficshift","description":"MathJax extension providing xparse definitions","archived":false,"fork":false,"pushed_at":"2024-08-16T13:30:47.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T07:15:06.736Z","etag":null,"topics":["js","latex","latex3","math","mathjax","web","xparse"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/soficshift.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T19:08:35.000Z","updated_at":"2025-01-30T03:03:59.000Z","dependencies_parsed_at":"2024-09-23T15:03:01.317Z","dependency_job_id":"704c67e4-58db-4d4e-9f48-aea29e267839","html_url":"https://github.com/soficshift/xparsejax","commit_stats":null,"previous_names":["lucasvreis/xparsejax","luavreis/xparsejax","sophicshift/xparsejax","soficshift/xparsejax","estradilua/xparsejax"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soficshift%2Fxparsejax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soficshift%2Fxparsejax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soficshift%2Fxparsejax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soficshift%2Fxparsejax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soficshift","download_url":"https://codeload.github.com/soficshift/xparsejax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478295,"owners_count":20945265,"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":["js","latex","latex3","math","mathjax","web","xparse"],"created_at":"2024-12-14T07:23:26.376Z","updated_at":"2025-04-06T11:51:00.282Z","avatar_url":"https://github.com/soficshift.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xparsejax\n\nThis is a simple implementation of LaTeX `xparse` package for MathJax. Currently it provides three family of commands:\n\n- `NewDocumentCommand` (also `Renew...`, `Provide...` and `Declare...` variants as aliases);\n- `IfBooleanTF` (also `T` and `F` variants);\n- `IfNoValueTF` (also `T` and `F` variants).\n\nSupported argument type specifiers are:\n- `m`: mandatory argument;\n- `o`: optional argument;\n- `O⟨default⟩`: optional argument with default;\n- `s`: optional star;\n- `t⟨token⟩`: optional token.\n\nPlease refer to `xparse` documentation on CTAN for more information about the commands.\n\nNote that `NewDocumentEnviroment` is not implemented but should not be hard to do so. There are also many other argument types that could be implemented with varying degrees of difficulty. \n\n## Usage\n\nThere is a packed minified version under [`browser`](browser). You can serve it under your website (say, at `/path/to/xparsejax.js`) and load it in your MathJax configuration like so:\n\n```js\nMathJax = {\n  loader: {\n    load: ['[xparsejax]/xparsejax.js'],\n    paths: {xparsejax: '/path/to'} // specify your path here\n  },\n  tex: {\n    packages: {'[+]': ['xparsejax']},\n  },\n  [... other stuff ...]\n}\n```\n\nTo compile it yourself, you should have both `node` and `pnpm` installed. Then it should suffice to do:\n```sh\ncd xparsejax\nnpm install\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoficshift%2Fxparsejax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoficshift%2Fxparsejax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoficshift%2Fxparsejax/lists"}