latex2react

2.1.3 • Public • Published

LaTeX2React

installation

  1. Install the library!
yarn add latex2react
  1. import the latex2js CSS file, and the LaTeX React component
import 'latex2js/latex2js.css';
import { LaTeX } from 'latex2react';
  1. Load your {\tt TeX} into the {\tt content} property. Enjoy!
const tex = String.raw`
\begin{center}
\begin{pspicture}(0,-3)(8,3)
...
\end{pspicture}
\end{center}
`;
 
class App extends Component {
  render() {
    return <LaTeX content={tex} />;
  }
}

Package Sidebar

Install

npm i latex2react

Weekly Downloads

0

Version

2.1.3

License

SEE LICENSE IN LICENSE

Unpacked Size

22.9 kB

Total Files

20

Last publish

Collaborators

  • pyramation