<?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>KaTeX &#8211; 開発記録</title>
	<atom:link href="https://www.kthksgy.com/tag/katex/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kthksgy.com</link>
	<description>開発メモです。現在レイアウトが一部崩れている箇所があります。</description>
	<lastBuildDate>Wed, 11 Nov 2020 04:36:02 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>KaTeXで微分が表記できない時の対処法【TeX/LaTeX】</title>
		<link>https://www.kthksgy.com/tex/katex-differential/</link>
					<comments>https://www.kthksgy.com/tex/katex-differential/#respond</comments>
		
		<dc:creator><![CDATA[kthksgy]]></dc:creator>
		<pubDate>Wed, 22 Apr 2020 03:41:27 +0000</pubDate>
				<category><![CDATA[TeX]]></category>
		<category><![CDATA[KaTeX]]></category>
		<category><![CDATA[LaTeX]]></category>
		<guid isPermaLink="false">https://www.kthksgy.com/?p=7</guid>

					<description><![CDATA[WordPressのMarkdownエディタ『Editor.md』で採用されているKaTeXではMathJaxと違う微分の表記をする必要があります。 KaTeXで微分が表記できない \frac{df}{dx}で表記する場&#8230;]]></description>
										<content:encoded><![CDATA[<p>WordPressのMarkdownエディタ『Editor.md』で採用されているKaTeXではMathJaxと違う微分の表記をする必要があります。<br />
<span id="more-7"></span></p>
<h2>KaTeXで微分が表記できない</h2>
<p><span class="katex math inline">\frac{df}{dx}</span>で表記する場合は良いのですが、関数<span class="katex math inline">f(x)</span>をちょっと微分したい時に『ダッシュ表記』で記すと形がダッシュの形になりません。</p>
<pre><code class="language-tex line-numbers">  f'(x)
</code></pre>
<p><span class="katex math inline">f'(x)</span></p>
<p>と思ったら、ブログ上ではちゃんと見えますね……。エディタではそのままアポストロフィが表示されています。</p>
<h2>解決策</h2>
<p><code>'</code>を<code>^\prime</code>に変更してください。</p>
<pre><code class="language-tex line-numbers">  f^{\prime}(x)
</code></pre>
<p><span class="katex math inline">f^{\prime}(x)</span></p>
<p>元々の記法に比べてかなり長くなりましたが、とりあえずブログに載せる数式はこうするか、<span class="katex math inline">\frac{df}{dx}</span>で表記するしか無いようです……。</p>
<h2>余談</h2>
<p>そういえば、<span class="katex math inline">f^{\prime}(x)</span>は「エフダッシュエックス」と読むと習ったのですが、TeX記法からも分かるように「エフプライムエックス」が正しそうです。</p>
<p>ともかく、どちらが正しいにしても「アマゾンプライム」と「アマゾンダッシュボタン」のどちらかは読み方が間違っていることになりますね。</p>
<h2>参考</h2>
<ul>
<li><a class="wp-editor-md-post-content-link" href="https://qiita.com/namitop/items/c2c5741ea9e1f993031b">Tex記法で微分の数式のダッシュを書く &#8211; Qiita</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.kthksgy.com/tex/katex-differential/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>KaTeXで行列が表記できない時の対処法【TeX/LaTeX】</title>
		<link>https://www.kthksgy.com/tex/katex-matrix/</link>
					<comments>https://www.kthksgy.com/tex/katex-matrix/#respond</comments>
		
		<dc:creator><![CDATA[kthksgy]]></dc:creator>
		<pubDate>Wed, 22 Apr 2020 01:27:00 +0000</pubDate>
				<category><![CDATA[TeX]]></category>
		<category><![CDATA[KaTeX]]></category>
		<category><![CDATA[LaTeX]]></category>
		<guid isPermaLink="false">https://www.kthksgy.com/?p=6</guid>

					<description><![CDATA[WordPressをMarkdownで書いていると、TeXのデフォルトの数学ライブラリがMathJaxではなくKaTeXで困る事があります。 KaTeXで行列が表記できない KaTeXでは、MathJaxのように行列を表&#8230;]]></description>
										<content:encoded><![CDATA[<p>WordPressをMarkdownで書いていると、TeXのデフォルトの数学ライブラリがMathJaxではなくKaTeXで困る事があります。<br />
<span id="more-6"></span></p>
<h2>KaTeXで行列が表記できない</h2>
<p>KaTeXでは、MathJaxのように行列を表記しようとすると以下のようになります。</p>
<pre><code class="language-tex line-numbers">$
  \boldsymbol{A}=
  \left[
    \begin{array}{cc}
      1 &amp; 2 \\
      3 &amp; 4
    \end{array}
  \right]
$
</code></pre>
<p><code>ParseError: KaTeX parse error: Undefined control sequence: \ at position 46: …array}{cc} 1&amp;2 \̲ ̲3&amp;4 \end{array}…</code></p>
<p>これは、KaTeXでは<code>\begin{array}</code>中では<code>\\</code>が改行ではなく『\』を表示するエスケープシーケンスであると認識されてしまうためです。</p>
<h2>解決策</h2>
<p><code>\\</code>の代わりに<code>\cr</code>を使います。</p>
<pre><code class="language-tex line-numbers">$
  \boldsymbol{A}=
  \left[
    \begin{array}{cc}
      1 &amp; 2 \cr
      3 &amp; 4
    \end{array}
  \right]
$
</code></pre>
<p><span class="katex math inline">\boldsymbol{A}=<br />
  \left[<br />
    \begin{array}{cc}<br />
      1&#038;2 \cr<br />
      3&#038;4<br />
    \end{array}<br />
  \right]</span></p>
<p>これは、MathJaxでも互換性があるようなので、一文字増えて少し見辛くなりますがこちらの表記で統一すると良いかもしれません。</p>
<h2>参考</h2>
<ul>
<li><a class="wp-editor-md-post-content-link" href="https://katex.org/">KaTeX &#8211; The fastest math typesetting library for web</a></li>
<li><a class="wp-editor-md-post-content-link" href="https://katex.org/docs/supported.html">Supported Functions &#8211; KaTeX</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.kthksgy.com/tex/katex-matrix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
