Skip to content

/adjust-length

**作用**: 尝试通过排版微调或受控语义改写逼近目标页数。它是专家快捷入口;普通自然语言如“把正文压到 8 页,尽量不要改语义”也应能触发同类任务。

From plugin
paperfit
3349 skills6 agents9 commands
> /plugin marketplace add OpenRaiser/PaperFit
> /plugin install paperfit@paperfit-vto

Command definition

adjust-length.md

/adjust-length — 调整页数

**作用**: 尝试通过排版微调或受控语义改写逼近目标页数。它是专家快捷入口;普通自然语言如“把正文压到 8 页,尽量不要改语义”也应能触发同类任务。

**用户入口说明**:

  • 用户表达目标页数与约束即可,不需要手动执行内部命令。
  • 长度调整仍然属于视觉闭环任务,不能只看字数或页数数字。
  • 语义改写只能在排版手段用尽后受控触发。

工具调用约定

编译、渲染、日志解析等统一见 `CLAUDE.md`「系统架构与运行时边界」:**`paperfit render`**、**`paperfit run scripts/…`**。

长度调整属于 source-changing 任务。默认只生成诊断、候选计划和 approval 状态;只有用户显式授权 `--apply` 或等价自然语言许可时才允许写回 `.tex`。多轮源码写回必须同时显式授权 `--apply --max-rounds N`,并且第二轮及以后由 runtime 的 `repair_loop_policy.second_round_apply_readiness`、approval carry-forward、artifact freshness、candidate approval scope gate 和 gatekeeper `CONTINUE` 共同放行。

用法

/adjust-length

也可以由自然语言触发,例如:

用 PaperFit 把正文压到 9 页
把这篇论文扩到满 8 页,但不要破坏结论与结果表达

执行流程

1. 分析当前页数与目标页数的偏差 2. 若超页:优先压缩浮动体、优化版面结构、精炼表述 3. 若不满页:优先做版面与结构补强,必要时受控扩写结论/讨论 4. 每轮都回到视觉验收,确认页数变化没有破坏整体版面 5. 语义干预仅在排版手段用尽后使用 6. 若未授权 `--apply`,输出 dry-run 修复计划、风险和 approval 状态,不执行源码写回

调度

  • 语义润色:`agents/semantic-polish-agent.md`
  • 技能:`skills/space-util-fixer/`、`skills/writing-polish/`
@openraiser
Ships withpaperfit

Vision-in-the-Loop Academic Typesetting Agent System PaperFit 是面向 Claude Code、Codex、Cursor 的 LaTeX 论文排版 Agent System。你只需要在论文项目根目录描述目标,PaperFit 会自动完成编译、页图渲染、视觉诊断、源码修复与最终验收。 为什么需要 · 核心能力 · 效果展示 · 快速开始 · 安装 · 使用方法 · 工作流 · 架构

Stars on GitHub

Momentum

stars in total
334
Star history of OpenRaiser/PaperFit on GitHub, a chart by star-history.com

Other commands on paperfit.

check-visual
Auto-invoked

check-visual

Command

**作用**: 仅执行视觉检测,输出诊断报告,不修改源文件。它是专家快捷入口,对应的普通自然语言请求如“检查这篇论文的视觉排版问题”“先做诊断不要改源码”也应能触发同类任务。

@openraiser@openraiserInstall Command
fix-layout
Auto-invoked

fix-layout

Command

**作用**: 对当前 LaTeX 项目执行完整的视觉排版优化(VTO)闭环

@openraiser@openraiserInstall Command
migrate-template
Auto-invoked

migrate-template

Command

**作用**: 将论文从原模板迁移至目标模板,自动处理图表尺寸、页数、宏兼容性等问题。它是专家快捷入口;普通自然语言如“把这篇论文迁移到 CVPR 模板”也应能触发同类任务。

@openraiser@openraiserInstall Command
paperfit-priority
Auto-invoked

paperfit-priority

Command

**作用**: 读取当前状态、视觉重点和修复计划,给出本轮应该先处理什么;若用户明确指定优先顺序,可将该顺序写入 `next_actions` 供后续 `/fix-layout` 直接遵循。

@openraiser@openraiserInstall Command
paperfit-undo
Auto-invoked

paperfit-undo

Command

**作用**: 恢复最近一次 PaperFit 自动写回前的备份版本,优先回滚主 `.tex`,必要时一并恢复 `data/state.json`。

@openraiser@openraiserInstall Command
paperfit
Auto-invoked

paperfit

Command

**作用**: `/paperfit` 是 Claude Code 中的 PaperFit 主入口。用户可以直接用自然语言描述任务,例如排版分析、完整修复、模板迁移、长度调整、局部表格修复、视觉检查或状态查询。Agent 负责解析意图、识别主…

@openraiser@openraiserInstall Command

More commands from other plugins.