diff --git a/gifs/latex_basic.gif b/gifs/latex_basic.gif index 6317e18..9be0927 100644 Binary files a/gifs/latex_basic.gif and b/gifs/latex_basic.gif differ diff --git a/src/Reanimate/Examples.hs b/src/Reanimate/Examples.hs index 5d75a30..fc58fbf 100644 --- a/src/Reanimate/Examples.hs +++ b/src/Reanimate/Examples.hs @@ -332,6 +332,6 @@ latex_basic = proc () -> do duration 1 -< () emit -< do rect_ [width_ "100%", height_ "100%", fill_ "black"] - g_ [transform_ $ translate 5 50] $ + g_ [transform_ $ translate 20 20] $ g_ [transform_ $ scale 4 4, fill_ "white"] $ - latex "$\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}$" + latex "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}" diff --git a/src/Reanimate/LaTeX.hs b/src/Reanimate/LaTeX.hs index 85a0e3b..4b0d07a 100644 --- a/src/Reanimate/LaTeX.hs +++ b/src/Reanimate/LaTeX.hs @@ -93,6 +93,10 @@ tex_prologue = \\\DisableLigatures{encoding = *, family = * }\n\ \%\\usepackage[UTF8]{ctex}\n\ \\\linespread{1}\n\ - \\\begin{document}\n" + \\\begin{document}\n\ + \\\begin{align*}\n" -tex_epilogue = "\n\\end{document}" +tex_epilogue = + "\n\ + \\\end{align*}\n\ + \\\end{document}"