mathjax.sh 465 B

1234567891011121314
  1. #!/bin/sh
  2. cd "$(dirname "${0}")" || exit 1
  3. #
  4. # https://github.com/yihui/hugo-xmin/blob/master/exampleSite/layouts/partials/foot_custom.html
  5. #
  6. download() {
  7. curl --location --create-dirs --remote-time --output "static/js/${1}" --url "${2}"
  8. }
  9. download "math-code.js" "https://yihui.name/js/math-code.js"
  10. download "center-img.js" "https://yihui.name/js/center-img.js"
  11. download "MathJax.js" "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML"