HaTeX-3.4: The Haskell LaTeX library.

Safe HaskellNone

Text.LaTeX.Packages.Graphicx

Contents

Description

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

Synopsis

Graphicx package

graphicx :: PackageNameSource

The graphicx package.

 usepackage [] graphicx

Package options

Including graphics

data IGOption Source

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

Constructors

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.

includegraphicsSource

Arguments

:: LaTeXC l 
=> [IGOption]

Options

-> FilePath

Image file

-> l 

Include an image in the document.

Transformations

rotatebox :: LaTeXC l => Float -> l -> lSource

scaleboxSource

Arguments

:: LaTeXC l 
=> Float

Horizontal scale.

-> Maybe Float

Vertical scale.

-> l 
-> l 

reflectbox :: LaTeXC l => l -> lSource

resizeboxSource

Arguments

:: LaTeXC l 
=> Measure

Horizontal size.

-> Measure

Vertical size.

-> l 
-> l