Academic poster generator

From aipoch/medical-research-skills · View interactive version

Academic poster generator is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster (beamerposter/tikzposter/baposter) with mandatory figure generation and a final rendered HTML deliverable.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Python (recommended)

Install (example):

pip install pypdf pdfplumber pdf2image pytesseract pandas pillow matplotlib

System tools

LaTeX (optional, only if compiling PDF)

Example:

tlmgr install beamerposter tikzposter baposter qrcode xcolor tcolorbox subcaption graphics

HTML conversion

Example Usage

1) Run the end-to-end pipeline (recommended)

Creates a timestamped directory under output/ and supports HTML-only mode.

python scripts/run_poster_pipeline.py paper.pdf --html-only

Expected final structure:

output/YYYYMMDD_HHMMSS/
├── poster.rendered.html
└── figures/
    ├── mechanism.png
    ├── process_flowchart.png
    └── comparison_chart.png

2) Run stages manually (fully reproducible)

Stage A — Extract metadata and structure content (temporary artifacts)
python scripts/extract_metadata.py paper.pdf metadata.json
python scripts/structure_content.py paper.pdf --json poster_content.json --latex content.tex --max-words 800
python scripts/convert_pdf_to_images.py paper.pdf paper_images/ --dpi 600
Stage B — Generate figures (mandatory)

At least 2–3 figures are required.

python scripts/generate_figures.py schematic "Cell signaling pathway" mechanism.png
python scripts/generate_figures.py flowchart "Step 1;Step 2;Step 3" process_flowchart.png
python scripts/generate_figures.py comparison '{"Control":[65],"Our Method":[87]}' comparison_chart.png

Or generate from a config:

python scripts/generate_figures.py config figures_config.json
Stage C — Create poster LaTeX from a template (temporary artifact)
cp assets/templates/beamerposter-template.tex poster.tex
# (Edit poster.tex: title/authors/institute + paste structured content)
Stage D — Insert figures into LaTeX (temporary artifact)
python scripts/insert_figures.py poster.tex --all
# or:
python scripts/insert_figures.py poster.tex --config figures_config.json
Stage E — Convert to base HTML and render final HTML (final artifact)
python scripts/convert_poster.py poster.tex --html-only
# Agent step: read poster.html, validate <img> paths, inject CSS/layout, output poster.rendered.html
Stage F — Quality control (mandatory)
python scripts/check_poster_quality.py poster.rendered.html

Implementation Details

Pipeline and file policy

All generated files must be placed under output/ (preferably a timestamped subdirectory). Only the following are considered final deliverables:

All other files are intermediate/temporary and must not be returned to the user, including (non-exhaustive):

Conceptual flow:

PDF → metadata extraction (temp) → content structuring (temp) → figure generation (final figures/)
→ LaTeX poster (temp) → base HTML (temp) → agent rendering → poster.rendered.html (final)

PDF extraction approach

Typical extraction targets:

Content structuring rules

Figure requirements (mandatory)

Supported figure categories:

LaTeX package selection

Use one of the supported poster packages depending on style needs:

Templates are provided in assets/templates/.

HTML rendering requirements (agent step)

After pandoc produces poster.html, the renderer must:

  1. Verify all <img> references exist and paths resolve to figures/.
  2. Apply poster-grade CSS (grid columns, typography, spacing, captions).
  3. Ensure accessibility: WCAG AA contrast ≥ 4.5:1.
  4. Output poster.rendered.html as the only final HTML artifact.

Minimum layout expectations:

Quality control requirements (mandatory)

Run scripts/check_poster_quality.py on the final output:

References:

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.