rp-katex
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

rp-katex

KaTeX plugin for Liqvid.

Usage

import {KTX} from "rp-katex";

function Quadratic() {
  return (
    <div>
      The value of <KTX>x</KTX> is given by the quadratic formula
      <KTX display>{String.raw`x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`}</KTX>
    </div>
  );
}

Macros

For convenience, this module supports loading macro definitions from a file. Simply include a <script type="math/tex"> tag in the <head> of your html, pointing to a tex file containing \newcommands.

<!-- this has to go in <head> -->
<script src="./macros.tex" type="math/tex"></script>
% macros.tex
\newcommand{\C}{\mathbb C}

Readme

Keywords

Package Sidebar

Install

npm i rp-katex

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

8.29 kB

Total Files

5

Last publish

Collaborators

  • yuri