HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/php74-backup-20260910/pear/Text/Wiki/Render/Latex/Heading.php
<?php

class Text_Wiki_Render_Latex_Heading extends Text_Wiki_Render {

    function token($options)
    {
        // get nice variable names (type, level)
        extract($options);

        if ($type == 'start') {
            switch ($level)
                {
                case '1':
                    return '\part{';
                case '2':
                    return '\section{';
                case '3':
                    return '\subsection{';
                case '4':
                    return '\subsubsection{';
                case '5':
                    return '\paragraph{';
                case '6':
                    return '\subparagraph{';
                }
        }
        
        if ($type == 'end') {
            return "}\n";
        }
    }
}
?>