Debian Codegraph @

unpacked/jax/output/NativeMML/config.js

raw
1 /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3
4 /*************************************************************
5 *
6 * MathJax/jax/output/NativeMML/config.js
7 *
8 * Initializes the NativeMML OutputJax (the main definition is in
9 * MathJax/jax/input/NativeMML/jax.js, which is loaded when needed).
10 *
11 * ---------------------------------------------------------------------
12 *
13 * Copyright (c) 2009-2020 The MathJax Consortium
14 *
15 * Licensed under the Apache License, Version 2.0 (the "License");
16 * you may not use this file except in compliance with the License.
17 * You may obtain a copy of the License at
18 *
19 * http://www.apache.org/licenses/LICENSE-2.0
20 *
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an "AS IS" BASIS,
23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
26 */
27
28 MathJax.OutputJax.NativeMML = MathJax.OutputJax({
29 id: "NativeMML",
30 version: "2.7.9",
31 directory: MathJax.OutputJax.directory + "/NativeMML",
32 extensionDir: MathJax.OutputJax.extensionDir + "/NativeMML",
33
34 config: {
35 matchFontHeight: true, // try to match math font height to surrounding font?
36 scale: 100, // scaling factor for all math
37 minScaleAdjust: 50, // minimum scaling to adjust to surrounding text
38 // (since the code for that is a bit delicate)
39
40 styles: {
41 "div.MathJax_MathML": {
42 "text-align": "center",
43 margin: ".75em 0px"
44 }
45 }
46 }
47 });
48
49 if (!MathJax.Hub.config.delayJaxRegistration)
50 MathJax.OutputJax.NativeMML.Register("jax/mml");
51
52 MathJax.OutputJax.NativeMML.loadComplete("config.js");