HaTeX-3.17.0.2: The Haskell LaTeX library.

Safe HaskellNone
LanguageHaskell2010

Text.LaTeX.Packages.QRCode

Contents

Synopsis

qrcode package

qrcode :: PackageName Source #

qrcode package. Use it to import it like this:

usepackage [] qrcode

qrcode commands

data ErrorLevel Source #

The degree of error-correction redundancy to include in the generated code.

Constructors

Low

Error recovery up to 7%.

Medium

Error recovery up to 15%.

Quality

Error recovery up to 25%.

High

Error recovery up to 30%.

data CodeOptions Source #

Options to use when generating a QR code.

Constructors

CodeOptions 

Fields

  • includePadding :: Bool

    Whether to include 4 modules of whitespace around the code. False is the default.

  • link :: Bool

    Whether, if the code encodes a link, it should be hyperlinked in the PDF document. The default is true. Links will only be generated when the document uses the hyperref package.

  • errorLevel :: ErrorLevel

    The desired degree of error-correction redundancy to include in the code. The default is Medium.

defaultOptions :: CodeOptions Source #

The default QR code generation options.

qr :: LaTeXC l => CodeOptions -> Text -> l Source #

Generates a QR code with specified options and content.

This uses the qrcode command from the package, but the identifier qrcode is already in use as the PackageName.

Package Options

draft :: LaTeXC l => l Source #

This package option sets the qrcode package to generate draft-quality placeholders for QR codes.

final :: LaTeXC l => l Source #

This package option (which is the default) sets the qrcode package to generate print-quality QR codes.