diff --git a/changes/0.2.0.html b/changes/0.2.0.html index 053a9bd..abe5cb8 100644 --- a/changes/0.2.0.html +++ b/changes/0.2.0.html @@ -783,6 +783,7 @@
Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/AbstractGroupElement.php.html b/coverage/Element/AbstractGroupElement.php.html index 0372fb2..925aa95 100644 --- a/coverage/Element/AbstractGroupElement.php.html +++ b/coverage/Element/AbstractGroupElement.php.html @@ -217,7 +217,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Fraction.php.html b/coverage/Element/Fraction.php.html index 0e15abb..4c10fb5 100644 --- a/coverage/Element/Fraction.php.html +++ b/coverage/Element/Fraction.php.html @@ -272,7 +272,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Identifier.php.html b/coverage/Element/Identifier.php.html index 5bf8a13..7f5b66a 100644 --- a/coverage/Element/Identifier.php.html +++ b/coverage/Element/Identifier.php.html @@ -181,7 +181,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Numeric.php.html b/coverage/Element/Numeric.php.html index 7d6ae6d..8d3a840 100644 --- a/coverage/Element/Numeric.php.html +++ b/coverage/Element/Numeric.php.html @@ -181,7 +181,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Operator.php.html b/coverage/Element/Operator.php.html index ea8d87c..170f10a 100644 --- a/coverage/Element/Operator.php.html +++ b/coverage/Element/Operator.php.html @@ -181,7 +181,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Row.php.html b/coverage/Element/Row.php.html index 2144dc7..a15bcab 100644 --- a/coverage/Element/Row.php.html +++ b/coverage/Element/Row.php.html @@ -93,7 +93,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Semantics.php.html b/coverage/Element/Semantics.php.html index 273d641..3bf4567 100644 --- a/coverage/Element/Semantics.php.html +++ b/coverage/Element/Semantics.php.html @@ -215,7 +215,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/Superscript.php.html b/coverage/Element/Superscript.php.html index 0e4efcd..78d615e 100644 --- a/coverage/Element/Superscript.php.html +++ b/coverage/Element/Superscript.php.html @@ -272,7 +272,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Element/dashboard.html b/coverage/Element/dashboard.html index f6e3897..9d60c00 100644 --- a/coverage/Element/dashboard.html +++ b/coverage/Element/dashboard.html @@ -136,7 +136,7 @@- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Exception/InvalidInputException.php.html b/coverage/Exception/InvalidInputException.php.html index a611598..b8fa879 100644 --- a/coverage/Exception/InvalidInputException.php.html +++ b/coverage/Exception/InvalidInputException.php.html @@ -93,7 +93,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Exception/MathException.php.html b/coverage/Exception/MathException.php.html index 9f9ca3b..d07ab4e 100644 --- a/coverage/Exception/MathException.php.html +++ b/coverage/Exception/MathException.php.html @@ -95,7 +95,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Exception/NotImplementedException.php.html b/coverage/Exception/NotImplementedException.php.html index b1f81d9..2e29160 100644 --- a/coverage/Exception/NotImplementedException.php.html +++ b/coverage/Exception/NotImplementedException.php.html @@ -93,7 +93,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Exception/dashboard.html b/coverage/Exception/dashboard.html index 7492a8f..f65a843 100644 --- a/coverage/Exception/dashboard.html +++ b/coverage/Exception/dashboard.html @@ -136,7 +136,7 @@- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Math.php.html b/coverage/Math.php.html index e41e294..ee36dc5 100644 --- a/coverage/Math.php.html +++ b/coverage/Math.php.html @@ -94,7 +94,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Reader/MathML.php.html b/coverage/Reader/MathML.php.html index 35eca04..e7eea85 100644 --- a/coverage/Reader/MathML.php.html +++ b/coverage/Reader/MathML.php.html @@ -318,7 +318,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Reader/OfficeMathML.php.html b/coverage/Reader/OfficeMathML.php.html index 673011e..3b9e336 100644 --- a/coverage/Reader/OfficeMathML.php.html +++ b/coverage/Reader/OfficeMathML.php.html @@ -315,7 +315,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Reader/ReaderInterface.php.html b/coverage/Reader/ReaderInterface.php.html index 9847545..a55b438 100644 --- a/coverage/Reader/ReaderInterface.php.html +++ b/coverage/Reader/ReaderInterface.php.html @@ -82,7 +82,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Reader/dashboard.html b/coverage/Reader/dashboard.html index f4f3d8e..2d0acf4 100644 --- a/coverage/Reader/dashboard.html +++ b/coverage/Reader/dashboard.html @@ -136,7 +136,7 @@- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Writer/MathML.php.html b/coverage/Writer/MathML.php.html index d971a1b..e9fb64a 100644 --- a/coverage/Writer/MathML.php.html +++ b/coverage/Writer/MathML.php.html @@ -313,7 +313,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Writer/OfficeMathML.php.html b/coverage/Writer/OfficeMathML.php.html index 95b69e9..8c3281a 100644 --- a/coverage/Writer/OfficeMathML.php.html +++ b/coverage/Writer/OfficeMathML.php.html @@ -284,7 +284,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Writer/WriterInterface.php.html b/coverage/Writer/WriterInterface.php.html index f63661f..aab59bb 100644 --- a/coverage/Writer/WriterInterface.php.html +++ b/coverage/Writer/WriterInterface.php.html @@ -82,7 +82,7 @@Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable
- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/Writer/dashboard.html b/coverage/Writer/dashboard.html index 7905eaf..c7107b0 100644 --- a/coverage/Writer/dashboard.html +++ b/coverage/Writer/dashboard.html @@ -136,7 +136,7 @@- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/coverage/dashboard.html b/coverage/dashboard.html index 2631d2e..0fc9a6d 100644 --- a/coverage/dashboard.html +++ b/coverage/dashboard.html @@ -135,7 +135,7 @@- Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:28:00 UTC 2023. + Generated by php-code-coverage 9.2.29 using PHP 8.1.23 and PHPUnit 9.6.13 at Wed Sep 27 11:35:14 UTC 2023.
diff --git a/search/search_index.json b/search/search_index.json index 661150d..524db80 100644 --- a/search/search_index.json +++ b/search/search_index.json @@ -1 +1 @@ -{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"Introduction","text":"Math is a library written in pure PHP that provides a set of classes to manipulate different formula file formats, i.e. MathML and Office MathML (OOML).
Math is an open source project licensed under the terms of MIT. Math is aimed to be a high quality software product by incorporating continuous integration and unit testing. You can learn more about Math by reading this Developers'Documentation and the API Documentation
"},{"location":"index.html#features","title":"Features","text":"Insert elements:
Basic :
Simple :
Architectural :
We welcome everyone to contribute to Math. Below are some of the things that you can do to contribute:
Mandatory:
To install via Composer, add the following lines to your composer.json
:
{\n\"require\": {\n\"phpoffice/math\": \"dev-master\"\n}\n}\n
"},{"location":"changes/0.1.0.html","title":"0.1.0","text":""},{"location":"changes/0.1.0.html#enhancements","title":"Enhancements","text":"The name of the reader is MathML
.
<?php\n\nuse PhpOffice\\Math\\Reader\\MathML;\n\n$reader = new MathML();\n$math = $reader->read(\n '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <!DOCTYPE math PUBLIC \"-//W3C//DTD MathML 2.0//EN\" \"http://www.w3.org/Math/DTD/mathml2/mathml2.dtd\">\n <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n <mi> a </mi>\n </math>'\n);\n
"},{"location":"usage/readers.html#officemathml","title":"OfficeMathML","text":"The name of the reader is OfficeMathML
.
<?php\n\nuse PhpOffice\\Math\\Reader\\OfficeMathML;\n\n$reader = new OfficeMathML();\n$math = $reader->read(\n '<m:oMathPara xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\">\n <m:oMath>\n <m:f>\n <m:num><m:r><m:t>\u03c0</m:t></m:r></m:num>\n <m:den><m:r><m:t>2</m:t></m:r></m:den>\n </m:f>\n </m:oMath>\n </m:oMathPara>'\n);\n
"},{"location":"usage/readers.html#methods","title":"Methods","text":""},{"location":"usage/readers.html#read","title":"read","text":"The method has one parameter :
string
$contentThe method returns a PhpOffice\\Math\\Math
object.
The name of the writer is MathML
.
<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\nuse PhpOffice\\Math\\Writer\\MathML;\n\n$math = new Math();\n$math->add(new Element\\Operator('+'));\n\n$writer = new MathML();\n$output = $writer->write($math);\n
"},{"location":"usage/writers.html#officemathml","title":"OfficeMathML","text":"The name of the writer is OfficeMathML
.
<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\nuse PhpOffice\\Math\\Writer\\OfficeMathML;\n\n$math = new Math();\n$math->add(new Element\\Operator('+'));\n\n$writer = new OfficeMathML();\n$output = $writer->write($math);\n
"},{"location":"usage/writers.html#methods","title":"Methods","text":""},{"location":"usage/writers.html#writer","title":"writer","text":"The method has one parameter :
PhpOffice\\Math\\Math
$mathThe method returns a string
.
To create a fraction, use the PhpOffice\\Math\\Element\\Fraction
class.
The method has no parameter.
"},{"location":"usage/elements/fraction.html#getnumerator","title":"getNumerator","text":"The method has no parameter.
"},{"location":"usage/elements/fraction.html#setdenominator","title":"setDenominator","text":"The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<mfrac>\n<mi>a</mi>\n<mn>3</mn>\n</mfrac>\n</math>\n
"},{"location":"usage/elements/fraction.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$fraction = new Element\\Fraction();\n$fraction->setDenominator(new Element\\Identifier('a'));\n$fraction->setNumerator(new Element\\Numeric(3));\n\n$math->add($fraction);\n
"},{"location":"usage/elements/identifier.html","title":"Identifier","text":""},{"location":"usage/elements/identifier.html#usage","title":"Usage","text":"To create an identifier, use the PhpOffice\\Math\\Element\\Identifier
class.
The method has no parameter.
"},{"location":"usage/elements/identifier.html#setvalue","title":"setValue","text":"The method has one parameter :
string
$value<math display=\"block\">\n<mi>a</mi>\n</math>\n
"},{"location":"usage/elements/identifier.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$identifier = new Element\\Identifier('a');\n\n$math->add($identifier);\n
"},{"location":"usage/elements/numeric.html","title":"Numeric","text":""},{"location":"usage/elements/numeric.html#usage","title":"Usage","text":"To create a numeric, use the PhpOffice\\Math\\Element\\Numeric
class.
The method has no parameter.
"},{"location":"usage/elements/numeric.html#setvalue","title":"setValue","text":"The method has one parameter :
float
$value<math display=\"block\">\n<mn>3</mn>\n</math>\n
"},{"location":"usage/elements/numeric.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$identifier = new Element\\Numeric(3);\n\n$math->add($identifier);\n
"},{"location":"usage/elements/operator.html","title":"Operator","text":""},{"location":"usage/elements/operator.html#usage","title":"Usage","text":"To create an operator, use the PhpOffice\\Math\\Element\\Operator
class.
The method has no parameter.
"},{"location":"usage/elements/operator.html#setvalue","title":"setValue","text":"The method has one parameter :
string
$value<math display=\"block\">\n<mo>+</mo>\n</math>\n
"},{"location":"usage/elements/operator.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$identifier = new Element\\Operator('+');\n\n$math->add($identifier);\n
"},{"location":"usage/elements/row.html","title":"Row","text":""},{"location":"usage/elements/row.html#usage","title":"Usage","text":"To create a row, use the PhpOffice\\Math\\Element\\Row
class.
The method add an element to the row. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method return all elements of the row.
"},{"location":"usage/elements/row.html#remove","title":"remove","text":"The method remove an element to the row. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<mrow>\n<mn>1</mn>\n<mo>+</mo>\n<mi>K</mi>\n</mrow>\n</math>\n
"},{"location":"usage/elements/row.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$row = new Element\\Row();\n$row->add(new Element\\Numeric(1));\n$row->add(new Element\\Operator('+'));\n$row->add(new Element\\Identifier('K'));\n\n$math->add($row);\n
"},{"location":"usage/elements/semantics.html","title":"Semantics","text":""},{"location":"usage/elements/semantics.html#usage","title":"Usage","text":"To create a semantics, use the PhpOffice\\Math\\Element\\Semantics
class.
The method add an element to the semantics
element. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method add an annotation to the semantics
element. The method has two parameters :
string
$encodingstring
$annotationThe method return an annotation based on its encoding. The method has one parameter :
string
$encodingThe method return alls annotation of the semantics
element. The method has no parameter.
The method return all elements of the semantics
element.
The method remove an element to the semantics
element. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<semantics>\n<mi>y</mi>\n\n<annotation encoding=\"application/x-tex\"> y </annotation>\n</semantics>\n</math>\n
"},{"location":"usage/elements/semantics.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$semantics = new Element\\Semantics();\n$semantics->add(new Element\\Identifier('y'));\n$semantics->addAnnotation('application/x-tex', ' y ');\n\n$math->add($semantics);\n
"},{"location":"usage/elements/superscript.html","title":"Superscript","text":""},{"location":"usage/elements/superscript.html#usage","title":"Usage","text":"To attach a superscript to an expression, use the PhpOffice\\Math\\Element\\Superscript
class.
The method has no parameter.
"},{"location":"usage/elements/superscript.html#getsuperscript","title":"getSuperscript","text":"The method has no parameter.
"},{"location":"usage/elements/superscript.html#setbase","title":"setBase","text":"The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<msup>\n<mi>X</mi>\n<mn>2</mn>\n</msup>\n</math>\n
"},{"location":"usage/elements/superscript.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$superscript = new Element\\Superscript();\n$superscript->setBase(new Element\\Identifier('X'));\n$superscript->setSuperscript(new Element\\Numeric(2));\n\n$math->add($superscript);\n
"}]}
\ No newline at end of file
+{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"Introduction","text":"Math is a library written in pure PHP that provides a set of classes to manipulate different formula file formats, i.e. MathML and Office MathML (OOML).
Math is an open source project licensed under the terms of MIT. Math is aimed to be a high quality software product by incorporating continuous integration and unit testing. You can learn more about Math by reading this Developers'Documentation and the API Documentation
"},{"location":"index.html#features","title":"Features","text":"Insert elements:
Basic :
Simple :
Architectural :
We welcome everyone to contribute to Math. Below are some of the things that you can do to contribute:
Mandatory:
To install via Composer, add the following lines to your composer.json
:
{\n\"require\": {\n\"phpoffice/math\": \"dev-master\"\n}\n}\n
"},{"location":"changes/0.1.0.html","title":"0.1.0","text":""},{"location":"changes/0.1.0.html#enhancements","title":"Enhancements","text":"The name of the reader is MathML
.
<?php\n\nuse PhpOffice\\Math\\Reader\\MathML;\n\n$reader = new MathML();\n$math = $reader->read(\n '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <!DOCTYPE math PUBLIC \"-//W3C//DTD MathML 2.0//EN\" \"http://www.w3.org/Math/DTD/mathml2/mathml2.dtd\">\n <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n <mi> a </mi>\n </math>'\n);\n
"},{"location":"usage/readers.html#officemathml","title":"OfficeMathML","text":"The name of the reader is OfficeMathML
.
<?php\n\nuse PhpOffice\\Math\\Reader\\OfficeMathML;\n\n$reader = new OfficeMathML();\n$math = $reader->read(\n '<m:oMathPara xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\">\n <m:oMath>\n <m:f>\n <m:num><m:r><m:t>\u03c0</m:t></m:r></m:num>\n <m:den><m:r><m:t>2</m:t></m:r></m:den>\n </m:f>\n </m:oMath>\n </m:oMathPara>'\n);\n
"},{"location":"usage/readers.html#methods","title":"Methods","text":""},{"location":"usage/readers.html#read","title":"read","text":"The method has one parameter :
string
$contentThe method returns a PhpOffice\\Math\\Math
object.
The name of the writer is MathML
.
<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\nuse PhpOffice\\Math\\Writer\\MathML;\n\n$math = new Math();\n$math->add(new Element\\Operator('+'));\n\n$writer = new MathML();\n$output = $writer->write($math);\n
"},{"location":"usage/writers.html#officemathml","title":"OfficeMathML","text":"The name of the writer is OfficeMathML
.
<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\nuse PhpOffice\\Math\\Writer\\OfficeMathML;\n\n$math = new Math();\n$math->add(new Element\\Operator('+'));\n\n$writer = new OfficeMathML();\n$output = $writer->write($math);\n
"},{"location":"usage/writers.html#methods","title":"Methods","text":""},{"location":"usage/writers.html#writer","title":"writer","text":"The method has one parameter :
PhpOffice\\Math\\Math
$mathThe method returns a string
.
To create a fraction, use the PhpOffice\\Math\\Element\\Fraction
class.
The method has no parameter.
"},{"location":"usage/elements/fraction.html#getnumerator","title":"getNumerator","text":"The method has no parameter.
"},{"location":"usage/elements/fraction.html#setdenominator","title":"setDenominator","text":"The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<mfrac>\n<mi>a</mi>\n<mn>3</mn>\n</mfrac>\n</math>\n
"},{"location":"usage/elements/fraction.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$fraction = new Element\\Fraction();\n$fraction->setDenominator(new Element\\Identifier('a'));\n$fraction->setNumerator(new Element\\Numeric(3));\n\n$math->add($fraction);\n
"},{"location":"usage/elements/identifier.html","title":"Identifier","text":""},{"location":"usage/elements/identifier.html#usage","title":"Usage","text":"To create an identifier, use the PhpOffice\\Math\\Element\\Identifier
class.
The method has no parameter.
"},{"location":"usage/elements/identifier.html#setvalue","title":"setValue","text":"The method has one parameter :
string
$value<math display=\"block\">\n<mi>a</mi>\n</math>\n
"},{"location":"usage/elements/identifier.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$identifier = new Element\\Identifier('a');\n\n$math->add($identifier);\n
"},{"location":"usage/elements/numeric.html","title":"Numeric","text":""},{"location":"usage/elements/numeric.html#usage","title":"Usage","text":"To create a numeric, use the PhpOffice\\Math\\Element\\Numeric
class.
The method has no parameter.
"},{"location":"usage/elements/numeric.html#setvalue","title":"setValue","text":"The method has one parameter :
float
$value<math display=\"block\">\n<mn>3</mn>\n</math>\n
"},{"location":"usage/elements/numeric.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$identifier = new Element\\Numeric(3);\n\n$math->add($identifier);\n
"},{"location":"usage/elements/operator.html","title":"Operator","text":""},{"location":"usage/elements/operator.html#usage","title":"Usage","text":"To create an operator, use the PhpOffice\\Math\\Element\\Operator
class.
The method has no parameter.
"},{"location":"usage/elements/operator.html#setvalue","title":"setValue","text":"The method has one parameter :
string
$value<math display=\"block\">\n<mo>+</mo>\n</math>\n
"},{"location":"usage/elements/operator.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$identifier = new Element\\Operator('+');\n\n$math->add($identifier);\n
"},{"location":"usage/elements/row.html","title":"Row","text":""},{"location":"usage/elements/row.html#usage","title":"Usage","text":"To create a row, use the PhpOffice\\Math\\Element\\Row
class.
The method add an element to the row. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method return all elements of the row.
"},{"location":"usage/elements/row.html#remove","title":"remove","text":"The method remove an element to the row. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<mrow>\n<mn>1</mn>\n<mo>+</mo>\n<mi>K</mi>\n</mrow>\n</math>\n
"},{"location":"usage/elements/row.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$row = new Element\\Row();\n$row->add(new Element\\Numeric(1));\n$row->add(new Element\\Operator('+'));\n$row->add(new Element\\Identifier('K'));\n\n$math->add($row);\n
"},{"location":"usage/elements/semantics.html","title":"Semantics","text":""},{"location":"usage/elements/semantics.html#usage","title":"Usage","text":"To create a semantics, use the PhpOffice\\Math\\Element\\Semantics
class.
The method add an element to the semantics
element. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method add an annotation to the semantics
element. The method has two parameters :
string
$encodingstring
$annotationThe method return an annotation based on its encoding. The method has one parameter :
string
$encodingThe method return alls annotation of the semantics
element. The method has no parameter.
The method return all elements of the semantics
element.
The method remove an element to the semantics
element. The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<semantics>\n<mi>y</mi>\n\n<annotation encoding=\"application/x-tex\"> y </annotation>\n</semantics>\n</math>\n
"},{"location":"usage/elements/semantics.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$semantics = new Element\\Semantics();\n$semantics->add(new Element\\Identifier('y'));\n$semantics->addAnnotation('application/x-tex', ' y ');\n\n$math->add($semantics);\n
"},{"location":"usage/elements/superscript.html","title":"Superscript","text":""},{"location":"usage/elements/superscript.html#usage","title":"Usage","text":"To attach a superscript to an expression, use the PhpOffice\\Math\\Element\\Superscript
class.
The method has no parameter.
"},{"location":"usage/elements/superscript.html#getsuperscript","title":"getSuperscript","text":"The method has no parameter.
"},{"location":"usage/elements/superscript.html#setbase","title":"setBase","text":"The method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$elementThe method has one parameter :
PhpOffice\\Math\\Element\\AbstractElement
$element<math display=\"block\">\n<msup>\n<mi>X</mi>\n<mn>2</mn>\n</msup>\n</math>\n
"},{"location":"usage/elements/superscript.html#php","title":"PHP","text":"<?php\n\nuse PhpOffice\\Math\\Element;\nuse PhpOffice\\Math\\Math;\n\n$math = new Math();\n\n$superscript = new Element\\Superscript();\n$superscript->setBase(new Element\\Identifier('X'));\n$superscript->setSuperscript(new Element\\Numeric(2));\n\n$math->add($superscript);\n
"}]}
\ No newline at end of file
diff --git a/sitemap.xml.gz b/sitemap.xml.gz
index 4835998..67e9c82 100644
Binary files a/sitemap.xml.gz and b/sitemap.xml.gz differ