From e77051ccc4b47951bfa4fde2be436b1bb2fb113b Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 28 Apr 2024 17:33:09 +0200 Subject: use https://github.com/nunocoracao/blowfish.git --- .../samples/mathematical-notation/index.ja.md | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md (limited to 'themes/blowfish/exampleSite/content/samples/mathematical-notation/index.ja.md') 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 は数学的記法を記事内にレンダリングする際に利用できます。 + + + +{{< katex >}} + +Blowfish は数学的記法を利用する場合のみ、 KaTeX アセットをプロジェクトにバンドルします。これを機能させるには、単に記事内に [`katex` ショートコード]({{< ref "docs/shortcodes#katex" >}}) を含ませてください。以下が例です: + +```md +{{}} +``` +ページ上のすべての 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} } } +$$ -- cgit v1.2.3