123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- @licstart The following is the entire license notice for the
- JavaScript code in this page.
- Copyright (C) 2015-2018 Emilia Blåsten emily@countermail.com
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- @licend The above is the entire license notice for the JavaScript code
- in this page.
- Contributions are welcome: https://notabug.org/emily/Lettus-CSS-MathJax
- */
- /*
- IMPORTANT:
- This configuration file should be loaded _before_ MathJax unless you
- know better. You should include it in the <head>-section, for example
- as follows:
-
- <script src="lettus_conf_mj.js"></script>
-
- and after that you are free to load MathJax, either through the content
- delivery network by writing:
-
- <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
-
- or loading it using your own code. For example if you load it using the
- file lettus_mj.js, then you should include the tag
-
- <script src="lettus_mj.js"></script>
-
- assuming the the file resides in the same URL as your HTML-file.
- */
- /* Create the MathJax element containing its configuration */
- window.MathJax = {
- jax: ["input/TeX","output/CommonHTML"],
- TeX: {equationNumbers: {autoNumber: "AMS"}},
- /* Align equations to the left with a margin */
- displayAlign: "left",
- displayIndent: "2em",
- /* Allow the use of $..$ for inline math and \$ for in-text dollar */
- tex2jax: {
- inlineMath: [['$','$'], ['\\(','\\)']],
- processEscapes: true
- },
- /* Force SVG to scale to the same size as HTML-CSS in firefox */
- SVG: {
- scale: 80,
- font: "STIX-Web"
- },
- /* Force HTML-CSS to use a font compatible with the main text */
- "HTML-CSS": {
- availableFonts: ["STIX"],
- preferredFont: "STIX",
- webFont: "STIX-Web",
- matchFontHeight: false
- },
- /* Options for CommonHTML */
- "CommonHTML": {
- scale: 90
- },
- /* Disable the HTML fast preview by default. Fixes page blinking. */
- "fast-preview": {
- disabled: true
- },
- "CHTML-preview": {
- disabled: true
- }
- };
|