├── .Rbuildignore ├── .github ├── .gitignore └── workflows │ └── R-CMD-check.yaml ├── .gitignore ├── DESCRIPTION ├── NAMESPACE ├── NEWS.md ├── R └── preview_rd.r ├── README.md ├── inst └── doc │ ├── .gitignore │ └── R_dark.css ├── man ├── macros │ └── mathjax.Rd ├── mathjaxr-package.Rd └── preview_rd.Rd └── src ├── Makefile ├── install.libs.R └── mathjax ├── LICENSE ├── README.md └── es5 ├── a11y ├── assistive-mml.js ├── complexity.js ├── explorer.js └── semantic-enrich.js ├── input └── tex │ └── extensions │ ├── action.js │ ├── all-packages.js │ ├── ams.js │ ├── amscd.js │ ├── autoload.js │ ├── bbox.js │ ├── boldsymbol.js │ ├── braket.js │ ├── bussproofs.js │ ├── cancel.js │ ├── color.js │ ├── colorv2.js │ ├── configmacros.js │ ├── enclose.js │ ├── extpfeil.js │ ├── html.js │ ├── mhchem.js │ ├── newcommand.js │ ├── noerrors.js │ ├── noundefined.js │ ├── physics.js │ ├── require.js │ ├── tagformat.js │ ├── textmacros.js │ ├── unicode.js │ └── verb.js ├── output ├── chtml.js ├── chtml │ └── fonts │ │ ├── tex.js │ │ └── woff-v2 │ │ ├── MathJax_AMS-Regular.woff │ │ ├── MathJax_Calligraphic-Bold.woff │ │ ├── MathJax_Calligraphic-Regular.woff │ │ ├── MathJax_Fraktur-Bold.woff │ │ ├── MathJax_Fraktur-Regular.woff │ │ ├── MathJax_Main-Bold.woff │ │ ├── MathJax_Main-Italic.woff │ │ ├── MathJax_Main-Regular.woff │ │ ├── MathJax_Math-BoldItalic.woff │ │ ├── MathJax_Math-Italic.woff │ │ ├── MathJax_Math-Regular.woff │ │ ├── MathJax_SansSerif-Bold.woff │ │ ├── MathJax_SansSerif-Italic.woff │ │ ├── MathJax_SansSerif-Regular.woff │ │ ├── MathJax_Script-Regular.woff │ │ ├── MathJax_Size1-Regular.woff │ │ ├── MathJax_Size2-Regular.woff │ │ ├── MathJax_Size3-Regular.woff │ │ ├── MathJax_Size4-Regular.woff │ │ ├── MathJax_Typewriter-Regular.woff │ │ ├── MathJax_Vector-Bold.woff │ │ ├── MathJax_Vector-Regular.woff │ │ └── MathJax_Zero.woff └── svg.js └── tex-chtml-full.js /.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^\.git$ 2 | ^\.github$ 3 | ^\.gitignore$ 4 | ^_pkgdown\.yml$ 5 | ^docs$ 6 | ^.*\.Rproj$ 7 | ^\.Rproj\.user$ 8 | ^inst/doc/mathjax 9 | -------------------------------------------------------------------------------- /.github/.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | -------------------------------------------------------------------------------- /.github/workflows/R-CMD-check.yaml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | branches: 4 | - master 5 | pull_request: 6 | branches: 7 | - master 8 | 9 | name: R-CMD-check 10 | 11 | jobs: 12 | R-CMD-check: 13 | if: "!contains(github.event.head_commit.message, '[ci skip]')" 14 | runs-on: ubuntu-24.04 15 | env: 16 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} 17 | steps: 18 | - uses: actions/checkout@v4 19 | - uses: r-lib/actions/setup-r@v2 20 | with: 21 | r-version: 'release' 22 | - uses: r-lib/actions/setup-r-dependencies@v2 23 | with: 24 | extra-packages: any::rcmdcheck 25 | needs: check 26 | - uses: r-lib/actions/check-r-package@v2 27 | with: 28 | args: 'c("--no-manual", "--as-cran", "--no-tests")' 29 | error-on: '"warning"' 30 | check-dir: '"check"' 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | .Rhistory 3 | .RData 4 | .Ruserdata 5 | mathjaxr.Rproj 6 | -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: mathjaxr 2 | Version: 1.7-2 3 | Date: 2025-03-14 4 | Title: Using 'Mathjax' in Rd Files 5 | Authors@R: person(given = "Wolfgang", family = "Viechtbauer", role = c("aut","cre"), email = "wvb@wvbauer.com", comment = c(ORCID = "0000-0003-3463-4063")) 6 | Description: Provides 'MathJax' and macros to enable its use within Rd files for rendering equations in the HTML help files. 7 | License: GPL-3 8 | Encoding: UTF-8 9 | BuildManual: TRUE 10 | URL: https://github.com/wviechtb/mathjaxr 11 | BugReports: https://github.com/wviechtb/mathjaxr/issues 12 | Suggests: js 13 | -------------------------------------------------------------------------------- /NAMESPACE: -------------------------------------------------------------------------------- 1 | export(preview_rd) 2 | -------------------------------------------------------------------------------- /NEWS.md: -------------------------------------------------------------------------------- 1 | # mathjaxr 1.7-2 (2025-03-14) 2 | 3 | * version bump for devel version 4 | 5 | # mathjaxr 1.6-0 (2022-02-28) 6 | 7 | * upgraded MathJax version to 3.2.0 8 | * updated instructions for making use of the package 9 | * fixed issue with `\mjeqn` coming first in a paragraph (issue #11) 10 | * `preview_rd()` now shows links to local help pages (although they are non-functional) and displays figures (if there are any) 11 | 12 | # mathjaxr 1.4-0 (2021-03-01) 13 | 14 | * fixed issue with minifying the javascript files upon installation under Windows 15 | * `preview_rd()` now loads package macros 16 | 17 | # mathjaxr 1.2-0 (2021-01-30) 18 | 19 | * upgraded MathJax version to 3.1.2 20 | * MathJax is now bundled with non-minified javascript files; upon installation from the source package, the javascript files are minified if the `js` package is available 21 | * `preview_rd()` now tries to load any package-specific macros before rendering a help page 22 | * `preview_rd()` gains a `dark` argument (for the option to render HTML pages in dark mode) 23 | 24 | # mathjaxr 1.0-1 (2020-06-25) 25 | 26 | * added `\mjteqn` and `\mjtdeqn` macros (triple-argument versions) 27 | * added `preview_rd()` function 28 | * environment variable `MATHJAXR_CDN` can now be used to specify an alternative URL for a CDN 29 | * changed name of environment variable from `MATHJAXR.USECDN` to `MATHJAXR_USECDN` 30 | * expanded information provided under 'Issues' 31 | 32 | # mathjaxr 0.8-3 (2020-05-08) 33 | 34 | * first version released on CRAN 35 | * simplified `ifelse` logic for the `\mjeqn` and `\mjdeqn` macros 36 | * added `\mjseqn` and `\mjsdeqn` macros (single-argument versions) 37 | 38 | # mathjaxr 0.8-0 (2020-05-03) 39 | 40 | * first version 41 | -------------------------------------------------------------------------------- /R/preview_rd.r: -------------------------------------------------------------------------------- 1 | preview_rd <- function(Rdfile, view = TRUE, type = "html", verbose = FALSE, dark = FALSE, ...) { 2 | 3 | if (missing(Rdfile)) 4 | stop("Must specify the 'Rdfile' argument.") 5 | 6 | type <- match.arg(type, c("html", "txt", "text", "pdf")) 7 | 8 | if (type == "text") 9 | type <- "txt" 10 | 11 | ddd <- list(...) 12 | 13 | # need to load MathJax from the CDN since the \mathjaxr macro 14 | # won't be able to load MathJax from the local installation 15 | mjcdn <- Sys.getenv("MATHJAXR_USECDN") 16 | on.exit(Sys.setenv(MATHJAXR_USECDN = mjcdn)) 17 | Sys.setenv(MATHJAXR_USECDN = "TRUE") 18 | 19 | # temporarily set working dir to location of Rdfile 20 | wd <- getwd() 21 | dn <- dirname(Rdfile) 22 | setwd(dn) 23 | on.exit(setwd(wd), add=TRUE) 24 | 25 | # strip path from Rdfile 26 | Rdfile <- basename(Rdfile) 27 | 28 | # list all .Rd and .rd files in the current dir 29 | Rdfiles <- list.files(pattern = ".*\\.Rd$") 30 | rdfiles <- list.files(pattern = ".*\\.rd$") 31 | 32 | # do the same for all files in the man subdir 33 | Rdfiles.man <- list.files(path = "man", pattern = ".*\\.Rd$") 34 | rdfiles.man <- list.files(path = "man", pattern = ".*\\.rd$") 35 | 36 | # check if Rdfile has an .Rd or .rd extension 37 | noext <- !is.element(substr(Rdfile, nchar(Rdfile)-2, nchar(Rdfile)), c(".Rd", ".rd")) 38 | 39 | # try to find the Rdfile first in the man subdir and then in the current dir 40 | if (paste0(Rdfile, ifelse(noext, ".Rd", "")) %in% Rdfiles.man) { 41 | Rdfile.loc <- paste0("man/", Rdfile, ifelse(noext, ".Rd", "")) 42 | } else if (paste0(Rdfile, ifelse(noext, ".rd", "")) %in% rdfiles.man) { 43 | Rdfile.loc <- paste0("man/", Rdfile, ifelse(noext, ".rd", "")) 44 | } else if (paste0(Rdfile, ifelse(noext, ".Rd", "")) %in% Rdfiles) { 45 | Rdfile.loc <- paste0(Rdfile, ifelse(noext, ".Rd", "")) 46 | } else if (paste0(Rdfile, ifelse(noext, ".rd", "")) %in% rdfiles) { 47 | Rdfile.loc <- paste0(Rdfile, ifelse(noext, ".rd", "")) 48 | } else { 49 | stop(paste0("Cannot find the specified Rd file in the current directory or in the 'man' subdirectory.")) 50 | } 51 | 52 | if (verbose) 53 | message("Found Rd file: ", Rdfile.loc) 54 | 55 | # get environment with the mathjaxr, package, and system macros 56 | macros <- tools::loadPkgRdMacros(system.file(package = "mathjaxr")) 57 | macros <- tools::loadPkgRdMacros(ifelse(basename(getwd()) == "man", "..", "."), macros = macros) 58 | macros <- tools::loadRdMacros(file.path(R.home("share"), "Rd", "macros", "system.Rd"), macros = macros) 59 | 60 | # generate name of temp file 61 | tmpdir <- tempdir() 62 | outfile <- paste0(file.path(tmpdir, Rdfile), ".", type) 63 | 64 | if (verbose) 65 | message("Creating preview file: ", outfile) 66 | 67 | if (type == "html") { 68 | 69 | if (.Platform$OS.type == "windows") { 70 | prefix <- "file://" 71 | } else { 72 | prefix <- "" 73 | } 74 | 75 | if (!is.null(ddd$css)) { 76 | css <- paste0(prefix, ddd$css) 77 | } else { 78 | if (dark) { 79 | css <- paste0(prefix, system.file("doc/R_dark.css", package = "mathjaxr")) 80 | } else { 81 | css <- paste0(prefix, system.file("html/R.css", package = "mathjaxr")) 82 | } 83 | } 84 | 85 | # copy figures to tmpdir if there are any 86 | if (file.exists(paste0(dirname(Rdfile.loc), "/figures"))) { 87 | rdtxt <- readLines(Rdfile.loc, warn = FALSE) 88 | figloc <- grep("\\figure{", rdtxt, fixed = TRUE) 89 | if (length(figloc) > 0L) { 90 | figs <- rdtxt[figloc] 91 | figs <- sapply(strsplit(figs, "\\figure{", fixed = TRUE), function(x) x[2]) 92 | figs <- sapply(strsplit(figs, "}", fixed = TRUE), function(x) x[1]) 93 | status <- TRUE 94 | if (!file.exists(paste0(tmpdir, "/figures"))) 95 | status <- dir.create(paste0(tmpdir, "/figures"), showWarnings = FALSE) 96 | if (status) { 97 | if (verbose) 98 | message("Copying figure(s) to: ", paste0(tmpdir, "/figures")) 99 | file.copy(paste0(dirname(Rdfile.loc), "/figures/", figs), paste0(tmpdir, "/figures"), overwrite = TRUE) 100 | } 101 | } 102 | } 103 | 104 | # convert Rd to HTML version 105 | html <- tools::Rd2HTML(Rdfile.loc, out = outfile, 106 | macros = macros, permissive = TRUE, dynamic = TRUE, 107 | stylesheet = css, stages = c("build", "install", "render")) 108 | 109 | # use viewer if available (as in RStudio); otherwise use browseURL() 110 | viewer <- getOption("viewer") 111 | if (!is.null(viewer)) { 112 | viewer(html) 113 | } else { 114 | if (view) 115 | utils::browseURL(html) 116 | } 117 | 118 | } 119 | 120 | if (type == "txt") { 121 | 122 | # convert Rd to text version and show file 123 | txt <- tools::Rd2txt(Rdfile.loc, out = outfile, 124 | macros = macros, permissive = TRUE) 125 | 126 | if (.Platform$GUI == "RStudio") { 127 | # RStudio tries to use its own pager for file.show(), but this doesn't work so well here 128 | # so we just brute-force the display on the console with readLines() and cat() ... :/ 129 | out <- readLines(txt) 130 | for (i in seq_along(out)) { 131 | cat(out[i], "\n") 132 | } 133 | } else { 134 | if (view) 135 | file.show(txt) 136 | } 137 | 138 | } 139 | 140 | if (type == "pdf") { 141 | 142 | pkg <- character(0) 143 | 144 | # try to get the package name and RdMacros field from DESCRIPTION 145 | if (file.exists(ifelse(basename(getwd()) == "man", "../DESCRIPTION", "DESCRIPTION"))) { 146 | pkg <- suppressWarnings(try(read.dcf(ifelse(basename(getwd()) == "man", "../DESCRIPTION", "DESCRIPTION"), fields="Package"), silent = TRUE)) 147 | RdMacros <- suppressWarnings(try(read.dcf(ifelse(basename(getwd()) == "man", "../DESCRIPTION", "DESCRIPTION"), fields="RdMacros"), silent = TRUE)) 148 | if (inherits(pkg, "try-error") || is.na(pkg[1]) || !dir.exists(ifelse(basename(getwd()) == "man", "macros", "man/macros"))) # if there is no man/macros dir, the package has no macros 149 | pkg <- character(0) 150 | if (inherits(RdMacros, "try-error") || is.na(RdMacros[1])) 151 | RdMacros <- character(0) 152 | } 153 | 154 | if (length(RdMacros) > 0L) { 155 | # remove mathjaxr from RdMacros 156 | RdMacros <- trimws(strsplit(RdMacros, ",", fixed = TRUE)[[1]]) 157 | RdMacros <- RdMacros[RdMacros != "mathjaxr"] 158 | if (length(RdMacros) > 1L) 159 | RdMacros <- paste0(RdMacros, collapse=",") 160 | if (length(RdMacros) > 0L) { 161 | RdMacros <- paste0("mathjaxr,", RdMacros) 162 | } else { 163 | RdMacros <- "mathjaxr" 164 | } 165 | } else { 166 | RdMacros <- "mathjaxr" 167 | } 168 | 169 | if (length(pkg) > 0L) 170 | RdMacros <- paste0(RdMacros, ",", pkg) 171 | 172 | #cmd <- paste0("CMD Rd2pdf --no-index --no-description --force --batch --RdMacros=mathjaxr ", ifelse(view, "", "--no-preview"), " --output=", outfile, " ", Rdfile.loc) 173 | #cmd <- paste0("CMD Rd2pdf --no-index --no-description --force --batch --RdMacros=mathjaxr --no-preview --output=", outfile, " ", Rdfile.loc) 174 | cmd <- paste0("CMD Rd2pdf --no-index --no-description --force --batch --RdMacros=", RdMacros, " --no-preview --output=", outfile, " ", Rdfile.loc) 175 | #system2("R", cmd, wait = TRUE, stderr = if (verbose >=2) "" else NULL, stdout = if (verbose >= 2) "" else tempfile("stdout")) 176 | system2("R", cmd, wait = TRUE, stdout = ifelse(verbose >= 2, "", tempfile("stdout"))) 177 | 178 | if (.Platform$OS.type == "windows") { 179 | shell.exec(outfile) 180 | } else { 181 | optb <- getOption("browser") 182 | if (is.function(optb)) { 183 | invisible(optb(outfile)) 184 | } else { 185 | system(paste0(optb, " '", outfile, "'")) 186 | } 187 | } 188 | 189 | } 190 | 191 | } 192 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | mathjaxr: Using Mathjax in Rd Files 2 | =================================== 3 | 4 | [![R build status](https://github.com/wviechtb/mathjaxr/workflows/R-CMD-check/badge.svg)](https://github.com/wviechtb/mathjaxr/actions) 5 | [![CRAN Version](https://www.r-pkg.org/badges/version/mathjaxr)](https://cran.r-project.org/package=mathjaxr) 6 | ![devel Version](https://img.shields.io/badge/devel-1.7--2-brightgreen.svg) 7 | 8 | ## Description 9 | 10 | The `mathjaxr` package allows for easy inclusion of [MathJax](https://www.mathjax.org/) equations in Rd files. Package authors wanting to make use of the package and its functionality need to: 11 | 12 | 1. install the `mathjaxr` package, 13 | 2. add `mathjaxr` to `Imports` in the `DESCRIPTION` file of their package, 14 | 3. add `mathjaxr` to `RdMacros` in the `DESCRIPTION` file of their package (or add `RdMacros: mathjaxr` if the `DESCRIPTION` file does not yet contain a `RdMacros` entry), 15 | 4. add `BuildManual: TRUE` to the `DESCRIPTION` file, 16 | 5. add `import(mathjaxr)` in the `NAMESPACE` file of their package. 17 | 18 | One can then enable the use of MathJax by calling the `\loadmathjax` macro (that is provided by the `mathjaxr` package) within the `\description{}` section of an Rd file (or within the `@description` section when using `roxygen2`). 19 | 20 | An inline equation can then be added with the `\mjeqn{latex}{ascii}` macro, with the LaTeX commands for the equation given between the first set of curly brackets (which will be rendered in the HTML and PDF help pages) and the plain-text version of the equation given between the second set of curly brackets (which will be shown in the plain text help). With the `\mjdeqn{latex}{ascii}` macro, one can add 'displayed equations' (as in LaTeX's `displaymath` environment). 21 | 22 | Single argument versions of these macros, `\mjseqn{latexascii}` and `\mjsdeqn{latexascii}`, are also available. For the relatively rare case that one must specify different LaTeX commands for the PDF and HTML pages, there are also triple argument versions of these macros, namely `\mjteqn{pdflatex}{htmllatex}{ascii}` and `\mjtdeqn{pdflatex}{htmllatex}{ascii}`. 23 | 24 | ## Details 25 | 26 | The Javascript code for MathJax is contained in this package. If a user viewing a help page has `mathjaxr` installed, it will be retrieved from there, otherwise it will be retrieved from the CDN site https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js. To force use of the CDN site, the user can set the environment variable `MATHJAXR_USECDN` to any non-blank value (e.g., `Sys.setenv(MATHJAXR_USECDN=TRUE)`). The URL for a diferent CDN can be specified via the environment variable `MATHJAXR_CDN`. 27 | 28 | ## Notes/Issues 29 | 30 | - Care must be taken when using the less-than and greater-than symbols in equations as these might get interpreted by the browser as HTML tags. See [here](https://docs.mathjax.org/en/latest/input/tex/html.html) for further details. Adding space around these symbols should solve this problem (e.g., instead of writing `\mjseqn{i}' else '\\\\\\out{}'}}} 3 | %\newcommand{\loadmathjax}{\if{html}{\Sexpr[results=rd,stage=render]{MATHJAXR_USECDN <- Sys.getenv("MATHJAXR_USECDN"); MATHJAXR_CDN <- Sys.getenv("MATHJAXR_CDN"); if (!nzchar(MATHJAXR_CDN)) MATHJAXR_CDN <- "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js"; PATH <- system.file('doc/mathjax/es5/tex-chtml-full.js', package='mathjaxr'); TEXT <- paste0("if (nchar(\"", PATH, "\") && !nzchar(\"", MATHJAXR_USECDN, "\")) '\\\\\\\\\\\\\\out{}' else '\\\\\\\\\\\\\\out{}'"); eval(str2expression(TEXT))}}} 4 | \newcommand{\loadmathjax}{\if{html}{\Sexpr[results=rd,stage=render]{MATHJAXR_USECDN <- Sys.getenv("MATHJAXR_USECDN"); MATHJAXR_CDN <- Sys.getenv("MATHJAXR_CDN"); if (!nzchar(MATHJAXR_CDN)) MATHJAXR_CDN <- "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js"; PATH <- system.file("doc/mathjax/es5/tex-chtml-full.js", package="mathjaxr"); if (nchar(PATH) && !nzchar(MATHJAXR_USECDN)) '\\\\\\out{}' else paste0('\\\\\\out{}')}}} 5 | 6 | % two-argument macros \mjeqn{latex}{ascii} and \mjdeqn{latex}{ascii} 7 | \newcommand{\mjeqn}{\ifelse{html}{\emph{}\out{\(#1\)}}{\eqn{#1}{#2}}} 8 | \newcommand{\mjdeqn}{\ifelse{html}{\out{\[#1\]}}{\deqn{#1}{#2}}} 9 | 10 | % single-argument macros \mjseqn{latexascii} and \mjsdeqn{latexascii} 11 | \newcommand{\mjseqn}{\ifelse{html}{\emph{}\out{\(#1\)}}{\eqn{#1}}} 12 | \newcommand{\mjsdeqn}{\ifelse{html}{\out{\[#1\]}}{\deqn{#1}}} 13 | 14 | % tripple-argument macros \mjteqn{pdflatex}{htmllatex}{ascii} and \mjtdeqn{pdflatex}{htmllatex}{ascii} 15 | % \newcommand{\mjteqn}{\ifelse{latex}{\eqn{#1}}{\ifelse{html}{\out{\(#2\)}}{\eqn{#3}}}} 16 | % \newcommand{\mjtdeqn}{\ifelse{latex}{\deqn{#1}}{\ifelse{html}{\out{\[#2\]}}{\deqn{#3}}}} 17 | \newcommand{\mjteqn}{\if{latex}{\eqn{#1}}\if{html}{\emph{}\out{\(#2\)}}\if{text}{\eqn{#3}}} 18 | \newcommand{\mjtdeqn}{\if{latex}{\deqn{#1}}\if{html}{\out{\[#2\]}}\if{text}{\deqn{#3}}} 19 | -------------------------------------------------------------------------------- /man/mathjaxr-package.Rd: -------------------------------------------------------------------------------- 1 | \name{mathjaxr-package} 2 | \alias{mathjaxr-package} 3 | \alias{mathjaxr} 4 | \docType{package} 5 | \title{Using MathJax in Rd Files} 6 | \description{ 7 | \loadmathjax 8 | The \pkg{mathjaxr} package allows for easy inclusion of \href{https://www.mathjax.org/}{MathJax} equations in Rd files. Package authors wanting to make use of the package and its functionality need to: 9 | 10 | \enumerate{ 11 | \item install the \pkg{mathjaxr} package, 12 | \item add \verb{mathjaxr} to \verb{Imports} in the \file{DESCRIPTION} file of their package, 13 | \item add \verb{mathjaxr} to \verb{RdMacros} in the \file{DESCRIPTION} file of their package (or add \verb{RdMacros: mathjaxr} if the \file{DESCRIPTION} file does not yet contain a \verb{RdMacros} entry), 14 | \item add \verb{BuildManual: TRUE} to the \file{DESCRIPTION} file, 15 | \item add \verb{import(mathjaxr)} in the \file{NAMESPACE} file of their package. 16 | } 17 | 18 | One can then enable the use of MathJax by calling the \code{\\loadmathjax} macro (that is provided by the \pkg{mathjaxr} package) within the \verb{\\description{}} section of an Rd file (or within the \verb{@description} section when using \pkg{roxygen2}). 19 | 20 | An inline equation can then be added with the \code{\\mjeqn{latex}{ascii}} macro, with the \LaTeX commands for the equation given between the first set of curly brackets (which will be rendered in the HTML and PDF help pages) and the plain-text version of the equation given between the second set of curly brackets (which will be shown in the plain text help). With the \code{\\mjdeqn{latex}{ascii}} macro, one can add \sQuote{displayed equations} (as in \LaTeX's \code{displaymath} environment). 21 | 22 | Single argument versions of these macros, \code{\\mjseqn{latexascii}} and \code{\\mjsdeqn{latexascii}}, are also available. For the relatively rare case that one must specify different \LaTeX commands for the PDF and HTML pages, there are also triple argument versions of these macros, namely \code{\\mjteqn{pdflatex}{htmllatex}{ascii}} and \code{\\mjtdeqn{pdflatex}{htmllatex}{ascii}}. 23 | } 24 | \details{ 25 | The Javascript code for MathJax is contained in this package. If a user viewing a help page has \pkg{mathjaxr} installed, it will be retrieved from there, otherwise it will be retrieved from the CDN site \url{https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js}. To force use of the CDN site, the user can set the environment variable \env{MATHJAXR_USECDN} to any non-blank value (e.g., \code{Sys.setenv(MATHJAXR_USECDN=TRUE)}). The URL for a diferent CDN can be specified via the environment variable \env{MATHJAXR_CDN}. 26 | } 27 | \section{Notes/Issues}{ 28 | \itemize{ 29 | \item Care must be taken when using the less-than and greater-than symbols in equations as these might get interpreted by the browser as HTML tags. See \href{https://docs.mathjax.org/en/latest/input/tex/html.html}{here} for further details. Adding space around these symbols should solve this problem (e.g., instead of writing \code{\\mjseqn{i GitHub release version (branch) powered-by NumFocus 3 | 4 | ## Beautiful math in all browsers 5 | 6 | MathJax is an open-source JavaScript display engine for LaTeX, MathML, 7 | and AsciiMath notation that works in all modern browsers. It was 8 | designed with the goal of consolidating the recent advances in web 9 | technologies into a single, definitive, math-on-the-web platform 10 | supporting the major browsers and operating systems. It requires no 11 | setup on the part of the user (no plugins to download or software to 12 | install), so the page author can write web documents that include 13 | mathematics and be confident that users will be able to view it 14 | naturally and easily. Simply include MathJax and some mathematics in 15 | a web page, and MathJax does the rest. 16 | 17 | Some of the main features of MathJax include: 18 | 19 | - High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages 20 | 21 | - Supported in most browsers with no plug-ins, extra fonts, or special 22 | setup for the reader 23 | 24 | - Easy for authors, flexible for publishers, extensible for developers 25 | 26 | - Supports math accessibility, cut-and-paste interoperability, and other 27 | advanced functionality 28 | 29 | - Powerful API for integration with other web applications 30 | 31 | See for additional details about MathJax, 32 | and for the MathJax documentation. 33 | 34 | ## What's in this Repository 35 | 36 | This repository contains the source files for MathJax, which are 37 | written in TypeScript. These are compiled into JavaScript files and 38 | then combined into component files for use on the web. The component 39 | files are available from several [CDN services that host 40 | MathJax](https://docs.mathjax.org/en/latest/web/start.html#using-mathjax-from-a-content-delivery-network-cdn), 41 | and also from the [MathJax Component 42 | Repository](https://github.com/mathjax/MathJax). Node applications 43 | can use either the component files, or call the MathJax JavaScript 44 | files directly. 45 | 46 | ## Installation and Use 47 | 48 | ### Using MathJax in web browsers 49 | 50 | If you are loading MathJax from a CDN into a web page, there is no 51 | need to install anything. Simply use a `script` tag that loads 52 | MathJax from the CDN. E.g., 53 | 54 | ``` html 55 | 56 | ``` 57 | 58 | See the [MathJax 59 | documentation](https://docs.mathjax.org/en/latest/index.html#browser-components), 60 | the [MathJax Web Demos](https://github.com/mathjax/MathJax-demos-web), 61 | and the [MathJax Component 62 | Repository](https://github.com/mathjax/MathJax-demos-web) for more information. 63 | 64 | 65 | ### Using MathJax Components in node applications 66 | 67 | To use MathJax components in a node application, install the `mathjax` package: 68 | 69 | ``` bash 70 | npm install mathjax@3 71 | ``` 72 | 73 | (we are still making updates to version 2, so you should include `@3` 74 | since the latest chronological version may not be version 3). 75 | 76 | Then require `mathjax` within your application: 77 | 78 | ``` javascript 79 | require('mathjax').init({ ... }).then((MathJax) => { ... }); 80 | ``` 81 | 82 | where the first `{ ... }` is a MathJax configuration, and the second 83 | `{ ... }` is the code to run after MathJax has been loaded. E.g. 84 | 85 | ``` javascript 86 | require('mathjax').init({ 87 | loader: {load: ['input/tex', 'output/svg']} 88 | }).then((MathJax) => { 89 | const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true}); 90 | console.log(MathJax.startup.adaptor.outerHTML(svg)); 91 | }).catch((err) => console.log(err.message)); 92 | ``` 93 | 94 | **Note:** this technique is for node-based application only, not for 95 | browser applications. This method sets up an alternative DOM 96 | implementation, which you don't need in the browser, and tells MathJax 97 | to use node's `require()` command to load external modules. This 98 | setup will not work properly in the browser, even if you webpack it or 99 | bundle it in other ways. 100 | 101 | See the 102 | [documentation](https://docs.mathjax.org/en/latest/index.html#server-nodejs) 103 | and the [MathJax Node 104 | Repository](https://github.com/mathjax/MathJax-demos-node) for more details. 105 | 106 | 107 | ### Using MathJax modules directly in node applications 108 | 109 | You can use the MathJax JavaScript files (as opposed to MathJax 110 | components) directly in node applications. This gives you the 111 | greatest flexibility, but requires more coding. To use this approach, 112 | install the `mathjax-full` package: 113 | 114 | npm install mathjax-full 115 | 116 | This will provide the following directories: 117 | 118 | node_modules/ 119 | mathjax-full/ 120 | ts/ the MathJax source TypeScript files 121 | js/ the compiled JavaScript files 122 | components/ the component build tools and control files 123 | es5/ the packages component files 124 | 125 | You can use the components and JavaScript files directly in your node 126 | applications (see the [MathJax node 127 | demos](https://github.com/mathjax/MathJax-demos-node) for examples). 128 | 129 | If you want to work from the GitHub repository directly, then do the following: 130 | 131 | ``` bash 132 | git clone https://github.com/mathjax/MathJax-src.git mathjax-src 133 | cd mathjax-src 134 | npm run --silent compile 135 | npm run --silent make-components 136 | ``` 137 | 138 | in order to compile the JavaScript files from the TypeScript source, 139 | and build the component files from the JavaScript files. 140 | 141 | ## Code Contributions 142 | 143 | If you are interested in contributing code to MathJax, please see the 144 | [documentation for contributors](CONTRIBUTING.md) for details on how 145 | to do this, and for the policies for making pull requests. In 146 | particular, please be careful that you are working from the proper 147 | branch in the git repository, or you may be asked to rebase your 148 | changes when you make a pull request. 149 | 150 | ## MathJax Community 151 | 152 | The main MathJax website is , and it includes 153 | announcements and other important information. A [MathJax user 154 | forum](http://groups.google.com/group/mathjax-users) for asking 155 | questions and getting assistance is hosted at Google, and the [MathJax 156 | bug tracker](https://github.com/mathjax/MathJax/issues) is hosted 157 | at GitHub. 158 | 159 | Before reporting a bug, please check that it has not already been 160 | reported. Also, please use the bug tracker (rather than the help 161 | forum) for reporting bugs, and use the user's forum (rather than the 162 | bug tracker) for questions about how to use MathJax. 163 | 164 | ## MathJax Resources 165 | 166 | * [MathJax Documentation](https://docs.mathjax.org) 167 | * [MathJax Components](https://github.com/mathjax/MathJax) 168 | * [MathJax Source Code](https://github.com/mathjax/MathJax-src) 169 | * [MathJax Web Examples](https://github.com/mathjax/MathJax-demos-web) 170 | * [MathJax Node Examples](https://github.com/mathjax/MathJax-demos-node) 171 | * [MathJax Bug Tracker](https://github.com/mathjax/MathJax/issues) 172 | * [MathJax Users' Group](http://groups.google.com/group/mathjax-users) 173 | 174 | -------------------------------------------------------------------------------- /src/mathjax/es5/a11y/assistive-mml.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 5); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | var __extends = (this && this.__extends) || (function () { 94 | var extendStatics = function (d, b) { 95 | extendStatics = Object.setPrototypeOf || 96 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 97 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 98 | return extendStatics(d, b); 99 | }; 100 | return function (d, b) { 101 | extendStatics(d, b); 102 | function __() { this.constructor = d; } 103 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 104 | }; 105 | })(); 106 | var __assign = (this && this.__assign) || function () { 107 | __assign = Object.assign || function(t) { 108 | for (var s, i = 1, n = arguments.length; i < n; i++) { 109 | s = arguments[i]; 110 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) 111 | t[p] = s[p]; 112 | } 113 | return t; 114 | }; 115 | return __assign.apply(this, arguments); 116 | }; 117 | var __read = (this && this.__read) || function (o, n) { 118 | var m = typeof Symbol === "function" && o[Symbol.iterator]; 119 | if (!m) return o; 120 | var i = m.call(o), r, ar = [], e; 121 | try { 122 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); 123 | } 124 | catch (error) { e = { error: error }; } 125 | finally { 126 | try { 127 | if (r && !r.done && (m = i["return"])) m.call(i); 128 | } 129 | finally { if (e) throw e.error; } 130 | } 131 | return ar; 132 | }; 133 | var __spread = (this && this.__spread) || function () { 134 | for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); 135 | return ar; 136 | }; 137 | var __values = (this && this.__values) || function(o) { 138 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; 139 | if (m) return m.call(o); 140 | if (o && typeof o.length === "number") return { 141 | next: function () { 142 | if (o && i >= o.length) o = void 0; 143 | return { value: o && o[i++], done: !o }; 144 | } 145 | }; 146 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); 147 | }; 148 | Object.defineProperty(exports, "__esModule", { value: true }); 149 | exports.AssistiveMmlHandler = exports.AssistiveMmlMathDocumentMixin = exports.AssistiveMmlMathItemMixin = exports.LimitedMmlVisitor = void 0; 150 | var MathItem_js_1 = __webpack_require__(2); 151 | var SerializedMmlVisitor_js_1 = __webpack_require__(3); 152 | var Options_js_1 = __webpack_require__(4); 153 | var LimitedMmlVisitor = (function (_super) { 154 | __extends(LimitedMmlVisitor, _super); 155 | function LimitedMmlVisitor() { 156 | return _super !== null && _super.apply(this, arguments) || this; 157 | } 158 | LimitedMmlVisitor.prototype.getAttributes = function (node) { 159 | return _super.prototype.getAttributes.call(this, node).replace(/ ?id=".*?"/, ''); 160 | }; 161 | return LimitedMmlVisitor; 162 | }(SerializedMmlVisitor_js_1.SerializedMmlVisitor)); 163 | exports.LimitedMmlVisitor = LimitedMmlVisitor; 164 | MathItem_js_1.newState('ASSISTIVEMML', 153); 165 | function AssistiveMmlMathItemMixin(BaseMathItem) { 166 | return (function (_super) { 167 | __extends(class_1, _super); 168 | function class_1() { 169 | return _super !== null && _super.apply(this, arguments) || this; 170 | } 171 | class_1.prototype.assistiveMml = function (document, force) { 172 | if (force === void 0) { force = false; } 173 | if (this.state() >= MathItem_js_1.STATE.ASSISTIVEMML) 174 | return; 175 | if (!this.isEscaped && (document.options.enableAssistiveMml || force)) { 176 | var adaptor = document.adaptor; 177 | var mml = document.toMML(this.root).replace(/\n */g, '').replace(//g, ''); 178 | var mmlNodes = adaptor.firstChild(adaptor.body(adaptor.parse(mml, 'text/html'))); 179 | var node = adaptor.node('mjx-assistive-mml', { 180 | role: 'presentation', unselectable: 'on', display: (this.display ? 'block' : 'inline') 181 | }, [mmlNodes]); 182 | adaptor.setAttribute(this.typesetRoot, 'role', 'presentation'); 183 | adaptor.setAttribute(adaptor.firstChild(this.typesetRoot), 'aria-hidden', 'true'); 184 | adaptor.setStyle(this.typesetRoot, 'position', 'relative'); 185 | adaptor.append(this.typesetRoot, node); 186 | } 187 | this.state(MathItem_js_1.STATE.ASSISTIVEMML); 188 | }; 189 | return class_1; 190 | }(BaseMathItem)); 191 | } 192 | exports.AssistiveMmlMathItemMixin = AssistiveMmlMathItemMixin; 193 | function AssistiveMmlMathDocumentMixin(BaseDocument) { 194 | var _a; 195 | return _a = (function (_super) { 196 | __extends(BaseClass, _super); 197 | function BaseClass() { 198 | var args = []; 199 | for (var _i = 0; _i < arguments.length; _i++) { 200 | args[_i] = arguments[_i]; 201 | } 202 | var _this = _super.apply(this, __spread(args)) || this; 203 | var CLASS = _this.constructor; 204 | var ProcessBits = CLASS.ProcessBits; 205 | if (!ProcessBits.has('assistive-mml')) { 206 | ProcessBits.allocate('assistive-mml'); 207 | } 208 | _this.visitor = new LimitedMmlVisitor(_this.mmlFactory); 209 | _this.options.MathItem = 210 | AssistiveMmlMathItemMixin(_this.options.MathItem); 211 | if ('addStyles' in _this) { 212 | _this.addStyles(CLASS.assistiveStyles); 213 | } 214 | return _this; 215 | } 216 | BaseClass.prototype.toMML = function (node) { 217 | return this.visitor.visitTree(node); 218 | }; 219 | BaseClass.prototype.assistiveMml = function () { 220 | var e_1, _a; 221 | if (!this.processed.isSet('assistive-mml')) { 222 | try { 223 | for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { 224 | var math = _c.value; 225 | math.assistiveMml(this); 226 | } 227 | } 228 | catch (e_1_1) { e_1 = { error: e_1_1 }; } 229 | finally { 230 | try { 231 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b); 232 | } 233 | finally { if (e_1) throw e_1.error; } 234 | } 235 | this.processed.set('assistive-mml'); 236 | } 237 | return this; 238 | }; 239 | BaseClass.prototype.state = function (state, restore) { 240 | if (restore === void 0) { restore = false; } 241 | _super.prototype.state.call(this, state, restore); 242 | if (state < MathItem_js_1.STATE.ASSISTIVEMML) { 243 | this.processed.clear('assistive-mml'); 244 | } 245 | return this; 246 | }; 247 | return BaseClass; 248 | }(BaseDocument)), 249 | _a.OPTIONS = __assign(__assign({}, BaseDocument.OPTIONS), { enableAssistiveMml: true, renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { assistiveMml: [MathItem_js_1.STATE.ASSISTIVEMML] })) }), 250 | _a.assistiveStyles = { 251 | 'mjx-assistive-mml': { 252 | position: 'absolute !important', 253 | top: '0px', left: '0px', 254 | clip: 'rect(1px, 1px, 1px, 1px)', 255 | padding: '1px 0px 0px 0px !important', 256 | border: '0px !important', 257 | display: 'block !important', 258 | width: 'auto !important', 259 | overflow: 'hidden !important', 260 | '-webkit-touch-callout': 'none', 261 | '-webkit-user-select': 'none', 262 | '-khtml-user-select': 'none', 263 | '-moz-user-select': 'none', 264 | '-ms-user-select': 'none', 265 | 'user-select': 'none' 266 | }, 267 | 'mjx-assistive-mml[display="block"]': { 268 | width: '100% !important' 269 | } 270 | }, 271 | _a; 272 | } 273 | exports.AssistiveMmlMathDocumentMixin = AssistiveMmlMathDocumentMixin; 274 | function AssistiveMmlHandler(handler) { 275 | handler.documentClass = 276 | AssistiveMmlMathDocumentMixin(handler.documentClass); 277 | return handler; 278 | } 279 | exports.AssistiveMmlHandler = AssistiveMmlHandler; 280 | //# sourceMappingURL=assistive-mml.js.map 281 | 282 | /***/ }), 283 | /* 1 */ 284 | /***/ (function(module, exports, __webpack_require__) { 285 | 286 | "use strict"; 287 | 288 | 289 | Object.defineProperty(exports, '__esModule', { 290 | value: true 291 | }); 292 | exports.isObject = MathJax._.components.global.isObject; 293 | exports.combineConfig = MathJax._.components.global.combineConfig; 294 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 295 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 296 | exports.MathJax = MathJax._.components.global.MathJax; 297 | 298 | /***/ }), 299 | /* 2 */ 300 | /***/ (function(module, exports, __webpack_require__) { 301 | 302 | "use strict"; 303 | 304 | 305 | Object.defineProperty(exports, '__esModule', { 306 | value: true 307 | }); 308 | exports.protoItem = MathJax._.core.MathItem.protoItem; 309 | exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; 310 | exports.STATE = MathJax._.core.MathItem.STATE; 311 | exports.newState = MathJax._.core.MathItem.newState; 312 | 313 | /***/ }), 314 | /* 3 */ 315 | /***/ (function(module, exports, __webpack_require__) { 316 | 317 | "use strict"; 318 | 319 | 320 | Object.defineProperty(exports, '__esModule', { 321 | value: true 322 | }); 323 | exports.DATAMJX = MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX; 324 | exports.toEntity = MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity; 325 | exports.SerializedMmlVisitor = MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor; 326 | 327 | /***/ }), 328 | /* 4 */ 329 | /***/ (function(module, exports, __webpack_require__) { 330 | 331 | "use strict"; 332 | 333 | 334 | Object.defineProperty(exports, '__esModule', { 335 | value: true 336 | }); 337 | exports.APPEND = MathJax._.util.Options.APPEND; 338 | exports.REMOVE = MathJax._.util.Options.REMOVE; 339 | exports.Expandable = MathJax._.util.Options.Expandable; 340 | exports.expandable = MathJax._.util.Options.expandable; 341 | exports.makeArray = MathJax._.util.Options.makeArray; 342 | exports.keys = MathJax._.util.Options.keys; 343 | exports.copy = MathJax._.util.Options.copy; 344 | exports.insert = MathJax._.util.Options.insert; 345 | exports.defaultOptions = MathJax._.util.Options.defaultOptions; 346 | exports.userOptions = MathJax._.util.Options.userOptions; 347 | exports.selectOptions = MathJax._.util.Options.selectOptions; 348 | exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; 349 | exports.separateOptions = MathJax._.util.Options.separateOptions; 350 | 351 | /***/ }), 352 | /* 5 */ 353 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 354 | 355 | "use strict"; 356 | // ESM COMPAT FLAG 357 | __webpack_require__.r(__webpack_exports__); 358 | 359 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 360 | var global = __webpack_require__(1); 361 | 362 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/assistive-mml.js 363 | var assistive_mml = __webpack_require__(0); 364 | 365 | // CONCATENATED MODULE: ./lib/assistive-mml.js 366 | 367 | 368 | Object(global["combineWithMathJax"])({ 369 | _: { 370 | a11y: { 371 | "assistive-mml": assistive_mml 372 | } 373 | } 374 | }); 375 | // CONCATENATED MODULE: ./assistive-mml.js 376 | 377 | 378 | 379 | if (MathJax.startup) { 380 | MathJax.startup.extendHandler(function (handler) { 381 | return Object(assistive_mml["AssistiveMmlHandler"])(handler); 382 | }); 383 | } 384 | 385 | /***/ }) 386 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/action.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 6); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.ActionConfiguration = exports.ActionMethods = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var TexParser_js_1 = __webpack_require__(3); 113 | var SymbolMap_js_1 = __webpack_require__(4); 114 | var BaseMethods_js_1 = __webpack_require__(5); 115 | exports.ActionMethods = {}; 116 | exports.ActionMethods.Macro = BaseMethods_js_1.default.Macro; 117 | exports.ActionMethods.Toggle = function (parser, name) { 118 | var children = []; 119 | var arg; 120 | while ((arg = parser.GetArgument(name)) !== '\\endtoggle') { 121 | children.push(new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml()); 122 | } 123 | parser.Push(parser.create('node', 'maction', children, { actiontype: 'toggle' })); 124 | }; 125 | exports.ActionMethods.Mathtip = function (parser, name) { 126 | var arg = parser.ParseArg(name); 127 | var tip = parser.ParseArg(name); 128 | parser.Push(parser.create('node', 'maction', [arg, tip], { actiontype: 'tooltip' })); 129 | }; 130 | new SymbolMap_js_1.CommandMap('action-macros', { 131 | toggle: 'Toggle', 132 | mathtip: 'Mathtip', 133 | texttip: ['Macro', '\\mathtip{#1}{\\text{#2}}', 2] 134 | }, exports.ActionMethods); 135 | exports.ActionConfiguration = Configuration_js_1.Configuration.create('action', { handler: { macro: ['action-macros'] } }); 136 | //# sourceMappingURL=ActionConfiguration.js.map 137 | 138 | /***/ }), 139 | /* 2 */ 140 | /***/ (function(module, exports, __webpack_require__) { 141 | 142 | "use strict"; 143 | 144 | 145 | Object.defineProperty(exports, '__esModule', { 146 | value: true 147 | }); 148 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 149 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 150 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 151 | 152 | /***/ }), 153 | /* 3 */ 154 | /***/ (function(module, exports, __webpack_require__) { 155 | 156 | "use strict"; 157 | 158 | 159 | Object.defineProperty(exports, '__esModule', { 160 | value: true 161 | }); 162 | exports["default"] = MathJax._.input.tex.TexParser["default"]; 163 | 164 | /***/ }), 165 | /* 4 */ 166 | /***/ (function(module, exports, __webpack_require__) { 167 | 168 | "use strict"; 169 | 170 | 171 | Object.defineProperty(exports, '__esModule', { 172 | value: true 173 | }); 174 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 175 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 176 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 177 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 178 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 179 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 180 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 181 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 182 | 183 | /***/ }), 184 | /* 5 */ 185 | /***/ (function(module, exports, __webpack_require__) { 186 | 187 | "use strict"; 188 | 189 | 190 | Object.defineProperty(exports, '__esModule', { 191 | value: true 192 | }); 193 | exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; 194 | 195 | /***/ }), 196 | /* 6 */ 197 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 198 | 199 | "use strict"; 200 | // ESM COMPAT FLAG 201 | __webpack_require__.r(__webpack_exports__); 202 | 203 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 204 | var global = __webpack_require__(0); 205 | 206 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/action/ActionConfiguration.js 207 | var ActionConfiguration = __webpack_require__(1); 208 | 209 | // CONCATENATED MODULE: ./lib/action.js 210 | 211 | 212 | Object(global["combineWithMathJax"])({ 213 | _: { 214 | input: { 215 | tex: { 216 | action: { 217 | ActionConfiguration: ActionConfiguration 218 | } 219 | } 220 | } 221 | } 222 | }); 223 | // CONCATENATED MODULE: ./action.js 224 | 225 | 226 | /***/ }) 227 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/bbox.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 5); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.BboxConfiguration = exports.BboxMethods = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var SymbolMap_js_1 = __webpack_require__(3); 113 | var TexError_js_1 = __webpack_require__(4); 114 | exports.BboxMethods = {}; 115 | exports.BboxMethods.BBox = function (parser, name) { 116 | var bbox = parser.GetBrackets(name, ''); 117 | var math = parser.ParseArg(name); 118 | var parts = bbox.split(/,/); 119 | var def, background, style; 120 | for (var i = 0, m = parts.length; i < m; i++) { 121 | var part = parts[i].trim(); 122 | var match = part.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/); 123 | if (match) { 124 | if (def) { 125 | throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Padding', name); 126 | } 127 | var pad = BBoxPadding(match[1] + match[3]); 128 | if (pad) { 129 | def = { 130 | height: '+' + pad, 131 | depth: '+' + pad, 132 | lspace: pad, 133 | width: '+' + (2 * parseInt(match[1], 10)) + match[3] 134 | }; 135 | } 136 | } 137 | else if (part.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)) { 138 | if (background) { 139 | throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Background', name); 140 | } 141 | background = part; 142 | } 143 | else if (part.match(/^[-a-z]+:/i)) { 144 | if (style) { 145 | throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Style', name); 146 | } 147 | style = BBoxStyle(part); 148 | } 149 | else if (part !== '') { 150 | throw new TexError_js_1.default('InvalidBBoxProperty', '"%1" doesn\'t look like a color, a padding dimension, or a style', part); 151 | } 152 | } 153 | if (def) { 154 | math = parser.create('node', 'mpadded', [math], def); 155 | } 156 | if (background || style) { 157 | def = {}; 158 | if (background) { 159 | Object.assign(def, { mathbackground: background }); 160 | } 161 | if (style) { 162 | Object.assign(def, { style: style }); 163 | } 164 | math = parser.create('node', 'mstyle', [math], def); 165 | } 166 | parser.Push(math); 167 | }; 168 | var BBoxStyle = function (styles) { 169 | return styles; 170 | }; 171 | var BBoxPadding = function (pad) { 172 | return pad; 173 | }; 174 | new SymbolMap_js_1.CommandMap('bbox', { bbox: 'BBox' }, exports.BboxMethods); 175 | exports.BboxConfiguration = Configuration_js_1.Configuration.create('bbox', { handler: { macro: ['bbox'] } }); 176 | //# sourceMappingURL=BboxConfiguration.js.map 177 | 178 | /***/ }), 179 | /* 2 */ 180 | /***/ (function(module, exports, __webpack_require__) { 181 | 182 | "use strict"; 183 | 184 | 185 | Object.defineProperty(exports, '__esModule', { 186 | value: true 187 | }); 188 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 189 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 190 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 191 | 192 | /***/ }), 193 | /* 3 */ 194 | /***/ (function(module, exports, __webpack_require__) { 195 | 196 | "use strict"; 197 | 198 | 199 | Object.defineProperty(exports, '__esModule', { 200 | value: true 201 | }); 202 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 203 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 204 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 205 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 206 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 207 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 208 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 209 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 210 | 211 | /***/ }), 212 | /* 4 */ 213 | /***/ (function(module, exports, __webpack_require__) { 214 | 215 | "use strict"; 216 | 217 | 218 | Object.defineProperty(exports, '__esModule', { 219 | value: true 220 | }); 221 | exports["default"] = MathJax._.input.tex.TexError["default"]; 222 | 223 | /***/ }), 224 | /* 5 */ 225 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 226 | 227 | "use strict"; 228 | // ESM COMPAT FLAG 229 | __webpack_require__.r(__webpack_exports__); 230 | 231 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 232 | var global = __webpack_require__(0); 233 | 234 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bbox/BboxConfiguration.js 235 | var BboxConfiguration = __webpack_require__(1); 236 | 237 | // CONCATENATED MODULE: ./lib/bbox.js 238 | 239 | 240 | Object(global["combineWithMathJax"])({ 241 | _: { 242 | input: { 243 | tex: { 244 | bbox: { 245 | BboxConfiguration: BboxConfiguration 246 | } 247 | } 248 | } 249 | } 250 | }); 251 | // CONCATENATED MODULE: ./bbox.js 252 | 253 | 254 | /***/ }) 255 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/boldsymbol.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 7); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | var __values = (this && this.__values) || function(o) { 110 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; 111 | if (m) return m.call(o); 112 | if (o && typeof o.length === "number") return { 113 | next: function () { 114 | if (o && i >= o.length) o = void 0; 115 | return { value: o && o[i++], done: !o }; 116 | } 117 | }; 118 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); 119 | }; 120 | Object.defineProperty(exports, "__esModule", { value: true }); 121 | exports.BoldsymbolConfiguration = exports.rewriteBoldTokens = exports.createBoldToken = exports.BoldsymbolMethods = void 0; 122 | var Configuration_js_1 = __webpack_require__(2); 123 | var NodeUtil_js_1 = __webpack_require__(3); 124 | var TexConstants_js_1 = __webpack_require__(4); 125 | var SymbolMap_js_1 = __webpack_require__(5); 126 | var NodeFactory_js_1 = __webpack_require__(6); 127 | var BOLDVARIANT = {}; 128 | BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.NORMAL] = TexConstants_js_1.TexConstant.Variant.BOLD; 129 | BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.ITALIC] = TexConstants_js_1.TexConstant.Variant.BOLDITALIC; 130 | BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.FRAKTUR] = TexConstants_js_1.TexConstant.Variant.BOLDFRAKTUR; 131 | BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SCRIPT] = TexConstants_js_1.TexConstant.Variant.BOLDSCRIPT; 132 | BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SANSSERIF] = TexConstants_js_1.TexConstant.Variant.BOLDSANSSERIF; 133 | BOLDVARIANT['-tex-calligraphic'] = '-tex-bold-calligraphic'; 134 | BOLDVARIANT['-tex-oldstyle'] = '-tex-bold-oldstyle'; 135 | exports.BoldsymbolMethods = {}; 136 | exports.BoldsymbolMethods.Boldsymbol = function (parser, name) { 137 | var boldsymbol = parser.stack.env['boldsymbol']; 138 | parser.stack.env['boldsymbol'] = true; 139 | var mml = parser.ParseArg(name); 140 | parser.stack.env['boldsymbol'] = boldsymbol; 141 | parser.Push(mml); 142 | }; 143 | new SymbolMap_js_1.CommandMap('boldsymbol', { boldsymbol: 'Boldsymbol' }, exports.BoldsymbolMethods); 144 | function createBoldToken(factory, kind, def, text) { 145 | var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); 146 | if (kind !== 'mtext' && 147 | factory.configuration.parser.stack.env['boldsymbol']) { 148 | NodeUtil_js_1.default.setProperty(token, 'fixBold', true); 149 | factory.configuration.addNode('fixBold', token); 150 | } 151 | return token; 152 | } 153 | exports.createBoldToken = createBoldToken; 154 | function rewriteBoldTokens(arg) { 155 | var e_1, _a; 156 | try { 157 | for (var _b = __values(arg.data.getList('fixBold')), _c = _b.next(); !_c.done; _c = _b.next()) { 158 | var node = _c.value; 159 | if (NodeUtil_js_1.default.getProperty(node, 'fixBold')) { 160 | var variant = NodeUtil_js_1.default.getAttribute(node, 'mathvariant'); 161 | if (variant == null) { 162 | NodeUtil_js_1.default.setAttribute(node, 'mathvariant', TexConstants_js_1.TexConstant.Variant.BOLD); 163 | } 164 | else { 165 | NodeUtil_js_1.default.setAttribute(node, 'mathvariant', BOLDVARIANT[variant] || variant); 166 | } 167 | NodeUtil_js_1.default.removeProperties(node, 'fixBold'); 168 | } 169 | } 170 | } 171 | catch (e_1_1) { e_1 = { error: e_1_1 }; } 172 | finally { 173 | try { 174 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b); 175 | } 176 | finally { if (e_1) throw e_1.error; } 177 | } 178 | } 179 | exports.rewriteBoldTokens = rewriteBoldTokens; 180 | exports.BoldsymbolConfiguration = Configuration_js_1.Configuration.create('boldsymbol', { 181 | handler: { macro: ['boldsymbol'] }, 182 | nodes: { 'token': createBoldToken }, 183 | postprocessors: [rewriteBoldTokens] 184 | }); 185 | //# sourceMappingURL=BoldsymbolConfiguration.js.map 186 | 187 | /***/ }), 188 | /* 2 */ 189 | /***/ (function(module, exports, __webpack_require__) { 190 | 191 | "use strict"; 192 | 193 | 194 | Object.defineProperty(exports, '__esModule', { 195 | value: true 196 | }); 197 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 198 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 199 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 200 | 201 | /***/ }), 202 | /* 3 */ 203 | /***/ (function(module, exports, __webpack_require__) { 204 | 205 | "use strict"; 206 | 207 | 208 | Object.defineProperty(exports, '__esModule', { 209 | value: true 210 | }); 211 | exports["default"] = MathJax._.input.tex.NodeUtil["default"]; 212 | 213 | /***/ }), 214 | /* 4 */ 215 | /***/ (function(module, exports, __webpack_require__) { 216 | 217 | "use strict"; 218 | 219 | 220 | Object.defineProperty(exports, '__esModule', { 221 | value: true 222 | }); 223 | exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; 224 | 225 | /***/ }), 226 | /* 5 */ 227 | /***/ (function(module, exports, __webpack_require__) { 228 | 229 | "use strict"; 230 | 231 | 232 | Object.defineProperty(exports, '__esModule', { 233 | value: true 234 | }); 235 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 236 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 237 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 238 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 239 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 240 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 241 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 242 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 243 | 244 | /***/ }), 245 | /* 6 */ 246 | /***/ (function(module, exports, __webpack_require__) { 247 | 248 | "use strict"; 249 | 250 | 251 | Object.defineProperty(exports, '__esModule', { 252 | value: true 253 | }); 254 | exports.NodeFactory = MathJax._.input.tex.NodeFactory.NodeFactory; 255 | 256 | /***/ }), 257 | /* 7 */ 258 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 259 | 260 | "use strict"; 261 | // ESM COMPAT FLAG 262 | __webpack_require__.r(__webpack_exports__); 263 | 264 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 265 | var global = __webpack_require__(0); 266 | 267 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/boldsymbol/BoldsymbolConfiguration.js 268 | var BoldsymbolConfiguration = __webpack_require__(1); 269 | 270 | // CONCATENATED MODULE: ./lib/boldsymbol.js 271 | 272 | 273 | Object(global["combineWithMathJax"])({ 274 | _: { 275 | input: { 276 | tex: { 277 | boldsymbol: { 278 | BoldsymbolConfiguration: BoldsymbolConfiguration 279 | } 280 | } 281 | } 282 | } 283 | }); 284 | // CONCATENATED MODULE: ./boldsymbol.js 285 | 286 | 287 | /***/ }) 288 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/cancel.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 7); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.CancelConfiguration = exports.CancelMethods = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var TexConstants_js_1 = __webpack_require__(3); 113 | var SymbolMap_js_1 = __webpack_require__(4); 114 | var ParseUtil_js_1 = __webpack_require__(5); 115 | var EncloseConfiguration_js_1 = __webpack_require__(6); 116 | exports.CancelMethods = {}; 117 | exports.CancelMethods.Cancel = function (parser, name, notation) { 118 | var attr = parser.GetBrackets(name, ''); 119 | var math = parser.ParseArg(name); 120 | var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); 121 | def['notation'] = notation; 122 | parser.Push(parser.create('node', 'menclose', [math], def)); 123 | }; 124 | exports.CancelMethods.CancelTo = function (parser, name) { 125 | var attr = parser.GetBrackets(name, ''); 126 | var value = parser.ParseArg(name); 127 | var math = parser.ParseArg(name); 128 | var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); 129 | def['notation'] = [TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE, 130 | TexConstants_js_1.TexConstant.Notation.UPDIAGONALARROW, 131 | TexConstants_js_1.TexConstant.Notation.NORTHEASTARROW].join(' '); 132 | value = parser.create('node', 'mpadded', [value], { depth: '-.1em', height: '+.1em', voffset: '.1em' }); 133 | parser.Push(parser.create('node', 'msup', [parser.create('node', 'menclose', [math], def), value])); 134 | }; 135 | new SymbolMap_js_1.CommandMap('cancel', { 136 | cancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE], 137 | bcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], 138 | xcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE + ' ' + 139 | TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], 140 | cancelto: 'CancelTo' 141 | }, exports.CancelMethods); 142 | exports.CancelConfiguration = Configuration_js_1.Configuration.create('cancel', { handler: { macro: ['cancel'] } }); 143 | //# sourceMappingURL=CancelConfiguration.js.map 144 | 145 | /***/ }), 146 | /* 2 */ 147 | /***/ (function(module, exports, __webpack_require__) { 148 | 149 | "use strict"; 150 | 151 | 152 | Object.defineProperty(exports, '__esModule', { 153 | value: true 154 | }); 155 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 156 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 157 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 158 | 159 | /***/ }), 160 | /* 3 */ 161 | /***/ (function(module, exports, __webpack_require__) { 162 | 163 | "use strict"; 164 | 165 | 166 | Object.defineProperty(exports, '__esModule', { 167 | value: true 168 | }); 169 | exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; 170 | 171 | /***/ }), 172 | /* 4 */ 173 | /***/ (function(module, exports, __webpack_require__) { 174 | 175 | "use strict"; 176 | 177 | 178 | Object.defineProperty(exports, '__esModule', { 179 | value: true 180 | }); 181 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 182 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 183 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 184 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 185 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 186 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 187 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 188 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 189 | 190 | /***/ }), 191 | /* 5 */ 192 | /***/ (function(module, exports, __webpack_require__) { 193 | 194 | "use strict"; 195 | 196 | 197 | Object.defineProperty(exports, '__esModule', { 198 | value: true 199 | }); 200 | exports["default"] = MathJax._.input.tex.ParseUtil["default"]; 201 | 202 | /***/ }), 203 | /* 6 */ 204 | /***/ (function(module, exports, __webpack_require__) { 205 | 206 | "use strict"; 207 | 208 | 209 | Object.defineProperty(exports, '__esModule', { 210 | value: true 211 | }); 212 | exports.ENCLOSE_OPTIONS = MathJax._.input.tex.enclose.EncloseConfiguration.ENCLOSE_OPTIONS; 213 | exports.EncloseMethods = MathJax._.input.tex.enclose.EncloseConfiguration.EncloseMethods; 214 | exports.EncloseConfiguration = MathJax._.input.tex.enclose.EncloseConfiguration.EncloseConfiguration; 215 | 216 | /***/ }), 217 | /* 7 */ 218 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 219 | 220 | "use strict"; 221 | // ESM COMPAT FLAG 222 | __webpack_require__.r(__webpack_exports__); 223 | 224 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 225 | var global = __webpack_require__(0); 226 | 227 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/cancel/CancelConfiguration.js 228 | var CancelConfiguration = __webpack_require__(1); 229 | 230 | // CONCATENATED MODULE: ./lib/cancel.js 231 | 232 | 233 | Object(global["combineWithMathJax"])({ 234 | _: { 235 | input: { 236 | tex: { 237 | cancel: { 238 | CancelConfiguration: CancelConfiguration 239 | } 240 | } 241 | } 242 | } 243 | }); 244 | // CONCATENATED MODULE: ./cancel.js 245 | 246 | 247 | /***/ }) 248 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/colorv2.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 4); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.ColorConfiguration = exports.ColorV2Methods = void 0; 111 | var SymbolMap_js_1 = __webpack_require__(2); 112 | var Configuration_js_1 = __webpack_require__(3); 113 | exports.ColorV2Methods = { 114 | Color: function (parser, name) { 115 | var color = parser.GetArgument(name); 116 | var old = parser.stack.env['color']; 117 | parser.stack.env['color'] = color; 118 | var math = parser.ParseArg(name); 119 | if (old) { 120 | parser.stack.env['color'] = old; 121 | } 122 | else { 123 | delete parser.stack.env['color']; 124 | } 125 | var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); 126 | parser.Push(node); 127 | } 128 | }; 129 | new SymbolMap_js_1.CommandMap('colorv2', { color: 'Color' }, exports.ColorV2Methods); 130 | exports.ColorConfiguration = Configuration_js_1.Configuration.create('colorv2', { handler: { macro: ['colorv2'] } }); 131 | //# sourceMappingURL=ColorV2Configuration.js.map 132 | 133 | /***/ }), 134 | /* 2 */ 135 | /***/ (function(module, exports, __webpack_require__) { 136 | 137 | "use strict"; 138 | 139 | 140 | Object.defineProperty(exports, '__esModule', { 141 | value: true 142 | }); 143 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 144 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 145 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 146 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 147 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 148 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 149 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 150 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 151 | 152 | /***/ }), 153 | /* 3 */ 154 | /***/ (function(module, exports, __webpack_require__) { 155 | 156 | "use strict"; 157 | 158 | 159 | Object.defineProperty(exports, '__esModule', { 160 | value: true 161 | }); 162 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 163 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 164 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 165 | 166 | /***/ }), 167 | /* 4 */ 168 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 169 | 170 | "use strict"; 171 | // ESM COMPAT FLAG 172 | __webpack_require__.r(__webpack_exports__); 173 | 174 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 175 | var global = __webpack_require__(0); 176 | 177 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/colorv2/ColorV2Configuration.js 178 | var ColorV2Configuration = __webpack_require__(1); 179 | 180 | // CONCATENATED MODULE: ./lib/colorv2.js 181 | 182 | 183 | Object(global["combineWithMathJax"])({ 184 | _: { 185 | input: { 186 | tex: { 187 | colorv2: { 188 | ColorV2Configuration: ColorV2Configuration 189 | } 190 | } 191 | } 192 | } 193 | }); 194 | // CONCATENATED MODULE: ../rename.js 195 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 196 | 197 | // 198 | // Look for a package name in the package list and change it to a new name 199 | // and rename tex options for it, if there are any. 200 | // 201 | 202 | function rename(oname, nname, options) { 203 | var tex = MathJax.config.tex; 204 | 205 | if (tex && tex.packages) { 206 | var packages = tex.packages; 207 | var n = packages.indexOf(oname); 208 | if (n >= 0) packages[n] = nname; 209 | 210 | if (options && tex[oname]) { 211 | Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); 212 | delete tex[oname]; 213 | } 214 | } 215 | } 216 | // CONCATENATED MODULE: ./colorv2.js 217 | 218 | 219 | rename('colorV2', 'colorv2', false); 220 | 221 | /***/ }) 222 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/configmacros.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 7); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | var __values = (this && this.__values) || function(o) { 110 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; 111 | if (m) return m.call(o); 112 | if (o && typeof o.length === "number") return { 113 | next: function () { 114 | if (o && i >= o.length) o = void 0; 115 | return { value: o && o[i++], done: !o }; 116 | } 117 | }; 118 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); 119 | }; 120 | Object.defineProperty(exports, "__esModule", { value: true }); 121 | exports.ConfigMacrosConfiguration = void 0; 122 | var Configuration_js_1 = __webpack_require__(2); 123 | var Options_js_1 = __webpack_require__(3); 124 | var SymbolMap_js_1 = __webpack_require__(4); 125 | var Symbol_js_1 = __webpack_require__(5); 126 | var NewcommandMethods_js_1 = __webpack_require__(6); 127 | var MACROSMAP = 'configmacros-map'; 128 | function configmacrosInit(config) { 129 | new SymbolMap_js_1.CommandMap(MACROSMAP, {}, {}); 130 | config.append(Configuration_js_1.Configuration.local({ handler: { macro: [MACROSMAP] }, priority: 3 })); 131 | } 132 | function configmacrosConfig(_config, jax) { 133 | var e_1, _a; 134 | var macrosMap = jax.parseOptions.handlers.retrieve(MACROSMAP); 135 | var macros = jax.parseOptions.options.macros; 136 | try { 137 | for (var _b = __values(Object.keys(macros)), _c = _b.next(); !_c.done; _c = _b.next()) { 138 | var cs = _c.value; 139 | var def = (typeof macros[cs] === 'string' ? [macros[cs]] : macros[cs]); 140 | var macro = Array.isArray(def[2]) ? 141 | new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.MacroWithTemplate, def.slice(0, 2).concat(def[2])) : 142 | new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.Macro, def); 143 | macrosMap.add(cs, macro); 144 | } 145 | } 146 | catch (e_1_1) { e_1 = { error: e_1_1 }; } 147 | finally { 148 | try { 149 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b); 150 | } 151 | finally { if (e_1) throw e_1.error; } 152 | } 153 | } 154 | exports.ConfigMacrosConfiguration = Configuration_js_1.Configuration.create('configmacros', { 155 | init: configmacrosInit, 156 | config: configmacrosConfig, 157 | options: { macros: Options_js_1.expandable({}) } 158 | }); 159 | //# sourceMappingURL=ConfigMacrosConfiguration.js.map 160 | 161 | /***/ }), 162 | /* 2 */ 163 | /***/ (function(module, exports, __webpack_require__) { 164 | 165 | "use strict"; 166 | 167 | 168 | Object.defineProperty(exports, '__esModule', { 169 | value: true 170 | }); 171 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 172 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 173 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 174 | 175 | /***/ }), 176 | /* 3 */ 177 | /***/ (function(module, exports, __webpack_require__) { 178 | 179 | "use strict"; 180 | 181 | 182 | Object.defineProperty(exports, '__esModule', { 183 | value: true 184 | }); 185 | exports.APPEND = MathJax._.util.Options.APPEND; 186 | exports.REMOVE = MathJax._.util.Options.REMOVE; 187 | exports.Expandable = MathJax._.util.Options.Expandable; 188 | exports.expandable = MathJax._.util.Options.expandable; 189 | exports.makeArray = MathJax._.util.Options.makeArray; 190 | exports.keys = MathJax._.util.Options.keys; 191 | exports.copy = MathJax._.util.Options.copy; 192 | exports.insert = MathJax._.util.Options.insert; 193 | exports.defaultOptions = MathJax._.util.Options.defaultOptions; 194 | exports.userOptions = MathJax._.util.Options.userOptions; 195 | exports.selectOptions = MathJax._.util.Options.selectOptions; 196 | exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; 197 | exports.separateOptions = MathJax._.util.Options.separateOptions; 198 | 199 | /***/ }), 200 | /* 4 */ 201 | /***/ (function(module, exports, __webpack_require__) { 202 | 203 | "use strict"; 204 | 205 | 206 | Object.defineProperty(exports, '__esModule', { 207 | value: true 208 | }); 209 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 210 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 211 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 212 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 213 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 214 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 215 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 216 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 217 | 218 | /***/ }), 219 | /* 5 */ 220 | /***/ (function(module, exports, __webpack_require__) { 221 | 222 | "use strict"; 223 | 224 | 225 | Object.defineProperty(exports, '__esModule', { 226 | value: true 227 | }); 228 | exports.Symbol = MathJax._.input.tex.Symbol.Symbol; 229 | exports.Macro = MathJax._.input.tex.Symbol.Macro; 230 | 231 | /***/ }), 232 | /* 6 */ 233 | /***/ (function(module, exports, __webpack_require__) { 234 | 235 | "use strict"; 236 | 237 | 238 | Object.defineProperty(exports, '__esModule', { 239 | value: true 240 | }); 241 | exports["default"] = MathJax._.input.tex.newcommand.NewcommandMethods["default"]; 242 | 243 | /***/ }), 244 | /* 7 */ 245 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 246 | 247 | "use strict"; 248 | // ESM COMPAT FLAG 249 | __webpack_require__.r(__webpack_exports__); 250 | 251 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 252 | var global = __webpack_require__(0); 253 | 254 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/configmacros/ConfigMacrosConfiguration.js 255 | var ConfigMacrosConfiguration = __webpack_require__(1); 256 | 257 | // CONCATENATED MODULE: ./lib/configmacros.js 258 | 259 | 260 | Object(global["combineWithMathJax"])({ 261 | _: { 262 | input: { 263 | tex: { 264 | configmacros: { 265 | ConfigMacrosConfiguration: ConfigMacrosConfiguration 266 | } 267 | } 268 | } 269 | } 270 | }); 271 | // CONCATENATED MODULE: ../rename.js 272 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 273 | 274 | // 275 | // Look for a package name in the package list and change it to a new name 276 | // and rename tex options for it, if there are any. 277 | // 278 | 279 | function rename(oname, nname, options) { 280 | var tex = MathJax.config.tex; 281 | 282 | if (tex && tex.packages) { 283 | var packages = tex.packages; 284 | var n = packages.indexOf(oname); 285 | if (n >= 0) packages[n] = nname; 286 | 287 | if (options && tex[oname]) { 288 | Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); 289 | delete tex[oname]; 290 | } 291 | } 292 | } 293 | // CONCATENATED MODULE: ./configmacros.js 294 | 295 | 296 | rename('configMacros', 'configmacros', false); 297 | 298 | /***/ }) 299 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/enclose.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 5); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.EncloseConfiguration = exports.EncloseMethods = exports.ENCLOSE_OPTIONS = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var SymbolMap_js_1 = __webpack_require__(3); 113 | var ParseUtil_js_1 = __webpack_require__(4); 114 | exports.ENCLOSE_OPTIONS = { 115 | 'data-arrowhead': 1, 116 | color: 1, 117 | mathcolor: 1, 118 | background: 1, 119 | mathbackground: 1, 120 | 'data-padding': 1, 121 | 'data-thickness': 1 122 | }; 123 | exports.EncloseMethods = {}; 124 | exports.EncloseMethods.Enclose = function (parser, name) { 125 | var notation = parser.GetArgument(name).replace(/,/g, ' '); 126 | var attr = parser.GetBrackets(name, ''); 127 | var math = parser.ParseArg(name); 128 | var def = ParseUtil_js_1.default.keyvalOptions(attr, exports.ENCLOSE_OPTIONS); 129 | def.notation = notation; 130 | parser.Push(parser.create('node', 'menclose', [math], def)); 131 | }; 132 | new SymbolMap_js_1.CommandMap('enclose', { enclose: 'Enclose' }, exports.EncloseMethods); 133 | exports.EncloseConfiguration = Configuration_js_1.Configuration.create('enclose', { handler: { macro: ['enclose'] } }); 134 | //# sourceMappingURL=EncloseConfiguration.js.map 135 | 136 | /***/ }), 137 | /* 2 */ 138 | /***/ (function(module, exports, __webpack_require__) { 139 | 140 | "use strict"; 141 | 142 | 143 | Object.defineProperty(exports, '__esModule', { 144 | value: true 145 | }); 146 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 147 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 148 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 149 | 150 | /***/ }), 151 | /* 3 */ 152 | /***/ (function(module, exports, __webpack_require__) { 153 | 154 | "use strict"; 155 | 156 | 157 | Object.defineProperty(exports, '__esModule', { 158 | value: true 159 | }); 160 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 161 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 162 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 163 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 164 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 165 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 166 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 167 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 168 | 169 | /***/ }), 170 | /* 4 */ 171 | /***/ (function(module, exports, __webpack_require__) { 172 | 173 | "use strict"; 174 | 175 | 176 | Object.defineProperty(exports, '__esModule', { 177 | value: true 178 | }); 179 | exports["default"] = MathJax._.input.tex.ParseUtil["default"]; 180 | 181 | /***/ }), 182 | /* 5 */ 183 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 184 | 185 | "use strict"; 186 | // ESM COMPAT FLAG 187 | __webpack_require__.r(__webpack_exports__); 188 | 189 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 190 | var global = __webpack_require__(0); 191 | 192 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/enclose/EncloseConfiguration.js 193 | var EncloseConfiguration = __webpack_require__(1); 194 | 195 | // CONCATENATED MODULE: ./lib/enclose.js 196 | 197 | 198 | Object(global["combineWithMathJax"])({ 199 | _: { 200 | input: { 201 | tex: { 202 | enclose: { 203 | EncloseConfiguration: EncloseConfiguration 204 | } 205 | } 206 | } 207 | } 208 | }); 209 | // CONCATENATED MODULE: ./enclose.js 210 | 211 | 212 | /***/ }) 213 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/extpfeil.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 8); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.ExtpfeilConfiguration = exports.ExtpfeilMethods = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var SymbolMap_js_1 = __webpack_require__(3); 113 | var AmsMethods_js_1 = __webpack_require__(4); 114 | var NewcommandUtil_js_1 = __webpack_require__(5); 115 | var NewcommandConfiguration_js_1 = __webpack_require__(6); 116 | var TexError_js_1 = __webpack_require__(7); 117 | exports.ExtpfeilMethods = {}; 118 | exports.ExtpfeilMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; 119 | exports.ExtpfeilMethods.NewExtArrow = function (parser, name) { 120 | var cs = parser.GetArgument(name); 121 | var space = parser.GetArgument(name); 122 | var chr = parser.GetArgument(name); 123 | if (!cs.match(/^\\([a-z]+|.)$/i)) { 124 | throw new TexError_js_1.default('NewextarrowArg1', 'First argument to %1 must be a control sequence name', name); 125 | } 126 | if (!space.match(/^(\d+),(\d+)$/)) { 127 | throw new TexError_js_1.default('NewextarrowArg2', 'Second argument to %1 must be two integers separated by a comma', name); 128 | } 129 | if (!chr.match(/^(\d+|0x[0-9A-F]+)$/i)) { 130 | throw new TexError_js_1.default('NewextarrowArg3', 'Third argument to %1 must be a unicode character number', name); 131 | } 132 | cs = cs.substr(1); 133 | var spaces = space.split(','); 134 | NewcommandUtil_js_1.default.addMacro(parser, cs, exports.ExtpfeilMethods.xArrow, [parseInt(chr), parseInt(spaces[0]), parseInt(spaces[1])]); 135 | }; 136 | new SymbolMap_js_1.CommandMap('extpfeil', { 137 | xtwoheadrightarrow: ['xArrow', 0x21A0, 12, 16], 138 | xtwoheadleftarrow: ['xArrow', 0x219E, 17, 13], 139 | xmapsto: ['xArrow', 0x21A6, 6, 7], 140 | xlongequal: ['xArrow', 0x003D, 7, 7], 141 | xtofrom: ['xArrow', 0x21C4, 12, 12], 142 | Newextarrow: 'NewExtArrow' 143 | }, exports.ExtpfeilMethods); 144 | var init = function (config) { 145 | NewcommandConfiguration_js_1.NewcommandConfiguration.init(config); 146 | }; 147 | exports.ExtpfeilConfiguration = Configuration_js_1.Configuration.create('extpfeil', { 148 | handler: { macro: ['extpfeil'] }, 149 | init: init 150 | }); 151 | //# sourceMappingURL=ExtpfeilConfiguration.js.map 152 | 153 | /***/ }), 154 | /* 2 */ 155 | /***/ (function(module, exports, __webpack_require__) { 156 | 157 | "use strict"; 158 | 159 | 160 | Object.defineProperty(exports, '__esModule', { 161 | value: true 162 | }); 163 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 164 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 165 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 166 | 167 | /***/ }), 168 | /* 3 */ 169 | /***/ (function(module, exports, __webpack_require__) { 170 | 171 | "use strict"; 172 | 173 | 174 | Object.defineProperty(exports, '__esModule', { 175 | value: true 176 | }); 177 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 178 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 179 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 180 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 181 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 182 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 183 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 184 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 185 | 186 | /***/ }), 187 | /* 4 */ 188 | /***/ (function(module, exports, __webpack_require__) { 189 | 190 | "use strict"; 191 | 192 | 193 | Object.defineProperty(exports, '__esModule', { 194 | value: true 195 | }); 196 | exports.AmsMethods = MathJax._.input.tex.ams.AmsMethods.AmsMethods; 197 | exports.NEW_OPS = MathJax._.input.tex.ams.AmsMethods.NEW_OPS; 198 | 199 | /***/ }), 200 | /* 5 */ 201 | /***/ (function(module, exports, __webpack_require__) { 202 | 203 | "use strict"; 204 | 205 | 206 | Object.defineProperty(exports, '__esModule', { 207 | value: true 208 | }); 209 | exports["default"] = MathJax._.input.tex.newcommand.NewcommandUtil["default"]; 210 | 211 | /***/ }), 212 | /* 6 */ 213 | /***/ (function(module, exports, __webpack_require__) { 214 | 215 | "use strict"; 216 | 217 | 218 | Object.defineProperty(exports, '__esModule', { 219 | value: true 220 | }); 221 | exports.NewcommandConfiguration = MathJax._.input.tex.newcommand.NewcommandConfiguration.NewcommandConfiguration; 222 | 223 | /***/ }), 224 | /* 7 */ 225 | /***/ (function(module, exports, __webpack_require__) { 226 | 227 | "use strict"; 228 | 229 | 230 | Object.defineProperty(exports, '__esModule', { 231 | value: true 232 | }); 233 | exports["default"] = MathJax._.input.tex.TexError["default"]; 234 | 235 | /***/ }), 236 | /* 8 */ 237 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 238 | 239 | "use strict"; 240 | // ESM COMPAT FLAG 241 | __webpack_require__.r(__webpack_exports__); 242 | 243 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 244 | var global = __webpack_require__(0); 245 | 246 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/extpfeil/ExtpfeilConfiguration.js 247 | var ExtpfeilConfiguration = __webpack_require__(1); 248 | 249 | // CONCATENATED MODULE: ./lib/extpfeil.js 250 | 251 | 252 | Object(global["combineWithMathJax"])({ 253 | _: { 254 | input: { 255 | tex: { 256 | extpfeil: { 257 | ExtpfeilConfiguration: ExtpfeilConfiguration 258 | } 259 | } 260 | } 261 | } 262 | }); 263 | // CONCATENATED MODULE: ./extpfeil.js 264 | 265 | 266 | /***/ }) 267 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/html.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 6); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | Object.defineProperty(exports, "__esModule", { value: true }); 94 | var NodeUtil_js_1 = __webpack_require__(5); 95 | var HtmlMethods = {}; 96 | HtmlMethods.Href = function (parser, name) { 97 | var url = parser.GetArgument(name); 98 | var arg = GetArgumentMML(parser, name); 99 | NodeUtil_js_1.default.setAttribute(arg, 'href', url); 100 | parser.Push(arg); 101 | }; 102 | HtmlMethods.Class = function (parser, name) { 103 | var CLASS = parser.GetArgument(name); 104 | var arg = GetArgumentMML(parser, name); 105 | var oldClass = NodeUtil_js_1.default.getAttribute(arg, 'class'); 106 | if (oldClass) { 107 | CLASS = oldClass + ' ' + CLASS; 108 | } 109 | NodeUtil_js_1.default.setAttribute(arg, 'class', CLASS); 110 | parser.Push(arg); 111 | }; 112 | HtmlMethods.Style = function (parser, name) { 113 | var style = parser.GetArgument(name); 114 | var arg = GetArgumentMML(parser, name); 115 | var oldStyle = NodeUtil_js_1.default.getAttribute(arg, 'style'); 116 | if (oldStyle) { 117 | if (style.charAt(style.length - 1) !== ';') { 118 | style += ';'; 119 | } 120 | style = oldStyle + ' ' + style; 121 | } 122 | NodeUtil_js_1.default.setAttribute(arg, 'style', style); 123 | parser.Push(arg); 124 | }; 125 | HtmlMethods.Id = function (parser, name) { 126 | var ID = parser.GetArgument(name); 127 | var arg = GetArgumentMML(parser, name); 128 | NodeUtil_js_1.default.setAttribute(arg, 'id', ID); 129 | parser.Push(arg); 130 | }; 131 | var GetArgumentMML = function (parser, name) { 132 | var arg = parser.ParseArg(name); 133 | if (!NodeUtil_js_1.default.isInferred(arg)) { 134 | return arg; 135 | } 136 | var children = NodeUtil_js_1.default.getChildren(arg); 137 | if (children.length === 1) { 138 | return children[0]; 139 | } 140 | var mrow = parser.create('node', 'mrow'); 141 | NodeUtil_js_1.default.copyChildren(arg, mrow); 142 | NodeUtil_js_1.default.copyAttributes(arg, mrow); 143 | return mrow; 144 | }; 145 | exports.default = HtmlMethods; 146 | //# sourceMappingURL=HtmlMethods.js.map 147 | 148 | /***/ }), 149 | /* 1 */ 150 | /***/ (function(module, exports, __webpack_require__) { 151 | 152 | "use strict"; 153 | 154 | 155 | Object.defineProperty(exports, '__esModule', { 156 | value: true 157 | }); 158 | exports.isObject = MathJax._.components.global.isObject; 159 | exports.combineConfig = MathJax._.components.global.combineConfig; 160 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 161 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 162 | exports.MathJax = MathJax._.components.global.MathJax; 163 | 164 | /***/ }), 165 | /* 2 */ 166 | /***/ (function(module, exports, __webpack_require__) { 167 | 168 | "use strict"; 169 | 170 | Object.defineProperty(exports, "__esModule", { value: true }); 171 | exports.HtmlConfiguration = void 0; 172 | var Configuration_js_1 = __webpack_require__(3); 173 | var SymbolMap_js_1 = __webpack_require__(4); 174 | var HtmlMethods_js_1 = __webpack_require__(0); 175 | new SymbolMap_js_1.CommandMap('html_macros', { 176 | href: 'Href', 177 | 'class': 'Class', 178 | style: 'Style', 179 | cssId: 'Id' 180 | }, HtmlMethods_js_1.default); 181 | exports.HtmlConfiguration = Configuration_js_1.Configuration.create('html', { handler: { macro: ['html_macros'] } }); 182 | //# sourceMappingURL=HtmlConfiguration.js.map 183 | 184 | /***/ }), 185 | /* 3 */ 186 | /***/ (function(module, exports, __webpack_require__) { 187 | 188 | "use strict"; 189 | 190 | 191 | Object.defineProperty(exports, '__esModule', { 192 | value: true 193 | }); 194 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 195 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 196 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 197 | 198 | /***/ }), 199 | /* 4 */ 200 | /***/ (function(module, exports, __webpack_require__) { 201 | 202 | "use strict"; 203 | 204 | 205 | Object.defineProperty(exports, '__esModule', { 206 | value: true 207 | }); 208 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 209 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 210 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 211 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 212 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 213 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 214 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 215 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 216 | 217 | /***/ }), 218 | /* 5 */ 219 | /***/ (function(module, exports, __webpack_require__) { 220 | 221 | "use strict"; 222 | 223 | 224 | Object.defineProperty(exports, '__esModule', { 225 | value: true 226 | }); 227 | exports["default"] = MathJax._.input.tex.NodeUtil["default"]; 228 | 229 | /***/ }), 230 | /* 6 */ 231 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 232 | 233 | "use strict"; 234 | // ESM COMPAT FLAG 235 | __webpack_require__.r(__webpack_exports__); 236 | 237 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 238 | var global = __webpack_require__(1); 239 | 240 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/html/HtmlConfiguration.js 241 | var HtmlConfiguration = __webpack_require__(2); 242 | 243 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/html/HtmlMethods.js 244 | var HtmlMethods = __webpack_require__(0); 245 | 246 | // CONCATENATED MODULE: ./lib/html.js 247 | 248 | 249 | 250 | Object(global["combineWithMathJax"])({ 251 | _: { 252 | input: { 253 | tex: { 254 | html: { 255 | HtmlConfiguration: HtmlConfiguration, 256 | HtmlMethods: HtmlMethods 257 | } 258 | } 259 | } 260 | } 261 | }); 262 | // CONCATENATED MODULE: ./html.js 263 | 264 | 265 | /***/ }) 266 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/noerrors.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 3); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.NoErrorsConfiguration = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | function noErrors(factory, message, _id, expr) { 113 | var mtext = factory.create('token', 'mtext', {}, expr.replace(/\n/g, ' ')); 114 | var error = factory.create('node', 'merror', [mtext], { 'data-mjx-error': message, title: message }); 115 | return error; 116 | } 117 | exports.NoErrorsConfiguration = Configuration_js_1.Configuration.create('noerrors', { nodes: { 'error': noErrors } }); 118 | //# sourceMappingURL=NoErrorsConfiguration.js.map 119 | 120 | /***/ }), 121 | /* 2 */ 122 | /***/ (function(module, exports, __webpack_require__) { 123 | 124 | "use strict"; 125 | 126 | 127 | Object.defineProperty(exports, '__esModule', { 128 | value: true 129 | }); 130 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 131 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 132 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 133 | 134 | /***/ }), 135 | /* 3 */ 136 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 137 | 138 | "use strict"; 139 | // ESM COMPAT FLAG 140 | __webpack_require__.r(__webpack_exports__); 141 | 142 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 143 | var global = __webpack_require__(0); 144 | 145 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/noerrors/NoErrorsConfiguration.js 146 | var NoErrorsConfiguration = __webpack_require__(1); 147 | 148 | // CONCATENATED MODULE: ./lib/noerrors.js 149 | 150 | 151 | Object(global["combineWithMathJax"])({ 152 | _: { 153 | input: { 154 | tex: { 155 | noerrors: { 156 | NoErrorsConfiguration: NoErrorsConfiguration 157 | } 158 | } 159 | } 160 | } 161 | }); 162 | // CONCATENATED MODULE: ./noerrors.js 163 | 164 | 165 | /***/ }) 166 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/noundefined.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 3); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | var __values = (this && this.__values) || function(o) { 110 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; 111 | if (m) return m.call(o); 112 | if (o && typeof o.length === "number") return { 113 | next: function () { 114 | if (o && i >= o.length) o = void 0; 115 | return { value: o && o[i++], done: !o }; 116 | } 117 | }; 118 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); 119 | }; 120 | Object.defineProperty(exports, "__esModule", { value: true }); 121 | exports.NoUndefinedConfiguration = void 0; 122 | var Configuration_js_1 = __webpack_require__(2); 123 | function noUndefined(parser, name) { 124 | var e_1, _a; 125 | var textNode = parser.create('text', '\\' + name); 126 | var options = parser.options.noundefined || {}; 127 | var def = {}; 128 | try { 129 | for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) { 130 | var id = _c.value; 131 | if (options[id]) { 132 | def['math' + id] = options[id]; 133 | } 134 | } 135 | } 136 | catch (e_1_1) { e_1 = { error: e_1_1 }; } 137 | finally { 138 | try { 139 | if (_c && !_c.done && (_a = _b.return)) _a.call(_b); 140 | } 141 | finally { if (e_1) throw e_1.error; } 142 | } 143 | parser.Push(parser.create('node', 'mtext', [], def, textNode)); 144 | } 145 | exports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', { 146 | fallback: { macro: noUndefined }, 147 | options: { 148 | noundefined: { 149 | color: 'red', 150 | background: '', 151 | size: '' 152 | } 153 | }, 154 | priority: 3 155 | }); 156 | //# sourceMappingURL=NoUndefinedConfiguration.js.map 157 | 158 | /***/ }), 159 | /* 2 */ 160 | /***/ (function(module, exports, __webpack_require__) { 161 | 162 | "use strict"; 163 | 164 | 165 | Object.defineProperty(exports, '__esModule', { 166 | value: true 167 | }); 168 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 169 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 170 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 171 | 172 | /***/ }), 173 | /* 3 */ 174 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 175 | 176 | "use strict"; 177 | // ESM COMPAT FLAG 178 | __webpack_require__.r(__webpack_exports__); 179 | 180 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 181 | var global = __webpack_require__(0); 182 | 183 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/noundefined/NoUndefinedConfiguration.js 184 | var NoUndefinedConfiguration = __webpack_require__(1); 185 | 186 | // CONCATENATED MODULE: ./lib/noundefined.js 187 | 188 | 189 | Object(global["combineWithMathJax"])({ 190 | _: { 191 | input: { 192 | tex: { 193 | noundefined: { 194 | NoUndefinedConfiguration: NoUndefinedConfiguration 195 | } 196 | } 197 | } 198 | } 199 | }); 200 | // CONCATENATED MODULE: ./noundefined.js 201 | 202 | 203 | /***/ }) 204 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/require.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 9); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | var __values = (this && this.__values) || function(o) { 110 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; 111 | if (m) return m.call(o); 112 | if (o && typeof o.length === "number") return { 113 | next: function () { 114 | if (o && i >= o.length) o = void 0; 115 | return { value: o && o[i++], done: !o }; 116 | } 117 | }; 118 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); 119 | }; 120 | var __read = (this && this.__read) || function (o, n) { 121 | var m = typeof Symbol === "function" && o[Symbol.iterator]; 122 | if (!m) return o; 123 | var i = m.call(o), r, ar = [], e; 124 | try { 125 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); 126 | } 127 | catch (error) { e = { error: error }; } 128 | finally { 129 | try { 130 | if (r && !r.done && (m = i["return"])) m.call(i); 131 | } 132 | finally { if (e) throw e.error; } 133 | } 134 | return ar; 135 | }; 136 | var __spread = (this && this.__spread) || function () { 137 | for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); 138 | return ar; 139 | }; 140 | Object.defineProperty(exports, "__esModule", { value: true }); 141 | exports.RequireConfiguration = exports.options = exports.RequireMethods = exports.RequireLoad = void 0; 142 | var Configuration_js_1 = __webpack_require__(2); 143 | var SymbolMap_js_1 = __webpack_require__(3); 144 | var TexError_js_1 = __webpack_require__(4); 145 | var global_js_1 = __webpack_require__(0); 146 | var package_js_1 = __webpack_require__(5); 147 | var loader_js_1 = __webpack_require__(6); 148 | var mathjax_js_1 = __webpack_require__(7); 149 | var Options_js_1 = __webpack_require__(8); 150 | var MJCONFIG = global_js_1.MathJax.config; 151 | function RegisterExtension(jax, name) { 152 | var _a; 153 | var require = jax.parseOptions.options.require; 154 | var required = jax.parseOptions.packageData.get('require').required; 155 | var extension = name.substr(require.prefix.length); 156 | if (required.indexOf(extension) < 0) { 157 | required.push(extension); 158 | RegisterDependencies(jax, loader_js_1.CONFIG.dependencies[name]); 159 | var handler = Configuration_js_1.ConfigurationHandler.get(extension); 160 | if (handler) { 161 | var options_1 = MJCONFIG[name] || {}; 162 | if (handler.options && Object.keys(handler.options).length === 1 && handler.options[extension]) { 163 | options_1 = (_a = {}, _a[extension] = options_1, _a); 164 | } 165 | jax.configuration.add(handler, jax, options_1); 166 | var configured = jax.parseOptions.packageData.get('require').configured; 167 | if (handler.preprocessors.length && !configured.has(extension)) { 168 | configured.set(extension, true); 169 | mathjax_js_1.mathjax.retryAfter(Promise.resolve()); 170 | } 171 | } 172 | } 173 | } 174 | function RegisterDependencies(jax, names) { 175 | var e_1, _a; 176 | if (names === void 0) { names = []; } 177 | var prefix = jax.parseOptions.options.require.prefix; 178 | try { 179 | for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { 180 | var name_1 = names_1_1.value; 181 | if (name_1.substr(0, prefix.length) === prefix) { 182 | RegisterExtension(jax, name_1); 183 | } 184 | } 185 | } 186 | catch (e_1_1) { e_1 = { error: e_1_1 }; } 187 | finally { 188 | try { 189 | if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); 190 | } 191 | finally { if (e_1) throw e_1.error; } 192 | } 193 | } 194 | function RequireLoad(parser, name) { 195 | var options = parser.options.require; 196 | var allow = options.allow; 197 | var extension = (name.substr(0, 1) === '[' ? '' : options.prefix) + name; 198 | var allowed = (allow.hasOwnProperty(extension) ? allow[extension] : 199 | allow.hasOwnProperty(name) ? allow[name] : options.defaultAllow); 200 | if (!allowed) { 201 | throw new TexError_js_1.default('BadRequire', 'Extension "%1" is now allowed to be loaded', extension); 202 | } 203 | if (package_js_1.Package.packages.has(extension)) { 204 | RegisterExtension(parser.configuration.packageData.get('require').jax, extension); 205 | } 206 | else { 207 | mathjax_js_1.mathjax.retryAfter(loader_js_1.Loader.load(extension)); 208 | } 209 | } 210 | exports.RequireLoad = RequireLoad; 211 | function config(_config, jax) { 212 | jax.parseOptions.packageData.set('require', { 213 | jax: jax, 214 | required: __spread(jax.options.packages), 215 | configured: new Map() 216 | }); 217 | var options = jax.parseOptions.options.require; 218 | var prefix = options.prefix; 219 | if (prefix.match(/[^_a-zA-Z0-9]/)) { 220 | throw Error('Illegal characters used in \\require prefix'); 221 | } 222 | if (!loader_js_1.CONFIG.paths[prefix]) { 223 | loader_js_1.CONFIG.paths[prefix] = '[mathjax]/input/tex/extensions'; 224 | } 225 | options.prefix = '[' + prefix + ']/'; 226 | } 227 | exports.RequireMethods = { 228 | Require: function (parser, name) { 229 | var required = parser.GetArgument(name); 230 | if (required.match(/[^_a-zA-Z0-9]/) || required === '') { 231 | throw new TexError_js_1.default('BadPackageName', 'Argument for %1 is not a valid package name', name); 232 | } 233 | RequireLoad(parser, required); 234 | } 235 | }; 236 | exports.options = { 237 | require: { 238 | allow: Options_js_1.expandable({ 239 | base: false, 240 | 'all-packages': false 241 | }), 242 | defaultAllow: true, 243 | prefix: 'tex' 244 | } 245 | }; 246 | new SymbolMap_js_1.CommandMap('require', { require: 'Require' }, exports.RequireMethods); 247 | exports.RequireConfiguration = Configuration_js_1.Configuration.create('require', { handler: { macro: ['require'] }, config: config, options: exports.options }); 248 | //# sourceMappingURL=RequireConfiguration.js.map 249 | 250 | /***/ }), 251 | /* 2 */ 252 | /***/ (function(module, exports, __webpack_require__) { 253 | 254 | "use strict"; 255 | 256 | 257 | Object.defineProperty(exports, '__esModule', { 258 | value: true 259 | }); 260 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 261 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 262 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 263 | 264 | /***/ }), 265 | /* 3 */ 266 | /***/ (function(module, exports, __webpack_require__) { 267 | 268 | "use strict"; 269 | 270 | 271 | Object.defineProperty(exports, '__esModule', { 272 | value: true 273 | }); 274 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 275 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 276 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 277 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 278 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 279 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 280 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 281 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 282 | 283 | /***/ }), 284 | /* 4 */ 285 | /***/ (function(module, exports, __webpack_require__) { 286 | 287 | "use strict"; 288 | 289 | 290 | Object.defineProperty(exports, '__esModule', { 291 | value: true 292 | }); 293 | exports["default"] = MathJax._.input.tex.TexError["default"]; 294 | 295 | /***/ }), 296 | /* 5 */ 297 | /***/ (function(module, exports, __webpack_require__) { 298 | 299 | "use strict"; 300 | 301 | 302 | Object.defineProperty(exports, '__esModule', { 303 | value: true 304 | }); 305 | exports.PackageError = MathJax._.components["package"].PackageError; 306 | exports.Package = MathJax._.components["package"].Package; 307 | 308 | /***/ }), 309 | /* 6 */ 310 | /***/ (function(module, exports, __webpack_require__) { 311 | 312 | "use strict"; 313 | 314 | 315 | Object.defineProperty(exports, '__esModule', { 316 | value: true 317 | }); 318 | exports.Loader = MathJax._.components.loader.Loader; 319 | exports.MathJax = MathJax._.components.loader.MathJax; 320 | exports.CONFIG = MathJax._.components.loader.CONFIG; 321 | 322 | /***/ }), 323 | /* 7 */ 324 | /***/ (function(module, exports, __webpack_require__) { 325 | 326 | "use strict"; 327 | 328 | 329 | Object.defineProperty(exports, '__esModule', { 330 | value: true 331 | }); 332 | exports.mathjax = MathJax._.mathjax.mathjax; 333 | 334 | /***/ }), 335 | /* 8 */ 336 | /***/ (function(module, exports, __webpack_require__) { 337 | 338 | "use strict"; 339 | 340 | 341 | Object.defineProperty(exports, '__esModule', { 342 | value: true 343 | }); 344 | exports.APPEND = MathJax._.util.Options.APPEND; 345 | exports.REMOVE = MathJax._.util.Options.REMOVE; 346 | exports.Expandable = MathJax._.util.Options.Expandable; 347 | exports.expandable = MathJax._.util.Options.expandable; 348 | exports.makeArray = MathJax._.util.Options.makeArray; 349 | exports.keys = MathJax._.util.Options.keys; 350 | exports.copy = MathJax._.util.Options.copy; 351 | exports.insert = MathJax._.util.Options.insert; 352 | exports.defaultOptions = MathJax._.util.Options.defaultOptions; 353 | exports.userOptions = MathJax._.util.Options.userOptions; 354 | exports.selectOptions = MathJax._.util.Options.selectOptions; 355 | exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; 356 | exports.separateOptions = MathJax._.util.Options.separateOptions; 357 | 358 | /***/ }), 359 | /* 9 */ 360 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 361 | 362 | "use strict"; 363 | // ESM COMPAT FLAG 364 | __webpack_require__.r(__webpack_exports__); 365 | 366 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 367 | var global = __webpack_require__(0); 368 | 369 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/require/RequireConfiguration.js 370 | var RequireConfiguration = __webpack_require__(1); 371 | 372 | // CONCATENATED MODULE: ./lib/require.js 373 | 374 | 375 | Object(global["combineWithMathJax"])({ 376 | _: { 377 | input: { 378 | tex: { 379 | require: { 380 | RequireConfiguration: RequireConfiguration 381 | } 382 | } 383 | } 384 | } 385 | }); 386 | // CONCATENATED MODULE: ./require.js 387 | 388 | 389 | /***/ }) 390 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/tagformat.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 4); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | var __extends = (this && this.__extends) || (function () { 110 | var extendStatics = function (d, b) { 111 | extendStatics = Object.setPrototypeOf || 112 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 113 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 114 | return extendStatics(d, b); 115 | }; 116 | return function (d, b) { 117 | extendStatics(d, b); 118 | function __() { this.constructor = d; } 119 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 120 | }; 121 | })(); 122 | Object.defineProperty(exports, "__esModule", { value: true }); 123 | exports.TagFormatConfiguration = exports.tagformatConfig = void 0; 124 | var Configuration_js_1 = __webpack_require__(2); 125 | var Tags_js_1 = __webpack_require__(3); 126 | var tagID = 0; 127 | function tagformatConfig(config, jax) { 128 | var tags = jax.parseOptions.options.tags; 129 | if (tags !== 'base' && config.tags.hasOwnProperty(tags)) { 130 | Tags_js_1.TagsFactory.add(tags, config.tags[tags]); 131 | } 132 | var TagClass = Tags_js_1.TagsFactory.create(jax.parseOptions.options.tags).constructor; 133 | var TagFormat = (function (_super) { 134 | __extends(TagFormat, _super); 135 | function TagFormat() { 136 | return _super !== null && _super.apply(this, arguments) || this; 137 | } 138 | TagFormat.prototype.formatNumber = function (n) { 139 | return jax.parseOptions.options.tagformat.number(n); 140 | }; 141 | TagFormat.prototype.formatTag = function (tag) { 142 | return jax.parseOptions.options.tagformat.tag(tag); 143 | }; 144 | TagFormat.prototype.formatId = function (id) { 145 | return jax.parseOptions.options.tagformat.id(id); 146 | }; 147 | TagFormat.prototype.formatUrl = function (id, base) { 148 | return jax.parseOptions.options.tagformat.url(id, base); 149 | }; 150 | return TagFormat; 151 | }(TagClass)); 152 | tagID++; 153 | var tagName = 'configTags-' + tagID; 154 | Tags_js_1.TagsFactory.add(tagName, TagFormat); 155 | jax.parseOptions.options.tags = tagName; 156 | } 157 | exports.tagformatConfig = tagformatConfig; 158 | exports.TagFormatConfiguration = Configuration_js_1.Configuration.create('tagformat', { 159 | config: [tagformatConfig, 10], 160 | options: { 161 | tagformat: { 162 | number: function (n) { return n.toString(); }, 163 | tag: function (tag) { return '(' + tag + ')'; }, 164 | id: function (id) { return 'mjx-eqn-' + id.replace(/\s/g, '_'); }, 165 | url: function (id, base) { return base + '#' + encodeURIComponent(id); }, 166 | } 167 | } 168 | }); 169 | //# sourceMappingURL=TagFormatConfiguration.js.map 170 | 171 | /***/ }), 172 | /* 2 */ 173 | /***/ (function(module, exports, __webpack_require__) { 174 | 175 | "use strict"; 176 | 177 | 178 | Object.defineProperty(exports, '__esModule', { 179 | value: true 180 | }); 181 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 182 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 183 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 184 | 185 | /***/ }), 186 | /* 3 */ 187 | /***/ (function(module, exports, __webpack_require__) { 188 | 189 | "use strict"; 190 | 191 | 192 | Object.defineProperty(exports, '__esModule', { 193 | value: true 194 | }); 195 | exports.Label = MathJax._.input.tex.Tags.Label; 196 | exports.TagInfo = MathJax._.input.tex.Tags.TagInfo; 197 | exports.AbstractTags = MathJax._.input.tex.Tags.AbstractTags; 198 | exports.NoTags = MathJax._.input.tex.Tags.NoTags; 199 | exports.AllTags = MathJax._.input.tex.Tags.AllTags; 200 | exports.TagsFactory = MathJax._.input.tex.Tags.TagsFactory; 201 | 202 | /***/ }), 203 | /* 4 */ 204 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 205 | 206 | "use strict"; 207 | // ESM COMPAT FLAG 208 | __webpack_require__.r(__webpack_exports__); 209 | 210 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 211 | var global = __webpack_require__(0); 212 | 213 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/tagformat/TagFormatConfiguration.js 214 | var TagFormatConfiguration = __webpack_require__(1); 215 | 216 | // CONCATENATED MODULE: ./lib/tagformat.js 217 | 218 | 219 | Object(global["combineWithMathJax"])({ 220 | _: { 221 | input: { 222 | tex: { 223 | tagformat: { 224 | TagFormatConfiguration: TagFormatConfiguration 225 | } 226 | } 227 | } 228 | } 229 | }); 230 | // CONCATENATED MODULE: ../rename.js 231 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 232 | 233 | // 234 | // Look for a package name in the package list and change it to a new name 235 | // and rename tex options for it, if there are any. 236 | // 237 | 238 | function rename(oname, nname, options) { 239 | var tex = MathJax.config.tex; 240 | 241 | if (tex && tex.packages) { 242 | var packages = tex.packages; 243 | var n = packages.indexOf(oname); 244 | if (n >= 0) packages[n] = nname; 245 | 246 | if (options && tex[oname]) { 247 | Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); 248 | delete tex[oname]; 249 | } 250 | } 251 | } 252 | // CONCATENATED MODULE: ./tagformat.js 253 | 254 | 255 | rename('tagFormat', 'tagformat', true); 256 | 257 | /***/ }) 258 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/unicode.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 8); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.UnicodeConfiguration = exports.UnicodeMethods = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var TexError_js_1 = __webpack_require__(3); 113 | var SymbolMap_js_1 = __webpack_require__(4); 114 | var ParseUtil_js_1 = __webpack_require__(5); 115 | var NodeUtil_js_1 = __webpack_require__(6); 116 | var Entities_js_1 = __webpack_require__(7); 117 | exports.UnicodeMethods = {}; 118 | var UnicodeCache = {}; 119 | exports.UnicodeMethods.Unicode = function (parser, name) { 120 | var HD = parser.GetBrackets(name); 121 | var HDsplit = null; 122 | var font = null; 123 | if (HD) { 124 | if (HD.replace(/ /g, ''). 125 | match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)) { 126 | HDsplit = HD.replace(/ /g, '').split(/,/); 127 | font = parser.GetBrackets(name); 128 | } 129 | else { 130 | font = HD; 131 | } 132 | } 133 | var n = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)).replace(/^0x/, 'x'); 134 | if (!n.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/)) { 135 | throw new TexError_js_1.default('BadUnicode', 'Argument to \\unicode must be a number'); 136 | } 137 | var N = parseInt(n.match(/^x/) ? '0' + n : n); 138 | if (!UnicodeCache[N]) { 139 | UnicodeCache[N] = [800, 200, font, N]; 140 | } 141 | else if (!font) { 142 | font = UnicodeCache[N][2]; 143 | } 144 | if (HDsplit) { 145 | UnicodeCache[N][0] = Math.floor(parseFloat(HDsplit[0]) * 1000); 146 | UnicodeCache[N][1] = Math.floor(parseFloat(HDsplit[1]) * 1000); 147 | } 148 | var variant = parser.stack.env.font; 149 | var def = {}; 150 | if (font) { 151 | UnicodeCache[N][2] = def.fontfamily = font.replace(/'/g, '\''); 152 | if (variant) { 153 | if (variant.match(/bold/)) { 154 | def.fontweight = 'bold'; 155 | } 156 | if (variant.match(/italic|-mathit/)) { 157 | def.fontstyle = 'italic'; 158 | } 159 | } 160 | } 161 | else if (variant) { 162 | def.mathvariant = variant; 163 | } 164 | var node = parser.create('token', 'mtext', def, Entities_js_1.numeric(n)); 165 | NodeUtil_js_1.default.setProperty(node, 'unicode', true); 166 | parser.Push(node); 167 | }; 168 | new SymbolMap_js_1.CommandMap('unicode', { unicode: 'Unicode' }, exports.UnicodeMethods); 169 | exports.UnicodeConfiguration = Configuration_js_1.Configuration.create('unicode', { handler: { macro: ['unicode'] } }); 170 | //# sourceMappingURL=UnicodeConfiguration.js.map 171 | 172 | /***/ }), 173 | /* 2 */ 174 | /***/ (function(module, exports, __webpack_require__) { 175 | 176 | "use strict"; 177 | 178 | 179 | Object.defineProperty(exports, '__esModule', { 180 | value: true 181 | }); 182 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 183 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 184 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 185 | 186 | /***/ }), 187 | /* 3 */ 188 | /***/ (function(module, exports, __webpack_require__) { 189 | 190 | "use strict"; 191 | 192 | 193 | Object.defineProperty(exports, '__esModule', { 194 | value: true 195 | }); 196 | exports["default"] = MathJax._.input.tex.TexError["default"]; 197 | 198 | /***/ }), 199 | /* 4 */ 200 | /***/ (function(module, exports, __webpack_require__) { 201 | 202 | "use strict"; 203 | 204 | 205 | Object.defineProperty(exports, '__esModule', { 206 | value: true 207 | }); 208 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 209 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 210 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 211 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 212 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 213 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 214 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 215 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 216 | 217 | /***/ }), 218 | /* 5 */ 219 | /***/ (function(module, exports, __webpack_require__) { 220 | 221 | "use strict"; 222 | 223 | 224 | Object.defineProperty(exports, '__esModule', { 225 | value: true 226 | }); 227 | exports["default"] = MathJax._.input.tex.ParseUtil["default"]; 228 | 229 | /***/ }), 230 | /* 6 */ 231 | /***/ (function(module, exports, __webpack_require__) { 232 | 233 | "use strict"; 234 | 235 | 236 | Object.defineProperty(exports, '__esModule', { 237 | value: true 238 | }); 239 | exports["default"] = MathJax._.input.tex.NodeUtil["default"]; 240 | 241 | /***/ }), 242 | /* 7 */ 243 | /***/ (function(module, exports, __webpack_require__) { 244 | 245 | "use strict"; 246 | 247 | 248 | Object.defineProperty(exports, '__esModule', { 249 | value: true 250 | }); 251 | exports.options = MathJax._.util.Entities.options; 252 | exports.entities = MathJax._.util.Entities.entities; 253 | exports.add = MathJax._.util.Entities.add; 254 | exports.remove = MathJax._.util.Entities.remove; 255 | exports.translate = MathJax._.util.Entities.translate; 256 | exports.numeric = MathJax._.util.Entities.numeric; 257 | 258 | /***/ }), 259 | /* 8 */ 260 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 261 | 262 | "use strict"; 263 | // ESM COMPAT FLAG 264 | __webpack_require__.r(__webpack_exports__); 265 | 266 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 267 | var global = __webpack_require__(0); 268 | 269 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/unicode/UnicodeConfiguration.js 270 | var UnicodeConfiguration = __webpack_require__(1); 271 | 272 | // CONCATENATED MODULE: ./lib/unicode.js 273 | 274 | 275 | Object(global["combineWithMathJax"])({ 276 | _: { 277 | input: { 278 | tex: { 279 | unicode: { 280 | UnicodeConfiguration: UnicodeConfiguration 281 | } 282 | } 283 | } 284 | } 285 | }); 286 | // CONCATENATED MODULE: ./unicode.js 287 | 288 | 289 | /***/ }) 290 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/input/tex/extensions/verb.js: -------------------------------------------------------------------------------- 1 | /******/ (function(modules) { // webpackBootstrap 2 | /******/ // The module cache 3 | /******/ var installedModules = {}; 4 | /******/ 5 | /******/ // The require function 6 | /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if(installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ } 12 | /******/ // Create a new module (and put it into the cache) 13 | /******/ var module = installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ }; 18 | /******/ 19 | /******/ // Execute the module function 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | /******/ 22 | /******/ // Flag the module as loaded 23 | /******/ module.l = true; 24 | /******/ 25 | /******/ // Return the exports of the module 26 | /******/ return module.exports; 27 | /******/ } 28 | /******/ 29 | /******/ 30 | /******/ // expose the modules object (__webpack_modules__) 31 | /******/ __webpack_require__.m = modules; 32 | /******/ 33 | /******/ // expose the module cache 34 | /******/ __webpack_require__.c = installedModules; 35 | /******/ 36 | /******/ // define getter function for harmony exports 37 | /******/ __webpack_require__.d = function(exports, name, getter) { 38 | /******/ if(!__webpack_require__.o(exports, name)) { 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40 | /******/ } 41 | /******/ }; 42 | /******/ 43 | /******/ // define __esModule on exports 44 | /******/ __webpack_require__.r = function(exports) { 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47 | /******/ } 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 49 | /******/ }; 50 | /******/ 51 | /******/ // create a fake namespace object 52 | /******/ // mode & 1: value is a module id, require it 53 | /******/ // mode & 2: merge all properties of value into the ns 54 | /******/ // mode & 4: return value when already ns object 55 | /******/ // mode & 8|1: behave like require 56 | /******/ __webpack_require__.t = function(value, mode) { 57 | /******/ if(mode & 1) value = __webpack_require__(value); 58 | /******/ if(mode & 8) return value; 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60 | /******/ var ns = Object.create(null); 61 | /******/ __webpack_require__.r(ns); 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64 | /******/ return ns; 65 | /******/ }; 66 | /******/ 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules 68 | /******/ __webpack_require__.n = function(module) { 69 | /******/ var getter = module && module.__esModule ? 70 | /******/ function getDefault() { return module['default']; } : 71 | /******/ function getModuleExports() { return module; }; 72 | /******/ __webpack_require__.d(getter, 'a', getter); 73 | /******/ return getter; 74 | /******/ }; 75 | /******/ 76 | /******/ // Object.prototype.hasOwnProperty.call 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78 | /******/ 79 | /******/ // __webpack_public_path__ 80 | /******/ __webpack_require__.p = ""; 81 | /******/ 82 | /******/ 83 | /******/ // Load entry module and return exports 84 | /******/ return __webpack_require__(__webpack_require__.s = 6); 85 | /******/ }) 86 | /************************************************************************/ 87 | /******/ ([ 88 | /* 0 */ 89 | /***/ (function(module, exports, __webpack_require__) { 90 | 91 | "use strict"; 92 | 93 | 94 | Object.defineProperty(exports, '__esModule', { 95 | value: true 96 | }); 97 | exports.isObject = MathJax._.components.global.isObject; 98 | exports.combineConfig = MathJax._.components.global.combineConfig; 99 | exports.combineDefaults = MathJax._.components.global.combineDefaults; 100 | exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; 101 | exports.MathJax = MathJax._.components.global.MathJax; 102 | 103 | /***/ }), 104 | /* 1 */ 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | "use strict"; 108 | 109 | Object.defineProperty(exports, "__esModule", { value: true }); 110 | exports.VerbConfiguration = exports.VerbMethods = void 0; 111 | var Configuration_js_1 = __webpack_require__(2); 112 | var TexConstants_js_1 = __webpack_require__(3); 113 | var SymbolMap_js_1 = __webpack_require__(4); 114 | var TexError_js_1 = __webpack_require__(5); 115 | exports.VerbMethods = {}; 116 | exports.VerbMethods.Verb = function (parser, name) { 117 | var c = parser.GetNext(); 118 | var start = ++parser.i; 119 | if (c === '') { 120 | throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', name); 121 | } 122 | while (parser.i < parser.string.length && 123 | parser.string.charAt(parser.i) !== c) { 124 | parser.i++; 125 | } 126 | if (parser.i === parser.string.length) { 127 | throw new TexError_js_1.default('NoClosingDelim', 'Can\'t find closing delimiter for %1', parser.currentCS); 128 | } 129 | var text = parser.string.slice(start, parser.i).replace(/ /g, '\u00A0'); 130 | parser.i++; 131 | parser.Push(parser.create('token', 'mtext', { mathvariant: TexConstants_js_1.TexConstant.Variant.MONOSPACE }, text)); 132 | }; 133 | new SymbolMap_js_1.CommandMap('verb', { verb: 'Verb' }, exports.VerbMethods); 134 | exports.VerbConfiguration = Configuration_js_1.Configuration.create('verb', { handler: { macro: ['verb'] } }); 135 | //# sourceMappingURL=VerbConfiguration.js.map 136 | 137 | /***/ }), 138 | /* 2 */ 139 | /***/ (function(module, exports, __webpack_require__) { 140 | 141 | "use strict"; 142 | 143 | 144 | Object.defineProperty(exports, '__esModule', { 145 | value: true 146 | }); 147 | exports.Configuration = MathJax._.input.tex.Configuration.Configuration; 148 | exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; 149 | exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; 150 | 151 | /***/ }), 152 | /* 3 */ 153 | /***/ (function(module, exports, __webpack_require__) { 154 | 155 | "use strict"; 156 | 157 | 158 | Object.defineProperty(exports, '__esModule', { 159 | value: true 160 | }); 161 | exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; 162 | 163 | /***/ }), 164 | /* 4 */ 165 | /***/ (function(module, exports, __webpack_require__) { 166 | 167 | "use strict"; 168 | 169 | 170 | Object.defineProperty(exports, '__esModule', { 171 | value: true 172 | }); 173 | exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; 174 | exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; 175 | exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; 176 | exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; 177 | exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; 178 | exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; 179 | exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; 180 | exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; 181 | 182 | /***/ }), 183 | /* 5 */ 184 | /***/ (function(module, exports, __webpack_require__) { 185 | 186 | "use strict"; 187 | 188 | 189 | Object.defineProperty(exports, '__esModule', { 190 | value: true 191 | }); 192 | exports["default"] = MathJax._.input.tex.TexError["default"]; 193 | 194 | /***/ }), 195 | /* 6 */ 196 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 197 | 198 | "use strict"; 199 | // ESM COMPAT FLAG 200 | __webpack_require__.r(__webpack_exports__); 201 | 202 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js 203 | var global = __webpack_require__(0); 204 | 205 | // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/verb/VerbConfiguration.js 206 | var VerbConfiguration = __webpack_require__(1); 207 | 208 | // CONCATENATED MODULE: ./lib/verb.js 209 | 210 | 211 | Object(global["combineWithMathJax"])({ 212 | _: { 213 | input: { 214 | tex: { 215 | verb: { 216 | VerbConfiguration: VerbConfiguration 217 | } 218 | } 219 | } 220 | } 221 | }); 222 | // CONCATENATED MODULE: ./verb.js 223 | 224 | 225 | /***/ }) 226 | /******/ ]); -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff -------------------------------------------------------------------------------- /src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wviechtb/mathjaxr/8900cbbb2eda4dc45b776cc203c2942b6289fac3/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff --------------------------------------------------------------------------------