Class MikeVanRiel\TextToLatex

InheritanceMikeVanRiel\TextToLatex

Converter to transition a piece of text into a valid LaTeX block.

This class assists in translation from ASCII text to LaTeX by escaping special characters and "fixing" quote marks (using English conventions).

Public Methods

Hide inherited methods

MethodDescriptionDefined By
convert() Converts the given string into a valid LaTeX counterpart. MikeVanRiel\TextToLatex

Method Details

convert() public method

Converts the given string into a valid LaTeX counterpart.

Note: this function does not provide a LaTeX layout; you are still responsible for adding your own documentclass, begin and end markers.

public string convert ( $string )
$string string