KScript ドキュメント
JA

言語

英語から自動翻訳されています。原文は英語です。

ドキュメント: KScript.Document

Markdown

MarkdownはMarkdownを文書の内容として追加します。#見出しは(レベルに応じてネストされた)セクションになり、段落、リスト、表、コードブロック、引用、---罫線、![caption](image.png){#id}図を含めることができます。見出しと数式にはidを付けられます:## Results {#results}、\[ E = mc^2 \] {#eq-energy}。

<KScript.Document title="From Markdown" to="'notes.pdf'">
  <Markdown path="chapters/introduction.md" />
  <Markdown>
    ## Summary

    - Every chapter is a Markdown file.
    - The script puts them together.
  </Markdown>
</KScript.Document>
import KScript.Document

Document(title: 'From Markdown', to: 'notes.pdf') {
  Markdown(path: 'chapters/introduction.md')
  Markdown "
    ## Summary

    - Every chapter is a Markdown file.
    - The script puts them together.
  "
}

Markdownファイルでは、$x$と$$ ... $$も数式として扱われます。スクリプト内のテキストでは、\( \)と\[ \]を使用してください。そこでは$は変数になるためです。

Edit this page on GitHub