<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>阅微堂 &#187; 数学公式</title>
	<atom:link href="http://zhiqiang.org/blog/tag/%e6%95%b0%e5%ad%a6%e5%85%ac%e5%bc%8f/feed" rel="self" type="application/rss+xml" />
	<link>http://zhiqiang.org/blog</link>
	<description>数学、金融、计算机</description>
	<lastBuildDate>Sat, 19 May 2012 13:47:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>MathJax让你爱上数学公式</title>
		<link>http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html</link>
		<comments>http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html#comments</comments>
		<pubDate>Thu, 22 Mar 2012 13:15:31 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[MathJax]]></category>
		<category><![CDATA[数学公式]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=4789</guid>
		<description><![CDATA[博客 » IT技术 » LaTeX，MathJax，数学公式 » 如果让我投票最优秀的开源项目，我会投给MathJax。MathJax是一个JavaScript引擎，用来显示网络上的数学公式。阅微堂上所有数学公式都用LaTex写出，通过MathJax来显示。 一个好消息是，MathJax已经更新到了2.0，更新的内容见What's new in MathJax v2.0。比较有用的新增功能是支持公式编号和引用。在一个公式内使用 \label{id}给公式编号，然后再在...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/it">IT技术</a> » <a href="http://zhiqiang.org/blog/tag/latex" rel="tag">LaTeX</a>，<a href="http://zhiqiang.org/blog/tag/mathjax" rel="tag">MathJax</a>，<a href="http://zhiqiang.org/blog/tag/%e6%95%b0%e5%ad%a6%e5%85%ac%e5%bc%8f" rel="tag">数学公式</a> » </p><p>如果让我投票最优秀的开源项目，我会投给<a href="http://mathjax.org">MathJax</a>。MathJax是一个JavaScript引擎，用来显示网络上的数学公式。阅微堂上所有数学公式都用LaTex写出，通过MathJax来显示。</p>
<p>一个好消息是，MathJax已经更新到了2.0，更新的内容见<a href="http://www.mathjax.org/docs/2.0/whats-new-2.0.html">What's new in MathJax v2.0</a>。比较有用的新增功能是支持公式编号和引用。在一个公式内使用 <code>\label{id}</code>给公式编号，然后再在合适的地方<code>\ref{id}</code>即可引用该公式。比如我可以引用公式(\ref{exampleone})：</p>
<p><p style='text-align:center;'><span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_922548fded7b43d14775077234b0803a.gif' style='vertical-align: middle; border: none;' class='tex' alt="\begin{equation}\label{exampleone}r = r_F+ \beta (r_M - r_F) + \epsilon\end{equation}" /></span><script type='math/tex;  mode=display'>\begin{equation}\label{exampleone}r = r_F+ \beta (r_M - r_F) + \epsilon\end{equation}</script></p></p>
<p>可惜的是，MathJax的默认设置文件没有打开上面的两个特性，所以需要进MathJax进行额外的配置：</p>
<blockquote>
<pre>&lt;script type="text/x-mathjax-config"&gt;
    MathJax.Hub.Config({
        TeX: {equationNumbers: {autoNumber: ["AMS"], useLabelIds: true}},
        "HTML-CSS": {linebreaks: {automatic: true}},
        SVG: {linebreaks: {automatic: true}}
    });
&lt;/script&gt;</pre>
</blockquote>
<p>可以说，对于普通的数学公式，目前MathJax的功能和显示效果已经完全可以媲美于Latex，而HTML/CSS对位置和格式的控制能力要比Latex更强大。以后，看数学论文不需要再下载pdf文件，而是可以直接在网页上进行浏览。</p>
<p>不过我写这篇文章的目的是想说：我更新了<a href="http://zhiqiang.org/blog/it/latex-for-wordpress.html">插件Latex for WordPress</a>，最新版本为3.3，请大家更新。新版本主要修复了无法显示LaTex源代码的bug，以及增加了MathJax后台配置选项（比如可配置上面公式编号所需的代码）。</p>
<div><h4>相关文章</h4><ul><li ><a href="http://zhiqiang.org/blog/it/latex-for-wordpress.html">在博客上写数学公式的插件LaTex for WordPress</a></li><li class='currentpost'><a href="http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html">MathJax让你爱上数学公式</a></li><li ><a href="http://zhiqiang.org/blog/resource/generate-latex-images-online.html">在线处理Latex数学公式的几个方式</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2012. | <a href="http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html#comments">19 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>在博客上写数学公式的插件LaTex for WordPress</title>
		<link>http://zhiqiang.org/blog/it/latex-for-wordpress.html</link>
		<comments>http://zhiqiang.org/blog/it/latex-for-wordpress.html#comments</comments>
		<pubDate>Sat, 19 Mar 2011 10:33:26 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[MathJax]]></category>
		<category><![CDATA[数学公式]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/?p=2070</guid>
		<description><![CDATA[博客 » IT技术 » LaTeX，MathJax，数学公式 » 插件主页 http://wordpress.org/extend/plugins/latex/ 该插件主要是用来在博客上显示数学公式，大家可直接在标题、文章内容和留言中使用LaTex代码输入公式，特别方便。 使用\(\alpha+\beta\geq\frac12\)输出行内公式： 使用\[\alpha+\beta\geq\frac12\]输出行间公式公式： 在公式最后添加“!”输出公式源代码，比如\(\alpha+\beta\geq\frac12!\)将输出：\(\alpha+\beta\ge...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/it">IT技术</a> » <a href="http://zhiqiang.org/blog/tag/latex" rel="tag">LaTeX</a>，<a href="http://zhiqiang.org/blog/tag/mathjax" rel="tag">MathJax</a>，<a href="http://zhiqiang.org/blog/tag/%e6%95%b0%e5%ad%a6%e5%85%ac%e5%bc%8f" rel="tag">数学公式</a> » </p><p>插件主页 <a href="http://wordpress.org/extend/plugins/latex/">http://wordpress.org/extend/plugins/latex/</a></p>
<p>该插件主要是用来在博客上显示数学公式，大家可直接在标题、文章内容和留言中使用LaTex代码输入公式，特别方便。</p>
<ul>
<li>使用<code class='tex2jax_ignore'>\(\alpha+\beta\geq\frac12\)</code>输出行内公式：<span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_58550e3ccf0c35f886f37ac46db65a6e.gif' style='vertical-align: middle; border: none; ' class='tex' alt="\alpha+\beta\geq\frac12" /></span><script type='math/tex'>\alpha+\beta\geq\frac12</script></li>
<li>使用<code class='tex2jax_ignore'>\[\alpha+\beta\geq\frac12\]</code>输出行间公式公式：</li>
</ul>
<p><p style='text-align:center;'><span class='MathJax_Preview'><img src='http://zhiqiang.org/blog/wp-content/plugins/latex/cache/tex_58550e3ccf0c35f886f37ac46db65a6e.gif' style='vertical-align: middle; border: none;' class='tex' alt="\alpha+\beta\geq\frac12" /></span><script type='math/tex;  mode=display'>\alpha+\beta\geq\frac12</script></p></p>
<ul>
<li>在公式最后添加“!”输出公式源代码，比如<code class='tex2jax_ignore'>\(\alpha+\beta\geq\frac12!\)</code>将输出：<code class='tex2jax_ignore'>\(\alpha+\beta\geq\frac12\)</code></li>
<li>本插件使用MathJax引擎显示数学公式（可选），同时缓存了图片，供MathJax载入之前以及非本地阅读（比如Google Reader）使用。</li>
<li>启用插件，无需配置即可使用。也可在后台修改图片和MathJax服务器地址。</li>
</ul>
<p>Logs：</p>
<ol>
<li>2012-03-23更新到V3.4：现在可以关闭公式的图形显示。某些用户的服务器获取公式的图片有困难，可选择关闭。</li>
<li>2012-03-22更新到V3.3：修复显示Latex源代码的Bug；后台可直接配置MathJax。</li>
<li>2012-02-17更新到V3.2：只有当需要时才载入MathJax脚本。</li>
<li>2011-12-10更新到V3.0：启用MathJax引擎。</li>
</ol>
<p>本博客很多文章里都有大量的公式，就是使用这个插件来处理的，可对比效果，比如<a href="http://zhiqiang.org/blog/finance/school/risk-aversion-in-portfolio-optimization.html" rel="bookmark">风险厌恶系数的影响、敏感性和选取方法</a>、<a href="http://zhiqiang.org/blog/finance/school/kelly-criterion-ii.html" rel="bookmark">用凯利判据做组合优化和资产配置II</a>。</p>
<p>欢迎使用和提交bugs，原使用者直接在后台升级即可，新使用者可<a href="http://downloads.wordpress.org/plugin/latex.zip">下载安装文件</a>然后上传安装，或者直接在博客后台搜索latex for wordpress进行安装。</p>
<p>附：MathJax的配置：</p>
<pre style='color:#000000;'><span style='color:#808030; '>&lt;</span>script type<span style='color:#808030; '>=</span><span style='color:#800000; '>"</span><span style='color:#0000e6; '>text/x-mathjax-config</span><span style='color:#800000; '>"</span><span style='color:#808030; '>></span>
    MathJax<span style='color:#808030; '>.</span>Hub<span style='color:#808030; '>.</span>Config<span style='color:#808030; '>(</span><span style='color:#800080; '>{</span>
        TeX<span style='color:#800080; '>:</span> <span style='color:#800080; '>{</span>
            equationNumbers<span style='color:#800080; '>:</span> <span style='color:#800080; '>{</span>
                autoNumber<span style='color:#800080; '>:</span> <span style='color:#808030; '>[</span><span style='color:#800000; '>"</span><span style='color:#0000e6; '>AMS</span><span style='color:#800000; '>"</span><span style='color:#808030; '>]</span><span style='color:#808030; '>,</span>
                useLabelIds<span style='color:#800080; '>:</span> <span style='color:#0f4d75; '>true</span>
            <span style='color:#800080; '>}</span>
        <span style='color:#800080; '>}</span><span style='color:#808030; '>,</span>
        <span style='color:#800000; '>"</span><span style='color:#0000e6; '>HTML-CSS</span><span style='color:#800000; '>"</span><span style='color:#800080; '>:</span> <span style='color:#800080; '>{</span>
            linebreaks<span style='color:#800080; '>:</span> <span style='color:#800080; '>{</span>
                automatic<span style='color:#800080; '>:</span> <span style='color:#0f4d75; '>true</span>
            <span style='color:#800080; '>}</span><span style='color:#808030; '>,</span>
            scale<span style='color:#800080; '>:</span> <span style='color:#008c00; '>100</span>
        <span style='color:#800080; '>}</span><span style='color:#808030; '>,</span>
        SVG<span style='color:#800080; '>:</span> <span style='color:#800080; '>{</span>
            linebreaks<span style='color:#800080; '>:</span> <span style='color:#800080; '>{</span>
                automatic<span style='color:#800080; '>:</span> <span style='color:#0f4d75; '>true</span>
            <span style='color:#800080; '>}</span>
        <span style='color:#800080; '>}</span>
    <span style='color:#800080; '>}</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
<span style='color:#808030; '>&lt;</span><span style='color:#808030; '>/</span>script<span style='color:#808030; '>></span>
</pre>
<div><h4>相关文章</h4><ul><li class='currentpost'><a href="http://zhiqiang.org/blog/it/latex-for-wordpress.html">在博客上写数学公式的插件LaTex for WordPress</a></li><li ><a href="http://zhiqiang.org/blog/it/mathjax-make-mathematics-beautiful.html">MathJax让你爱上数学公式</a></li><li ><a href="http://zhiqiang.org/blog/resource/generate-latex-images-online.html">在线处理Latex数学公式的几个方式</a></li></ul></div>    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2011. | <a href="http://zhiqiang.org/blog/it/latex-for-wordpress.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/it/latex-for-wordpress.html#comments">94 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/it/latex-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>94</slash:comments>
		</item>
	</channel>
</rss>

