Support multiple latex configurations. (#173)

* Support multiple latex configurations.

* Don't look for pdf2svg/dvisvgm unless they are actually required.
This commit is contained in:
David Himmelstrup 2020-10-01 14:26:45 +08:00 committed by GitHub
commit 009a9e2188
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 558 additions and 161 deletions

13
examples/doc_calligra.hs Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Reanimate
import Reanimate.LaTeX
import Reanimate.Builtin.Documentation
main :: IO ()
main = reanimate $ docEnv $ staticFrame 1 $
center $ withStrokeWidth 0 $ withFillOpacity 1 $ scale 4 $
latexCfg calligra "calligra"