\documentclass{article}

Modèle d'article de recherche LaTeX

Modèles LaTeX prêts pour la production pour les articles de revue et de conférence. Couvre les classes article, IEEEtran et REVTeX4-2, avec figures, tableaux, équations et bibliographie préconfigurés.

Voir le préambule complet

\section{Choisir une classe de document}

article, IEEEtran ou REVTeX

La classe de document détermine la mise en page de votre article, le format des citations et les exigences de soumission. Choisissez-la en fonction de la revue ou de la conférence visée.

Fonctionnalité
article
IEEEtran
REVTeX4-2
Classe de document\documentclass{article}\documentclass[journal]{IEEEtran}\documentclass[aps,prl]{revtex4-2}
Disposition en colonnesUne colonneDeux colonnesDeux colonnes
Taille de police10–12pt10pt (fixe)10pt (fixe)
Environnement abstract\begin{abstract}\begin{abstract}\begin{abstract}
Style de citationAu choix (biblatex)\cite → [1]\cite → [1] or author–year
Idéal pourPrépublications, arXiv, revues généralistesIEEE Transactions, ICASSP, CVPRPhysical Review, Applied Physics

\section{Structure de l'article}

Parcours complet de la structure d'un article

Chaque section d'un article de recherche a ses propres idiomes LaTeX. Voici ce qui compte dans chacune.

Résumé

Wrap in \begin{abstract}…\end{abstract}. Keep to 150–250 words. Avoid citations and equations — most journals process abstracts separately for their databases.

Introduction

Use \section{Introduction}. State the problem, summarise prior work with \cite, and enumerate your contributions with enumerate. Keep subsections shallow in short papers.

Méthodes

Present equations using equation and align environments from amsmath. Use \label and \cref for cross-references. Define notation in a paragraph before equations.

Tableaux

Use booktabs for publication-quality rules: \toprule, \midrule, \bottomrule. Never use vertical lines. Place tables with [H] (float package) or [t] for top-of-page.

Figures

Include with \includegraphics and caption. Use subcaption for panels (a), (b), (c). Export vector graphics as PDF for lossless scaling. Name files descriptively.

Bibliographie

Use biblatex with \printbibliography or the journal's required BST file with \bibliography. Export references from Zotero or Google Scholar as BibTeX.

\section{Figures et tableaux}

Figures et tableaux de qualité publication

Copiez ces schémas pour les figures simples, les panneaux de sous-figures et les tableaux booktabs.

Figures : simples et panneaux de sous-figures
% Single figure
\begin{figure}[t]
  \centering
  \includegraphics[width=0.9\linewidth]{figures/architecture.pdf}
  \caption{Overview of the proposed model architecture. The encoder
    processes input tokens through hierarchical attention blocks
    (\cref{sec:method}).}
  \label{fig:architecture}
\end{figure}

% Two-panel subfigures
\begin{figure}[t]
  \centering
  \begin{subfigure}[b]{0.48\linewidth}
    \includegraphics[width=\linewidth]{figures/train_loss.pdf}
    \caption{Training loss curve.}
  \end{subfigure}
  \hfill
  \begin{subfigure}[b]{0.48\linewidth}
    \includegraphics[width=\linewidth]{figures/eval_rouge.pdf}
    \caption{ROUGE-1 on validation set.}
  \end{subfigure}
  \caption{Training dynamics over 50k steps.}
  \label{fig:training}
\end{figure}
Tableaux : booktabs avec alignement siunitx
\begin{table}[H]
  \centering
  \caption{Comparison of methods on the CNN/DailyMail test set.}
  \label{tab:main-results}
  \begin{tabular}{l S[table-format=2.1] S[table-format=2.1] S[table-format=2.1]}
    \toprule
    {Method} & {R-1} & {R-2} & {R-L} \\
    \midrule
    Lead-3        & 40.4 & 17.7 & 36.7 \\
    Longformer    & 44.2 & 21.3 & 41.0 \\
    Full Attention & 45.1 & 21.9 & 41.8 \\
    \midrule
    \textbf{Ours} & \textbf{47.4} & \textbf{23.1} & \textbf{43.5} \\
    \bottomrule
  \end{tabular}
\end{table}

\include{preamble}

Préambule complet d'un article de recherche

Un article complet qui compile, avec mathématiques, tableau et bibliographie. Fonctionne immédiatement avec FormaTeX via la chaîne pdfLaTeX + Biber.

paper.tex
\documentclass[12pt]{article}

% Encoding & fonts
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

% Page layout
\usepackage[margin=2.5cm]{geometry}

% Mathematics
\usepackage{amsmath, amssymb, amsthm}
\usepackage{mathtools}

% Figures & tables
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{array}
\usepackage[labelfont=bf, font=small]{caption}
\usepackage{subcaption}
\usepackage{float}

% References & citations
\usepackage[style=numeric-comp, sorting=none, backend=biber]{biblatex}
\addbibresource{references.bib}

% Hyperlinks
\usepackage[hidelinks, colorlinks=false]{hyperref}
\usepackage{cleveref}

% Algorithms
\usepackage[ruled, vlined]{algorithm2e}

% Utilities
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{lipsum}  % remove in production

% -------------------------------------------------------
% Document metadata
% -------------------------------------------------------
\title{%
  A Sub-Quadratic Attention Mechanism for\\
  Long-Document Summarisation
}
\author{%
  Jane Researcher$^{1}$\thanks{Corresponding author: [email protected]} \and
  John Co-Author$^{2}$
}
\date{%
  $^{1}$Department of Computer Science, University of Example\\
  $^{2}$AI Research Lab, Tech Institute\\[6pt]
  \today
}

\begin{document}

\maketitle

\begin{abstract}
We present an efficient attention mechanism that reduces the computational
complexity of transformer self-attention from $\mathcal{O}(n^2)$ to
$\mathcal{O}(n \log n)$, enabling processing of documents with up to
64{,}000 tokens on a single GPU. Experiments on the CNN/DailyMail and
arXiv summarisation benchmarks show a ROUGE-1 improvement of 2.3 points
over the full-attention baseline with 40\% lower memory consumption.
\end{abstract}

\textbf{Keywords:} natural language processing, attention mechanism,
transformers, document summarisation

\section{Introduction}
Long-document understanding remains a core challenge in NLP.
The quadratic memory complexity of standard self-attention
($\mathcal{O}(n^2 d)$ for sequence length $n$ and dimension $d$)
limits practical sequence lengths to 2{,}048–4{,}096 tokens on
commodity hardware~\cite{vaswani2017}.

\subsection{Contributions}
\begin{enumerate}
  \item A hierarchical attention scheme operating at sentence and paragraph levels.
  \item An open-source implementation evaluated on three public benchmarks.
  \item A theoretical analysis proving the $\mathcal{O}(n \log n)$ bound.
\end{enumerate}

\section{Related Work}
Sparse attention patterns were introduced by~\cite{child2019} and extended
by Longformer~\cite{beltagy2020} with sliding-window plus global tokens.
Linear attention approximations~\cite{katharopoulos2020} achieve $\mathcal{O}(n)$
complexity but sacrifice expressiveness on local patterns.

\section{Methodology}
\subsection{Hierarchical Attention}
Let $\mathbf{X} \in \mathbb{R}^{n \times d}$ be the token embeddings.
We partition $\mathbf{X}$ into $k$ sentence blocks and compute:
\begin{equation}
  \mathbf{H}_i = \text{Attention}\bigl(\mathbf{Q}_i,\, \mathbf{K}_i,\, \mathbf{V}_i\bigr),
  \quad i = 1, \ldots, k
  \label{eq:local-attn}
\end{equation}
where each block attends only within its sentence boundary for local features,
followed by a cross-block pooling step for global context.

\subsection{Complexity Analysis}
For $k$ blocks each of size $m = n/k$:
\begin{equation}
  \mathcal{C} = k \cdot \mathcal{O}(m^2) + \mathcal{O}(k^2)
               = \mathcal{O}\!\left(\frac{n^2}{k}\right) + \mathcal{O}(k^2)
\end{equation}
Setting $k = n^{2/3}$ minimises total complexity to $\mathcal{O}(n^{4/3})$,
and with $k = \sqrt{n}$ we achieve $\mathcal{O}(n \log n)$ in expectation.

\section{Experiments}
\subsection{Datasets and Metrics}
We evaluate on CNN/DailyMail~\cite{see2017} and arXiv~\cite{cohan2018}.
Summaries are scored with ROUGE-1, ROUGE-2, and ROUGE-L.

\begin{table}[H]
  \centering
  \caption{ROUGE scores on CNN/DailyMail test set.}
  \label{tab:results}
  \begin{tabular}{lccc}
    \toprule
    Model              & R-1  & R-2  & R-L  \\
    \midrule
    Lead-3 baseline    & 40.4 & 17.7 & 36.7 \\
    Longformer         & 44.2 & 21.3 & 41.0 \\
    Full Attention     & 45.1 & 21.9 & 41.8 \\
    \textbf{Ours}     & \textbf{47.4} & \textbf{23.1} & \textbf{43.5} \\
    \bottomrule
  \end{tabular}
\end{table}

\section{Conclusion}
We demonstrated that hierarchical attention matches or exceeds full-attention
performance at substantially lower computational cost. Future work will
explore integration with retrieval-augmented generation pipelines.

\printbibliography

\end{document}

Essayez le modèle dans le navigateur

L'article de recherche complet, avec résumé, mathématiques, tableau et bibliographie, est préchargé et se compile en quelques secondes. Sans installation, sans configuration.

\section{FAQ}

Questions fréquentes

Dois-je utiliser article, IEEEtran ou REVTeX pour mon article ?

Utilisez article pour les prépublications arXiv et les revues sans classe imposée. Utilisez IEEEtran pour tout événement IEEE (Transactions, Letters ou conférences comme CVPR). Utilisez revtex4-2 pour les revues de l'American Physical Society (Physical Review, PRL). Consultez toujours d'abord les consignes aux auteurs de la revue.

Comment mettre en forme les équations dans une mise en page à deux colonnes ?

Dans les documents à deux colonnes (IEEEtran, revtex), les équations larges peuvent déborder des colonnes. Utilisez les environnements figure* ou table* avec un astérisque pour le contenu pleine largeur, ou l'environnement strip dans revtex. Pour les équations en ligne, microtype gère automatiquement l'espacement.

Quelle est la meilleure façon de gérer les références d'un article ?

Utilisez biblatex avec le style numeric-comp pour un format de citation [1, 2, 3] propre. Exportez votre bibliothèque depuis Zotero ou Mendeley en .bib. Pour les soumissions IEEE, utilisez IEEEtran.bst avec le flux BibTeX classique, car le modèle LaTeX de la revue l'inclut généralement.

Comment créer des tableaux de qualité publication en LaTeX ?

Use the booktabs package and replace all \hline calls with \toprule, \midrule, and \bottomrule. Remove all vertical lines. Add column alignment via the siunitx S column type to align numbers at the decimal point.

Quel moteur utiliser : pdfLaTeX, XeLaTeX ou LuaLaTeX ?

pdfLaTeX est le plus rapide et exigé par la plupart des revues. XeLaTeX est le meilleur choix quand vous avez besoin de polices OpenType personnalisées. LuaLaTeX offre le plus de flexibilité (y compris les scripts Lua) mais compile le plus lentement. FormaTeX prend en charge les trois ; consultez /engines pour une comparaison complète.

Comment soumettre à arXiv ?

arXiv exige un dépôt de source à plat : votre fichier .tex, tous les fichiers .bib/.bbl et tous les fichiers de figures dans le même répertoire. Exécutez d'abord localement pdflatex → biber → pdflatex × 2 pour générer le .bbl, puis déposez le .tex + .bbl + les figures. FormaTeX produit automatiquement des PDF conformes.

Prêt à rédiger votre article ?

Ouvrez le modèle dans FormaTeX, rédigez votre article et compilez-le instantanément en PDF, sans installation de TeX Live, sans configuration locale.

Créer un compte