FreeMED Opensource EMR/PM Software |
FreeMED.TeXLaTeX rendering class. Summary
PrintTeX
Prints a certain number of copies of the current TeX document. Parameters
RenderFromTemplate
Renders a TeX document with substitutions from a TeX template in the lib/tex/ directory. Parameters
ReturnsTeX document (not rendered into a result format). _SanitizeText
Escapes offending TeX control sequences. Parameters
ReturnsText that can be cleanly inserted into TeX code. |
Prints a certain number of copies of the current TeX document.
function PrintTeX ( $copies = 1, $rendered = false )
Renders a TeX document with substitutions from a TeX template in the lib/tex/ directory.
function RenderFromTemplate ( $template, $rec )
Render to PDF and get file name of temporary file
function RenderToPDF ( $rendered = false )
Sets the printer and printer wrapper for this TeX document to use when printing.
function SetPrinter ( $wrapper, $printer )
Convert SGML/HTML formatted “rich text” to LaTeX-formatted rich text, while sanitizing.
function _HTMLToRichText ( $orig )
Parse appropriate information from tag to convert into output data to be passed back to TeX.
function _ParseTag ( $rec, $tag )
Fix capitalization with what we think is “natural” capitalization.
function _FixCase ( $string )
Replace quotes with proper beginning and ending quotation marks, TeX-style.
function _ReplaceQuotes ( $string )
Escapes offending TeX control sequences.
function _SanitizeText ( $text, $skip_html = false )