Skip to content

Instantly share code, notes, and snippets.

@teeGraco
Created March 24, 2019 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teeGraco/39327c3d34a43d62320e114faafbf90f to your computer and use it in GitHub Desktop.
Save teeGraco/39327c3d34a43d62320e114faafbf90f to your computer and use it in GitHub Desktop.
MathJax_config_file
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']], //インライン数式を可能にする.
processEscapes: true
},
"HTML-CSS": {
availableFonts: ["TeX"],
undefinedFamily: "'Raleway', Helvetica, Arial, sans-serif", //フォントをsans-serifに変更.
linebreaks: {
automatic: true //行の折り返しを明示的に許可.defaultはfalse
}},
SVG:{
automatic: true //行の折り返しを明示的に許可.defaultはfalse
},
CommonHTML: { matchFontHeight: false },
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Register.StartupHook("mml Jax Ready",function () {
/* 行間が詰まることを防ぐ.明示的に1.2文字文の空間を開ける. */
MathJax.ElementJax.mml.math.prototype.defaults.lineleading = "1.2em";
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment