Skip to main content

Replace arxiv links in markdowns by their corresponding bibliography.

Project description

A2B (Arxiv to Bibliography)

Replace arxiv links by their corresponding bibliography in markdowns. Inspired by Mu Li.

demo

This repo provides a tool to replace arXiv links in markdown files with their corresponding bibliographic information. The script uses the Semantic Scholar API to retrieve information such as authors, title, journal, year, and citation count for a given arXiv paper.

Installation

To install a2b, make sure you have pip installed and run:

pip install a2b

Usage

The tool can be run from the command line by passing the file path or directory path as an argument.

Replace arxiv links in a single markdown file

a2b path/to/markdown.md

Replace arxiv links in all markdown files within a directory

Run the following command to replace all arxiv links found in the given directory and its subdirectories.

a2b path/to/directory

To replace arxiv links in the markdown files ONLY within the directory (not recursively), use arguments --no-recursive or -nr:

a2b -nr path/to/directory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a2b-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file a2b-1.0.1.tar.gz.

File metadata

  • Download URL: a2b-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.4

File hashes

Hashes for a2b-1.0.1.tar.gz
Algorithm Hash digest
SHA256 550ed8a759e46bd4aa0238ad2ac3021b5ec71d4c5ec2c029224e94c2cc6950fb
MD5 5fc33b4c6533eb0d97988a366c5419d8
BLAKE2b-256 ef0170b1c80293206393d91d21f0ebc7ca4c93b852128d07dbe222f72d31f848

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page