Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
248 jpm 1
<?php
2
 
3
class Text_Wiki_Render_Latex_Deflist extends Text_Wiki_Render {
4
 
5
    var $conf = array(
6
                      'css_dl' => null,
7
                      'css_dt' => null,
8
                      'css_dd' => null
9
                      );
10
 
11
    /**
12
     *
13
     * Renders a token into text matching the requested format.
14
     *
15
     * @access public
16
     *
17
     * @param array $options The "options" portion of the token (second
18
     * element).
19
     *
20
     * @return string The text rendered from the token options.
21
     *
22
     */
23
 
24
    function token($options)
25
    {
26
        $type = $options['type'];
27
        switch ($type)
28
            {
29
            case 'list_start':
30
                return "\\begin{description}\n";
31
 
32
            case 'list_end':
33
                return "\\end{description}\n\n";
34
 
35
            case 'term_start':
36
                return '\item[';
37
 
38
            case 'term_end':
39
                return '] ';
40
 
41
            case 'narr_start':
42
                return '{';
43
 
44
            case 'narr_end':
45
                return "}\n";
46
 
47
            default:
48
                return '';
49
 
50
            }
51
    }
52
}
53
?>