Source for file Latex.php
Documentation is available at Latex.php
* Formats parsed Text_Wiki for LaTeX rendering.
* $Id: Latex.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $
* @author Jeremy Cowgar <jeremy@cowgar.com>
* @todo [http://google.com] becomes 1 with a LaTeX footnote in subscript.
* This should be a normal LaTeX footnote associated with the
* @todo parse "..." to be ``...''
* @todo parse '...' to be `...'
* @todo move escape_latex to a static function, move escaping to the
* individual .php files they are associated with
* @todo allow the user to add conf items to do things like
* + A custom document header
* + Set Title, Author, Date
* + Not output Document Head/Foot (maybe combinding many pages?)
// Typeset things a bit prettier than normas
foreach ($this->wiki->tokens as $k => $tok) {
$tok[1 ] = $this->escape($tok[1 ], 'text');
$tok[1 ] = $this->escape($tok[1 ], 'page');
$tok[1 ] = $this->escape($tok[1 ], 'href');
$this->wiki->tokens [$k] = $tok;
"\\documentclass{article}\n".
"\\pagestyle{headings}\n".
return "\\end{document}\n";
Documentation generated on Mon, 11 Mar 2019 14:22:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|