Export latex

From Zaoqu-Liu/ScienceClaw · View interactive version

Export latex is an AI agent skill from the GitHub repository Zaoqu-Liu/ScienceClaw. Export research project findings to a LaTeX manuscript draft with figures, references, and methods. Supports Nature, Cell, Lancet, and generic article formats. Use when user says "导出 LaTeX", "/export latex", "写论文初稿", "export to LaTeX", "generate manuscript", or wants a paper draft from project resul

How to use this skill

Skill file

Export Project to LaTeX Manuscript

Auto-generate a LaTeX paper draft from a ScienceClaw project's report, figures, and METHODS.md. Uses venue-templates skill for journal-specific formatting.

When to Use

Workflow

  1. Identify the project and read report + METHODS.md + figures
  2. Ask for target journal if not specified (default: generic article)
  3. Map report sections to paper structure (Introduction, Methods, Results, Discussion)
  4. Generate .tex file with proper formatting
  5. Copy figures to a latex/figures/ subdirectory
  6. Generate .bib file from references
  7. Save to reports/<project_name>_manuscript.tex

Paper Structure Mapping

| Report Section | Paper Section |

|---------------|--------------|

| Background / Introduction | Introduction |

| METHODS.md | Methods / Materials and Methods |

| Results / Findings / Analysis | Results |

| Summary / Conclusions / Discussion | Discussion |

| References | Bibliography (.bib) |

LaTeX Template (Generic Article)

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{hyperref}
\usepackage[margin=2.5cm]{geometry}
\usepackage{natbib}
\bibliographystyle{unsrtnat}

\title{TITLE_PLACEHOLDER}
\author{ScienceClaw Analysis}
\date{\today}

\begin{document}
\maketitle

\begin{abstract}
ABSTRACT_PLACEHOLDER
\end{abstract}

\section{Introduction}
INTRO_PLACEHOLDER

\section{Methods}
METHODS_PLACEHOLDER

\section{Results}
RESULTS_PLACEHOLDER

\section{Discussion}
DISCUSSION_PLACEHOLDER

\section*{Acknowledgments}
This analysis was performed using ScienceClaw with data from [list databases].

\bibliography{references}

\end{document}

BibTeX Generation

Convert GB/T 7714 references from the report to BibTeX entries:

def gbt7714_to_bibtex(ref_line, key):
    """Convert a GB/T 7714 reference line to BibTeX @article entry."""
    # Parse: [N] Authors. Title[J]. Journal, Year, Vol(Issue): Pages. DOI: xxx.
    # Generate: @article{key, author={...}, title={...}, journal={...}, year={...}, ...}
    ...

Journal-Specific Templates

For specific journals, refer to the venue-templates skill which provides full LaTeX class files and formatting requirements for:

When the user specifies a journal, load the appropriate template from venue-templates and adapt the content accordingly.

Output

Report all file paths to the user.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.