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 @@

Bug fixes

Miscellaneous

diff --git a/coverage/Element/AbstractElement.php.html b/coverage/Element/AbstractElement.php.html index a6510c6..8c2effa 100644 --- a/coverage/Element/AbstractElement.php.html +++ b/coverage/Element/AbstractElement.php.html @@ -93,7 +93,7 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Project Risks

diff --git a/coverage/Element/index.html b/coverage/Element/index.html index 6269aa1..8f4758c 100644 --- a/coverage/Element/index.html +++ b/coverage/Element/index.html @@ -305,7 +305,7 @@

Legend

High: 90% to 100%

- 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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Project Risks

diff --git a/coverage/Exception/index.html b/coverage/Exception/index.html index 7b29baa..176ab49 100644 --- a/coverage/Exception/index.html +++ b/coverage/Exception/index.html @@ -107,7 +107,7 @@

Legend

High: 90% to 100%

- 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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Project Risks

diff --git a/coverage/Reader/index.html b/coverage/Reader/index.html index e1f76e2..af9c5d1 100644 --- a/coverage/Reader/index.html +++ b/coverage/Reader/index.html @@ -152,7 +152,7 @@

Legend

High: 90% to 100%

- 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 @@

Legend

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 @@

Legend

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 @@

Legend

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 @@

Project Risks

diff --git a/coverage/Writer/index.html b/coverage/Writer/index.html index 4f900e4..66dfe90 100644 --- a/coverage/Writer/index.html +++ b/coverage/Writer/index.html @@ -152,7 +152,7 @@

Legend

High: 90% to 100%

- 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 @@

Project Risks

diff --git a/coverage/index.html b/coverage/index.html index 9e66e64..c4c9e7a 100644 --- a/coverage/index.html +++ b/coverage/index.html @@ -192,7 +192,7 @@

Legend

High: 90% to 100%

- 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":""},{"location":"index.html#support","title":"Support","text":""},{"location":"index.html#readers","title":"Readers","text":"Features MathML Office MathML Basic Identifier Operator Numeric Simple Fraction Superscript Architectural Row Semantics"},{"location":"index.html#writers","title":"Writers","text":"Features MathML Office MathML Basic Identifier Operator Numeric Simple Fraction Superscript Architectural Row Semantics"},{"location":"index.html#contributing","title":"Contributing","text":"

We welcome everyone to contribute to Math. Below are some of the things that you can do to contribute:

"},{"location":"credits.html","title":"Credits","text":""},{"location":"credits.html#references","title":"References","text":""},{"location":"credits.html#mathml","title":"MathML","text":""},{"location":"credits.html#officemathml","title":"OfficeMathML","text":""},{"location":"install.html","title":"Installation","text":""},{"location":"install.html#requirements","title":"Requirements","text":"

Mandatory:

"},{"location":"install.html#installation_1","title":"Installation","text":""},{"location":"install.html#using-composer","title":"Using Composer","text":"

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":""},{"location":"changes/0.1.0.html#bug-fixes","title":"Bug fixes","text":""},{"location":"changes/0.1.0.html#miscellaneous","title":"Miscellaneous","text":""},{"location":"changes/0.2.0.html","title":"0.2.0","text":""},{"location":"changes/0.2.0.html#enhancements","title":"Enhancements","text":""},{"location":"changes/0.2.0.html#bug-fixes","title":"Bug fixes","text":""},{"location":"changes/0.2.0.html#miscellaneous","title":"Miscellaneous","text":""},{"location":"usage/readers.html","title":"Readers","text":""},{"location":"usage/readers.html#readers","title":"Readers","text":""},{"location":"usage/readers.html#mathml","title":"MathML","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 :

The method returns a PhpOffice\\Math\\Math object.

"},{"location":"usage/writers.html","title":"Writers","text":""},{"location":"usage/writers.html#writers","title":"Writers","text":""},{"location":"usage/writers.html#mathml","title":"MathML","text":"

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 :

The method returns a string.

"},{"location":"usage/elements/fraction.html","title":"Fraction","text":""},{"location":"usage/elements/fraction.html#usage","title":"Usage","text":"

To create a fraction, use the PhpOffice\\Math\\Element\\Fraction class.

"},{"location":"usage/elements/fraction.html#methods","title":"Methods","text":""},{"location":"usage/elements/fraction.html#getdenominator","title":"getDenominator","text":"

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 :

"},{"location":"usage/elements/fraction.html#setnumerator","title":"setNumerator","text":"

The method has one parameter :

"},{"location":"usage/elements/fraction.html#example","title":"Example","text":""},{"location":"usage/elements/fraction.html#math","title":"Math","text":"a 3"},{"location":"usage/elements/fraction.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/identifier.html#methods","title":"Methods","text":""},{"location":"usage/elements/identifier.html#getvalue","title":"getValue","text":"

The method has no parameter.

"},{"location":"usage/elements/identifier.html#setvalue","title":"setValue","text":"

The method has one parameter :

"},{"location":"usage/elements/identifier.html#example","title":"Example","text":""},{"location":"usage/elements/identifier.html#math","title":"Math","text":"a"},{"location":"usage/elements/identifier.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/numeric.html#methods","title":"Methods","text":""},{"location":"usage/elements/numeric.html#getvalue","title":"getValue","text":"

The method has no parameter.

"},{"location":"usage/elements/numeric.html#setvalue","title":"setValue","text":"

The method has one parameter :

"},{"location":"usage/elements/numeric.html#example","title":"Example","text":""},{"location":"usage/elements/numeric.html#math","title":"Math","text":"3"},{"location":"usage/elements/numeric.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/operator.html#methods","title":"Methods","text":""},{"location":"usage/elements/operator.html#getvalue","title":"getValue","text":"

The method has no parameter.

"},{"location":"usage/elements/operator.html#setvalue","title":"setValue","text":"

The method has one parameter :

"},{"location":"usage/elements/operator.html#example","title":"Example","text":""},{"location":"usage/elements/operator.html#math","title":"Math","text":"+"},{"location":"usage/elements/operator.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/row.html#methods","title":"Methods","text":""},{"location":"usage/elements/row.html#add","title":"add","text":"

The method add an element to the row. The method has one parameter :

"},{"location":"usage/elements/row.html#getelements","title":"getElements","text":"

The 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 :

"},{"location":"usage/elements/row.html#example","title":"Example","text":""},{"location":"usage/elements/row.html#math","title":"Math","text":"1 + K"},{"location":"usage/elements/row.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/semantics.html#methods","title":"Methods","text":""},{"location":"usage/elements/semantics.html#add","title":"add","text":"

The method add an element to the semantics element. The method has one parameter :

"},{"location":"usage/elements/semantics.html#addannotation","title":"addAnnotation","text":"

The method add an annotation to the semantics element. The method has two parameters :

"},{"location":"usage/elements/semantics.html#getannotation","title":"getAnnotation","text":"

The method return an annotation based on its encoding. The method has one parameter :

"},{"location":"usage/elements/semantics.html#getannotations","title":"getAnnotations","text":"

The method return alls annotation of the semantics element. The method has no parameter.

"},{"location":"usage/elements/semantics.html#getelements","title":"getElements","text":"

The method return all elements of the semantics element.

"},{"location":"usage/elements/semantics.html#remove","title":"remove","text":"

The method remove an element to the semantics element. The method has one parameter :

"},{"location":"usage/elements/semantics.html#example","title":"Example","text":""},{"location":"usage/elements/semantics.html#math","title":"Math","text":"y y"},{"location":"usage/elements/semantics.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/superscript.html#methods","title":"Methods","text":""},{"location":"usage/elements/superscript.html#getbase","title":"getBase","text":"

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 :

"},{"location":"usage/elements/superscript.html#setsuperscript","title":"setSuperscript","text":"

The method has one parameter :

"},{"location":"usage/elements/superscript.html#example","title":"Example","text":""},{"location":"usage/elements/superscript.html#math","title":"Math","text":"X 2"},{"location":"usage/elements/superscript.html#xml","title":"XML","text":"
<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":""},{"location":"index.html#support","title":"Support","text":""},{"location":"index.html#readers","title":"Readers","text":"Features MathML Office MathML Basic Identifier Operator Numeric Simple Fraction Superscript Architectural Row Semantics"},{"location":"index.html#writers","title":"Writers","text":"Features MathML Office MathML Basic Identifier Operator Numeric Simple Fraction Superscript Architectural Row Semantics"},{"location":"index.html#contributing","title":"Contributing","text":"

We welcome everyone to contribute to Math. Below are some of the things that you can do to contribute:

"},{"location":"credits.html","title":"Credits","text":""},{"location":"credits.html#references","title":"References","text":""},{"location":"credits.html#mathml","title":"MathML","text":""},{"location":"credits.html#officemathml","title":"OfficeMathML","text":""},{"location":"install.html","title":"Installation","text":""},{"location":"install.html#requirements","title":"Requirements","text":"

Mandatory:

"},{"location":"install.html#installation_1","title":"Installation","text":""},{"location":"install.html#using-composer","title":"Using Composer","text":"

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":""},{"location":"changes/0.1.0.html#bug-fixes","title":"Bug fixes","text":""},{"location":"changes/0.1.0.html#miscellaneous","title":"Miscellaneous","text":""},{"location":"changes/0.2.0.html","title":"0.2.0","text":""},{"location":"changes/0.2.0.html#enhancements","title":"Enhancements","text":""},{"location":"changes/0.2.0.html#bug-fixes","title":"Bug fixes","text":""},{"location":"changes/0.2.0.html#miscellaneous","title":"Miscellaneous","text":""},{"location":"usage/readers.html","title":"Readers","text":""},{"location":"usage/readers.html#readers","title":"Readers","text":""},{"location":"usage/readers.html#mathml","title":"MathML","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 :

The method returns a PhpOffice\\Math\\Math object.

"},{"location":"usage/writers.html","title":"Writers","text":""},{"location":"usage/writers.html#writers","title":"Writers","text":""},{"location":"usage/writers.html#mathml","title":"MathML","text":"

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 :

The method returns a string.

"},{"location":"usage/elements/fraction.html","title":"Fraction","text":""},{"location":"usage/elements/fraction.html#usage","title":"Usage","text":"

To create a fraction, use the PhpOffice\\Math\\Element\\Fraction class.

"},{"location":"usage/elements/fraction.html#methods","title":"Methods","text":""},{"location":"usage/elements/fraction.html#getdenominator","title":"getDenominator","text":"

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 :

"},{"location":"usage/elements/fraction.html#setnumerator","title":"setNumerator","text":"

The method has one parameter :

"},{"location":"usage/elements/fraction.html#example","title":"Example","text":""},{"location":"usage/elements/fraction.html#math","title":"Math","text":"a 3"},{"location":"usage/elements/fraction.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/identifier.html#methods","title":"Methods","text":""},{"location":"usage/elements/identifier.html#getvalue","title":"getValue","text":"

The method has no parameter.

"},{"location":"usage/elements/identifier.html#setvalue","title":"setValue","text":"

The method has one parameter :

"},{"location":"usage/elements/identifier.html#example","title":"Example","text":""},{"location":"usage/elements/identifier.html#math","title":"Math","text":"a"},{"location":"usage/elements/identifier.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/numeric.html#methods","title":"Methods","text":""},{"location":"usage/elements/numeric.html#getvalue","title":"getValue","text":"

The method has no parameter.

"},{"location":"usage/elements/numeric.html#setvalue","title":"setValue","text":"

The method has one parameter :

"},{"location":"usage/elements/numeric.html#example","title":"Example","text":""},{"location":"usage/elements/numeric.html#math","title":"Math","text":"3"},{"location":"usage/elements/numeric.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/operator.html#methods","title":"Methods","text":""},{"location":"usage/elements/operator.html#getvalue","title":"getValue","text":"

The method has no parameter.

"},{"location":"usage/elements/operator.html#setvalue","title":"setValue","text":"

The method has one parameter :

"},{"location":"usage/elements/operator.html#example","title":"Example","text":""},{"location":"usage/elements/operator.html#math","title":"Math","text":"+"},{"location":"usage/elements/operator.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/row.html#methods","title":"Methods","text":""},{"location":"usage/elements/row.html#add","title":"add","text":"

The method add an element to the row. The method has one parameter :

"},{"location":"usage/elements/row.html#getelements","title":"getElements","text":"

The 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 :

"},{"location":"usage/elements/row.html#example","title":"Example","text":""},{"location":"usage/elements/row.html#math","title":"Math","text":"1 + K"},{"location":"usage/elements/row.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/semantics.html#methods","title":"Methods","text":""},{"location":"usage/elements/semantics.html#add","title":"add","text":"

The method add an element to the semantics element. The method has one parameter :

"},{"location":"usage/elements/semantics.html#addannotation","title":"addAnnotation","text":"

The method add an annotation to the semantics element. The method has two parameters :

"},{"location":"usage/elements/semantics.html#getannotation","title":"getAnnotation","text":"

The method return an annotation based on its encoding. The method has one parameter :

"},{"location":"usage/elements/semantics.html#getannotations","title":"getAnnotations","text":"

The method return alls annotation of the semantics element. The method has no parameter.

"},{"location":"usage/elements/semantics.html#getelements","title":"getElements","text":"

The method return all elements of the semantics element.

"},{"location":"usage/elements/semantics.html#remove","title":"remove","text":"

The method remove an element to the semantics element. The method has one parameter :

"},{"location":"usage/elements/semantics.html#example","title":"Example","text":""},{"location":"usage/elements/semantics.html#math","title":"Math","text":"y y"},{"location":"usage/elements/semantics.html#xml","title":"XML","text":"
<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.

"},{"location":"usage/elements/superscript.html#methods","title":"Methods","text":""},{"location":"usage/elements/superscript.html#getbase","title":"getBase","text":"

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 :

"},{"location":"usage/elements/superscript.html#setsuperscript","title":"setSuperscript","text":"

The method has one parameter :

"},{"location":"usage/elements/superscript.html#example","title":"Example","text":""},{"location":"usage/elements/superscript.html#math","title":"Math","text":"X 2"},{"location":"usage/elements/superscript.html#xml","title":"XML","text":"
<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