packages feed

latex-formulae-image 0.1.0.1 → 0.1.1.0

raw patch · 2 files changed

+5/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Image.LaTeX.Render: instance GHC.Classes.Eq Image.LaTeX.Render.EnvironmentOptions
+ Image.LaTeX.Render: instance GHC.Classes.Eq Image.LaTeX.Render.FormulaOptions
+ Image.LaTeX.Render: instance GHC.Classes.Eq Image.LaTeX.Render.RenderError
+ Image.LaTeX.Render: instance GHC.Classes.Eq Image.LaTeX.Render.TempDirectoryHandling
+ Image.LaTeX.Render: instance GHC.Classes.Ord Image.LaTeX.Render.EnvironmentOptions
+ Image.LaTeX.Render: instance GHC.Classes.Ord Image.LaTeX.Render.FormulaOptions
+ Image.LaTeX.Render: instance GHC.Classes.Ord Image.LaTeX.Render.TempDirectoryHandling
+ Image.LaTeX.Render: instance GHC.Read.Read Image.LaTeX.Render.EnvironmentOptions
+ Image.LaTeX.Render: instance GHC.Read.Read Image.LaTeX.Render.FormulaOptions
+ Image.LaTeX.Render: instance GHC.Read.Read Image.LaTeX.Render.TempDirectoryHandling
+ Image.LaTeX.Render: instance GHC.Show.Show Image.LaTeX.Render.EnvironmentOptions
+ Image.LaTeX.Render: instance GHC.Show.Show Image.LaTeX.Render.FormulaOptions
+ Image.LaTeX.Render: instance GHC.Show.Show Image.LaTeX.Render.TempDirectoryHandling

Files

latex-formulae-image.cabal view
@@ -1,5 +1,5 @@ name:                latex-formulae-image-version:             0.1.0.1+version:             0.1.1.0 synopsis:            A library for rendering LaTeX formulae as images using an actual LaTeX installation description:         This library provides the basic infrastructure necessary to convert LaTeX formulae into images, using a real                      LaTeX installation. This is useful in particular for showing formulae on websites, where using alternatives
src/Image/LaTeX/Render.hs view
@@ -43,13 +43,14 @@                  | IMConvertFailure String -- ^ @convert@ returned a nonzero error code                  | IOException IOException -- ^ An 'IOException' occurred while managing the temporary files used to convert the equation                  | ImageReadError String -- ^ The PNG image from ImageMagick could not be read by JuicyPixels.-                 deriving (Show)+                 deriving (Show, Eq)   data TempDirectoryHandling = UseSystemTempDir { nameTemplate :: String }                            -- ^ A temporary directory with a name based on the given template will be created in the system temporary files location                            | UseCurrentDir    { nameTemplate :: String }                            -- ^ A temporary directory with a name based on the given template will be created in the current directory+       deriving (Eq, Show, Read, Ord)  data EnvironmentOptions      = EnvironmentOptions { latexCommand :: String -- ^ Command to use for @latex@, default is @latex@@@ -61,12 +62,14 @@                           , tempDir :: TempDirectoryHandling -- ^ How to handle temporary files                           , tempFileBaseName :: String -- ^ The base name to use for the temporary files.                           }+       deriving (Eq, Show, Read, Ord)  data FormulaOptions      = FormulaOptions { preamble :: String -- ^ LaTeX preamble to use. Put your @\usepackage@ commands here.@ commands here.                        , environment :: String -- ^ LaTeX environment in which the equation will be typeset, usually @math@ or @displaymath@                        , dpi :: Int -- ^ DPI for the image to be rendered at. ~200 is good for retina displays, ~100 works OK for non-retina displays.                        }+       deriving (Eq, Show, Read, Ord)  -- | Use the @amsmath@ package, the @displaymath@ environment, and 200dpi. displaymath :: FormulaOptions