LaTeX for Research Paper: Step-by-Step Guide to Writing, Citing and Formatting
Published: August 10, 2023 . Updated: November 19, 2026
How do you use LaTeX for a research paper?
Start from your target journal's LaTeX template, set the document class and packages in the preamble, write each section between \begin{document} and \end{document}, add equations, figures and tables with their environments, cite with \cite and a .bib file, then compile (LaTeX, BibTeX, LaTeX, LaTeX) and clear every warning before submission.
Most scholars who write to us about LaTeX are not stuck on LaTeX itself. They are stuck on one of five things: the wrong class file, a broken .bib file, an equation too wide for a two-column page, a figure that will not stay where it belongs, or a journal system that will not compile the upload. This guide follows the order we use when we typeset a paper, and it shows the fixes for the errors we see most often.
On this page
What is LaTeX, and when should you use it for a research paper?
LaTeX is a document preparation system. You write plain text with commands, and a compiler turns it into a PDF. It is widely used in mathematics, physics, computer science and engineering because equations, numbering, cross-references and bibliographies are generated by the system instead of typed by hand.
| Factor | LaTeX | Microsoft Word |
|---|---|---|
| Equations | Native, consistent numbering and cross-references | Equation editor; numbering and references are manual or fragile |
| References | Generated from a .bib file in the journal's style | Needs a reference manager plug-in and a matching style |
| Journal template | Publisher class file controls layout; you write content only | Template file; layout can drift as you edit |
| Learning curve | Steeper at first, faster once a template is set | Immediate for most authors |
| Track changes with co-authors | Works through Overleaf comments or Git; less familiar to reviewers | Built in and widely expected |
| Best when | Math-heavy papers, IEEE/ACM/Elsevier/Springer LaTeX submissions | Text-heavy papers where the journal accepts Word |
Use LaTeX when the journal supplies a LaTeX class, your paper has many equations or cross-references, or you need to submit source files. Stay in Word when the journal only accepts Word, or when co-authors will edit in tracked changes. Check the journal's author instructions before you decide.
What do you need before you start?
You need an editor and a TeX distribution (the compiler and packages). Overleaf bundles both in the browser; the other options run on your computer.
| Option | Type | Good for |
|---|---|---|
| Overleaf | Online editor with compiler | Beginners, co-author collaboration, publisher templates |
| TeX Live + TeXstudio | Offline, free | Working without internet, full control over packages |
| MiKTeX + TeXworks | Offline, Windows | Installing missing packages automatically on demand |
| MacTeX + TeXShop | Offline, macOS | Mac users who prefer a local install |
| VS Code + LaTeX Workshop | Offline editor extension | Authors already using VS Code or Git |
How to write a research paper in LaTeX: 8 steps
These are the steps in the order we follow when we typeset a manuscript. Each step ends with the check that tells you it worked.
Step 1: Start from the journal's template, not a blank file
Download the LaTeX template from the journal's author-instructions page or the publisher's template service, then upload the whole folder (class file, style file, sample .tex, sample .bib) into a new Overleaf project or a local folder. Do not rebuild the layout yourself on the generic article class unless the journal has no template. You are done with this step when the unchanged sample file compiles to a PDF that looks like the journal's sample page.
Step 2: Set up the preamble
The preamble is everything before \begin{document}: the document class, packages and metadata. If the journal gives you a class, keep its preamble and add only what you need. For a paper with no journal class yet, this is a safe starting point:
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath} % equations
\usepackage{graphicx} % figures
\usepackage{booktabs} % clean tables
\usepackage[numbers]{natbib} % citations with BibTeX
\usepackage[hidelinks]{hyperref}% clickable references (load last)
\title{Your Paper Title}
\author{Author Name \\ Department, Institution}
\date{\today}
Each package does one job: amsmath for equation environments, graphicx for \includegraphics, booktabs for readable tables, natbib for citation commands, and hyperref for links between references and the text.
Step 3: Build the document structure
The body sits between \begin{document} and \end{document}. Call \maketitle to print the title block, then write the abstract and the sections. Most empirical papers follow the IMRaD order (Introduction, Methods, Results, Discussion); your journal's guidelines override this.
\begin{document}
\maketitle
\begin{abstract}
Write 150-250 words: problem, method, main result, significance.
\end{abstract}
\section{Introduction}
\section{Methodology}
\subsection{Data collection}
\section{Results and Discussion}
\section{Conclusion}
\bibliographystyle{plainnat}
\bibliography{references} % references.bib, without the extension
\end{document}
Numbering, the table of contents and cross-references update automatically as you add or move sections.
Paper ready but not in LaTeX yet? Get it typeset in your journal's template.
Step 4: Format text and add equations
Let the class file handle layout, and use commands only for meaning: \textbf{} for bold, \textit{} for italics, \emph{} for emphasis. Numbered equations use the equation environment; multi-line derivations use align (both from amsmath). Add a \label and refer to it with \eqref so numbers stay correct when equations move.
The energy relation is given in Eq.~\eqref{eq:energy}.
\begin{equation}
E = mc^{2}
\label{eq:energy}
\end{equation}
\begin{align}
y &= ax + b \label{eq:line} \\
z &= \frac{y}{2}
\end{align}
Use \[ ... \] for unnumbered display math and avoid the old $$ ... $$ form, which spaces equations inconsistently. For an equation too wide for a two-column page, split it with multline or split instead of shrinking the font.
Which document class? The generic article class suits drafts and journals with no template. The memoir class is a book-style class that is rarely used for journal papers. When the journal supplies its own class, always use that one. The class decides margins, fonts, column layout and heading style, so changing it after acceptance means reformatting the paper.
Step 5: Add figures and tables
Figures. Put the image file in a figures/ folder, wrap it in a figure environment, write the \caption first and the \label after it, and cite it in the text with \ref. Prefer vector PDF for plots; use PNG or JPG only for photographs.
\begin{figure}[htbp]
\centering
\includegraphics[width=0.8\linewidth]{figures/results.pdf}
\caption{Accuracy versus training epochs.}
\label{fig:results}
\end{figure}
Tables. In tabular the argument is the column specification, not the width: l, c and r align each column left, centre or right. Cells are separated by & and rows end with \\. The booktabs rules (\toprule, \midrule, \bottomrule) give the clean horizontal-line style most journals use. By convention the caption goes above a table and below a figure. The numbers below are illustrative.
\begin{table}[htbp]
\centering
\caption{Comparison of methods.}
\label{tab:compare}
\begin{tabular}{lcc}
\toprule
Method & Accuracy (\%) & Time (s) \\
\midrule
Baseline & 82.1 & 14.2 \\
Proposed & 89.4 & 15.0 \\
\bottomrule
\end{tabular}
\end{table}
Step 6: Cite sources and build the bibliography
Keep every reference in one .bib file. Each entry has a key that you cite in the text. The \cite command prints the number or author-year in the text; the reference list itself is printed where you place \bibliography{references}, using the style named in \bibliographystyle{}. Note that \bibliography takes the name of the .bib file, not a citation key.
% references.bib (illustrative entry)
@article{smith2024method,
author = {Smith, John and Rao, Anita},
title = {A Study of Example Methods},
journal = {Journal of Examples},
year = {2024},
volume = {12},
number = {3},
pages = {45--60},
doi = {10.0000/example}
}
% in the paper
Earlier work \citep{smith2024method} showed ... % (Smith and Rao, 2024) or [1]
\citet{smith2024method} reported ... % Smith and Rao (2024)
| Factor | BibTeX + natbib | biblatex + Biber |
|---|---|---|
| Journal compatibility | Supported by almost every publisher class and .bst style | Accepted by some journals only; check the instructions |
| Commands | \cite, \citep, \citet | \autocite, \parencite, \textcite |
| Styling | Edit or swap a .bst file | Customise in LaTeX options |
| Choose when | The journal supplies a BibTeX style | You control the format, for example a university document |
Export entries from Zotero, Mendeley or JabRef, or use Google Scholar's Cite → BibTeX, then check each entry against the publisher page: exported files often carry wrong capitalisation, missing page numbers or duplicate keys. For citation rules in general, see our guide on how to cite sources in a research paper.
Step 7: Compile in the right order
Overleaf runs the sequence for you. On a local install, run LaTeX, then BibTeX (or Biber), then LaTeX twice. The first run records labels and citations, BibTeX builds the reference list, and the last two runs resolve numbers. If you see [?] for a citation or ?? for a reference, the sequence was incomplete or a key does not match.
Generating Tables and Figures
Tables and figures are an essential part of any research paper. They help to communicate data and findings in a clear and concise way. LaTeX is a great tool for creating tables and figures. With its powerful features, you can create beautiful and complex tables and figures with ease. In this article, we will show you how to create tables and figures in LaTeX.
Step 8: Run a pre-submission check
LaTeX does not catch spelling mistakes or wrong facts, so check these before you upload:
Compile log: no errors, and no undefined citation or reference warnings.
Bibliography: every
\citeappears in the list, every listed source is cited, and entries match the journal's style.Figures and tables: each has a caption, a label and a mention in the text; fonts inside figures are readable at print size.
Template: the author block, keywords and page limits follow the journal's instructions; no leftover template text.
Files: upload exactly what the journal asks for (usually the
.texsource,.bibor.bbl, figures and a PDF); test the build from a fresh copy of the folder.Language: run a spell check and a final read-through; a PDF can look perfect and still contain typos.
Which LaTeX template should you use for your research paper?
Use the template named in the journal's author instructions. These are the classes we meet most often; publishers update templates, so always download the current version.
| Publisher / standard | Class or template | Bibliography | Note |
|---|---|---|---|
| IEEE | IEEEtran (conference and journal) | BibTeX with IEEEtran.bst | Two-column; wide equations need splitting. See our IEEE format checker and IEEE paper writing |
| Elsevier | elsarticle | elsarticle-num or elsarticle-harv | Check the journal's guide for preprint vs final layout |
| Springer Nature | Springer Nature LaTeX template (some journals still use svjour3) | Style bundled with the template | Journals differ; use the template linked on the journal page |
| ACM | acmart | ACM Reference Format (BibTeX or biblatex) | Choose the correct \documentclass option for your venue |
| APS / AIP | REVTeX 4.2 (revtex4-2) | Styles bundled with REVTeX | Physics and related fields |
| MDPI | mdpi.cls from the journal's LaTeX package | Bundled style | Download the package from the journal's instructions page |
University thesis formats vary by institution. If you need that, start with our thesis writing service page rather than a journal template.
What are the most common LaTeX errors, and how do you fix them?
Read the first error in the log, not the last; later errors are often a chain reaction. These are the ones we fix most often.
| Message | Usual cause | Fix |
|---|---|---|
Undefined control sequence | Misspelt command or missing package | Check spelling; add the package that defines the command |
File 'xyz.sty' not found | Package not installed or not uploaded | Install it (MiKTeX / TeX Live) or add the file to the project |
Missing $ inserted | Math symbol such as _ or ^ in normal text | Wrap in $...$ or escape as \_ |
Citation shows [?] | BibTeX not run, or key does not match the .bib entry | Run the full compile sequence; compare the key letter by letter |
Reference shows ?? | Labels resolve on the second run; \label placed before \caption | Compile twice; put \label after \caption |
Overfull \hbox | Long URL, long equation or unbreakable word | Use \url{}; split the equation; rephrase |
Too many unprocessed floats | More figures and tables than LaTeX can place | Add \clearpage; loosen placement to [htbp] or [p] |
Runaway argument / File ended while scanning | Unmatched { or } | Find the unclosed brace near the line number shown |
Environment ... undefined | Environment's package is not loaded | Load the package (for example amsmath for align) |
| Image not found | Wrong path, wrong extension, or different letter case | Match the folder and file name exactly; Overleaf is case-sensitive |
How Zonduo prepares LaTeX research papers
Our research team typesets and corrects LaTeX manuscripts for scholars who write in Word, in Overleaf, or half in each. The pattern is nearly always the same: the science is finished and the file is not. This is how we handle it.
What we do when a paper reaches us
We ask for three things: the current manuscript (Word or
.tex), the journal name or its author-guidelines link, and every figure as a separate file at original resolution. We do not work from a screenshot of a PDF.We download the journal's current template from the publisher or journal page, not from an older project, because class files and bibliography styles change between versions.
We move the text section by section, rebuild equations as LaTeX math instead of pasting pictures, and convert plots to vector PDF where the source file allows.
We rebuild the reference list as one clean
.bibfile with readable keys (such assmith2024method) and check each entry against its DOI or publisher page.We run a clean build, read the log for warnings as well as errors (overfull boxes, undefined references), and compare the PDF with the journal's own sample page.
We return the
.texfile, the.bibfile, the figures folder and the compiled PDF, so you can keep editing without us.
Three cases from our desk
Word manuscript to IEEEtran, with citations showing [?]
The author had pasted references from three different sources, so keys were duplicated and two entries had no year. We rebuilt the .bib file with one key style, removed the duplicates and ran the full BibTeX sequence. Every [?] cleared, and the reference list then matched the journal's numbering.
Equations running off the column in a two-column layout
A derivation typed with $$ ... $$ overflowed the column and produced overfull-box warnings. We moved it into align and multline, broke the lines at operators and labelled each equation, so the in-text references stayed correct after layout changes.
Upload that compiled on a laptop but failed in the journal system
The project used a custom package and an absolute figure path that existed only on the author's computer. Some submission systems compile on their side, so we replaced the custom package with a standard one, switched to relative paths and tested the build from a clean copy of the folder. We also reread the journal's file-upload instructions for the files it expects.
What we do not do
We do not change your claims, results or the meaning of a cited source, and we cannot promise acceptance, because editors and reviewers decide that. If you want a similarity check or language edit before submission, we offer those separately: see plagiarism checking, proofreading and research paper editing.
What we keep up to date
We keep a tested starter file for each class in the table above and re-test it when a publisher releases a new template. When that changes anything in this guide, we update the page and its date. If your paper is also heading to a Scopus or SCI journal, our journal publication support covers the submission steps that follow formatting.
Get your paper typeset in LaTeX
Send your manuscript, the journal name and your figures. We will confirm the template, the scope of work and the timeline before we start.
WhatsApp your manuscript Request a LaTeX quoteFrequently asked questions about LaTeX for research papers
Is LaTeX better than Word for a research paper?
It depends on the paper. LaTeX is better for equation-heavy work, automatic cross-references and journals that supply a LaTeX class. Word is better when the journal accepts only Word or when co-authors rely on tracked changes. Follow the journal's author instructions.
Do I need to install LaTeX to write a research paper?
No. Overleaf compiles in the browser, so you only need an account. A local install (TeX Live, MiKTeX or MacTeX plus an editor) is useful for offline work.
How do I cite a paper in LaTeX?
Add the paper as an entry in a .bib file, cite its key with \cite{key} (or \citep and \citet with natbib), and print the list with \bibliographystyle{} and \bibliography{filename}. Then compile with LaTeX, BibTeX, LaTeX, LaTeX.
Why do my LaTeX citations show question marks?
Either BibTeX (or Biber) has not been run since you added the citation, or the key in \cite{} does not exactly match the key in the .bib file. Run the full compile sequence and compare the keys.
Which LaTeX template should I use for my journal?
Use the one the journal links in its author instructions. IEEE papers use IEEEtran, Elsevier uses elsarticle, ACM uses acmart, and Springer Nature and MDPI provide their own packages. Download the current version each time.
Can I convert a Word paper to LaTeX?
Yes. Automatic converters give a first draft, but equations, tables, figures and references normally need manual correction. Zonduo converts Word manuscripts into the journal's LaTeX template and returns the editable source files; you can start from our LaTeX quote request.
What should I send Zonduo for LaTeX formatting?
Send the manuscript (Word or .tex), the journal name or author-guidelines link, and all figures as separate files. If the paper also needs editing or a similarity check, say so in the same message and we will scope it together.
Sources and further reading
View sources and further reading
- The LaTeX Project: official home of LaTeX.
- Overleaf Learn: documentation on equations, bibliographies and templates.
- CTAN: the archive for LaTeX packages and class files.
- IEEE Template Selector: current IEEE LaTeX and Word templates.
- Elsevier LaTeX instructions: the
elsarticleclass and submission guidance.
Conclusion: a repeatable LaTeX workflow
A reliable LaTeX workflow is short: start from the journal's template, keep one clean .bib file, label every equation, figure and table, compile in the full sequence, and read the log before you submit. Once the first paper is set up, the next one reuses the same files.
If you would rather hand the formatting over, Zonduo's team typesets PhD and journal manuscripts in LaTeX and returns editable source files. You can request a LaTeX quote, or see our wider research article writing support if the paper itself still needs work.