"Fossies" - the Fresh Open Source Software Archive

Member "serendipity/bundled-libs/Text/Wiki/Render/Latex/Anchor.php" (20 Nov 2022, 587 Bytes) of package /linux/www/serendipity-2.4.0.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Anchor.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 /**
    4 * 
    5 * This class renders an anchor target name in LaTeX.
    6 *
    7 * $Id: Anchor.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $
    8 * 
    9 * @author Jeremy Cowgar <jeremy@cowgar.com>
   10 *
   11 * @package Text_Wiki
   12 *
   13 */
   14 
   15 class Text_Wiki_Render_Latex_Anchor extends Text_Wiki_Render {
   16     
   17     function token($options)
   18     {
   19         extract($options); // $type, $name
   20         
   21         if ($type == 'start') {
   22             //return sprintf('<a id="%s">',$name);
   23             return '';
   24         }
   25         
   26         if ($type == 'end') {
   27             //return '</a>';
   28             return '';
   29         }
   30     }
   31 }
   32 
   33 ?>