Write and compile LaTeX online

Write TeX, compile it with a real TeX Live and read the PDF beside the code: a project of your own, or an exam template.

Compiling uses no AI · Free plan: 3 templates · 60 minutes of compile time a day

Examples

TeX code
\documentclass[12pt,a4paper]{article}
\usepackage[a4paper,top=1.5cm,bottom=1.7cm,left=1.9cm,right=1.6cm,headheight=14pt,headsep=7pt,footskip=0.9cm]{geometry}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Termes}
\setmathfont{TeX Gyre Termes Math}
\usepackage{hocne/hocne}
\usepackage{fancyhdr}
\input{hocne/goi-them}
\input{hocne/thong-tin}

\setlength\parindent{0pt}
\linespread{1.08}
\setlength\hncaucach{0.6\baselineskip plus 0.25\baselineskip}

% Trang 1/4 - Mã đề 101; the teacher's own header and footer over it, when they wrote one.
PDF page
PDF page

Học nè's Standard template: the head of its main.tex and the page it prints with the sample exam.

Three steps

  1. Start a template

    Write new code, or upload a folder, a .zip or a .tex file.

  2. Write and compile

    The PDF shows beside the code.

  3. Use it to export

    Pick your template in the export.

Questions people ask

For writing a print template in TeX: the layout Học nè uses when it exports your exam, deck or note to PDF.

Read the step-by-step guideUpdated November 14, 2026