latex-formulae-pandoc 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+3/−2 lines, 2 files
Files
latex-formulae-pandoc.cabal view
@@ -1,5 +1,5 @@ name: latex-formulae-pandoc-version: 0.1.0.0+version: 0.1.0.1 synopsis: Render LaTeX formulae in pandoc documents to images with an actual LaTeX installation description: This library provides utility functions to convert LaTeX equations to images in Pandoc documents using the @latex-formulae-image@ package. It requires an actual LaTeX installation to work (@latex@,@dvips@), along with ImageMagick's @convert@ (which needs to understand PostScript)
src/Image/LaTeX/Render/Pandoc.hs view
@@ -84,7 +84,7 @@ newNameSupply :: IO NameSupply newNameSupply = newIORef 0 --- | Convert a formula in a pandoc document to an image, embedding the image into the HTML using Data URIs.+-- | Convert a formula in a pandoc document to an image, storing the images in a separate directory. convertFormulaFiles :: NameSupply -- ^ Unique file name supply. Reuse this for every invocation that shares the same image directory. -> FilePath -- ^ Name of image directory where images will be stored@@ -109,6 +109,7 @@ " style=\"margin:0; vertical-align:-" ++ show (b `div` sh) ++ "px;\"/>" convertFormulaFiles _ _ _ _ _ x = return x +-- | Convert every formula in a pandoc document to an image, storing the images in a separate directory. convertAllFormulaeFiles :: NameSupply -- ^ Unique file name supply. Reuse this for every invocation that shares the same image directory. -> FilePath -- ^ Name of image directory where images will be stored