reanimate/examples/doc_latex.hs
David Himmelstrup 56eb6eceb5 Document latex, latexAlign, and xelatex.
Former-commit-id: c5ac09a2ddcb0d0ecb3d897871ff49b41beac6f6
2019-09-29 12:05:13 +08:00

12 lines
342 B
Haskell
Executable file

#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Reanimate
import Reanimate.Builtin.Documentation
main :: IO ()
main = reanimate $ docEnv $ animate $ const $
withStrokeWidth 0 . withFillOpacity 1 . scale 3 . center $
latex "$e^{i\\pi}+1=0$"