Cursive R in LaTeX: All 8 Commands, Packages & Error Fixes
All 8 Commands (Click to Copy)
| Command | Output | Meaning |
|---|---|---|
| \mathbb{R} | ℝ | Real Numbers |
| \mathcal{R} | ℛ | Script R |
| \mathscr{R} | ℛ | Ornate Script |
| \mathfrak{R} | ℜ | Fraktur (Real Part) |
| \mathbf{R} | 𝐑 | Bold (Vector) |
| \mathit{R} | 𝑅 | Italic R |
| \text{R} | R | Plain Text |
| \mathnormal{R} | 𝑅 | Standard Italic |
Every LaTeX command for "cursive R" — from the most common \mathbb{R} (ℝ, real numbers) to the ornate \mathscr{R} (ℛ, script) to the bold \mathbf{R} (𝐑, vectors). Below: 8 commands with their outputs, package requirements, compile error fixes, and a complete copy-paste-ready document example.
The 2 Essential Packages (Always Required)
Every LaTeX "cursive R" command requires at least one package. If you forget these, you'll get a compile error — the #1 frustration for LaTeX beginners.
% Essential packages for cursive R \usepackage{amsmath} % Core math \usepackage{amssymb} % \mathbb, \mathfrak \usepackage{mathrsfs} % \mathscr (optional)
Compile Errors & Fixes (6 Common)
These are the most common compile errors when using cursive R in LaTeX:
| Error Message | Cause | Fix |
|---|---|---|
| Undefined control sequence \mathbb | Missing amssymb package | Add \usepackage{amssymb} |
| Undefined control sequence \mathfrak | Missing amssymb package | Add \usepackage{amssymb} |
| Undefined control sequence \mathscr | Missing mathrsfs package | Add \usepackage{mathrsfs} |
| Missing $ inserted | Using math command in text mode | Wrap in $...$ |
| Too many }'s | Unbalanced braces | Check {...} pairing |
| Font shape not available | Font package conflict | Try different font package |
Complete LaTeX Document Example
Copy this entire block into a `.tex` file, compile it, and you'll see all 8 cursive R's rendered correctly:
\documentclass[11pt]{article} % Essential packages \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathrsfs} \begin{document} \section*{Cursive R in LaTeX} \textbf{Double-struck (real numbers):} $\mathbb{R}$ — e.g., $x \in \mathbb{R}$ \textbf{Caligraphic (script):} $\mathcal{R}$ — e.g., Riemann curvature $\mathcal{R}$ \textbf{Fraktur (real part):} $\mathfrak{R}$ — e.g., $\mathfrak{R}(z)$ for $z \in \mathbb{C}$ \textbf{Bold (vector/matrix):} $\mathbf{R}$ — e.g., rotation matrix $\mathbf{R}$ \end{document}
Free LaTeX R Cheat Sheet
Download a free 1-page PDF cheat sheet — includes all 8 commands, package requirements, compile error fixes, and the minimal working example.
Download Cheat Sheet (PDF)Frequently Asked Questions
$\mathbb{R}$ and add \usepackage{amssymb} to your preamble. This produces the double-struck R (ℝ) used for real numbers.\usepackage{amssymb} in the preamble. Also check that the command is inside math mode ($...$). 90% of errors are one of these two issues.\mathbb{R} (ℝ) is the double-struck R for real numbers. \mathcal{R} (ℛ) is the script/calligraphic R for Riemann curvature, rings, and relations.$\mathfrak{R}$ and add \usepackage{amssymb} to your preamble.