Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skyost/thatlatexlib
Compile LaTeX files to PDF using the local TeX installation, convert them to HTML using Pandoc, extract & convert images, and more !
https://github.com/skyost/thatlatexlib
html katex latex latexmk pandoc pdf pdftocairo svg svgo tex
Last synced: about 1 month ago
JSON representation
Compile LaTeX files to PDF using the local TeX installation, convert them to HTML using Pandoc, extract & convert images, and more !
- Host: GitHub
- URL: https://github.com/skyost/thatlatexlib
- Owner: Skyost
- License: mit
- Created: 2024-01-23T14:17:40.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-15T11:41:39.000Z (about 2 months ago)
- Last Synced: 2024-12-15T12:27:40.171Z (about 2 months ago)
- Topics: html, katex, latex, latexmk, pandoc, pdf, pdftocairo, svg, svgo, tex
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/that-latex-lib
- Size: 505 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
Best used with [`skyost/latex-docker`](https://github.com/Skyost/LaTeXDocker) Docker image.## 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 :
* [MesCoursDeMaths](https://github.com/Skyost/MesCoursDeMaths) ;
* [Agregation](https://github.com/Skyost/Agregation) ;
* [Bacomathiques](https://github.com/Skyost/Bacomathiques).In these projects, everything is written in LaTeX, then processed using this library.
Here's an [example output page](https://agreg.skyost.eu/developpements/caracterisation-reelle-de-gamma/).Feel free to use it in your projects as well :wink:
## Usage
Check the [tests directory](https://github.com/Skyost/ThatLatexLib/blob/master/tests/) to see how you can use this library.
## License
Licensed under the MIT license. See [here](https://github.com/Skyost/ThatLatexLib/blob/master/LICENSE).