Source for file List.php
Documentation is available at List.php
* Renders a token into text matching the requested format.
* This rendering method is syntactically and semantically compliant
* with XHTML 1.1 in that sub-lists are part of the previous list item.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
// make nice variables (type, level, count)
case 'bullet_list_start':
return "\\begin{itemize}\n";
return "\\end{itemize}\n";
case 'number_list_start':
$depth = 'enumi' . str_pad('', $level, 'i');
return '\renewcommand{\labelenumi}{' . $enum . '{' . $depth .
"}}\n\\begin{enumerate}\n";
return "\\end{enumerate}\n";
case 'bullet_item_start':
case 'number_item_start':
// ignore item endings and all other types.
// item endings are taken care of by the other types
// depending on their place in the list.
Documentation generated on Tue, 12 Mar 2019 21:49:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|