How to convert IPYNB to LaTeX
- Drop your IPYNB file on the box above, or paste its content into the text box.
- Check the settings below the box; the defaults suit most files.
- Press Convert. You see a preview or a summary of the result.
- Download the .tex file.
What is kept when you convert IPYNB to LaTeX
- Markdown cells become sections, paragraphs and lists; $…$ and $$…$$ formulas are passed through unchanged as real LaTeX maths.
- Code and text outputs go into Verbatim blocks (fancyvrb); saved chart images are included with \includegraphics and packed with the .tex file in a ZIP.
- The preamble works with pdfLaTeX, XeLaTeX and LuaLaTeX (use XeLaTeX or LuaLaTeX for non-Latin scripts). Nothing in the notebook is executed.
Example
The document body for the two-cell notebook — the formula passes through as real LaTeX:
Output
\maketitle
\section*{Growth}
Rate $g = b/a - 1$.
\textbf{\texttt{In [1]:}}
\begin{Verbatim}[fontsize=\small,frame=single]
%matplotlib inline
print(150 / 120 - 1)
\end{Verbatim}
\begin{Verbatim}[fontsize=\small,frame=single]
0.25
\end{Verbatim}
\end{document}
About IPYNB and LaTeX files
An .ipynb file is a Jupyter notebook: a JSON document holding Markdown cells, code cells and the outputs (text, tables, charts) saved the last time the cells were run. It opens in Jupyter, JupyterLab, VS Code, Google Colab.
A .tex file is a LaTeX source document. A TeX engine (pdfLaTeX, XeLaTeX, LuaLaTeX, or Overleaf online) turns it into a typeset PDF; mathematics is written natively. It opens in Overleaf, TeX Live, MiKTeX, TeXstudio.
Good to know
- Outputs are only as fresh as the last run. Run all cells and save the notebook in Jupyter before converting if you need current results.
- Overleaf is the quickest way to compile the result without installing anything.
Privacy and limits
The file is read and converted by this page in your browser; there is no upload and no account. Notebook code is never executed — only the saved cells and outputs are converted. Files up to 25 MB are accepted; a file of the wrong type or a damaged file is rejected with the reason.