GitHub - amitness/open-in-overleaf: Access latex source of any arxiv.org paper directly on overleaf

2 min read Original article ↗

A browser extension to open and edit any arxiv.org paper directly on overleaf.

usage-demo.mp4

This is useful to examine how some feature or typesetting effect in a paper was implemented in LaTex. It's also useful to copy equations, citations and tables from the paper for derivative work or presentations.

Install

Usage

On the arxiv page, click Open in Overleaf link on the sidebar and the latex source code will open up in overleaf. The Open in Overleaf link is not shown for papers where the authors haven't uploaded the latex source.

image

How it works

┌──────────────────────┐       ┌──────────────┐  .tar.gz  ┌────────────────────────┐
│  "Open in Overleaf"  │──────▶│  arxiv.org   │──────────▶│  HuggingFace Spaces    │
│  button              │       │              │           │  (converter service)   │
└──────────────────────┘       └──────────────┘           └────────────────────────┘
                                                                     │
                                                                     │ .zip
                                                                     │ file
                                                                     ▼
                               ┌──────────────┐           ┌──────────────────────┐
                               │  Overleaf    │◀──────────│  Redirect to         │
                               │  editor      │           │  Overleaf API        │
                               └──────────────┘           └──────────────────────┘
  1. On clicking the button, the extension fetches the latex source from arxiv in the .tar.gz format
  2. Our extension converts the .tar.gz file from arxiv to a zip file using a backend service hosted on huggingface spaces here
  3. Overleaf provides an API endpoint to open a latex project with a direct link to a zip file
  4. We then redirect the user to the overleaf page with that endpoint and the paper opens up in the overleaf editor.