示例#1
0
<?php

namespace Publish;

require_once 'Paper.php';
$curdir = getcwd();
?>

<? Paper::Head(array(
    'title'    => 'Paper Test',
    'subtitle' => 'Does it work?',
    'author'   => 'Jonathan D. Lettvin'
)); ?>

<?
Paper::Figures('images', 'A pair of images', array(
    array(
        'filename' => "file://$curdir/Synchronic.png",
        '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
    )
));