Skip to main content

arxiv2md

A command-line tool and Python library for converting arXiv papers to Markdown format.

It retrieves the paper's source code (.tex) from an input arXiv URL and converts it to Markdown format.

Setup

First, you need to install latexml:

# For macOS
brew install latexml

# For Ubuntu
sudo apt update
sudo apt install latexml

Then install arxiv2md:

# Using pip
pip install arxiv2md

# Using uv
uv tool install arxiv2md

Usage

Simply provide the arXiv URL:

arxiv2md https://arxiv.org/abs/1706.03762

For use from Python code:

from arxiv2md import arxiv2md

markdown, metadata = arxiv2md("https://arxiv.org/abs/1706.03762")
with open("output.md", "w") as f:
    f.write(markdown)

Example output file: example.md

Notes

  • The input URL doesn't necessarily need to be the arXiv's abstract page. It will work with PDF pages or source code pages as well. Ultimately, it should work with any string containing an arXiv ID.
  • Papers without provided LaTeX source code cannot be converted.
  • Figures and tables will be ignored.
  • Papers not using bibtex will have reference citations displayed incorrectly.

Metadata

Release files for arxiv2md 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arxiv2md 0.1.2
File Size Uploaded
arxiv2md-0.1.2.tar.gz 42.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arxiv2md 0.1.2
File Interpreter ABI Platform
arxiv2md-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 53.2 kB

Release files / arxiv2md-0.1.2.tar.gz

Download URL arxiv2md-0.1.2.tar.gz
Size 42.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6ebd867d482d1f7bfbd65a910aa0c53ff49cad6165361d594ace8c747fc436ba
BLAKE2b-256 checksum
How to use checksums
1af090c7405ebef9f82e579c8431a6ab968929ee3368043cabf4de55342544c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / arxiv2md-0.1.2-py3-none-any.whl

Download URL arxiv2md-0.1.2-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bc08b962eff55f67a2a4949c9cb1b41530dc21da8bad74d261220ed9eadf17c
BLAKE2b-256 checksum
How to use checksums
73ee8f43818ec9ca46cc68f002a2343bfc2c78fe39db3277340ddf5f411cadbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page