{"id":23492879,"url":"https://github.com/paperist/remark-latex","last_synced_at":"2025-07-04T12:33:16.708Z","repository":{"id":66293189,"uuid":"49128717","full_name":"Paperist/remark-latex","owner":"Paperist","description":"wooorm/remark plugin for latex","archived":false,"fork":false,"pushed_at":"2017-11-28T13:06:07.000Z","size":113,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T09:18:05.915Z","etag":null,"topics":[],"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/Paperist.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":"2016-01-06T10:28:44.000Z","updated_at":"2019-11-07T05:33:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d247c6ad-f7e0-4a42-a8e9-0b9cf217fc92","html_url":"https://github.com/Paperist/remark-latex","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/Paperist/remark-latex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paperist","download_url":"https://codeload.github.com/Paperist/remark-latex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paperist%2Fremark-latex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263542344,"owners_count":23477454,"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":[],"created_at":"2024-12-25T02:15:23.016Z","updated_at":"2025-07-04T12:33:16.699Z","avatar_url":"https://github.com/Paperist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @paperist/remark-latex\n\n[![LICENSE][license-badge]][license]\n[![NPM][npm-badge]][npm]\n[![standard-readme compliant][standard-readme-badge]][standard-readme]\n\n[npm]: https://www.npmjs.com/package/@paperist/remark-latex\n[license]: https://3846masa.mit-license.org\n[standard-readme]: https://github.com/RichardLitt/standard-readme\n\n[npm-badge]: https://img.shields.io/npm/v/@paperist/remark-latex.svg?style=flat-square\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAbUExURcwAAOeIiP////G7u/ri4tIZGdpFReJsbPC3t075sZwAAAAvSURBVCjPY2CgDWAThIMEsACjEhwIUCZg0dGCIqASwMAxMgXAgSzOwMAOC2TqAwBvzR4JxLaP0gAAAABJRU5ErkJggg==\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAIGNIUk0AAHomAACAhAAA%2BgAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAVUExURSBTICJcIiNgIiZoJTuhNyt3Kf///%2BCqxSgAAAAGdFJOUwpclbn%2B4Fj6/H8AAAABYktHRAZhZrh9AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkEEjEV7MDQQwAAAGBJREFUCNc1TUEKgDAMi07vE/Q%2BRD8g%2B4BbvAvi/79iMjDQJm1CC6BbDzRsZI3incIpYeYFhCaYnLiyPYnYkwWZFWoFHrSuttCmmbwXh0eJQYVON4JthZTxCzzAmyb8%2BAAKXBRyN6RyZQAAAABJRU5ErkJggg==\n[standard-readme-badge]: https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square\n\n\u003e [wooorm/remark] plugin for latex\n\n[wooorm/remark]: https://github.com/wooorm/remark\n\n## Table of Contents\n\n\u003c!-- TOC depthFrom:2 depthTo:3 updateOnSave:false --\u003e\n\n- [Install](#install)\n- [Usage](#usage)\n  - [CLI](#cli)\n  - [Syntax](#syntax)\n  - [Configure](#configure)\n- [Contribute](#contribute)\n- [License](#license)\n\n\u003c!-- /TOC --\u003e\n\n## Install\n\n```\nnpm i remark remark-cli @paperist/remark-latex\n```\n\n## Usage\n\n### CLI\n\nSee [here][remark-cli] for more details.\n\n```bash\nremark -u @paperist/remark-latex document.md -o document.tex\n```\n\nIf you configure via `rc` file, you should type below.\n\n```bash\nremark -r ./remarkrc.yml document.md -o document.tex\n```\n\n[remark-cli]: https://github.com/wooorm/remark/tree/master/packages/remark-cli#cli\n\n### Syntax\n\nInspired by [pandoc-crossref].\n\n[pandoc-crossref]: https://github.com/lierdakil/pandoc-crossref\n\n#### Image label\n\n```md\n![Caption](file.ext){#fig:label}\n```\n\n#### Equation label\n\n```md\n$$ math $$ {#eq:label}\n```\n\n#### Table caption / label\n\n```md\n|  a  |  b  |  c  |\n|:---:|:---:|:---:|\n|  1  |  2  |  3  |\n\n: Caption {#tbl:label}\n```\n\n#### Section label\n\n```md\n# Section {#sec:section}\n```\n\n#### Code block label\n\n**Not implemented**\n\n#### References\n\n##### From label (e.g. Figure)\n\n```md\n[@fig:label1] or [@fig:label1;@fig:label2;...]\n```\n\n##### BibTeX\n\n```md\n[@jones99] or [@jones99;@smith06;...]\n```\n\n### Configure\n\n#### Fields\n\n|    Field     |                      Description                       |\n| :----------: | :----------------------------------------------------- |\n| baseTemplate | The document template                                  |\n| documentInfo | The data passed to the base template                   |\n| imageConfigs | `\\includegraphics` configs                             |\n| templatesDir | Template folder for AST (See [`templates`][templates]) |\n\n[templates]: https://github.com/Paperist/remark-latex/tree/master/src/templates\n\n##### Templates\n\nYou can use [ejs] template.\nremark-latex read `baseTemplate` and bind `documentInfo` to output.\n\n[ejs]: https://github.com/mde/ejs\n\n```latex\n%% TeX Template written by ejs format.\n\n\\author{\u003c%= author %\u003e}\n\\title{\u003c%= title %\u003e}\n\n\\begin{document}\n\n\\maketitle\n\n%% Render results will be exported as `body`.\n\u003c%= body %\u003e\n\n\\end{document}\n```\n\n#### `remarkrc`\n\nYou can configure via `rc` file (e.g. `remarkrc.json`, `remarkrc.yml`).\nSee also [here][remarkrc].\n\n```yml\n# Required\noutput: true\nplugins:\n  - \"@paperist/remark-latex\"\n\n# Optional\n# NOTE: You should put remark-latex configs under `latex`.\nsettings:\n  latex:\n    baseTemplate: latex/template.tex\n    imageConfigs:\n      width: 0.9\\linewidth\n    documentInfo:\n      title: A Survey on Markdown\n      author:\n        - John Smith\n```\n\n[remarkrc]: https://github.com/unifiedjs/unified-engine/blob/master/doc/configure.md\n\n#### YAML Frontmatter\n\nYou can configure each files via YAML Frontmatter.\nSee also [here][yaml-frontmatter]\n\n\n```md\n---\nbaseTemplate: ../latex/template.tex\n---\n\n# Hello World\nLorem ipsum dolor sit amet...\n```\n\n[yaml-frontmatter]: https://github.com/wooorm/remark-frontmatter\n\n## Contribute\n\nPRs accepted.\n\n## License\n\n![3846masa] MIT (c) 3846masa\n\n[3846masa]: https://www.gravatar.com/avatar/cfeae69aae4f4fc102960f01d35d2d86?s=50\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaperist%2Fremark-latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaperist%2Fremark-latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaperist%2Fremark-latex/lists"}