| 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/extensions/HTML-CSS/handle-floats.js |
| 7 |
* |
| 8 |
* This extension allows HTML-CSS output to deal with floating elements |
| 9 |
* better. In particular, when there are tags or equation numbers, these |
| 10 |
* would overlap floating elements, but with this extension, the width of |
| 11 |
* the line should properly correspond to the amount of space remaining. |
| 12 |
* |
| 13 |
* To load it, include |
| 14 |
* |
| 15 |
* "HTML-CSS": { |
| 16 |
* extensions: ["handle-floats.js"] |
| 17 |
* } |
| 18 |
* |
| 19 |
* in your configuration. |
| 20 |
* |
| 21 |
* --------------------------------------------------------------------- |
| 22 |
* |
| 23 |
* Copyright (c) 2012-2020 The MathJax Consortium |
| 24 |
* |
| 25 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 26 |
* you may not use this file except in compliance with the License. |
| 27 |
* You may obtain a copy of the License at |
| 28 |
* |
| 29 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 30 |
* |
| 31 |
* Unless required by applicable law or agreed to in writing, software |
| 32 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 33 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 34 |
* See the License for the specific language governing permissions and |
| 35 |
* limitations under the License. |
| 36 |
*/ |
| 37 |
|
| 38 |
|
| 39 |
MathJax.Extension["HTML-CSS/handle-floats"] = { |
| 40 |
version: "2.7.9" |
| 41 |
}; |
| 42 |
|
| 43 |
// |
| 44 |
// This file is now obsolete, since the HTML-CSS output already handles |
| 45 |
// floating elements properly. |
| 46 |
// |
| 47 |
|
| 48 |
MathJax.Hub.Startup.signal.Post("HTML-CSS handle-floats Ready"); |
| 49 |
MathJax.Ajax.loadComplete("[MathJax]/extensions/HTML-CSS/handle-floats.js"); |