Lines Matching refs:equation
25 private $equation; variable in DecoratorMath
43 $this->equation = $formula;
46 $this->equation = $this->equation.$formula;
56 $this->decorator->mathjax_content($this->processEquation($this->equation));
66 * @param String $equation The equation.
69 private function processEquation($equation) { argument
70 if (substr( $equation, 0, 2 ) === "$$" || substr( $equation, 0, 2 ) === '\\[') {
71 return $this->processDisplayEquation($equation);
72 } else if (substr( $equation, 0, 1 ) === "$") {
73 return $this->processInlineEquation($equation);
75 return $this->processAmsMathEquation($equation);
79 private function processDisplayEquation($equation) { argument
80 $trimmedEquation = substr($equation, 2, strlen($equation) - 4);
86 private function processInlineEquation($equation) { argument
87 $trimmedEquation = trim($this->removeTagCommand($equation), '$ ');
91 private function processAmsMathEquation($equation) { argument
92 return $equation;
98 * @param String $equation The equation.
101 private function removeTagCommand($equation) { argument
102 return preg_replace('/\\\\tag\{[^}]+\}/', '', $equation);