Posterskill Academic Posters

作者 reason-machines2384a003145a无许可证83 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3个月前更新

AI-assisted academic conference poster generation from Overleaf source using Claude Code

AI 生成的概览

根据 Overleaf 论文源文件生成可打印的学术会议海报,输出为单个自包含 HTML 文件。

功能
该技能读取克隆的 Overleaf 论文项目,生成一个自包含的 HTML 海报,并内置基于 React 的拖拽式可视化编辑器。输出包含卡片注册表、默认布局与徽标配置,以及浏览器控制台 API,用于交换卡片、调整列和卡片尺寸、缩放字体和测量空白浪费。布局可导出为 JSON 并粘贴回以更新海报,最终可从 Chrome 打印为 PDF。
适用场景
当你需要根据已有 LaTeX 论文制作会议海报时使用,尤其适合论文托管在 Overleaf 的情况。它适合需要反复调整列、卡片和字体的排版迭代,并最终导出可打印 PDF 的场景。
运行要求
需要 Claude Code、克隆的 Overleaf 项目目录和项目网站 URL;参考海报和作者网站为可选项。生成的 HTML 从 CDN 加载 React,因此需要网络访问,徽标下载和布局验证使用 Playwright。该技能不附带脚本,仅包含说明。

posterskill — Academic Poster Generator

Skill by ara.so — Daily 2026 Skills collection.

posterskill is a Claude Code skill that generates print-ready, interactive conference posters from your Overleaf paper source. It produces a single self-contained HTML file with a built-in drag-and-drop visual editor — no build step, no server required.

Installation & Setup

bash
git clone [email protected]:ethanweber/posterskill.git postercd poster
# Clone your Overleaf paper sourcegit clone https://git.overleaf.com/YOUR_PROJECT_ID overleaf
# Optional: add reference posters for style matchingcp ~/Downloads/some_reference_poster.pdf references/

Start Claude Code and trigger the skill:

bash
claude
/make-poster

Claude will ask for your project website URL and any formatting specs, then generate a poster/ directory with index.html.

Directory Structure

poster/                  # this repo├── .claude/│   └── commands/│       └── make-poster.md   # the skill command├── overleaf/            # your cloned Overleaf project├── references/          # optional reference PDFs for style matching└── poster/              # generated output    ├── index.html       # the poster (self-contained)    └── logos/           # downloaded institutional logos

What Gets Generated

The output poster/index.html is a React app (loaded via CDN) containing:

  • CARD_REGISTRY — each card's title, color, and JSX body content
  • DEFAULT_LAYOUT — column structure and card ordering
  • DEFAULT_LOGOS — institutional logos for the header
  • window.posterAPI — programmatic API for layout automation

Visual Editor Features

Open poster/index.html in Chrome to access the built-in editor:

FeatureHow to Use
Resize columnsDrag column dividers left/right
Resize cardsDrag row dividers up/down within a column
Swap cardsClick one diamond handle, then another
Move/insert cardsClick a handle, then click a drop zone
Adjust font sizeClick A- / A+ buttons in toolbar
Preview print layoutClick Preview button
Export layoutClick Copy Config to get JSON

Programmatic API (window.posterAPI)

Available in the browser console or via Playwright automation:

js
// Swap two cards by IDposterAPI.swapCards('method', 'results')
// Move a card to a specific column and positionposterAPI.moveCard('quant', 'col1', 2)
// Resize a column (in mm)posterAPI.setColumnWidth('col1', 280)
// Set a specific card's height (in mm)posterAPI.setCardHeight('method', 150)
// Scale all text globallyposterAPI.setFontScale(1.5)
// Measure whitespace waste (lower = better layout)posterAPI.getWaste()
// Get the current layout as an objectposterAPI.getLayout()
// Get the full config as JSON (paste back to Claude)posterAPI.getConfig()
// Reset to default layoutposterAPI.resetLayout()

Iteration Workflow

The core loop for refining your poster:

  1. Claude generates first draft, opens poster/index.html in your browser
  2. You edit in the browser — drag dividers, swap cards, resize columns
  3. Click "Copy Config" in the toolbar to export your layout as JSON
  4. Paste the JSON back to Claude — it updates DEFAULT_LAYOUT in the HTML
  5. Repeat until the layout is perfect
  6. Print to PDF: File → Print → Margins: None, Background Graphics: On

Playwright Automation (used internally by Claude)

Claude uses Playwright to automate layout verification. You can use it too:

js
const { chromium } = require('playwright');
async function optimizePoster() {  const browser = await chromium.launch();  const page = await browser.newPage();    await page.goto(`file://${__dirname}/poster/index.html`);    // Use the posterAPI to adjust layout programmatically  const waste = await page.evaluate(() => posterAPI.getWaste());  console.log('Whitespace waste:', waste);    // Resize a column  await page.evaluate(() => posterAPI.setColumnWidth('col1', 300));    // Take a screenshot for visual verification  await page.screenshot({ path: 'poster-preview.png', fullPage: true });    // Generate PDF at print resolution  await page.pdf({    path: 'poster.pdf',    width: '841mm',   // A0 landscape width    height: '1189mm',    printBackground: true,  });    await browser.close();}

Card Registry Structure

Each card in the poster is defined in CARD_REGISTRY:

js
const CARD_REGISTRY = {  abstract: {    title: "Abstract",    color: "#f0f4ff",    body: `      <p>Your abstract text here. Supports full JSX including      <strong>bold</strong>, <em>italic</em>, and inline math.</p>    `  },  method: {    title: "Method",    color: "#fff8f0",    body: `      <img src="figures/pipeline.png" style={{width:'100%'}} />      <p>Caption describing the pipeline above.</p>    `  },  results: {    title: "Results",    color: "#f0fff4",    body: `      <table>...</table>    `  }};

Default Layout Structure

js
const DEFAULT_LAYOUT = {  columns: [    {      id: 'col1',      widthMm: 280,      cards: ['abstract', 'method']    },    {      id: 'col2',       widthMm: 320,      cards: ['results', 'quant']    },    {      id: 'col3',      widthMm: 280,      cards: ['conclusion', 'references']    }  ]};

Inputs Claude Uses

InputWhere It Comes FromRequired
Paper contentoverleaf/ directoryYes
Project websiteURL (asked at runtime)Yes
Reference postersreferences/*.pdfNo
Author websiteURL for brand matchingNo
Formatting specsConference URL or textAsked if missing
LogosAuto-downloaded to poster/logos/Auto

Common Patterns

Adding a custom figure card

js
// In CARD_REGISTRY, add a new cardcustom_fig: {  title: "Qualitative Results",  color: "#fafafa",  body: `    <div style={{display:'grid', gridTemplateColumns:'1fr 1fr', gap:'8px'}}>      <img src="figures/result1.png" style={{width:'100%'}} />      <img src="figures/result2.png" style={{width:'100%'}} />    </div>    <p style={{fontSize:'0.85em', textAlign:'center'}}>      Comparison on held-out test scenes.    </p>  `}

Then add it to DEFAULT_LAYOUT:

js
{ id: 'col2', widthMm: 320, cards: ['results', 'custom_fig'] }

Logos configuration

js
const DEFAULT_LOGOS = [  { src: 'logos/university.png', height: 60 },  { src: 'logos/lab.png', height: 50 },  { src: 'logos/sponsor.png', height: 45 },];

Printing to PDF

In Chrome:

  1. Open poster/index.html
  2. Click Preview to verify layout
  3. Ctrl+P / Cmd+P
  4. Set Margins: None
  5. Enable Background graphics
  6. Set paper size to your conference spec (A0, 36×48in, etc.)
  7. Save as PDF

Troubleshooting

Poster looks different in print vs browser → Use Chrome (not Firefox/Safari). Enable "Background graphics" in print dialog.

Figures not loading → Ensure figure paths in the HTML are relative to poster/index.html. Claude copies figures to poster/figures/ — verify the directory exists.

Logos not fetched → Claude uses Playwright to download logos from your project website. If it fails, manually copy logo files to poster/logos/ and update DEFAULT_LOGOS paths.

Layout config not updating after paste → Make sure you paste the full JSON from Copy Config — Claude looks for the complete DEFAULT_LAYOUT and DEFAULT_LOGOS objects to replace.

Font too small/large for poster size → Use posterAPI.setFontScale(1.2) in the browser console, or click A+ / A- buttons, then Copy Config and paste to Claude.

Whitespace gaps between cards → Run posterAPI.getWaste() in console to quantify. Use posterAPI.setCardHeight('cardId', heightMm) to tune card heights, or drag row dividers manually.

Example Output

See the Fillerbuster poster (repo) as a live example of posterskill output.

来源与署名

来源:reason-machines/trending-skills位于skills/posterskill-academic-posters提交2384a00

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架