summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild/extract-title.hs2
-rwxr-xr-xbuild/tex-filter.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/extract-title.hs b/build/extract-title.hs
index f3ca1ba..a84442e 100755
--- a/build/extract-title.hs
+++ b/build/extract-title.hs
@@ -5,7 +5,7 @@ import Text.Pandoc.JSON
5import System.IO 5import System.IO
6 6
7extract_title :: Pandoc -> IO Pandoc 7extract_title :: Pandoc -> IO Pandoc
8extract_title d@(Pandoc m _) = do hPutStrLn stderr $ render Nothing $ cat $ map pretty (docTitle m) 8extract_title d@(Pandoc m _) = do hPutStrLn stderr $ (++) "title: " $ render Nothing $ cat $ map pretty (docTitle m)
9 return d 9 return d
10 where pretty :: Inline -> Doc 10 where pretty :: Inline -> Doc
11 pretty (Str s) = text s 11 pretty (Str s) = text s
diff --git a/build/tex-filter.hs b/build/tex-filter.hs
index 5d11f07..1e2face 100755
--- a/build/tex-filter.hs
+++ b/build/tex-filter.hs
@@ -47,7 +47,7 @@ compileToSVG basepath t s = let tex = Data.Text.unpack $ Data.Text.strip $ Data.
47 (do writeFile expr_path $ (display t) ++ tex 47 (do writeFile expr_path $ (display t) ++ tex
48 writeFile align_path "0") 48 writeFile align_path "0")
49 alignment <- head.lines <$> readFile align_path 49 alignment <- head.lines <$> readFile align_path
50 SIO.hPutStrLn SIO.stderr path 50 SIO.hPutStrLn SIO.stdout path
51 return $ printf "<object data=\"/%s\" type=\"image/svg+xml\" style=\"vertical-align:-%s\">%s</object>" svg_web_path alignment tex 51 return $ printf "<object data=\"/%s\" type=\"image/svg+xml\" style=\"vertical-align:-%s\">%s</object>" svg_web_path alignment tex
52 52
53texify :: [String] -> Inline -> IO Inline 53texify :: [String] -> Inline -> IO Inline