LaTeX2HTML Configuation

Vanabel/ 11月 27, 2013/ 站点事务/ 0 comments

1. Custom MathJaX CDN

https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG.js

2. Custom MathJaX config

MathJax.Hub.Config({
tex2jax: {
	inlineMath: [['$', '$'], ['\\(', '\\)']],
	displayMath: [['$$', '$$'], ['\\[', '\\]']],
	processEscapes: true
},
TeX: { 
equationNumbers: { autoNumber: "AMS",
useLabelIds: false}},
});


3. Custom LaTeX preamble

\newcommand{\eps}{\varepsilon}
\newcommand{\R}{\bm{R}}
\newcommand{\rd}{\operatorname{d}}
\newcommand{\g}{\mathfrak{g}}
\newcommand{\End}{\mathrm{End}}
\newcommand{\h}{\mathfrak{h}}
\newcommand{\ad}{\operatorname{ad}}
\newcommand{\Ad}{\operatorname{Ad}}
\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\id}{\operatorname{Id}}
\newcommand{\gl}{\mathfrak{gl}}
\newcommand{\div}{\operatorname{div}}
\newcommand{\tr}{\operatorname{tr}}
\newcommand{\pt}{\partial}
\newcommand{\char}{\operatorname{char}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\eqdef}{\mathpunct{:}=}
\newcommand{\bm}{\mathbb}
\newcommand{\C}{\mathbb{C}}
\newcommand{\H}{\mathbb{H}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\vol}{\operatorname{vol}}
\newcommand{\dd}{\mathbb{D}}
\newcommand{\ppt}[1]{\frac{\pt}{\pt{#1}}}
\newcommand{\To}{\to}
\newcommand{\norm}[1]{\|#1\|}
\newcommand{\inner}[1]{\left\langle#1\right\rangle}
\newcommand{\weakto}{\rightharpoonup}

4. Custom LaTeX CSS Style

.latex_thm, .latex_lem, .latex_cor, .latex_defn, .latex_prop, .latex_rem{
  margin:10px 0;padding:5px;
  background: lightcyan;
  border: solid 3px green;
  -moz-border-radius: 1.0em; 
  -webkit-border-radius: 7px; 
  box-shadow: 0 0 0 green;
}
.latex_examp, .latex_prob{
margin: 10px 0;
padding: 5px;
background: lightyellow;
border: solid 3px goldenrod;
-moz-border-radius: 1.0em;
-webkit-border-radius: 7px;
box-shadow: 0 0 0 goldenrod;
}
Share this Post

Leave a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注

*
*

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据