Write academic papers from experiment results using LaTeX. Use when experiments are complete and REPORT.md exists, when asked to write a paper, or when generating publication-ready documents in NeurIPS style.
Guide for writing academic papers from experiment results using a two-stage process.
IMPORTANT: Before writing any content, you MUST complete these steps:
Read the style guide: Review templates/paper_writing/lab_style_guide.md for comprehensive formatting and language conventions
Study example papers: Browse paper_examples/ to understand our lab's style:
sections/1.introduction.tex or sections/introduction.textables/*.tex filesfigures/*.tex filescommands/*.tex filesVerify command templates: Command templates are pre-copied to paper_draft/commands/:
math.tex - Math notation macrosgeneral.tex - Formatting macros (\para{}, colors, etc.)macros.tex - Template for project-specific terms (customize for your paper)CRITICAL: Reference example papers for FORMATTING and LANGUAGE STYLE only
Set paper author: Read .idea-explorer/idea.yaml to find idea.metadata.author:
metadata.author exists: use <author name> and Idea-Explorermetadata.author: use Idea-ExplorerBefore writing prose, create a detailed outline:
Save outline to paper/OUTLINE.md for review before proceeding.
Convert outline to full prose:
Follow this structure:
Structure:
Organization strategies:
For each group:
Essential elements:
Structure:
Setup
Main Results
Analysis
Ablations
Cover:
Format:
Style files (.sty, .bst) are copied to the paper_draft/ directory. The exact preamble (package name, options, bibliography style) is specified in your prompt - follow it exactly.
\documentclass{article}
% Conference style package - USE THE EXACT LINE FROM YOUR PROMPT
\usepackage{<style_package>} % e.g., neurips_2025, icml2026, etc.
% Required packages - ALWAYS include these
\usepackage[hidelinks]{hyperref} % Clickable links (REQUIRED)
\usepackage{booktabs} % Better tables (REQUIRED)
\usepackage{graphicx} % Figures
\usepackage{amsmath,amssymb} % Math
% Import command files
\input{commands/math}
\input{commands/general}
\input{commands/macros}
\title{Clear Title That Conveys Main Contribution}
% Set author based on .idea-explorer/idea.yaml metadata.author:
% If metadata.author exists: \author{<author name> and Idea-Explorer}
% If no metadata.author: \author{Idea-Explorer}
\author{Idea-Explorer}
\begin{document}
\maketitle
\begin{abstract}
Your abstract here (150-250 words).
\end{abstract}
\section{Introduction}
...
\bibliography{references}
\bibliographystyle{<bib_style>} % Use the style from your prompt
\end{document}
\begin{table}[h]
\centering
\caption{Results comparing methods on [benchmark].
Higher is better for all metrics.
Best results in \textbf{bold}.}
\begin{tabular}{lcc}
\toprule
Method & Accuracy (\%) & F1 (\%) \\
\midrule
Baseline 1 & 75.2 {\scriptsize $\pm$ 0.3} & 72.1 {\scriptsize $\pm$ 0.4} \\
Baseline 2 & 78.4 {\scriptsize $\pm$ 0.2} & 75.8 {\scriptsize $\pm$ 0.3} \\
\midrule
Ours & \textbf{82.1} {\scriptsize $\pm$ 0.2} & \textbf{79.4} {\scriptsize $\pm$ 0.3} \\
\bottomrule
\end{tabular}
\label{tab:main_results}
\end{table}
\begin{figure}[h]
\centering
\includegraphics[width=0.8\linewidth]{figures/main_result.pdf}
\caption{Caption should be self-contained. Explain what is shown,
highlight key observations, and note any important details.}
\label{fig:main_result}
\end{figure}
@inproceedings{author2024title,
title={Full Paper Title},
author={Last, First and Last2, First2},
booktitle={Conference Name},
year={2024}
}
\cite{key} for parenthetical: "...as shown previously (Author et al., 2024)"\citet{key} for textual: "Author et al. (2024) showed that..."These are the key conventions from our lab's writing style. See templates/paper_writing/lab_style_guide.md for complete documentation.
Language:
{\bf what is hypothesis generation?}Structure:
commands/ directory with math.tex, general.tex, macros.tex\input{commands/math} etc.Macros:
\va, \vb, ..., \vz (bold lowercase)\mA, \mB, ..., \mZ (bold uppercase)\figref{}, \Figref{}, \secref{} (not raw \ref{})\newcommand{\methodname}{\textsc{Name}\xspace}Tables:
booktabs (\toprule, \midrule, \bottomrule)\resizebox{\textwidth}{!}{...} for wide tables@{} at edges, \cmidrule(lr){x-y} for sub-headersHyperlinks (Required):
\usepackage[hidelinks]{hyperref}Figures:
0.32\textwidth for 3-column subfigures\input{figures/legend} for shared legendsContribution Lists:
\begin{itemize}[leftmargin=*,itemsep=0pt,topsep=0pt]
\item We propose...
\item We conduct...
\end{itemize}
Save to paper_draft/ directory with this structure:
paper_draft/
├── main.tex # Main document
├── references.bib # BibTeX citations
├── commands/
│ ├── math.tex # Math notation macros
│ ├── general.tex # Formatting macros
│ └── macros.tex # Project-specific terms
├── sections/
│ ├── abstract.tex
│ ├── introduction.tex
│ └── ...
├── figures/ # Figure files (PDF preferred)
└── tables/ # Complex standalone tables
Compile with:
cd paper_draft && pdflatex main && bibtex main && pdflatex main && pdflatex main
See references/ folder for:
writing_guidelines.md: Section-specific writing adviceSee assets/ folder for:
paper_outline_template.md: Template for Stage 1 outline