mcpField
L
latex-conference-template-organizer

latex-conference-template-organizer

github.com/galaxy-dawnドキュメント5.9k394 回インストール1 週間前に更新
リポジトリ

latex-conference-template-organizer について

会議用 LaTeX テンプレートを整理したい研究者向けのスキルです。ZIP の構成と依存関係を調べ、問題と整理案を示し、確認後に Overleaf 用の投稿プロジェクトへ整えます。

主な機能

  1. 01ZIP 構成と依存関係の分析
  2. 02メイン .tex ファイルの特定
  3. 03問題診断と確認後の整理
  4. 04章・スタイル・画像の整理
  5. 05README の生成

活用シーン

  1. 01会議テンプレートを執筆用に整備
  2. 02不足している LaTeX 依存関係の確認
  3. 03論文の章や素材ファイルの整理

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/galaxy-dawn/claude-scholar --skill latex-conference-template-organizer

インストール後、Claude Code で/latex-conference-template-organizerを入力して読み込まれたか確認します。

詳細

LaTeX 会議テンプレートオーガナイザー

概要

整理されていない会議用 LaTeX テンプレートの .zip ファイルを、整理された Overleaf 対応の投稿テンプレートに変換します。会議の公式テンプレートには、過剰なサンプルコンテンツや説明コメント、整理されていないファイル構成が含まれていることがよくあります。このスキルは、執筆をすぐに始められるテンプレートに変換します。

動作モード

分析後に確認するモード:まず問題点を分析してユーザーに提示し、確認を受けてから整理を実行します。

ワークフロー全体

Receive .zip file
    ↓
1. Extract and analyze file structure
    ↓
2. Identify main file and dependencies
    ↓
3. Diagnose issues (present to user)
    ↓
4. Ask for conference info (link/name)
    ↓
5. Wait for user confirmation of cleanup plan
    ↓
6. Execute cleanup, create output directory
    ↓
7. Generate README (with official website info)
    ↓
8. Output complete

ステップ 1:展開して分析する

ファイルを展開する

.zip を一時ディレクトリに展開します:

unzip -q template.zip -d /tmp/latex-template-temp
cd /tmp/latex-template-temp
find . -type f -name "*.tex" -o -name "*.sty" -o -name "*.cls" -o -name "*.bib"
ファイルの種類を特定する
ファイルの種類用途
.texLaTeX ソースファイル
.sty / .clsスタイルファイル
.bib参考文献データベース
.pdf / .png / .jpg画像ファイル
メインファイルを特定する

一般的なメインファイル名:

  • main.tex
  • paper.tex
  • document.tex
  • sample-sigconf.tex
  • template.tex

特定方法:

  1. ファイル名が一般的なパターンに一致するか確認します
  2. \documentclass を含むファイルを検索します
  3. 候補が複数ある場合は、ユーザーに確認します
# Find files containing \documentclass
grep -l "\\documentclass" *.tex

ステップ 2:問題を診断する

見つかった問題をユーザーに提示します:

整理されていないファイル構成
  • 複数階層のディレクトリの入れ子
  • 複数のディレクトリに分散した .tex ファイル
  • どのファイルがメインファイルか不明
冗長なコンテンツ

以下のパターンを検出し、整理対象として提示します:

  • ファイル名に含まれる語:sample、example、demo、test
  • コメントに含まれる語:sample、example、template、delete this
依存関係の問題
  • 参照されている .sty / .cls ファイルが見つからない
  • 画像や表の参照パスが正しくない

ステップ 3:会議情報を尋ねる

次の情報をユーザーに尋ねます:

Please provide the following information (optional):

1. **Conference submission link** (recommended): Used to extract official submission requirements
2. **Conference name**: If no link available
3. **Other special requirements**: Such as page limits, anonymity requirements, etc.

ステップ 4:整理計画を提示する

整理計画をユーザーに提示し、確認を待ちます:

## Cleanup Plan

### Issues Found
- [List diagnosed issues]

### Cleanup Approach
1. Main file: main.tex (clean example content)
2. Section separation: text/ directory
3. Resource directories: figures/, tables/, styles/

### Output Structure
[Show output directory structure]

Confirm execution? [Y/n]

ステップ 5:整理を実行する

出力ディレクトリ構成を作成する
mkdir -p output/{text,figures,tables,styles}
メインファイルを整理する(main.tex)

保持するもの:

  • \documentclass 宣言
  • 必要なパッケージのインポート
  • 基本設定(例:匿名モード)

削除するもの:

  • サンプルのセクション内容
  • 冗長な説明コメント
  • サンプルの著者名やタイトル情報

追加するもの:

  • \input{text/XX-section} によるセクションのインポート

main.tex の構成例(ACM テンプレートの標準形式):

\documentclass[...]{...}  % Keep original template document class

% Required packages (keep original template package declarations)

%% ============================================================================
%% Preamble: Before \begin{document}
%% ============================================================================

%% Title and author information
\title{Your Paper Title}
\author{Author Name}
\affiliation{...}

%% Abstract (in preamble, before \maketitle)
\begin{abstract}
% TODO: Write abstract content
\end{abstract}

%% CCS Concepts and Keywords (in preamble)
\begin{CCSXML}
<ccs2012>
   <concept>
       <concept_id>10010405.10010444.10010447</concept_id>
       <concept_desc>Applied computing~...</concept_desc>
       <concept_significance>500</concept_significance>
   </concept>
</ccs2012>
\end{CCSXML}

\ccsdesc[500]{Applied computing~...}
\keywords{keyword1, keyword2, keyword3}

%% ============================================================================
%% Document Body
%% ============================================================================
\begin{document}

\maketitle

%% Section content (imported from text/)
\input{text/01-introduction}
\input{text/02-related-work}
\input{text/03-method}
\input{text/04-experiments}
\input{text/05-conclusion}

\bibliographystyle{...}
\bibliography{references}

\end{document}
KDD 2026 の匿名投稿向け特別設定

KDD 2026(ACM acmart テンプレートを使用)の場合、脚注を削除するため、ドキュメントクラスに nonacm オプションを追加します:

%% ============================================================================
%% Document Class - KDD 2026 Anonymous Submission Configuration
%% Submission version: \documentclass[sigconf,anonymous,review,nonacm]{acmart}
%% Camera-ready: \documentclass[sigconf]{acmart}
%% ============================================================================
\documentclass[sigconf,anonymous,review,nonacm]{acmart}

%% ============================================================================
%% Disable ACM metadata (submission version only)
%% ============================================================================
\settopmatter{printacmref=false}  % Disable ACM Reference Format
\setcopyright{none}               % Disable copyright notice
\acmConference[]{}{}{}            % Clear conference info (removes footnote)
\acmYear{}                        % Clear year
\acmISBN{}                        % Clear ISBN
\acmDOI{}                         % Clear DOI

%% Content to restore for camera-ready version:
%% \acmConference[KDD '26]{Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining}{August 09--13, 2026}{Jeju, Korea}
%% \acmISBN{978-1-4503-XXXX-X/26/08}
%% \acmDOI{10.1145/nnnnnnn.nnnnnnn}
セクションファイルを作成する(text/)

各セクションの独立した .tex ファイルを作成します。ファイルにはセクションの内容のみを含め、\begin{document} などは含めません:

text/01-introduction.tex:

\section{Introduction}
% TODO: Write introduction content

text/02-related-work.tex:

\section{Related Work}
% TODO: Write related work content

text/03-method.tex:

\section{Method}
% TODO: Write method content

text/04-experiments.tex:

\section{Experiments}
% TODO: Write experiments content

text/05-conclusion.tex:

\section{Conclusion}
% TODO: Write conclusion content

重要な注意事項:

  • 概要は main.tex のプリアンブル(\begin{document} の前)に、\maketitle の後で配置します
  • text/ 内のファイルにはセクションのみを含め、\section{...} から始めます
  • text/ 内のファイルには \begin{document} やその他のラッパーを含めないでください
スタイルファイルをコピーする(styles/)

元のテンプレートからすべての .sty ファイルと .cls ファイルを styles/ にコピーします:

find /tmp/latex-template-temp -type f \( -name "*.sty" -o -name "*.cls" \) -exec cp {} output/styles/ \;

注: 元のテンプレートのディレクトリ構成(例:acmart/)を維持したまま、styles/ に移動します。

画像と表を処理する
# Copy image files
find /tmp/latex-template-temp -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.pdf" \) -exec cp {} output/figures/ \;

# Copy table files (if any)
find /tmp/latex-template-temp -type f -name "*.tex" | grep -i table | while read f; do cp "$f" output/tables/; done
表のサンプルファイルを作成する

重要: Overleaf は空のディレクトリを自動的に削除します。tables/ ディレクトリが削除されないように、表のサンプルファイルを作成します:

# Create example table file
cat > output/tables/example-table.tex << 'EOF'
% Example table file
% Can be deleted or replaced with your own tables

\begin{table}[h]
    \centering
    \caption{Example Table}
    \label{tab:example}
    \begin{tabular}{lccc}
        \toprule
        Method & Metric 1 & Metric 2 & Metric 3 \\
        \midrule
        Baseline & 85.3 & 12.4 & 0.92 \\
        Method A & 87.1 & 11.8 & 0.95 \\
        \textbf{Ours} & \textbf{89.4} & \textbf{10.2} & \textbf{0.97} \\
        \bottomrule
    \end{tabular}
\end{table}
EOF

注:

  • 元のテンプレートに表ファイルがすでにある場合は、この手順を省略できます
  • 表のサンプルはディレクトリの削除を防ぐためだけのものです。削除または置き換えて構いません
  • 論文内で表を参照するには、\input{tables/example-table.tex} を使用するか、表の内容をセクションファイルに直接コピーします
参考文献ファイルをコピーする
# Copy .bib files
find /tmp/latex-template-temp -type f -name "*.bib" -exec cp {} output/ \;

ステップ 6:README を生成する

情報ソースの優先順位
  1. ユーザーが提供した会議のリンク → WebFetch を使用して抽出します
  2. テンプレートファイルのコメント → .tex ファイルから抽出します
  3. デフォルトの推定 → \documentclass から推定します
README テンプレート
# [Conference Name] Submission Template

## Template Information
- **Conference**: [Conference name]
- **Website**: [Conference link]
- **Template version**: [From template or website]
- **Document class**: [Extracted documentclass]

## Submission Requirements

### Page and Format
- **Page limit**: [From website or template]
- **Two-column/Single-column**: [Detect layout]
- **Font size**: [10pt/11pt etc.]

### Anonymity Requirements
- **Blind review required**: [Detect template mode]
- **Author information handling**: [Instructions]

### Compilation Requirements
- **Recommended compiler**: [XeLaTeX/pdfLaTeX/LuaLaTeX]
- **Special package requirements**: [If any]

## Overleaf Usage

### Upload Steps
1. Create a new project on Overleaf
2. Upload the entire `output/` directory
3. Set compiler to [specified compiler]
4. Click Recompile to test

### File Description
- `main.tex` - Main file, start here
- `text/` - Section content, edit as needed
- `figures/` - Place images here
- `tables/` - Place tables here
- `styles/` - Style files, no modification needed
- `references.bib` - Bibliography database

## Common Operations

### Adding Images
```latex
\begin{figure}[h]
    \centering
    \includegraphics[width=0.8\linewidth]{figures/your-image.pdf}
    \caption{Image caption}
    \label{fig:your-label}
\end{figure}
表の追加
\begin{table}[h]
    \centering
    \begin{tabular}{|c|c|}
        \hline
        Column 1 & Column 2 \\
        \hline
        Content 1 & Content 2 \\
        \hline
    \end{tabular}
    \caption{Table caption}
    \label{tab:your-label}
\end{table}
参考文献の追加

references.bib にエントリを追加し、本文で \cite{key} を使って引用します。

注意事項

  • [テンプレートのコメントから抽出した警告]
  • [ウェブサイトから抽出した重要な注意事項]

### Extract Information from Website (if user provided a link)

Use WebFetch to get conference submission page content and extract:
- Page limits
- Anonymity requirements
- Format requirements
- Submission deadlines

## Step 7: Cleanup and Output

```bash
# Clean up temporary files
rm -rf /tmp/latex-template-temp

# Output completion message
echo "Template cleanup complete! Output directory: output/"
echo "Please upload the output/ directory to Overleaf to test compilation."

エラー処理

エラーの状況対応方法
メインファイルが見つからないすべての .tex ファイルを一覧表示し、ユーザーに選択してもらいます
依存ファイルが見つからないユーザーに警告し、テンプレートディレクトリからの特定を試みます
会議情報を抽出できないテンプレートのデフォルト情報を使用し、[要確認] と記します
ウェブサイトにアクセスできないテンプレートのコメントに切り替え、手動で入力するようユーザーに促します
抽出に失敗した.zip ファイルの整合性を確認するようユーザーに促します

一般的な会議テンプレートの種類

会議ドキュメントクラス注意事項
KDD (ACM SIGKDD)acmart匿名投稿では、脚注を削除するために nonacm オプションが必要です
ACM Conferencesacmart匿名モード \acmReview{anonymous} が必要です
CVPR/ICCVcvpr2 段組み、厳格なページ数制限
NeurIPSneurips_2025匿名査読、ページ数制限なし
ICLRiclr2025_conference2 段組み、セッション情報が必要です
AAAIaaai252 段組み、本文 8 ページ+参考文献
KDD の匿名投稿設定に関する注意事項

KDD 2026 では ACM acmart テンプレートが使用され、匿名投稿には特別な設定が必要です。

投稿版(ACM のメタデータに関する脚注をすべて削除):

\documentclass[sigconf,anonymous,review,nonacm]{acmart}
\settopmatter{printacmref=false}
\setcopyright{none}
\acmConference[]{}{}{}
\acmYear{}
\acmISBN{}
\acmDOI{}

カメラレディ版(ACM のメタデータを復元):

\documentclass[sigconf]{acmart}
\settopmatter{printacmref=true}
\setcopyright{acmcopyright}
\acmConference[KDD '26]{...}{...}{...}
\acmYear{2026}
\acmISBN{978-1-4503-XXXX-X/26/08}
\acmDOI{10.1145/nnnnnnn.nnnnnnn}

クイックリファレンス

ドキュメントの種類を検出
# Detect document class
grep "\\documentclass" main.tex

# Detect anonymous mode
grep -i "anonymous\|review\|blind" main.tex

# Detect page settings
grep "pagelimit\|pageLimit\|page_limit" main.tex
よく使うクリーンアップパターン
# Remove example files
rm -f sample-* example-* demo-* test-*

# Remove temporary files
rm -f *.aux *.log *.out *.bbl *.blg

コメント