diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
commit | e77051ccc4b47951bfa4fde2be436b1bb2fb113b (patch) | |
tree | f0b75ee3521da9c8cd39dac4359212348f70e4e8 /themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md | |
parent | 4b355837824ac2422d371acef790f0f4249255c7 (diff) |
use https://github.com/nunocoracao/blowfish.git
Diffstat (limited to 'themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md')
-rwxr-xr-x | themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md b/themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md new file mode 100755 index 0000000..6306546 --- /dev/null +++ b/themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md @@ -0,0 +1,51 @@ +--- +title: 数学的記法 +date: 2019-03-08 +description: Blowfish での数学的記法の簡単なサンプル。 +tags: ["sample", "katex", "maths", "shortcodes"] +type: 'sample' +--- + +KaTeX は数学的記法を記事内にレンダリングする際に利用できます。 + +<!--more--> + +{{< katex >}} + +Blowfish は数学的記法を利用する場合のみ、 KaTeX アセットをプロジェクトにバンドルします。これを機能させるには、単に記事内に [`katex` ショートコード]({{< ref "docs/shortcodes#katex" >}}) を含ませてください。以下が例です: + +```md +{{</* katex */>}} +``` +ページ上のすべての KaTeX 構文は自動的にレンダリングされます。 +利用可能な構文は[サポートしている TeX 機能](https://katex.org/docs/supported.html)のオンラインの文献を参照してください。 + +## インライン表記 + +インライン表記は `\\(` と `\\)` 記号で式を囲むことで生成できます。 + +**例:** + +```tex +% KaTeX インライン表記 +インライン表記: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\) +``` + +インライン表記: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\) + +## ブロック表記 + +または、ブロック表記は `$$` 記号を利用することで生成できます。これによって、式が独自の HTML ブロックに出力されます。 + +**例:** + +```tex +% KaTeX ブロック表記 +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ +``` + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ |