that-latex-lib
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

ThatLatexLib

Just a very simple wrapper around latexmk, pdftocairo, svgo and pandoc that allows me to convert my LaTeX documents into a PDF, a SVG or an HTML document.

Features

  • Convert your LaTeX files to use them in your web pages.
  • Calculate TeX files checksums so that you don't have to regenerate it each time you want a PDF.
  • Extract and convert your tikzpicture images from your LaTeX documents.
  • Automatically compresses your SVG files using SVGO.
  • Render transformed HTML math elements using Katex (can easily be configured).

Use cases

I'm currently using it in three of my Nuxt projects :

In these projects, everything is written in LaTeX, then processed using this library. Here's an example output page.

Feel free to use it in your projects as well 😉

Usage

Check the tests directory to see how you can use this library.

License

Licensed under the MIT license. See here.

Package Sidebar

Install

npm i that-latex-lib

Weekly Downloads

8

Version

1.1.1

License

MIT

Unpacked Size

124 kB

Total Files

34

Last publish

Collaborators

  • skyost