Ŝalenzo

About
Ŝalenzo Website (3)

Subscribe
Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Links
These are a few of my favourite links.

  • raelity bytes ;-)
  • link 2
  • link 3
  • 实验性的数学公式支持 / 在网页上渲染数学公式的另类解决方案

    为了免去MathJax丑陋又缓慢的“正在渲染数学”提示,切实提升页面加载速度,同时调整公式的字体以免MathJax默认的TeX字体与页面的其余部分格格不入,仅使用MathJax将LaTeX公式转换到MathML。虽然MathML标准已经有好些年头了,但是浏览器支持仍旧一塌糊涂,不少屑东西明确表示拒绝支持。我想,借助现今更为先进的CSS排版功能,能否不用JavaScript测量文本尺寸就渲染出漂亮——至少是不难看——的数学公式呢?

    \displaystyle \left\{\frac{1}{2}\binom{n}{k},2\times(-1)\right\}

    这可是纯CSS实现的可伸缩大括号哦!这些字符是各种正文字体通用的,因为用CSS也画不出更具特色的符号了。


    MathJax的文档写得真是烂爆了……

    支持下列标签:

    • [ ] <math>
    • [ ] <merror>
    • [ ] <mfrac>
    • [ ] <mi>
    • [ ] <mmultiscripts>
    • [ ] <mn>
    • [ ] <mo>
    • [ ] <mover>
    • [ ] <mpadded>
    • [ ] <mphantom>
    • [ ] <mprescripts>
    • [ ] <mroot>
    • [ ] <mrow>
    • [ ] <ms>
    • [ ] <mspace>
    • [ ] <msqrt>
    • [ ] <mstyle>
    • [ ] <msub>
    • [ ] <msubsup>
    • [ ] <msup>
    • [ ] <mtable>
    • [ ] <mtd>
    • [ ] <mtext>
    • [ ] <mtr>
    • [ ] <munder>
    • [ ] <munderover>
    • [ ] <none>

    绝对不会支持下列玩意:

    • dir="rtl"
    • <annotation>
    • <annotation-xml>
    • <maction>
    • <semantics>

     1+1=2\iiiint\dfrac{1}{4}\in\mathbb{R},\Re is true.  \undef=1 \dd x.

    This mathematical formula with a big summation and the number pi [ \sum_{n=1}^{+\infty}\frac{1}{n^2}=\frac{\pi^2}{6} ] is easy to prove.

    This mathematical formula with a big summation and the number pi ( \sum_{n=1}^{+\infty}\frac{1}{n^2}=\frac{\pi^2}{6} ) is easy to prove.

    •  A\mathrm{A}\mathfrak{A}\mathbb{A}
    •  \sum_A{\displaystyle\sum\nolimits_A}\sum_{\textstyle A}
    • Fill the blank:  \sqrt{2\fbox{}-1}=3
    • [\begin{vmatrix} x & \binom{5}{3} \ \sqrt{7+2} & y \ \end{vmatrix}]
    •  y=x^2\text{ if }x\ge1\text{ and }2\text{ otherwise.}
    •  \cos, c, \mathrm{c}
    •  3.141592653589793
    •  1+2\mathord{+}3\qquad+4+\hspace{3em}5
    •  {\displaystyle \sum_5{\textstyle\sum}_6}{\sum_5\sum\limits_7}
    •  \left.\frac{\rule[-50px]{10px}{100px}}{\rule[-25px]{10px}{25px}}\right\uparrow\uparrow (no asymmetric delimiters in TeX)
    •  1\quad\frac{2\vrule width 0pt height 0pt depth 1em}{3\vrule width 0pt height 2em depth 0pt}
    •  s=\mathtt{"hello\ world"}
    •  \left(\frac{1+\frac{2}{3}}{4}\right)^5
    •  0+\dfrac{1}{2}-\frac{1}{2}+\frac{1}{234}-\binom{123}{4}
    •  \sqrt[3]{\sqrt{\frac{1}{2}+4}}+0
    •  *_A\scriptstyle\mathop*\limits_B\mathop*\limits_C*_D
    •  \frac{\frac{1}}{3}
    •  1\colorbox{lightblue}{\frac{23456}{78}}9+1\colorbox{lightblue}{\frac{23456}{78}}9
    •  \frac{x+y+z}{x\phantom{ {}+y}+z}
    •  1_2+3^4+5_6^7
    •  \underset{2}{1}+\overset{4}{3}+\overset{7}{\underset{6}{5}}+\underset{9}{\widehat{8}}+\overset{13}{\underbrace{11}}
    •  {}_6\prescript{999}{8}{1}_2^3{}^5
    • [\frac{A}{2}=\begin{pmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9 \ \end{pmatrix}]
    • [\left{\frac{1}{2}\right}]
    • [\begin{bmatrix} 12 & 34 & 56 \ 7 & 8 & 9 \ \end{bmatrix}^{\alpha}]
    •  \exp\mathbf{A}\in\mathfrak{gl}_n(\mathbb{R})
    •  x^n+y^n=z^n
    •  \sqrt{\sum_{n=1}^{+\infty}\frac{10}{n^4}=\frac{\pi^2}{3}} VS  \displaystyle\sum_{n=1}^{+\infty}\frac{10}{n^4}=\frac{\pi^2}{3}
    •  \sqrt{x^2}\neq x^2
    •  A^{A^A}+\sqrt[A]{A}+\dfrac{A+\frac{A}{A}}{A}

    \mathbf{Ab}^\mathsf{T}