Alterlab paper 2 web

From AlterLab-IEU/AlterLab-Academic-Skills · View interactive version

Alterlab paper 2 web is an AI agent skill from the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills. Converts a finished academic paper (PDF or LaTeX source) into promotional and presentation formats with no API key — Claude reads the paper and builds an interactive project website (static HTML/CSS for GitHub Pages; Paper2Web), a print-ready conference poster (LaTeX with QR code; Paper2Poster), a n

How to use this skill

Skill file

Paper to Website, Poster, Video and Promotion Kit

Overview

This skill turns a finished research paper (LaTeX or PDF) into three primary outputs plus a

promotion kit, with no API key: Claude reads the paper itself, and small local scripts do

the mechanical work.

  1. Paper2Web: an interactive, explorable project homepage (static HTML/CSS, responsive,

accessible, GitHub Pages ready)

  1. Paper2Poster: a print-ready conference poster at any size (LaTeX tikzposter, QR code,

logo)

  1. Paper2Video: a narrated video abstract — slides, a spoken script, local text-to-speech or

the author's recordings, captions, assembled into an MP4

  1. Promotion kit: post, thread, LinkedIn paragraph, lay summary

Everything uses the paper's own figures and numbers. The third-party Paper2All pipeline,

which automates the same outputs with paid LLM calls, is an optional route when the user has a

key and asks for it (see the last section).

When to Use This Skill

Use this skill when:

Trigger phrases:

Does NOT Trigger

| Scenario | Use Instead |

|----------|-------------|

| Hand-building a LaTeX research poster (beamerposter, tikzposter, baposter) | alterlab-latex-posters |

| A PowerPoint/PPTX or HTML poster the user will edit themselves | alterlab-pptx-posters |

| Designing and delivering a slide deck for a live talk | alterlab-scientific-slides |

| Posting the paper to arXiv, bioRxiv, medRxiv, or SSRN | alterlab-preprint-deposition |

Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-latex-posters) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.

Step 0 — Read the paper and write the fact sheet

Every output starts from the same verified facts:

  1. Read the PDF or the LaTeX project (main.tex, sections, .bib, figures/).
  2. Extract figures from a PDF (raster images, page renders, and crops of vector figures by

page fractions):

```bash

uv run --python ">=3.11" --with pymupdf python scripts/extract_assets.py paper.pdf --out paper_assets/ --pages

uv run --python ">=3.11" --with pymupdf python scripts/extract_assets.py paper.pdf --out paper_assets/ \

--clip 3:0.25,0.07,0.75,0.52:fig1 --dpi 300

```

paper_assets/manifest.json lists metadata, captions (with page and position), images and renders.

From LaTeX, copy the figure files directly.

  1. Write facts.md: exact title; authors in order with affiliations; venue/year; DOI or

arXiv id; code/data links; the abstract verbatim; 3-5 key numbers with the table or figure

they come from; the take-home sentence; the paper's own limitations. Ask for anything the

paper does not contain (e.g. the project URL); never invent authors, links or results.

Paper2Web — project website

  1. Copy assets/website_template/ (index.html, style.css) to site/; put compressed

figures in site/assets/; replace every {{PLACEHOLDER}} from the fact sheet; delete

sections or buttons the paper has no content for.

  1. Write real alt text; keep numbers exactly as in the paper.
  2. Check and preview:

```bash

python scripts/check_site.py site/

uv run --python ">=3.11" --with weasyprint --with pymupdf python scripts/check_site.py site/ --preview site_preview.png

```

Zero errors (missing files, missing alt text, leftover placeholders, no viewport tag); Read

the preview to judge the layout; check the listed external links with WebFetch.

  1. Deployment targets: GitHub Pages (docs/ folder or gh-pages branch), university server,

Netlify/Vercel.

Output: site/index.html, site/style.css, site/assets/.

Paper2Poster — conference poster

  1. Copy assets/poster_template.tex; set \geometry{paperwidth=..., paperheight=...} (default

48 x 36 in landscape; e.g. 60 x 40 in, A0 portrait 841 x 1189 mm).

  1. Fill motivation, method, key results, take-home, limitations and references from the fact

sheet; place figures in figures/; put the DOI or project URL in the \qrcode{...} and the

lab logo in figures/logo.png.

  1. pdflatex poster.tex, then preview with pdftoppm -png -r 20 -singlefile poster.pdf preview

and Read it: text readable at 1.5-2 m, no overflow, figures sharp at print size.

Output: poster.pdf (vector, print-ready) and its .tex source.

Paper2Video — narrated video abstract

  1. Slides via alterlab-scientific-slides (editable deck) or Beamer, exported to PDF and

then to PNGs (pdftoppm -png -r 150 slides.pdf slides/slide).

  1. Script: narration.json, one {"slide": ..., "text": ...} per slide, ~150 words per

minute (a 3-minute abstract is ~450 words), numbers exactly as in the paper.

  1. Voice: local Piper text-to-speech (no account; voice downloaded once with

uv run --with piper-tts python -m piper.download_voices en_US-lessac-medium), the author's

own recordings (--audio-dir), or captions only (--silent).

  1. Assemble (ffmpeg):

```bash

uv run --python ">=3.11" --with piper-tts python scripts/assemble_video.py narration.json \

-o video/abstract.mp4 --voice voices/en_US-lessac-medium.onnx

```

Output: 1920-px H.264/AAC MP4 with a caption track, a sidecar .srt, and per-slide timings.

Check a few frames and the timing before sharing.

Synchronized cursor highlights and a talking-head avatar need the optional Paper2Video pipeline.

Promotion kit

From the fact sheet: a 280-character post (claim + key number + link), a 4-6 post thread, a

LinkedIn paragraph, a ~150-word lay summary, and other languages on request. Every claim must be

traceable to the paper.

Detailed procedures, layouts and the full quality checklist: references/keyless_workflow.md.

Workflow Decision Tree

User needs promotional materials for a paper?
│
├─ Permanent online presence?            → Paper2Web (website)
├─ Physical conference materials?
│  ├─ Poster session?                    → Paper2Poster
│  └─ Oral presentation?                 → alterlab-scientific-slides (+ Paper2Video for a recording)
├─ Video content?
│  ├─ Journal video abstract (3-5 min)   → Paper2Video
│  ├─ Conference talk recording (15-20)  → Paper2Video
│  └─ Social media (1-3 min)             → Paper2Video
└─ Complete package?                     → all three + promotion kit, from one fact sheet

For a tight deadline: website first (most versatile), then poster (print deadline), then video.

Input Requirements

LaTeX source (best: figures and text are exact):

paper_directory/
├── main.tex
├── sections/
├── figures/
└── bibliography.bib

PDF: selectable text (not scanned — extract_assets.py warns when the text layer is thin),

embedded fonts, high-resolution figures. Keep each paper's outputs in its own folder.

Quality Assurance

Before sharing:

  1. Website: check_site.py with zero errors; test on a phone-width window; verify links
  2. Poster: print a test page or view at 100%; text readable from 1.5-2 m; colours in grayscale
  3. Video: watch it through; audio matches slides; captions present

Review dimensions (also used by the Paper2Web benchmark, arXiv:2510.15842): content

completeness, accuracy, clarity, informativeness; design aesthetics, layout, readability,

consistency; technical performance, compatibility, accessibility (WCAG), valid HTML/CSS,

print-ready PDF.

Optional: the Paper2All pipeline

Paper2All (Chen et al., 2025, "Paper2Web: Let's Make

Your Paper Alive!", arXiv:2510.15842) automates website, poster, PR and video generation with

LLM calls. Use it when the user asks for it by name, or wants synchronized cursor highlights or

a talking-head avatar. It needs model API keys and sends paper content to the providers —

confirm that is acceptable for unpublished work.

(Python 3.11) with pip install -r requirements.txt; Paper2Video in its own p2v env

(Python 3.10); the talking head in a hallo env. System: LibreOffice, Poppler.

exits without it; the sub-modules and Paper2Video read OPENAI_API_KEY / OPENAI_API_BASE

from a .env in the repo root; optional GOOGLE_SEARCH_API_KEY + GOOGLE_SEARCH_ENGINE_ID

enable logo search; AutoPR has its own AutoPR/.env.

(--model-choice 1 website, 2 poster, 3 PR; it selects components, not models; the

underscore --output_dir is required although the upstream README shows a hyphen; only the

first PDF under --input-dir is processed unless --pdf-path is given; poster size via

--poster-width-inches / --poster-height-inches, default 48 x 36). Video:

`python pipeline_light.py --model_name_t gpt-4.1 --model_name_v gpt-4.1 --result_dir out

--paper_latex_root path/to/paper; the talking-head pipeline.py adds --ref_img`,

--ref_audio, --gpu_list and needs an NVIDIA A6000-class 48 GB GPU.

--result_dir. Model routing is hard-coded upstream for pipeline_all.py; upstream

publishes no cost figures, so run one paper first and check provider usage.

Details: references/installation.md, references/paper2web.md, references/paper2poster.md,

references/paper2video.md, references/usage_examples.md.

Integration and Deployment

the .srt as captions

alterlab-generate-image (illustrations) when the paper lacks a suitable teaser figure

References

Part of the AlterLab Academic Skills suite.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.