/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/extensions/TeX/cancel.js * * Implements the \cancel, \bcancel, \xcancel, and \cancelto macros. * * Usage: * * \cancel{math} % strikeout math from lower left to upper right * \bcancel{math} % strikeout from upper left to lower right * \xcancel{math} % strikeout with an X * \cancelto{value}{math} % strikeout with arrow going to value * * --------------------------------------------------------------------- * * Copyright (c) 2011-2013 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */MathJax.Extension["TeX/cancel"]={version:"2.2",ALLOWED:{arrow:1,color:1,mathcolor:1,background:1,mathbackground:1,padding:1,thickness:1}};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var h=MathJax.InputJax.TeX,a=MathJax.ElementJax.mml,g=MathJax.Extension["TeX/cancel"];g.setAttributes=function(a,d){if(""!==d){d=d.replace(/ /g,"").split(/,/);for(var b=0,e=d.length;b