Support

Client-side
Server-side

Preview

Use a simple Latex tag to support Latex in your document.

1import { Latex } from "@fileforge/react-print";
2
3<Latex>{String.raw`\frac{1}{2}`}</Latex>;

Examples

Complex

Write complex LaTeX formulas in your document.

1import { Latex } from "@fileforge/react-print";
2
3<Latex>{String.raw`% \f is defined as #1f(#2) using the macro
4\f\relax{x} = \int_{-\infty}^\infty
5 \f\hat\xi\,e^{2 \pi i \xi x}
6 \,d\xi`}</Latex>;