Debian Codegraph @

unpacked/jax/output/PreviewHTML/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/PreviewHTML/config.js
7 *
8 * Initializes the PreviewHTML OutputJax (the main definition is in
9 * MathJax/jax/input/PreviewHTML/jax.js, which is loaded when needed).
10 *
11 * ---------------------------------------------------------------------
12 *
13 * Copyright (c) 2013-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.PreviewHTML = MathJax.OutputJax({
29 id: "PreviewHTML",
30 version: "2.7.9",
31 directory: MathJax.OutputJax.directory + "/PreviewHTML",
32 extensionDir: MathJax.OutputJax.extensionDir + "/PreviewHTML",
33 noFastPreview: true, // don't do fast preview for this output jax
34
35 config: {
36 scale: 100, minScaleAdjust: 50, // global math scaling factor, and minimum adjusted scale factor
37 mtextFontInherit: false, // to make <mtext> be in page font rather than MathJax font
38
39 linebreaks: {
40 automatic: false, // when false, only process linebreak="newline",
41 // when true, insert line breaks automatically in long expressions.
42
43 width: "container" // maximum width of a line for automatic line breaks (e.g. "30em").
44 // use "container" to compute size from containing element,
45 // use "nn% container" for a portion of the container,
46 // use "nn%" for a portion of the window size
47 }
48
49 }
50 });
51
52 if (!MathJax.Hub.config.delayJaxRegistration) {MathJax.OutputJax.PreviewHTML.Register("jax/mml")}
53
54 MathJax.OutputJax.PreviewHTML.loadComplete("config.js");