jpskill.com
💬 コミュニケーション コミュニティ 🟢 非エンジニアでもOK 👤 管理職・人事・カスタマー対応

💬 Latex Paper Conversion

latex-paper-conversion

LaTeX(ラテフ)で作成された学術論文

⏱ クレーム返信ドラフト 15分 → 2分

📺 まず動画で見る(YouTube)

▶ 【最新版】Claude(クロード)完全解説!20以上の便利機能をこの動画1本で全て解説 ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling.

🇯🇵 日本人クリエイター向け解説

一言でいうと

LaTeX(ラテフ)で作成された学術論文

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o latex-paper-conversion.zip https://jpskill.com/download/3071.zip && unzip -o latex-paper-conversion.zip && rm latex-paper-conversion.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/3071.zip -OutFile "$d\latex-paper-conversion.zip"; Expand-Archive "$d\latex-paper-conversion.zip" -DestinationPath $d -Force; ri "$d\latex-paper-conversion.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して latex-paper-conversion.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → latex-paper-conversion フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Latex Paper Conversion で、お客様への返信文を作って
  • Latex Paper Conversion を使って、社内向けアナウンスを書いて
  • Latex Paper Conversion で、メールテンプレートを整備して

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

LaTeX論文変換

概要

このスキルは、LaTeXで書かれた学術論文を、ある出版社のテンプレートから別の出版社のテンプレートへ変換するという、面倒で繰り返し発生するプロセスを自動化します。ジャーナル(例:Springer、MDPI、IEEE)によって、構造要件、ドキュメントクラス、余白設定、参考文献スタイルが大きく異なります。このスキルは、構造化された多段階ワークフローを実行し、コンテンツを抽出し、新しいテンプレートにマッピングし、一般的なコンパイルエラーを解決することで、これらの変換を効率化します。

このスキルを使用するタイミング

  • 既存のLaTeX論文を新しいジャーナルの形式に移植するようユーザーが要求した場合に使用します。
  • ユーザーが既存の.texファイルと新しいテンプレートディレクトリを提供した場合に使用します。
  • ユーザーが形式A(例:IPOL/Neural Processing)から形式B(例:MDPI)への変換について言及した場合に使用します。

仕組み

ステップ1:前提条件と評価

ソースLaTeXファイルを特定し、ユーザーにターゲットテンプレートディレクトリを尋ねます。コアレイアウトのマッピング(単一列 vs. 二重列、参考文献スタイル)を理解します。

ステップ2:抽出と挿入スクリプトの生成

ソースLaTeXファイルを解析するためのPythonスクリプト(例:convert_format.py)を作成します。正規表現を使用してコアテキストブロックを抽出します。新しいテンプレートのpreamble、抽出されたbody、およびbackmatterを結合します。これを出力ディレクトリ内の新しいファイルに書き込みます。

ステップ3:体系的な修正

最終ファイルを書き込む前、または後続の呼び出しで、抽出された本文テキストに対して一般的な修正を実行します。

  • 数学環境のケースを変換します(例:\begin{theorem}\begin{Theorem}に)。
  • 強引なフロート配置(例:[!t][h!])をテンプレートでサポートされているオプションに調整します。floatパッケージが明示的に読み込まれていない限り、[H]を強制することは避けてください。
  • \includegraphicsのパスが新しい.texファイルの場所に対して相対的であることを確認します。
  • 二重列レイアウトに移行する場合は、\begin{tabular}\begin{tabularx}{\textwidth}に変換するか、\resizeboxを使用します。

ステップ4:コンパイルとデバッグ

ビルドサイクル(pdflatex -> bibtex -> pdflatex)を実行します。grepまたはrgを使用して.logファイルをチェックし、パッケージの競合、未定義のコマンド、またはコンパイルの中断を体系的に修正します。

例1:IPOLからMDPIへの変換

``` USER: 「私の論文 'SAHQR_Paper.tex' を 'MDPI_template_ACS' フォルダーにあるMDPI形式に変換する必要があります。」 AGENT: latex-paper-conversionスキルをトリガー

  1. ソース.texとターゲットtemplate.texを分析します。
  2. 序論から結論までを抽出するPythonスクリプトを作成します。
  3. コンテンツをMDPIテンプレートに挿入します。
  4. 画像パスとテーブルフロートパラメータ[h!][H]に更新します。
  5. pdflatexとbibtexでコンパイルし、エラーがないことを確認します。 ```

ベストプラクティス

  • ✅ 常にPython抽出スクリプトを作成してください。何千行ものLaTeXを手動でコピー&ペーストしないでください。
  • ✅ 常にpdflatexを実行し、.logを検証して最終出力がコンパイルされることを確認してください。
  • ✅ ソースとターゲットが大きく異なる場合(例:要約とキーワードの結合)、構造マッピングについてユーザーに明示的に尋ねてください。
  • ❌ すべての数学パッケージが新しいテンプレートに自動的に存在すると仮定しないでください(例:amsmathが不足している場合は\usepackage{amsmath}を追加してください)。

よくある落とし穴

  • 問題: 単一列から二重列に移行する際に、テーブルでオーバーフルなhboxesが発生する。 解決策: \begin{tabular}を検出し、自動的に\resizebox{\columnwidth}{!}{...}で囲むか、形式の変更を提案します。
  • 問題: コンパイル中に未定義の制御シーケンスエラーが発生する。 解決策: Paper.logを検索し、不足している\usepackage{}を変換されたテンプレートに含めます。

追加リソース

制限事項

  • このスキルは、タスクが上記で説明した範囲と明確に一致する場合にのみ使用してください。
  • 出力を、環境固有の検証、テスト、または専門家によるレビューの代替として扱わないでください。
  • 必要な入力、権限、安全境界、または成功基準が不足している場合は、停止して説明を求めてください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

LaTeX Paper Conversion

Overview

This skill automates the tedious and recurring process of converting an academic paper written in LaTeX from one publisher's template to another. Different journals (e.g., Springer, MDPI, IEEE) have vastly different structural requirements, document classes, margin settings, and bibliography styles. This skill streamlines these conversions by executing a structured multi-stage workflow, extracting content, mapping it to a new template, and resolving common compilation errors.

When to Use This Skill

  • Use when the user requests to port an existing LaTeX paper to a new journal's format.
  • Use when the user provides an existing .tex file and a new template directory.
  • Use when the user mentions converting from format A (e.g., IPOL/Neural Processing) to format B (e.g., MDPI).

How It Works

Step 1: Pre-requisites & Assessment

Identify the Source LaTeX file and asking the user for the Target Template Directory. Understand the core layout mapping (single-column vs. double-column, bibliography style).

Step 2: Extraction & Injection Script Generation

Create a Python script (e.g., convert_format.py) to parse the source LaTeX file. Use Regular Expressions to extract core text blocks. Merge the new template's preamble, the extracted body, and the backmatter. Write this to a new file in an output directory.

Step 3: Systematic Fixing

Perform generic fixes on the extracted body text before writing the final file, or in subsequent calls:

  • Convert math environment cases (e.g., \begin{theorem} to \begin{Theorem}).
  • Adjust aggressive float placements (e.g., [!t] or [h!]) to template-supported options. Avoid forcing [H] unless the float package is explicitly loaded.
  • Ensure \includegraphics paths are relative to the new .tex file location.
  • Convert \begin{tabular} to \begin{tabularx}{\textwidth} or use \resizebox if moving to a double-column layout.

Step 4: Compilation & Debugging

Run a build cycle (pdflatex -> bibtex -> pdflatex). Check the .log file using grep or rg to systematically fix any packages conflicts, undefined commands, or compilation halts.

Examples

Example 1: Converting IPOL to MDPI

``` USER: "I need to convert my paper 'SAHQR_Paper.tex' to the MDPI format located in the 'MDPI_template_ACS' folder." AGENT: Triggers latex-paper-conversion skill

  1. Analyzes source .tex and target template.tex.
  2. Creates Python script to extract Introduction through Conclusion.
  3. Injects content into MDPI template.
  4. Updates image paths and table float parameters [h!] to [H].
  5. Compiles via pdflatex and bibtex to confirm zero errors. ```

Best Practices

  • ✅ Always write a Python extraction script; DO NOT manually copy-paste thousands of lines of LaTeX.
  • ✅ Always run pdflatex and verify the .log to ensure the final output compiles.
  • ✅ Explicitly ask the user for the structural mapping if the source and target differ drastically (e.g., merging abstract and keywords).
  • ❌ Don't assume all math packages automatically exist in the new template (e.g., add \usepackage{amsmath} if missing).

Common Pitfalls

  • Problem: Overfull hboxes in tables when moving from single to double column. Solution: Detect \begin{tabular} and automatically wrap in \resizebox{\columnwidth}{!}{...} or suggest a format change.
  • Problem: Undefined control sequence errors during compilation. Solution: Search the Paper.log and include the missing \usepackage{} in the converted template.

Additional Resources

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.