Puppet Class: mathoid

Defined in:
puppet/modules/mathoid/manifests/init.pp

Overview

Class: mathoid

mathoid is a node.js backend for the math rendering.

Parameters

port

Port the mathoid service listens on for incoming connections. (e.g 10042)

svg

Whether to generate SVGs. Default: true

img

Whether to generate IMGs. Default: true

png

Whether to generate PNGs. Default: true

texvcinfo

Whether to provide extended information on the tex input and potential problems with it. Default: true

speak_text

Whether to generate speakText representation. Default: true

render_no_check

Whether not to perform input checks on renders.

log_level

The lowest level to log (trace, debug, info, warn, error, fatal)

Parameters:

  • port (Any)
  • svg (Any)
  • img (Any)
  • png (Any)
  • speak_text (Any)
  • texvcinfo (Any)
  • render_no_check (Any)
  • log_level (Any) (defaults to: undef)


32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'puppet/modules/mathoid/manifests/init.pp', line 32

class mathoid(
    $port,
    $svg,
    $img,
    $png,
    $speak_text,
    $texvcinfo,
    $render_no_check,
    $log_level = undef,
) {

    require_package('librsvg2-2', 'librsvg2-dev')

    service::node { 'mathoid':
        port      => $port,
        log_level => $log_level,
        config    => {
            svg       => $svg,
            img       => $img,
            png       => $png,
            texvcinfo => $texvcinfo,
            speech_on => $speak_text,
            no_check  => $render_no_check,
        },
    }

}