Example #1
0
        'id'       => 'FishEye',
        'label'    => 'Totally new perspective',
        'width'    => 256,
        'height'   => 256
    ),
    array(
        'filename' => "file://$curdir/NoisyGrayStep.png",
        'id'       => 'NGS',
        'label'    => 'Noisy Gray Step',
        'width'    => 256,
        'height'   => 256
    )
));

Paper::Listing(
    'this',
    basename(__FILE__),
    htmlspecialchars(file_get_contents(__FILE__)));
?>
<table align="center" border="1">
<caption align="bottom">How to run and view this script</caption>
<tr><td>
linux command</td><td>php -S localhost:8000 Test.php
</td></tr><tr><td>
browse location</td><td>http://localhost:8000/
</td></tr></table>
<?
Paper::Equation(idlabeltex('Fun:1', 'Euler\'s identity', 'e^{i\pi}+1 = 0'));
Paper::Equation(array(
    'id'    => 'Fun:2',
    'tex'   => '\nabla^2u = \frac{1}{c^2}\frac{\partial^2u}{\partial t^2}',
    'label' => 'Wave equation')