<pg-macros>

The <pg-macros> tag lists the WeBWorK macro libraries a <webwork> problem should load before running its <pg-code>. It usually contains one or more <macro-file> entries.

Use <pg-macros> to share standard PG support code across problems instead of repeating those library names inside the PG program text.

Syntax

Attributes

This tag has no attributes.

Children

The following may appear as children: <macro-file>

Parents

This element may appear as an immediate child of the following elements: <webwork>

Examples

<exercise>
    <webwork>
        <pg-macros>
            <macro-file>PGstandard.pl</macro-file>
        </pg-macros>
        <statement>
            <p>Evaluate <m>5-2</m>.</p>
        </statement>
    </webwork>
</exercise>