:breadcrumb: {filename}/plugins.rst Plugins
{filename}/plugins/math-and-code.rst Math and code
+.. role:: math-default(math)
+ :class: m-default
+.. role:: math-primary(math)
+ :class: m-primary
+.. role:: math-success(math)
+ :class: m-success
+.. role:: math-warning(math)
+ :class: m-warning
+.. role:: math-danger(math)
+ :class: m-danger
+.. role:: math-info(math)
+ :class: m-info
+.. role:: math-dim(math)
+ :class: m-dim
+
Math
====
First is colored except :math:`c^2`, second is colored globally, third is
-colored globally with overrides except for :math:`c^2`.
+colored globally with overrides except for :math:`c^2`. Second row in each is
+the same but inline instead of a block.
.. container:: m-row
{\color{m-default} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-default} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-default:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-default} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`{\color{m-default} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-primary} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-primary} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-primary:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-primary} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`{\color{m-primary} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-success} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-success} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-success:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-success} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`{\color{m-success} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-warning} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-warning} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-warning:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-warning} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`{\color{m-warning} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-danger} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-danger} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-danger} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math-success:`{\color{m-danger} a^2 + b^2 =} ~ c^2`
+
.. container:: m-row
.. container:: m-col-m-4
{\color{m-info} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-info} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-info:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
{\color{m-info} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`{\color{m-info} a^2 + b^2 =} ~ c^2`
+
.. container:: m-row
.. container:: m-col-m-4
{\color{m-dim} a^2 + b^2 =} ~ c^2
+ .. class:: m-text-center m-noindent
+
+ :math:`{\color{m-dim} a^2 + b^2 =} ~ c^2`
+
.. container:: m-col-m-4
.. math::
a^2 + b^2 = c^2
+ .. class:: m-text-center m-noindent
+
+ :math-dim:`a^2 + b^2 = c^2`
+
.. container:: m-col-m-4
.. math::
:class: m-danger
{\color{m-dim} a^2 + b^2 =} ~ c^2
+
+ .. class:: m-text-center m-noindent
+
+ :math-danger:`{\color{m-dim} a^2 + b^2 =} ~ c^2`