Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arxiv-to-xml

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arxiv-to-xml

Generate XML representation of an arXiv paper using latexml

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

arxiv-to-xml

Generate XML representation of an arXiv paper using latexml.

Prerequisite

The following is required if running on a host machine. Instead you can use the Docker image - instructions below.

Install texlive

sudo apt update
sudo apt install -y texlive-full

Install latexml

mkdir -p /usr/src/latexml
cd /usr/src/latexml
export LATEXML_COMMIT=9bccfbf633855a2cf9a1c5f03c3ce85c46be4717
curl -L https://github.com/brucemiller/LaTeXML/tarball/$LATEXML_COMMIT | tar --strip-components 1 -zxf - \
    && perl Makefile.PL \
    && make \
    && make install

Docker

Prebuilt

# Pull image
docker pull bencevans/arxiv-to-xml
# Get your XML
docker run --rm bencevans/arxiv-to-xml [arxiv id]

Build your own

# Clone repo
git clone https://github.com/bencevans/arxiv-to-xml.git
cd arxiv-to-xml

# Build image
docker build -t arxiv-to-xml .

# Get your XML
docker run arxiv-to-xml [arxiv id]

Nodejs

Command line interface

Ensure you've installed a latex suite and latexml.

# Install from npm
npm install --global arxiv-to-xml

# Get your XML
arxiv-to-xml [arxiv id]

Library

Ensure you've installed a latex suite and latexml.

# Install from npm
npm install --save arxiv-to-xml
const arxivToXML = require('arxiv-to-xml')

arxivToXML(arxivId)
  .then(xml => console.log(xml))
  .catch(err => {
    console.error(err)
    process.exit(1)
  })

Licence

MIT © Ben Evans

Keywords

FAQs

Package last updated on 15 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc