From 9e4b14a56b3caa87e38eb144e5961188ea4cb6c1 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 15 Feb 2019 15:35:54 +0100 Subject: [PATCH] Improve latex output. Former-commit-id: 0a695725a07ee72373d0d96b246ee503e1e88263 --- src/Reanimate/Examples.hs | 4 ++-- src/Reanimate/LaTeX.hs | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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}"