laravelrotebal / nova-katex

A Laravel Nova Katex field.

Stars
4

Laravel Nova KaTeX Field

A laravel nova package that allows you to render KaTeX expressions.

Based on vue-katex package.

Installation

composer require laravelrotebal/nova-katex

Usage

use LaravelRotEbal\NovaKatex\NovaKatex;

NovaKatex::make(__('Equation'), 'equation'),

Examples

\ce{Zn^2+  <=>[+ 2OH-][+ 2H+]  $\underset{\text{amphoteres Hydroxid}}{\ce{Zn(OH)2 v}}$  <=>[+ 2OH-][+ 2H+]  $\underset{\text{Hydroxozikat}}{\ce{[Zn(OH)4]^2-}}$}

image
image
image