{"id":16496993,"url":"https://github.com/bencevans/arxiv-to-xml","last_synced_at":"2026-06-06T18:32:29.955Z","repository":{"id":57184505,"uuid":"153019721","full_name":"bencevans/arxiv-to-xml","owner":"bencevans","description":"📎 Generate XML representation of an arXiv paper using latexml","archived":false,"fork":false,"pushed_at":"2018-10-15T18:21:58.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T15:48:21.798Z","etag":null,"topics":["arxiv","latexml","papers","research"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bencevans.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}},"created_at":"2018-10-14T21:15:11.000Z","updated_at":"2018-10-23T00:05:16.000Z","dependencies_parsed_at":"2022-09-14T08:50:37.054Z","dependency_job_id":null,"html_url":"https://github.com/bencevans/arxiv-to-xml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencevans%2Farxiv-to-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencevans%2Farxiv-to-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencevans%2Farxiv-to-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencevans%2Farxiv-to-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bencevans","download_url":"https://codeload.github.com/bencevans/arxiv-to-xml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367935,"owners_count":19951448,"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":["arxiv","latexml","papers","research"],"created_at":"2024-10-11T14:37:35.486Z","updated_at":"2026-06-06T18:32:29.919Z","avatar_url":"https://github.com/bencevans.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arxiv-to-xml\n\n\u003e Generate XML representation of an arXiv paper using `latexml`.\n\n## Prerequisite\n\nThe following is required if running on a host machine. Instead you can use the Docker image - instructions below.\n\nInstall texlive\n\n```\nsudo apt update\nsudo apt install -y texlive-full\n```\n\nInstall latexml\n\n```\nmkdir -p /usr/src/latexml\ncd /usr/src/latexml\nexport LATEXML_COMMIT=9bccfbf633855a2cf9a1c5f03c3ce85c46be4717\ncurl -L https://github.com/brucemiller/LaTeXML/tarball/$LATEXML_COMMIT | tar --strip-components 1 -zxf - \\\n    \u0026\u0026 perl Makefile.PL \\\n    \u0026\u0026 make \\\n    \u0026\u0026 make install\n```\n\n## Docker\n\n### Prebuilt\n\n```\n# Pull image\ndocker pull bencevans/arxiv-to-xml\n# Get your XML\ndocker run --rm bencevans/arxiv-to-xml [arxiv id]\n```\n\n### Build your own\n\n```\n# Clone repo\ngit clone https://github.com/bencevans/arxiv-to-xml.git\ncd arxiv-to-xml\n\n# Build image\ndocker build -t arxiv-to-xml .\n\n# Get your XML\ndocker run arxiv-to-xml [arxiv id]\n```\n\n## Nodejs\n\n### Command line interface\n\nEnsure you've installed a latex suite and latexml.\n\n```\n# Install from npm\nnpm install --global arxiv-to-xml\n\n# Get your XML\narxiv-to-xml [arxiv id]\n```\n\n### Library\n\nEnsure you've installed a latex suite and latexml.\n\n```\n# Install from npm\nnpm install --save arxiv-to-xml\n```\n\n```js\nconst arxivToXML = require('arxiv-to-xml')\n\narxivToXML(arxivId)\n  .then(xml =\u003e console.log(xml))\n  .catch(err =\u003e {\n    console.error(err)\n    process.exit(1)\n  })\n```\n\n## Licence\n\nMIT © [Ben Evans](https://bencevans.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencevans%2Farxiv-to-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbencevans%2Farxiv-to-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencevans%2Farxiv-to-xml/lists"}