MawaLog

一日一日、楽しく生きる。技術と音楽が好き。

はてなブログのTex記法チートシート(自分用メモ)

Tex記法がはてなで使える

ということで色々参考になるリンクを見つけたので、自分用にまとめました。 (参考リンクは後述)

分数の表現

[tex:{ \displaystyle
\frac{1+m}{n+A}
}] 

#frac ==> fraction = (英)分数 ということらしい

{ \displaystyle
\frac{1+m}{n+A}
}

累乗の表現

[tex:{ \displaystyle
a^{x+2}
}] 

{ \displaystyle
a^{x+2}
}

[tex:{ \displaystyle
x^{3} + y^{4} = z^{5}
}] 

{ \displaystyle
x^{3} + y^{4} = z^{5}
}

#n乗根
[tex:{ \displaystyle
\sqrt\\[n\\]{x+1}
}] 

{ \displaystyle
\sqrt[n]{x+1}
}

極限等

[tex:{\displaystyle 
\lim_{x \to \infty} g(x)
}]

{\displaystyle
\lim_{x \to \infty} g(x)
}

微分

#普通に微分
[tex:{ \displaystyle
\dfrac{d}{dt} f(t)
}]

{ \displaystyle
\dfrac{d}{dt} f(t)
}

#偏微分
[tex:{ \displaystyle
\dfrac{\partial}{\partial t} f(t)
}]

{ \displaystyle
\dfrac{\partial}{\partial t} f(t)
}

総和・積分

#シグマ
[tex:{ \displaystyle
b_n = \sum_{k=0}^{\infty} a_k
}] 

{ \displaystyle
b_n = \sum_{k=0}^{\infty} a_k
}

#インテグラル
[tex:{ \displaystyle
\int\_n^{m}  f(x) dx
}] 

{ \displaystyle
\int_n^{m}  f(x) dx
}

直積(デカルト積)

[tex:{ \displaystyle
\prod_{k=1}^\infty a_n
}] 

{ \displaystyle
\prod_{k=1}^\infty a_n
}

ネイピア数

オイラーの公式を書いてみる

[tex:{ \displaystyle
e^{i\pi} = -1
}] 

{ \displaystyle
e^{i\pi} = -1
}

ベクトル・行列表現

[tex:{ \displaystyle
\mathbf{V}
}] 

{ \displaystyle
\mathbf{V}
}

#行列表現の場合はこの<pre・・・>タグが必要でした
#```の効果が同時にでてしまうんだが^^;
<pre style="boarder: none; font-size: 100%;">
[tex:{\displaystyle 
  A =
    \begin{pmatrix}
      a_n^{4} & b_n & c_n \\
      d_n & e_n^{4} & f_n \\
      g_n & h_n & i_n^{4}
    \end{pmatrix}
}]
</pre>
[tex:{\displaystyle 
  A =
    \begin{pmatrix}
      a_n^{4} & b_n & c_n \\
      d_n & e_n^{4} & f_n \\
      g_n & h_n & i_n^{4}
    \end{pmatrix}
}]

連立方程式

<pre style="border: none; font-size: 100%;">
[tex:{\displaystyle 
\begin{eqnarray}
  \left\{
    \begin{array}{l}
     10x + 5y + 5z = 10 \\
     21x + 2y + 15z = 15 \\
     21x + 2y + 2z = 15
    \end{array}
  \right.
\end{eqnarray}
}]
</pre>
{\displaystyle 
\begin{eqnarray}
  \left\{
    \begin{array}{l}
     10x + 5y + 5z = 10 \\
     21x + 2y + 15z = 15 \\
     21x + 2y + 2z = 15
    \end{array}
  \right.
\end{eqnarray}
}

参考にさせていただいた記事一覧

数式を表示する(tex記法) - はてなダイアリーのヘルプ 【はてなブログ】数式を綺麗に表示してみよう【Tex】 - Milkのメモ帳 はてなブログのTeX記法で数式を書く時用のチートシートと注意点 - ぴよぴよ.py はてなのTeX記法、align環境が使える - 廿TT Texコマンド in はてなMarkdown - tak0kadaの何でもノート