---
name: "latex-posters"
description: "专业学术海报 LaTeX 编译流水线"
---

# 专业学术海报 LaTeX 编译流水线

## 适用场景
为学术顶会（NeurIPS、ICML、CVPR、ACL、Nature/Science 系列）或科研成果展设计高水准大型海报（A0 / 36x48 英寸纵横版面）时，指导 AI 基于 Beamerposter、TikZ、BetterPoster 范式自动生成优雅、对齐严谨且支持复杂数学推导与高保真矢量图的 LaTeX 代码。

## 功能说明
> 告别用 PowerPoint 拼凑海报导致的字体发虚、公式变形与尺寸溢出，采用专业 TeX 宏包打造排版像素级精准、图文呼吸感强烈的世界级学术海报。

## 这个案例能帮你做什么
- 支持一键生成标准 A0（84.1cm × 118.9cm）尺寸或美规 36" × 48" 竖排/横排三栏式海报结构。
- 内置 BetterPoster 极简主义设计原则：中央突出“一句话核心大发现”（Takeaway Hero Banner），两侧分布动机、方法、实验与结论。
- 自动化解决 LaTeX 海报多栏环境对齐、图文浮动混排（`tcolorbox` / `beamercolorbox`）与作者机构上标关联。
- 提供离线一键编译脚本（支持 `latexmk` / `xelatex`），包含字体替换与超大矢量图压缩防卡死方案。

## 你需要的 Skills（按类型）

| 类型 | Skill / 工具 | 用途 | 来源 |
|---|---|---|---|
| 编译引擎 | `xelatex` / `latexmk` | 渲染高分辨率 PDF 输出 | TeXLive / MacTeX / MikTeX |
| 核心宏包 | `beamerposter` / `tcolorbox` | 海报大型网格与高对比卡片布局 | CTAN Repository |
| 内置 | `filesystem` | 源码管理与生成 PDF 持久化 | Built-in |

## 快速体验版（先跑一轮）

```text
你是我的学术顶会海报专家。
请帮我设计一份 NeurIPS 2026 风格的三栏竖版 A0 学术海报（LaTeX 源码）：
1. 采用深海蓝配金黄色的高级学术色调（Primary: #0B3C5D, Accent: #F9A03F）。
2. 顶部：论文标题、全体作者（包含通讯作者星号）、高校与实验室机构徽标占位。
3. 核心布局（三栏）：
   - 左栏：研究背景、当前 SOTA 模型的关键缺陷（痛点）。
   - 中栏：核心方法架构图（TikZ 容器）、关键数学公式定义、理论保证定理框。
   - 右栏：主实验对比表（加粗 SOTA 结果）、消融分析折线图、未来展望与二维码开源链接。
4. 保证代码可直接使用 xelatex 或 pdflatex 成功编译，不产生 overfull \hbox 警告。
```

## 稳定自动版（可长期运行）

### 1) 经典 Beamerposter 模板源码 (`poster.tex`)

```latex
\documentclass[final]{beamer}
\usepackage[orientation=portrait,size=a0,scale=1.24]{beamerposter}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage[most]{tcolorbox}

% --- 配色定义 ---
\definecolor{primary}{RGB}{11, 60, 93}     % 深海蓝
\definecolor{secondary}{RGB}{50, 140, 193} % 科技蓝
\definecolor{accent}{RGB}{249, 160, 63}    % 强调橙金
\definecolor{bglight}{RGB}{248, 250, 252}  % 浅底色

% --- 卡片样式 ---
\tcbset{
    colback=white,
    colframe=primary,
    coltitle=white,
    fonttitle=\bfseries\Large,
    boxrule=2mm,
    arc=4mm,
    left=15mm, right=15mm, top=12mm, bottom=12mm,
    title filled
}

\setbeamercolor{headline}{bg=primary,fg=white}
\setbeamercolor{footline}{bg=primary,fg=white}

\begin{document}
\begin{frame}[t]

% --- 顶部 Header ---
\begin{tcolorbox}[colback=primary,colframe=primary,arc=0mm,boxrule=0mm]
    \centering \vspace{1cm}
    {\fontsize{50}{60}\selectfont \textbf{\textcolor{white}{Multi-Agent Autonomous Reasoning in Complex Environments}}} \\[1.2cm]
    {\LARGE \textcolor{accent}{San Zhang$^{1*}$, Si Li$^{1}$, Wu Wang$^{2}$}} \\[0.6cm]
    {\large \textcolor{white}{$^{1}$State Key Laboratory of Artificial Intelligence \quad $^{2}$Global Research Institute}} \\[0.5cm]
    {\normalsize \texttt{\textcolor{gray!30}{contact: zhangsan@lab.edu.cn \quad *Corresponding Author}}}
    \vspace{0.8cm}
\end{tcolorbox}

\vspace{1cm}

% --- 三栏正文布局 ---
\begin{columns}[t]

    % === 左栏 ===
    \begin{column}{0.31\paperwidth}
        \begin{tcolorbox}[title=1. Background \& Motivation]
            Current autonomous LLM agents suffer from:
            \begin{itemize}
                \item \textbf{Context Drift}: Degradation over long-horizon reasoning.
                \item \textbf{Execution Blindness}: Lack of deterministic verification.
                \item \textbf{Tool Fragility}: High failure rates under noisy APIs.
            \end{itemize}
            \vspace{0.5cm}
            \begin{center}
                \textit{Can we establish a verifiable, multi-tier memory system with proactive rollback?}
            \end{center}
        \end{tcolorbox}
        
        \vspace{1cm}
        
        \begin{tcolorbox}[title=2. Theoretical Foundations]
            We model the collaborative agent workflow as a bounded Markov Decision Process with verifiable state invariants:
            \begin{equation}
                \mathcal{R}_{total} = \sum_{t=0}^{T} \gamma^t \left[ R_{task}(s_t, a_t) - \lambda \cdot \mathcal{D}_{KL}(p_t \parallel q_0) \right]
            \end{equation}
            Guaranteeing convergence under bounded network latencies.
        \end{tcolorbox}
    \end{column}

    % === 中栏 ===
    \begin{column}{0.31\paperwidth}
        \begin{tcolorbox}[title=3. Proposed Framework: Meta-Orchestrator]
            \begin{center}
                % 架构简图示意容器
                \begin{tikzpicture}[scale=1.5]
                    \draw[fill=secondary!20, rounded corners] (0,0) rectangle (6,3);
                    \node at (3,2.5) {\textbf{Hierarchical Planning Engine}};
                    \draw[fill=accent!30, rounded corners] (0.5,0.5) rectangle (2.5,1.8);
                    \node at (1.5,1.15) {Sub-Agent A};
                    \draw[fill=accent!30, rounded corners] (3.5,0.5) rectangle (5.5,1.8);
                    \node at (4.5,1.15) {Sub-Agent B};
                \end{tikzpicture}
            \end{center}
            \vspace{0.5cm}
            \textbf{Key Innovations:}
            \begin{enumerate}
                \item \textbf{Decoupled Execution}: Sub-agents run concurrently in isolated sandbox worktrees.
                \item \textbf{Reactive Wakeup}: Eliminates CPU spinning by listening to background task streams.
            \end{enumerate}
        \end{tcolorbox}
    \end{column}

    % === 右栏 ===
    \begin{column}{0.31\paperwidth}
        \begin{tcolorbox}[title=4. Empirical Benchmark Results]
            Evaluated on SWE-bench and custom CTF challenge sets:
            \vspace{0.3cm}
            \begin{table}
                \centering
                \begin{tabular}{l c c c}
                    \toprule
                    \textbf{Method} & \textbf{Pass@1 (\%)} & \textbf{Latency (s)} & \textbf{Cost (\$)} \\
                    \midrule
                    Baseline Single-Agent & 24.5 & 85.2 & 0.42 \\
                    ReAct + Reflection   & 38.2 & 142.0 & 0.88 \\
                    \textbf{Ours (Hierarchical)} & \textbf{68.9} & \textbf{41.5} & \textbf{0.31} \\
                    \bottomrule
                \end{tabular}
            \end{table}
            \vspace{0.5cm}
            Achieves \textbf{+30.7\% pass rate} while cutting latency in half!
        \end{tcolorbox}
        
        \vspace{1cm}
        
        \begin{tcolorbox}[title=5. Conclusion \& Reproducibility]
            \begin{itemize}
                \item Full open-source code and benchmark datasets released.
                \item Reproduce with single CLI command: \texttt{git clone ... \&\& run}.
            \end{itemize}
        \end{tcolorbox}
    \end{column}

\end{columns}

\end{frame}
\end{document}
```

### 2) 编译流水线脚本 (`compile.sh` / `compile.bat`)

```bash
#!/bin/bash
# 检查 xelatex
if ! command -v xelatex &> /dev/null; then
    echo "[!] xelatex not found. Please install TeXLive or MacTeX."
    exit 1
fi

echo "[*] Compiling LaTeX Poster to PDF..."
xelatex -interaction=nonstopmode -synctex=1 poster.tex
xelatex -interaction=nonstopmode -synctex=1 poster.tex

echo "[+] Compilation successful! Output: poster.pdf"
```

## 风险与边界
- 海报比例过大（A0 尺寸超过 1 米），高分辨位图应保持在 150-300 DPI 之间，避免单张图片达到几百兆导致 TeX 内存溢出（`TeX capacity exceeded`）。
- 字体必须使用矢量字体或系统 OpenType/TrueType 字体，禁止生成位图字体（Type 3 fonts），以免印刷模糊。

## 使用建议
- 采用“3秒原则”：海报最核心的 Takeaway 必须在 3 秒内被走过的学者看懂。
- 保证正文字号在 24pt 以上，大标题在 60pt-90pt 之间，确保 2 米外阅读清晰。

## 成功标准
- 编译输出 0 严重错误、0 警告。
- 经 Adobe Acrobat 放大到 400% 依然边缘锐利清晰。
- 尺寸精准符合学术会议提交规范。

## 源文件
来源：awesome-openclaw-zh  
原始文件：latex-posters.md
