latex-paper-en
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLaTeX Academic Paper Assistant (English)
LaTeX英文学术论文助手
Critical Rules
核心规则
- NEVER modify ,
\cite{},\ref{}, math environments\label{} - NEVER fabricate bibliography entries
- NEVER change domain terminology without confirmation
- ALWAYS output suggestions in diff-comment format first
- 绝对不要修改、
\cite{}、\ref{}和数学环境\label{} - 绝对不要编造参考文献条目
- 未经确认,绝对不要修改领域术语
- 始终首先以差异注释格式输出建议
Argument Conventions ($ARGUMENTS)
参数约定($ARGUMENTS)
- Use to capture user-provided inputs (main
$ARGUMENTSpath, target section, module choice)..tex - If is missing or ambiguous, ask for: main
$ARGUMENTSpath, target scope, and desired module..tex - Treat file paths as literal; do not guess missing paths.
- 使用捕获用户提供的输入(主
$ARGUMENTS文件路径、目标章节、模块选择)。.tex - 如果缺失或不明确,请询问:主
$ARGUMENTS文件路径、目标范围和所需模块。.tex - 文件路径按字面处理,不要猜测缺失的路径。
Execution Guardrails
执行约束
- Only run scripts/compilers when the user explicitly requests execution.
- For destructive operations (,
--clean), ask for confirmation before running.--clean-all
- 仅当用户明确请求时,才运行脚本/编译器。
- 对于破坏性操作(、
--clean),运行前需确认。--clean-all
Unified Output Protocol (All Modules)
统一输出规范(所有模块)
Each suggestion MUST include fixed fields:
- Severity: Critical / Major / Minor
- Priority: P0 (blocking) / P1 (important) / P2 (nice-to-have)
Default comment template (diff-comment style):
latex
% <MODULE> (Line <N>) [Severity: <Critical|Major|Minor>] [Priority: <P0|P1|P2>]: <Issue summary>
% Original: ...
% Revised: ...
% Rationale: ...
% ⚠️ [PENDING VERIFICATION]: <if evidence/metric is required>每条建议必须包含固定字段:
- 严重程度:Critical(严重)/ Major(主要)/ Minor(次要)
- 优先级:P0(阻塞)/ P1(重要)/ P2(锦上添花)
默认注释模板(差异注释风格):
latex
% <MODULE> (Line <N>) [Severity: <Critical|Major|Minor>] [Priority: <P0|P1|P2>]: <Issue summary>
% Original: ...
% Revised: ...
% Rationale: ...
% ⚠️ [PENDING VERIFICATION]: <if evidence/metric is required>Failure Handling (Global)
全局故障处理
If a tool/script cannot run, respond with a comment block including the reason and a safe next step:
latex
% ERROR [Severity: Critical] [Priority: P0]: <short error>
% Cause: <missing file/tool or invalid path>
% Action: <install tool / verify file path / re-run command>Common cases:
- Script not found: confirm path and working directory
scripts/ - LaTeX tool missing: suggest installing TeX Live/MiKTeX or adding to PATH
- File not found: ask user to provide the correct path
.tex - Compilation failed: summarize the first error and request the relevant log snippet
如果工具/脚本无法运行,返回包含原因和安全下一步操作的注释块:
latex
% ERROR [Severity: Critical] [Priority: P0]: <short error>
% Cause: <missing file/tool or invalid path>
% Action: <install tool / verify file path / re-run command>常见情况:
- 脚本未找到:确认路径和工作目录
scripts/ - LaTeX工具缺失:建议安装TeX Live/MiKTeX或添加到PATH
- 文件未找到:请用户提供正确的文件路径
.tex - 编译失败:总结第一个错误并请求相关日志片段
Modules (Independent, Pick Any)
模块(可独立选择任意模块)
Module: Compile
模块:编译
Trigger: compile, 编译, build, pdflatex, xelatex
Default Behavior: Uses which automatically handles all dependencies (bibtex/biber, cross-references, indexes) and determines the optimal number of compilation passes. This is the recommended approach for most use cases.
latexmkTools (matching VS Code LaTeX Workshop):
| Tool | Command | Args |
|---|---|---|
| xelatex | | |
| pdflatex | | |
| latexmk | | |
| bibtex | | |
| biber | | |
Recipes:
| Recipe | Steps | Use Case |
|---|---|---|
| latexmk | latexmk (auto) | DEFAULT - Auto-handles all dependencies |
| PDFLaTeX | pdflatex | Quick single-pass build |
| XeLaTeX | xelatex | Quick single-pass build |
| pdflatex -> bibtex -> pdflatex*2 | pdflatex → bibtex → pdflatex → pdflatex | Traditional BibTeX workflow |
| pdflatex -> biber -> pdflatex*2 | pdflatex → biber → pdflatex → pdflatex | Modern biblatex (recommended for new projects) |
| xelatex -> bibtex -> xelatex*2 | xelatex → bibtex → xelatex → xelatex | Chinese/Unicode + BibTeX |
| xelatex -> biber -> xelatex*2 | xelatex → biber → xelatex → xelatex | Chinese/Unicode + biblatex |
Usage:
bash
undefined触发词:compile、编译、build、pdflatex、xelatex
默认行为:使用自动处理所有依赖项(bibtex/biber、交叉引用、索引),并确定最佳编译次数。这是大多数场景的推荐方式。
latexmk工具(匹配VS Code LaTeX Workshop):
| 工具 | 命令 | 参数 |
|---|---|---|
| xelatex | | |
| pdflatex | | |
| latexmk | | |
| bibtex | | |
| biber | | |
编译流程:
| 流程 | 步骤 | 使用场景 |
|---|---|---|
| latexmk | latexmk(自动) | 默认 - 自动处理所有依赖项 |
| PDFLaTeX | pdflatex | 快速单遍编译 |
| XeLaTeX | xelatex | 快速单遍编译 |
| pdflatex -> bibtex -> pdflatex*2 | pdflatex → bibtex → pdflatex → pdflatex | 传统BibTeX工作流 |
| pdflatex -> biber -> pdflatex*2 | pdflatex → biber → pdflatex → pdflatex | 现代biblatex(新项目推荐) |
| xelatex -> bibtex -> xelatex*2 | xelatex → bibtex → xelatex → xelatex | 中文/Unicode + BibTeX |
| xelatex -> biber -> xelatex*2 | xelatex → biber → xelatex → xelatex | 中文/Unicode + biblatex |
使用示例:
bash
undefinedDefault: latexmk auto-handles all dependencies (recommended)
默认:latexmk自动处理所有依赖项(推荐)
python scripts/compile.py main.tex # Auto-detect compiler + latexmk
python scripts/compile.py main.tex # 自动检测编译器 + latexmk
Single-pass compilation (quick builds)
单遍编译(快速构建)
python scripts/compile.py main.tex --recipe pdflatex # PDFLaTeX only
python scripts/compile.py main.tex --recipe xelatex # XeLaTeX only
python scripts/compile.py main.tex --recipe pdflatex # 仅使用PDFLaTeX
python scripts/compile.py main.tex --recipe xelatex # 仅使用XeLaTeX
Explicit bibliography workflows (when you need control)
显式参考文献工作流(需要控制时)
python scripts/compile.py main.tex --recipe pdflatex-bibtex # Traditional BibTeX
python scripts/compile.py main.tex --recipe pdflatex-biber # Modern biblatex (recommended)
python scripts/compile.py main.tex --recipe xelatex-bibtex # XeLaTeX + BibTeX
python scripts/compile.py main.tex --recipe xelatex-biber # XeLaTeX + biblatex
python scripts/compile.py main.tex --recipe pdflatex-bibtex # 传统BibTeX
python scripts/compile.py main.tex --recipe pdflatex-biber # 现代biblatex(推荐)
python scripts/compile.py main.tex --recipe xelatex-bibtex # XeLaTeX + BibTeX
python scripts/compile.py main.tex --recipe xelatex-biber # XeLaTeX + biblatex
With output directory
指定输出目录
python scripts/compile.py main.tex --outdir build
python scripts/compile.py main.tex --outdir build
Utilities
实用功能
python scripts/compile.py main.tex --watch # Watch mode
python scripts/compile.py main.tex --clean # Clean aux files
python scripts/compile.py main.tex --clean-all # Clean all (incl. PDF)
**Auto-detection**: Script detects Chinese content (ctex, xeCJK, Chinese chars) and auto-selects xelatex.
---python scripts/compile.py main.tex --watch # 监听模式
python scripts/compile.py main.tex --clean # 清理辅助文件
python scripts/compile.py main.tex --clean-all # 清理所有文件(含PDF)
**自动检测**:脚本检测中文内容(ctex、xeCJK、中文字符)并自动选择xelatex。
---Module: Format Check
模块:格式检查
Trigger: format, chktex, lint, 格式检查
bash
python scripts/check_format.py main.tex
python scripts/check_format.py main.tex --strictOutput: PASS / WARN / FAIL with categorized issues.
触发词:format、chktex、lint、格式检查
bash
python scripts/check_format.py main.tex
python scripts/check_format.py main.tex --strict输出:PASS(通过)/ WARN(警告)/ FAIL(失败),并附带分类问题。
Module: Grammar Analysis
模块:语法分析
Trigger: grammar, 语法, proofread, 润色, article usage
Focus areas:
- Subject-verb agreement
- Article usage (a/an/the)
- Tense consistency (past for methods, present for results)
- Chinglish detection → See COMMON_ERRORS.md
Usage: User provides paragraph source code, agent analyzes and returns polished version with comparison table.
Output format (Markdown comparison table):
markdown
| Original | Revised | Issue Type | Rationale |
|----------|---------|------------|-----------|
| We propose method for time series forecasting. | We propose a method for time series forecasting. | Grammar: Article missing | Singular count noun requires indefinite article "a" |
| The data shows significant improvement. | The data show significant improvement. | Grammar: Subject-verb agreement | "Data" is plural, requires "show" not "shows" |
| This approach get better results. | This approach achieves superior performance. | Grammar + Expression | Verb agreement error; replace weak verb "get" with academic alternative |Alternative format (for inline comments in source):
latex
% GRAMMAR (Line 23) [Severity: Major] [Priority: P1]: Article missing
% Original: We propose method for...
% Revised: We propose a method for...
% Rationale: Missing indefinite article before singular count noun触发词:grammar、语法、proofread、润色、article usage
重点关注:
- 主谓一致
- 冠词使用(a/an/the)
- 时态一致性(方法用过去时,结果用现在时)
- 中式英语检测 → 参见COMMON_ERRORS.md
使用方式:用户提供段落源码,助手分析后返回润色版本及对比表格。
输出格式(Markdown对比表格):
markdown
| 原文 | 修订版 | 问题类型 | 理由 |
|----------|---------|------------|-----------|
| We propose method for time series forecasting. | We propose a method for time series forecasting. | 语法:缺失冠词 | 单数可数名词前需加不定冠词"a" |
| The data shows significant improvement. | The data show significant improvement. | 语法:主谓不一致 | "Data"为复数,需用"show"而非"shows" |
| This approach get better results. | This approach achieves superior performance. | 语法+表达 | 动词一致错误;将弱动词"get"替换为学术用语 |替代格式(源码内联注释):
latex
% GRAMMAR (Line 23) [Severity: Major] [Priority: P1]: Article missing
% Original: We propose method for...
% Revised: We propose a method for...
% Rationale: Missing indefinite article before singular count nounModule: Long Sentence Analysis
模块:长句分析
Trigger: long sentence, 长句, simplify, decompose, >50 words
Trigger condition: Sentences >50 words OR >3 subordinate clauses
Output format:
latex
% LONG SENTENCE (Line 45, 67 words) [Severity: Minor] [Priority: P2]
% Core: [subject + verb + object]
% Subordinates:
% - [Relative] which...
% - [Purpose] to...
% Suggested: [simplified version]触发词:long sentence、长句、simplify、decompose、>50 words
触发条件:句子长度>50词 或 包含>3个从句
输出格式:
latex
% LONG SENTENCE (Line 45, 67 words) [Severity: Minor] [Priority: P2]
% Core: [subject + verb + object]
% Subordinates:
% - [Relative] which...
% - [Purpose] to...
% Suggested: [simplified version]Module: Expression Restructuring
模块:表达重构
Trigger: academic tone, 学术表达, improve writing, weak verbs
Weak verb replacements:
- use → employ, utilize, leverage
- get → obtain, achieve, acquire
- make → construct, develop, generate
- show → demonstrate, illustrate, indicate
Output format:
latex
% EXPRESSION (Line 23) [Severity: Minor] [Priority: P2]: Improve academic tone
% Original: We use machine learning to get better results.
% Revised: We employ machine learning to achieve superior performance.
% Rationale: Replace weak verbs with academic alternativesStyle guide: STYLE_GUIDE.md
触发词:academic tone、学术表达、improve writing、weak verbs
弱动词替换:
- use → employ, utilize, leverage
- get → obtain, achieve, acquire
- make → construct, develop, generate
- show → demonstrate, illustrate, indicate
输出格式:
latex
% EXPRESSION (Line 23) [Severity: Minor] [Priority: P2]: Improve academic tone
% Original: We use machine learning to get better results.
% Revised: We employ machine learning to achieve superior performance.
% Rationale: Replace weak verbs with academic alternatives风格指南:STYLE_GUIDE.md
Module: Logical Coherence & Methodological Depth
模块:逻辑连贯性与方法深度
Trigger: logic, coherence, 逻辑, methodology, argument structure, 论证
Purpose: Ensure logical flow between paragraphs and strengthen methodological rigor in academic writing.
Focus Areas:
1. Paragraph-Level Coherence (AXES Model):
| Component | Description | Example |
|---|---|---|
| Assertion | Clear topic sentence stating the main claim | "Attention mechanisms improve sequence modeling." |
| Xample | Concrete evidence or data supporting the claim | "In our experiments, attention achieved 95% accuracy." |
| Explanation | Analysis of why the evidence supports the claim | "This improvement stems from the ability to capture long-range dependencies." |
| Significance | Connection to broader argument or next paragraph | "This finding motivates our proposed architecture." |
2. Transition Signals:
| Relationship | Signals |
|---|---|
| Addition | furthermore, moreover, in addition, additionally |
| Contrast | however, nevertheless, in contrast, conversely |
| Cause-Effect | therefore, consequently, as a result, thus |
| Sequence | first, subsequently, finally, meanwhile |
| Example | for instance, specifically, in particular |
3. Methodological Depth Checklist:
- Each claim is supported by evidence (data, citation, or logical reasoning)
- Method choices are justified (why this approach over alternatives?)
- Limitations are acknowledged explicitly
- Assumptions are stated clearly
- Reproducibility details are sufficient (parameters, datasets, metrics)
4. Common Issues:
| Issue | Problem | Fix |
|---|---|---|
| Logical gap | Missing connection between paragraphs | Add transition sentence explaining the relationship |
| Unsupported claim | Assertion without evidence | Add citation, data, or reasoning |
| Shallow methodology | "We use X" without justification | Explain why X is appropriate for this problem |
| Hidden assumptions | Implicit prerequisites | State assumptions explicitly |
Output Format:
latex
% LOGIC (Line 45) [Severity: Major] [Priority: P1]: Logical gap between paragraphs
% Issue: Paragraph jumps from problem description to solution without transition
% Current: "The data is noisy. We propose a filtering method."
% Suggested: "The data is noisy, which motivates the need for preprocessing. Therefore, we propose a filtering method."
% Rationale: Add causal transition to connect problem and solution
% METHODOLOGY (Line 78) [Severity: Major] [Priority: P1]: Unsupported method choice
% Issue: Method selection lacks justification
% Current: "We use ResNet as the backbone."
% Suggested: "We use ResNet as the backbone due to its proven effectiveness in feature extraction and skip connections that mitigate gradient vanishing."
% Rationale: Justify architectural choice with technical reasoningSection-Specific Guidelines:
| Section | Coherence Focus | Methodology Focus |
|---|---|---|
| Introduction | Problem → Gap → Contribution flow | Justify research significance |
| Related Work | Group by theme, compare explicitly | Position against prior work |
| Methods | Step-by-step logical progression | Justify every design choice |
| Experiments | Setup → Results → Analysis flow | Explain evaluation metrics |
| Discussion | Findings → Implications → Limitations | Acknowledge boundaries |
Best Practices (Based on Elsevier, Proof-Reading-Service):
- One idea per paragraph: Each paragraph should have a single, clear focus
- Topic sentences first: Start each paragraph with its main claim
- Evidence chain: Every claim needs support (data, citation, or logic)
- Explicit transitions: Use signal words to show relationships
- Justify, don't just describe: Explain why, not just what
触发词:logic、coherence、逻辑、methodology、argument structure、论证
目的:确保段落间逻辑流畅,增强学术写作的方法严谨性。
重点领域:
1. 段落级连贯性(AXES模型):
| 组件 | 描述 | 示例 |
|---|---|---|
| Assertion(主张) | 清晰的主题句,阐明核心观点 | "Attention mechanisms improve sequence modeling." |
| Xample(示例) | 支持观点的具体证据或数据 | "In our experiments, attention achieved 95% accuracy." |
| Explanation(解释) | 分析证据为何支持观点 | "This improvement stems from the ability to capture long-range dependencies." |
| Significance(意义) | 与更广泛论点或下一段的关联 | "This finding motivates our proposed architecture." |
2. 过渡信号:
| 关系 | 信号词 |
|---|---|
| 补充 | furthermore, moreover, in addition, additionally |
| 对比 | however, nevertheless, in contrast, conversely |
| 因果 | therefore, consequently, as a result, thus |
| 顺序 | first, subsequently, finally, meanwhile |
| 举例 | for instance, specifically, in particular |
3. 方法深度检查清单:
- 每个主张都有证据支持(数据、引用或逻辑推理)
- 方法选择有合理依据(为何选此方法而非其他?)
- 明确承认局限性
- 清晰说明假设
- 提供足够的可复现细节(参数、数据集、指标)
4. 常见问题:
| 问题 | 影响 | 修复方案 |
|---|---|---|
| 逻辑断层 | 段落间跳转无过渡 | 添加过渡句解释关联 |
| 无依据主张 | 观点无证据支持 | 添加引用、数据或推理 |
| 方法阐述浅显 | "We use X"但无理由 | 解释X为何适用于该问题 |
| 隐含假设 | 存在未明确的前提 | 明确陈述假设 |
输出格式:
latex
% LOGIC (Line 45) [Severity: Major] [Priority: P1]: Logical gap between paragraphs
% Issue: Paragraph jumps from problem description to solution without transition
% Current: "The data is noisy. We propose a filtering method."
% Suggested: "The data is noisy, which motivates the need for preprocessing. Therefore, we propose a filtering method."
% Rationale: Add causal transition to connect problem and solution
% METHODOLOGY (Line 78) [Severity: Major] [Priority: P1]: Unsupported method choice
% Issue: Method selection lacks justification
% Current: "We use ResNet as the backbone."
% Suggested: "We use ResNet as the backbone due to its proven effectiveness in feature extraction and skip connections that mitigate gradient vanishing."
% Rationale: Justify architectural choice with technical reasoning分章节指南:
| 章节 | 连贯性重点 | 方法学重点 |
|---|---|---|
| 引言 | 问题→空白→贡献的流程 | 论证研究意义 |
| 相关工作 | 按主题分组,明确对比 | 定位与前人工作的关系 |
| 方法 | 逐步的逻辑推进 | 论证每个设计选择 |
| 实验 | 设置→结果→分析的流程 | 解释评估指标 |
| 讨论 | 发现→意义→局限性 | 承认边界 |
最佳实践(基于Elsevier、Proof-Reading-Service):
- 一段一核心:每个段落应有单一清晰的焦点
- 主题句前置:段落开头先点明核心观点
- 证据链完整:每个观点都需要支持(数据、引用或逻辑)
- 过渡显式化:使用信号词展示关系
- 不仅描述,还要论证:解释为什么,而非只说是什么
Module: Translation (Chinese → English)
模块:翻译(中译英)
Trigger: translate, 翻译, 中译英, Chinese to English
Step 1: Domain Selection
Identify domain for terminology:
- Deep Learning: neural networks, attention, loss functions
- Time Series: forecasting, ARIMA, temporal patterns
- Industrial Control: PID, fault detection, SCADA
Step 2: Terminology Confirmation
markdown
| 中文 | English | Domain |
|------|---------|--------|
| 注意力机制 | attention mechanism | DL |Reference: TERMINOLOGY.md
If a term is ambiguous or domain-specific, pause and ask for confirmation before translating.
Step 3: Translation with Notes
latex
% ORIGINAL: 本文提出了一种基于Transformer的方法
% TRANSLATION: We propose a Transformer-based approach
% NOTES: "本文提出" → "We propose" (standard academic)Step 4: Chinglish Check
Reference: TRANSLATION_GUIDE.md
Common fixes:
- "more and more" → "increasingly"
- "in recent years" → "recently"
- "play an important role" → "is crucial for"
Quick Patterns:
| 中文 | English |
|---|---|
| 本文提出... | We propose... |
| 实验结果表明... | Experimental results demonstrate that... |
| 与...相比 | Compared with... |
触发词:translate、翻译、中译英、Chinese to English
步骤1:领域选择
确定术语所属领域:
- 深度学习:neural networks、attention、loss functions
- 时间序列:forecasting、ARIMA、temporal patterns
- 工业控制:PID、fault detection、SCADA
步骤2:术语确认
markdown
| 中文 | English | Domain |
|------|---------|--------|
| 注意力机制 | attention mechanism | DL |参考:TERMINOLOGY.md
如果术语存在歧义或领域特异性,翻译前需暂停并请求确认。
步骤3:带注释的翻译
latex
% ORIGINAL: 本文提出了一种基于Transformer的方法
% TRANSLATION: We propose a Transformer-based approach
% NOTES: "本文提出" → "We propose" (标准学术用语)步骤4:中式英语检查
参考:TRANSLATION_GUIDE.md
常见修正:
- "more and more" → "increasingly"
- "in recent years" → "recently"
- "play an important role" → "is crucial for"
常用句式:
| 中文 | English |
|---|---|
| 本文提出... | We propose... |
| 实验结果表明... | Experimental results demonstrate that... |
| 与...相比 | Compared with... |
Module: Bibliography
模块:参考文献
Trigger: bib, bibliography, 参考文献, citation
bash
python scripts/verify_bib.py references.bib
python scripts/verify_bib.py references.bib --tex main.tex # Check citations
python scripts/verify_bib.py references.bib --standard gb7714Checks: required fields, duplicate keys, unused entries, missing citations.
触发词:bib、bibliography、参考文献、citation
bash
python scripts/verify_bib.py references.bib
python scripts/verify_bib.py references.bib --tex main.tex # 检查引用
python scripts/verify_bib.py references.bib --standard gb7714检查内容:必填字段、重复键、未使用条目、缺失引用。
Module: De-AI Editing (去AI化编辑)
模块:去AI化编辑
Trigger: deai, 去AI化, humanize, reduce AI traces, natural writing
Purpose: Reduce AI writing traces while preserving LaTeX syntax and technical accuracy.
Input Requirements:
- Source code type (required): LaTeX
- Section (required): Abstract / Introduction / Related Work / Methods / Experiments / Results / Discussion / Conclusion / Other
- Source code snippet (required): Direct paste (preserve indentation and line breaks)
Usage Examples:
Interactive editing (recommended for sections):
python
python scripts/deai_check.py main.tex --section introduction触发词:deai、去AI化、humanize、reduce AI traces、natural writing
目的:在保留LaTeX语法和技术准确性的前提下,减少AI写作痕迹。
输入要求:
- 源码类型(必填):LaTeX
- 章节(必填):摘要/引言/相关工作/方法/实验/结果/讨论/结论/其他
- 源码片段(必填):直接粘贴(保留缩进和换行)
使用示例:
交互式编辑(推荐用于章节):
python
python scripts/deai_check.py main.tex --section introductionOutput: Interactive questions + AI trace analysis + Rewritten code
输出:交互式问题 + AI痕迹分析 + 重写代码
**Batch processing** (for entire chapters):
```bash
python scripts/deai_batch.py main.tex --chapter chapter3/introduction.tex
python scripts/deai_batch.py main.tex --all-sections # Process entire documentWorkflow:
-
Syntax Structure Identification: Detect LaTeX commands, preserve all:
- Commands: ,
\command{...}\command[...]{} - References: ,
\cite{},\ref{},\label{},\eqref{}\autoref{} - Environments:
\begin{...}...\end{...} - Math: ,
$...$, equation/align environments\[...\] - Custom macros (unchanged by default)
- Commands:
-
AI Pattern Detection:
- Empty phrases: "significant", "comprehensive", "effective", "important"
- Over-confident: "obviously", "necessarily", "completely", "clearly"
- Mechanical structures: Three-part parallelisms without substance
- Template expressions: "in recent years", "more and more"
-
Text Rewriting (visible text ONLY):
- Split long sentences (>50 words)
- Adjust word order for natural flow
- Replace vague expressions with specific claims
- Delete redundant phrases
- Add necessary subjects (without introducing new facts)
-
Output Generation:
- A. Rewritten source code: Complete source with minimal invasive edits
- B. Change summary: 3-10 bullet points explaining modifications
- C. Pending verification marks: For claims needing evidence
Hard Constraints:
- NEVER modify: ,
\cite{},\ref{}, math environments\label{} - NEVER add: New data, metrics, comparisons, contributions, experimental settings, citation numbers, or bib keys
- ONLY modify: Visible paragraph text, section titles, caption text
Output Format:
latex
% ============================================================
% DE-AI EDITING (Line 23 - Introduction)
% ============================================================
% Original: This method achieves significant performance improvement.
% Revised: The proposed method improves performance in the experiments.
%
% Changes:
% 1. Removed vague phrase: "significant" → deleted
% 2. Kept the claim but avoided adding new metrics or baselines
%
% ⚠️ [PENDING VERIFICATION]: Add exact metrics/baselines only if supported by data
% ============================================================
\section{Introduction}
The proposed method improves performance in the experiments...Section-Specific Guidelines:
| Section | Focus | Constraints |
|---|---|---|
| Abstract | Purpose/Method/Key Results (with numbers)/Conclusion | No generic claims |
| Introduction | Importance → Gap → Contribution (verifiable) | Restrain claims |
| Related Work | Group by line, specific differences | Concrete comparisons |
| Methods | Reproducibility (process, parameters, metrics) | Implementation details |
| Results | Report facts and numbers only | No interpretation |
| Discussion | Mechanisms, boundaries, failures, limitations | Critical analysis |
| Conclusion | Answer research questions, no new experiments | Actionable future work |
AI Trace Density Check:
bash
python scripts/deai_check.py main.tex --analyze
**批量处理**(用于整章):
```bash
python scripts/deai_batch.py main.tex --chapter chapter3/introduction.tex
python scripts/deai_batch.py main.tex --all-sections # 处理整篇文档工作流:
-
语法结构识别:检测LaTeX命令,完整保留以下内容:
- 命令:、
\command{...}\command[...]{} - 引用:、
\cite{}、\ref{}、\label{}、\eqref{}\autoref{} - 环境:
\begin{...}...\end{...} - 数学公式:、
$...$、equation/align环境\[...\] - 自定义宏(默认不修改)
- 命令:
-
AI模式检测:
- 空洞短语:"significant"、"comprehensive"、"effective"、"important"
- 过度自信表述:"obviously"、"necessarily"、"completely"、"clearly"
- 机械结构:无实质内容的三段式平行结构
- 模板化表达:"in recent years"、"more and more"
-
文本重写(仅修改可见文本):
- 拆分长句(>50词)
- 调整语序以提升自然流畅度
- 用具体主张替换模糊表达
- 删除冗余短语
- 添加必要主语(不引入新事实)
-
输出生成:
- A. 重写后的源码:完整源码,仅做最小侵入式修改
- B. 变更摘要:3-10个要点说明修改内容
- C. 待验证标记:需证据支持的主张
硬性约束:
- 绝对不修改:、
\cite{}、\ref{}、数学环境\label{} - 绝对不添加:新数据、指标、对比、贡献、实验设置、引用编号或bib键
- 仅修改:可见段落文本、章节标题、标题文本
输出格式:
latex
% ============================================================
% DE-AI EDITING (Line 23 - Introduction)
% ============================================================
% Original: This method achieves significant performance improvement.
% Revised: The proposed method improves performance in the experiments.
%
% Changes:
% 1. Removed vague phrase: "significant" → deleted
% 2. Kept the claim but avoided adding new metrics or baselines
%
% ⚠️ [PENDING VERIFICATION]: Add exact metrics/baselines only if supported by data
% ============================================================
\section{Introduction}
The proposed method improves performance in the experiments...分章节指南:
| 章节 | 重点 | 约束 |
|---|---|---|
| 摘要 | 目的/方法/关键结果(带数字)/结论 | 无泛化主张 |
| 引言 | 重要性→空白→贡献(可验证) | 克制主张 |
| 相关工作 | 按脉络分组,明确差异 | 具体对比 |
| 方法 | 可复现性(流程、参数、指标) | 实现细节 |
| 结果 | 仅报告事实和数据 | 无主观解读 |
| 讨论 | 机制、边界、失败、局限性 | 批判性分析 |
| 结论 | 回答研究问题,无新实验 | 可落地的未来工作 |
AI痕迹密度检查:
bash
python scripts/deai_check.py main.tex --analyzeOutput: AI trace density score per section + Target sections for improvement
输出:各章节AI痕迹密度得分 + 需优化的目标章节
Reference: [DEAI_GUIDE.md](references/DEAI_GUIDE.md)
---
参考:[DEAI_GUIDE.md](references/DEAI_GUIDE.md)
---Module: Title Optimization
模块:标题优化
Trigger: title, 标题, title optimization, create title, improve title
Purpose: Generate and optimize paper titles following IEEE/ACM/Springer/NeurIPS best practices.
Usage Examples:
Generate title from content:
bash
python scripts/optimize_title.py main.tex --generate触发词:title、标题、title optimization、create title、improve title
目的:遵循IEEE/ACM/Springer/NeurIPS最佳实践,生成和优化论文标题。
使用示例:
从内容生成标题:
bash
python scripts/optimize_title.py main.tex --generateAnalyzes abstract/introduction to propose 3-5 title candidates
分析摘要/引言,提出3-5个标题候选
**Optimize existing title**:
```bash
python scripts/optimize_title.py main.tex --optimize
**优化现有标题**:
```bash
python scripts/optimize_title.py main.tex --optimizeAnalyzes current title and provides improvement suggestions
分析当前标题并提供改进建议
**Check title quality**:
```bash
python scripts/optimize_title.py main.tex --check
**标题质量检查**:
```bash
python scripts/optimize_title.py main.tex --checkEvaluates title against best practices (score 0-100)
根据最佳实践评估标题(得分0-100)
**Title Quality Criteria** (Based on IEEE Author Center & Top Venues):
| Criterion | Weight | Description |
|-----------|--------|-------------|
| **Conciseness** | 25% | Remove "A Study of", "Research on", "Novel", "New", "Improved" |
| **Searchability** | 30% | Key terms (Method + Problem) in first 65 characters |
| **Length** | 15% | Optimal: 10-15 words; Acceptable: 8-20 words |
| **Specificity** | 20% | Concrete method/problem names, not vague terms |
| **Jargon-Free** | 10% | Avoid obscure abbreviations (except AI, LSTM, DNA, etc.) |
**Title Generation Workflow**:
**Step 1: Content Analysis**
Extract from abstract/introduction:
- **Problem**: What challenge is addressed?
- **Method**: What approach is proposed?
- **Domain**: What application area?
- **Key Result**: What is the main achievement? (optional)
**Step 2: Keyword Extraction**
Identify 3-5 core keywords:
- Method keywords: "Transformer", "Graph Neural Network", "Reinforcement Learning"
- Problem keywords: "Time Series Forecasting", "Fault Detection", "Image Segmentation"
- Domain keywords: "Industrial Control", "Medical Imaging", "Autonomous Driving"
**Step 3: Title Template Selection**
Common patterns for top venues:
| Pattern | Example | Use Case |
|---------|---------|----------|
| Method for Problem | "Transformer-Based Approach for Time Series Forecasting" | General research |
| Method: Problem in Domain | "Graph Neural Networks: Fault Detection in Industrial Systems" | Domain-specific |
| Problem via Method | "Time Series Forecasting via Attention Mechanisms" | Method-focused |
| Method + Key Feature | "Lightweight Transformer for Real-Time Object Detection" | Performance-focused |
**Step 4: Title Candidates Generation**
Generate 3-5 candidates with different emphasis:
1. Method-focused
2. Problem-focused
3. Application-focused
4. Balanced (recommended)
5. Concise variant
**Step 5: Quality Scoring**
Each candidate receives:
- Overall score (0-100)
- Breakdown by criterion
- Specific improvement suggestions
**Title Optimization Rules**:
**❌ Remove Ineffective Words**:
| Avoid | Reason |
|-------|--------|
| A Study of | Redundant (all papers are studies) |
| Research on | Redundant (all papers are research) |
| Novel / New | Implied by publication |
| Improved / Enhanced | Vague without specifics |
| Based on | Often unnecessary |
| Using / Utilizing | Can be replaced with prepositions |
**✅ Preferred Structures**:Good: "Transformer for Time Series Forecasting in Industrial Control"
Bad: "A Novel Study on Improved Time Series Forecasting Using Transformers"
Good: "Graph Neural Networks for Fault Detection"
Bad: "Research on Novel Fault Detection Based on GNNs"
Good: "Attention-Based LSTM for Multivariate Time Series Prediction"
Bad: "An Improved LSTM Model Using Attention Mechanism for Prediction"
**Keyword Placement Strategy**:
- **First 65 characters**: Most important keywords (Method + Problem)
- **Avoid starting with**: Articles (A, An, The), prepositions (On, In, For)
- **Prioritize**: Nouns and technical terms over verbs and adjectives
**Abbreviation Guidelines**:
| ✅ Acceptable | ❌ Avoid in Title |
|--------------|------------------|
| AI, ML, DL | Obscure domain-specific acronyms |
| LSTM, GRU, CNN | Chemical formulas (unless very common) |
| IoT, 5G, GPS | Lab-specific abbreviations |
| DNA, RNA, MRI | Non-standard method names |
**Venue-Specific Adjustments**:
**IEEE Transactions**:
- Avoid formulas with subscripts (except simple ones like "Nd–Fe–B")
- Use title case (capitalize major words)
- Typical length: 10-15 words
- Example: "Deep Learning for Predictive Maintenance in Smart Manufacturing"
**ACM Conferences**:
- More flexible with creative titles
- Can use colons for subtitles
- Typical length: 8-12 words
- Example: "AttentionFlow: Visualizing Attention Mechanisms in Neural Networks"
**Springer Journals**:
- Prefer descriptive over creative
- Can be slightly longer (up to 20 words)
- Example: "A Comprehensive Framework for Real-Time Anomaly Detection in Industrial IoT Systems"
**NeurIPS/ICML**:
- Concise and impactful (8-12 words)
- Method name often prominent
- Example: "Transformers Learn In-Context by Gradient Descent"
**Output Format**:
```latex
% ============================================================
% TITLE OPTIMIZATION REPORT
% ============================================================
% Current Title: "A Novel Study on Time Series Forecasting Using Deep Learning"
% Quality Score: 45/100
%
% Issues Detected:
% 1. [Critical] Contains "Novel Study" (remove ineffective words)
% 2. [Major] Vague method description ("Deep Learning" too broad)
% 3. [Minor] Length acceptable (9 words) but could be more specific
%
% Recommended Titles (Ranked):
%
% 1. "Transformer-Based Time Series Forecasting for Industrial Control" [Score: 92/100]
% - Concise: ✅ (8 words)
% - Searchable: ✅ (Method + Problem in first 50 chars)
% - Specific: ✅ (Transformer, not just "Deep Learning")
% - Domain: ✅ (Industrial Control)
%
% 2. "Attention Mechanisms for Multivariate Time Series Prediction" [Score: 88/100]
% - Concise: ✅ (7 words)
% - Searchable: ✅ (Key terms upfront)
% - Specific: ✅ (Attention, Multivariate)
% - Note: Consider adding domain if space allows
%
% 3. "Deep Learning Approach to Time Series Forecasting in Smart Manufacturing" [Score: 78/100]
% - Concise: ⚠️ (10 words, acceptable)
% - Searchable: ✅
% - Specific: ⚠️ ("Deep Learning" still broad)
% - Domain: ✅ (Smart Manufacturing)
%
% Keyword Analysis:
% - Primary: Transformer, Time Series, Forecasting
% - Secondary: Industrial Control, Attention, LSTM
% - Searchability: "Transformer Time Series" appears in 1,234 papers (good balance)
%
% Suggested LaTeX Update:
% \title{Transformer-Based Time Series Forecasting for Industrial Control}
% ============================================================Interactive Mode (Recommended):
bash
python scripts/optimize_title.py main.tex --interactive
**标题质量标准**(基于IEEE作者中心及顶级会议):
| 标准 | 权重 | 描述 |
|-----------|--------|-------------|
| **简洁性** | 25% | 删除"A Study of"、"Research on"、"Novel"、"New"、"Improved" |
| **可搜索性** | 30% | 核心术语(方法+问题)出现在前65个字符中 |
| **长度** | 15% | 最优:10-15词;可接受:8-20词 |
| **特异性** | 20% | 具体的方法/问题名称,而非模糊术语 |
| **无晦涩术语** | 10% | 避免生僻缩写(AI、LSTM、DNA等除外) |
**标题生成工作流**:
**步骤1:内容分析**
从摘要/引言提取:
- **问题**:解决了什么挑战?
- **方法**:提出了什么方案?
- **领域**:应用领域是什么?
- **核心结果**:主要成果是什么?(可选)
**步骤2:关键词提取**
识别3-5个核心关键词:
- 方法关键词:"Transformer"、"Graph Neural Network"、"Reinforcement Learning"
- 问题关键词:"Time Series Forecasting"、"Fault Detection"、"Image Segmentation"
- 领域关键词:"Industrial Control"、"Medical Imaging"、"Autonomous Driving"
**步骤3:标题模板选择**
顶级会议常用模式:
| 模式 | 示例 | 使用场景 |
|---------|---------|----------|
| Method for Problem | "Transformer-Based Approach for Time Series Forecasting" | 通用研究 |
| Method: Problem in Domain | "Graph Neural Networks: Fault Detection in Industrial Systems" | 领域特定研究 |
| Problem via Method | "Time Series Forecasting via Attention Mechanisms" | 方法聚焦 |
| Method + Key Feature | "Lightweight Transformer for Real-Time Object Detection" | 性能聚焦 |
**步骤4:生成标题候选**
生成3-5个不同侧重点的候选:
1. 方法聚焦
2. 问题聚焦
3. 应用聚焦
4. 均衡型(推荐)
5. 简洁变体
**步骤5:质量评分**
每个候选获得:
- 总分(0-100)
- 各标准得分明细
- 具体改进建议
**标题优化规则**:
**❌ 移除无效词汇**:
| 避免使用 | 原因 |
|-------|--------|
| A Study of | 冗余(所有论文都是研究) |
| Research on | 冗余(所有论文都是研究) |
| Novel / New | 发表即隐含创新性 |
| Improved / Enhanced | 无具体细节则模糊 |
| Based on | 通常不必要 |
| Using / Utilizing | 可替换为介词 |
**✅ 推荐结构**:Good: "Transformer for Time Series Forecasting in Industrial Control"
Bad: "A Novel Study on Improved Time Series Forecasting Using Transformers"
Good: "Graph Neural Networks for Fault Detection"
Bad: "Research on Novel Fault Detection Based on GNNs"
Good: "Attention-Based LSTM for Multivariate Time Series Prediction"
Bad: "An Improved LSTM Model Using Attention Mechanism for Prediction"
**关键词放置策略**:
- **前65个字符**:最重要的关键词(方法+问题)
- **避免以以下内容开头**:冠词(A, An, The)、介词(On, In, For)
- **优先放置**:名词和技术术语,而非动词和形容词
**缩写指南**:
| ✅ 可接受 | ❌ 标题中避免使用 |
|--------------|------------------|
| AI, ML, DL | 晦涩的领域特定缩写 |
| LSTM, GRU, CNN | 化学公式(除非非常通用) |
| IoT, 5G, GPS | 实验室特定缩写 |
| DNA, RNA, MRI | 非标准方法名称 |
**会议/期刊特定调整**:
**IEEE Transactions**:
- 避免带下标公式(简单公式如"Nd–Fe–B"除外)
- 使用标题大小写(主要单词首字母大写)
- 典型长度:10-15词
- 示例:"Deep Learning for Predictive Maintenance in Smart Manufacturing"
**ACM Conferences**:
- 对创意标题更灵活
- 可使用冒号加副标题
- 典型长度:8-12词
- 示例:"AttentionFlow: Visualizing Attention Mechanisms in Neural Networks"
**Springer Journals**:
- 偏好描述性而非创意性标题
- 可稍长(最多20词)
- 示例:"A Comprehensive Framework for Real-Time Anomaly Detection in Industrial IoT Systems"
**NeurIPS/ICML**:
- 简洁有力(8-12词)
- 方法名称通常突出
- 示例:"Transformers Learn In-Context by Gradient Descent"
**输出格式**:
```latex
% ============================================================
% TITLE OPTIMIZATION REPORT
% ============================================================
% Current Title: "A Novel Study on Time Series Forecasting Using Deep Learning"
% Quality Score: 45/100
%
% Issues Detected:
% 1. [Critical] Contains "Novel Study" (remove ineffective words)
% 2. [Major] Vague method description ("Deep Learning" too broad)
% 3. [Minor] Length acceptable (9 words) but could be more specific
%
% Recommended Titles (Ranked):
%
% 1. "Transformer-Based Time Series Forecasting for Industrial Control" [Score: 92/100]
% - Concise: ✅ (8 words)
% - Searchable: ✅ (Method + Problem in first 50 chars)
% - Specific: ✅ (Transformer, not just "Deep Learning")
% - Domain: ✅ (Industrial Control)
%
% 2. "Attention Mechanisms for Multivariate Time Series Prediction" [Score: 88/100]
% - Concise: ✅ (7 words)
% - Searchable: ✅ (Key terms upfront)
% - Specific: ✅ (Attention, Multivariate)
% - Note: Consider adding domain if space allows
%
% 3. "Deep Learning Approach to Time Series Forecasting in Smart Manufacturing" [Score: 78/100]
% - Concise: ⚠️ (10 words, acceptable)
% - Searchable: ✅
% - Specific: ⚠️ ("Deep Learning" still broad)
% - Domain: ✅ (Smart Manufacturing)
%
% Keyword Analysis:
% - Primary: Transformer, Time Series, Forecasting
% - Secondary: Industrial Control, Attention, LSTM
% - Searchability: "Transformer Time Series" appears in 1,234 papers (good balance)
%
% Suggested LaTeX Update:
% \title{Transformer-Based Time Series Forecasting for Industrial Control}
% ============================================================交互式模式(推荐):
bash
python scripts/optimize_title.py main.tex --interactiveStep-by-step guided title creation with user input
分步引导式标题创建,支持用户输入
**Batch Mode** (For multiple papers):
```bash
python scripts/optimize_title.py papers/*.tex --batch --output title_report.txtTitle A/B Testing (Optional):
bash
python scripts/optimize_title.py main.tex --compare "Title A" "Title B" "Title C"
**批量模式**(多份论文):
```bash
python scripts/optimize_title.py papers/*.tex --batch --output title_report.txt标题A/B测试(可选):
bash
python scripts/optimize_title.py main.tex --compare "Title A" "Title B" "Title C"Compares multiple title candidates with detailed scoring
对比多个标题候选并提供详细评分
**Best Practices Summary**:
1. **Start with keywords**: Put Method + Problem in first 10 words
2. **Be specific**: "Transformer" > "Deep Learning" > "Machine Learning"
3. **Remove fluff**: Delete "Novel", "Study", "Research", "Based on"
4. **Check length**: Aim for 10-15 words (English)
5. **Test searchability**: Would you find this paper with these keywords?
6. **Avoid jargon**: Unless it's widely recognized (AI, LSTM, CNN)
7. **Match venue style**: IEEE (descriptive), ACM (creative), NeurIPS (concise)
Reference: [IEEE Author Center](https://conferences.ieeeauthorcenter.ieee.org/), [Royal Society Blog](https://royalsociety.org/blog/2025/01/title-abstract-and-keywords-a-practical-guide-to-maximizing-the-visibility-and-impact-of-your-papers/)
---
**最佳实践总结**:
1. **关键词前置**:前10词放置方法+问题关键词
2. **具体明确**:"Transformer" > "Deep Learning" > "Machine Learning"
3. **删除冗余**:删除"Novel"、"Study"、"Research"、"Based on"
4. **控制长度**:英文标题目标10-15词
5. **验证可搜索性**:用这些关键词能找到你的论文吗?
6. **避免生僻术语**:除非是广泛认可的术语(AI、LSTM、CNN)
7. **匹配会议风格**:IEEE(描述性)、ACM(创意性)、NeurIPS(简洁性)
参考:[IEEE Author Center](https://conferences.ieeeauthorcenter.ieee.org/)、[Royal Society Blog](https://royalsociety.org/blog/2025/01/title-abstract-and-keywords-a-practical-guide-to-maximizing-the-visibility-and-impact-of-your-papers/)
---Venue-Specific Rules
会议/期刊特定规则
Load from VENUES.md:
- IEEE: Active voice, past tense for methods
- ACM: Present tense for general truths
- Springer: Figure captions below, table captions above
- NeurIPS/ICML: 8 pages, specific formatting
从VENUES.md加载:
- IEEE:主动语态,方法用过去时
- ACM:通用真理用现在时
- Springer:图标题在下方,表标题在上方
- NeurIPS/ICML:8页篇幅,特定格式
Full Workflow (Optional)
完整工作流(可选)
If user requests complete review, execute in order:
- Format Check → fix critical issues
- Grammar Analysis → fix errors
- De-AI Editing → reduce AI writing traces
- Long Sentence Analysis → simplify complex sentences
- Expression Restructuring → improve academic tone
如果用户请求全面审核,按以下顺序执行:
- 格式检查 → 修复严重问题
- 语法分析 → 修复错误
- 去AI化编辑 → 减少AI写作痕迹
- 长句分析 → 简化复杂句子
- 表达重构 → 提升学术语气
Best Practices
最佳实践
This skill follows Claude Code Skills best practices:
本技能遵循Claude Code Skills最佳实践:
Skill Design Principles
技能设计原则
- Focused Responsibility: Each module handles one specific task (KISS principle)
- Minimal Permissions: Only request necessary tool access
- Clear Triggers: Use specific keywords to invoke modules
- Structured Output: All suggestions use consistent diff-comment format
- 职责聚焦:每个模块处理一项特定任务(KISS原则)
- 权限最小化:仅请求必要的工具访问权限
- 触发词清晰:使用特定关键词调用模块
- 输出结构化:所有建议使用统一的差异注释格式
Usage Guidelines
使用指南
- Start with Format Check: Always verify document compiles before other checks
- Iterative Refinement: Apply one module at a time for better control
- Preserve Protected Elements: Never modify ,
\cite{},\ref{}, math environments\label{} - Verify Before Commit: Review all suggestions before accepting changes
- 从格式检查开始:在其他检查前,始终先验证文档可编译
- 迭代优化:每次应用一个模块,以便更好地控制
- 保护核心元素:永远不要修改、
\cite{}、\ref{}和数学环境\label{} - 提交前验证:接受修改前,先审核所有建议
Integration with Other Tools
与其他工具集成
- Use with version control (git) to track changes
- Combine with LaTeX Workshop for real-time preview
- Export suggestions to review with collaborators
- 结合版本控制(git)跟踪变更
- 与LaTeX Workshop配合实现实时预览
- 导出建议以便与合作者评审
References
参考文档
- STYLE_GUIDE.md: Academic writing rules
- COMMON_ERRORS.md: Chinglish patterns
- VENUES.md: Conference/journal requirements
- FORBIDDEN_TERMS.md: Protected terminology
- TERMINOLOGY.md: Domain terminology (DL/TS/IC)
- TRANSLATION_GUIDE.md: Translation guide
- DEAI_GUIDE.md: De-AI writing guide and patterns
- STYLE_GUIDE.md:学术写作规则
- COMMON_ERRORS.md:中式英语模式
- VENUES.md:会议/期刊要求
- FORBIDDEN_TERMS.md:受保护术语
- TERMINOLOGY.md:领域术语(DL/TS/IC)
- TRANSLATION_GUIDE.md:翻译指南
- DEAI_GUIDE.md:去AI化写作指南及模式