/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/extensions/TeX/AMScd.js * * Implements the CD environment for commutative diagrams. * * --------------------------------------------------------------------- * * Copyright (c) 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/AMScd"]={version:"2.2",config:MathJax.Hub.CombineConfig("TeX.CD",{colspace:"5pt",rowspace:"5pt",harrowsize:"2.25em",varrowsize:"1.75em",hideHorizontalLabels:!1})};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var e=MathJax.ElementJax.mml,g=MathJax.InputJax.TeX,n=g.Stack.Item,h=g.Definitions,l=MathJax.Extension["TeX/AMScd"].config;h.environment.CD="CD_env";h.special["@"]="CD_arrow";h.macros.minCDarrowwidth="CD_minwidth";h.macros.minCDarrowheight="CD_minheight";g.Parse.Augment({CD_env:function(b){this.Push(b);return n.array().With({arraydef:{columnalign:"center",columnspacing:l.colspace,rowspacing:l.rowspace,displaystyle:!0},minw:this.stack.env.CD_minw||l.harrowsize,minh:this.stack.env.CD_minh||l.varrowsize})},CD_arrow:function(b){var c=this.string[this.i];if(c.match(/[>