HaTeX- LaTeX code writer.

Safe HaskellNone




This module allows you to use the LaTeX graphicx library in order to insert graphics in a document.


Graphicx package

graphicx :: PackageNameSource

The graphicx package.

 usepackage [] graphicx

Package options

Including graphics

data IGOption Source

Include Graphics Option. This options can be passed as arguments to the includegraphics function.


IGWidth Measure

Specify the preferred width of the imported image.

IGHeight Measure

Specify the preferred height of the imported image.

KeepAspectRatio Bool

When True, it will scale the image according to both IGWidth and IGHeight , but will not distort the image, so that neither IGWidth nor IGHeight are exceeded.

IGScale Float

Scales the image by the desired scale factor.

IGAngle Int

Rotate the image by given degrees.

IGTrim Measure Measure Measure Measure

This option will crop the imported image. Arguments are from-left , from-bottom, from-right and from-top respectively.

IGClip Bool

For the IGTrim option to work, you must set IGClip to True.

IGPage Int

If the image file is a pdf file with multiple pages, this parameter allows you to use a different page than the first.

includegraphics :: [IGOption] -> FilePath -> LaTeXSource

Include an image in the document.