slidev-latex

Render inline and display math in Slidev presentations using KaTeX.

34|1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-latex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slidev-latex
Source: https://github.com/yoanbernabeu/slidev-skills/tree/main/skills/visuals/slidev-latex
Command: npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-latex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables rendering mathematical formulas inside Slidev presentations using KaTeX, allowing clear inline and display notation without image workarounds.

Core Features & Use Cases

  • Inline math with $...$ for quick notation.
  • Display math with $$...$$ and environments like \begin{aligned}...\end{aligned}.
  • Support for matrices, fractions, exponents, subscripts, and Greek letters.
  • Chemistry support via mhchem extension (enable in vite.config.ts) for chemical formulas.
  • Use Case: Academics and researchers presenting equations, derivations, and technical content.

Quick Start

Create slides using inline math: $E=mc^2$, and display math: $$E=mc^2$$. To enable chemistry formulas, add mhchem extension in vite.config.ts and use: \ce{H2O}.

Frequently Asked Questions about slidev-latex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render LaTeX math equations in Slidev presentations?

To render LaTeX equations in Slidev, use KaTeX syntax with $...$ for inline math and $$...$$ for display math. This allows clear notation without image workarounds, supporting fractions, matrices, and Greek letters directly in your slides.

Can I display chemistry formulas in Slidev using KaTeX?

Yes, you can display chemistry formulas in Slidev by enabling the mhchem extension in your vite.config.ts file. Once enabled, use the \ce{...} syntax to render chemical equations correctly within your presentation slides.

Do I need to install external dependencies to use KaTeX in Slidev?

No, you do not need external installations to use standard KaTeX syntax in Slidev. The skill supports standard math rendering natively, though chemistry formulas require enabling the mhchem extension in vite.config.ts.

What types of mathematical notation are supported in Slidev?

Slidev supports inline math, display math, matrices, fractions, exponents, subscripts, Greek letters, and physics formulas. You can also use alignment environments like \begin{aligned}...\end{aligned} for complex derivations.

How do I create aligned multi-line equations in Slidev?

To create aligned multi-line equations in Slidev, use display math with $$...$$ and the \begin{aligned}...\end{aligned} environment. This syntax allows you to structure complex mathematical derivations clearly across multiple lines.

Does Slidev support inline math notation for technical presentations?

Yes, Slidev supports inline math notation using the $...$ syntax, allowing quick integration of formulas like $E=mc^2$ directly within text. This is ideal for academics presenting technical content without breaking text flow.