Skip to content

Instantly share code, notes, and snippets.

View LuiSlacker's full-sized avatar

Petulant Slacker LuiSlacker

View GitHub Profile
[
{
"id":"A.3.cmml",
"matches":[
{
"id":"A.3.cmml",
"assessment":1.0,
"type":"similar"
}
]
<script
type='application/javascript'
src='http://math.citeplag.org/widgets/formula-similarity-widget.js'
reference_mathml='<math xmlns="http://www.w3.org/1998/Math/MathML">... Your Reference-MathML goes here ...</math>'
comparison_mathml='<math xmlns="http://www.w3.org/1998/Math/MathML">... Your Comparison-MathMLgoes here ...</math>'
similarities='<Your Similarities-JSON goes here>' // see below for structure example
/>
@LuiSlacker
LuiSlacker / gist:93ed510473a2d7443238d41918605d25
Created March 13, 2017 17:01
formula-similarity-widget.html
<script
type='application/javascript'
src='http://math.citeplag.org/widgets/formula-similarity-widget.js'
reference_mathml='<math xmlns="http://www.w3.org/1998/Math/MathML">... Your Reference-MathML goes here ...</math>'
comparison_mathml='<math xmlns="http://www.w3.org/1998/Math/MathML">... Your Comparison-MathMLgoes here ...</math>'
similarities='<Your Similarities-JSON goes here>' // see below for structure example
/>
@LuiSlacker
LuiSlacker / formula-ast-widget.html
Last active March 13, 2017 16:53
formula-ast-widget usage
<script
type='application/javascript'
src='http://math.citeplag.org/widgets/formula-ast-widget.js'
mathml='<math xmlns="http://www.w3.org/1998/Math/MathML">... Your MathML goes here ...</math>'
nodesToBeCollapsed='["p1.1.m1.1.4.1.cmml", "p1.1.m1.1.3.3.7.1.cmml"]' // comma separated list of content-MML apply-Nodes
collapseSingleOperandNodes='true' // flag wether nodes with only one child should be collapsed - defaults to false
bgColor='#f00' // widgets background color - if omitted defaults to #fff
/>
<math xmlns="http://www.w3.org/1998/Math/MathML" id="p1.1.m1.1" class="ltx_Math" alttext="{\displaystyle\mathop{\zeta\/}\nolimits\!\left(s\right)=\frac{1}{(1-2^{1-s})%
\mathop{\Gamma\/}\nolimits\!\left(s+1\right)}\mathop{\int_{0}^{\infty}\/}%
\nolimits{\frac{e^{x}x^{s}}{(e^{x}+1)^{2}}}\,{\mathrm{d}}x}">
<semantics id="p1.1.m1.1a">
<mrow id="p1.1.m1.1.5" xref="p1.1.m1.1.5.cmml">
<mrow id="p1.1.m1.1.1.8.2" xref="p1.1.m1.1.1.1.cmml">
<mi id="p1.1.m1.1.1.2.1.2" xref="p1.1.m1.1.1.2.1.1.cmml">ζ</mi>
<mo id="p1.1.m1.1.1.8.2a" xref="p1.1.m1.1.1.1.cmml">⁡</mo>
<mrow id="p1.1.m1.1.1" xref="p1.1.m1.1.1.1.cmml">
<mo id="p1.1.m1.1.1.5" xref="p1.1.m1.1.1.1.cmml">(</mo>