KScript 문서
KO

언어

영어에서 자동 번역되었습니다. 원문은 영어입니다.

문서: KScript.Document

LaTeX

Latex는 문서 내용으로 LaTeX를 추가합니다. 이는 문서 파트가 읽히는 방식과 같이 읽힙니다. 텍스트는 작성된 그대로 사용되므로, 중괄호와 백슬래시는 LaTeX의 것입니다. 또한 value:와 함께 latex 값을 받거나, path:와 함께 .tex 파일을 받을 수도 있습니다.

  <import package="KScript.Document" />

  <fn name="method" value="```latex
      \subsection{Method}
      We counted \textbf{gliders} by hand.
      ```" />

  <Document title="From LaTeX" to="paper.pdf">
    <Latex>\section{Results}
Gliders travel \emph{diagonally}, and $N(t) = N_0 e^{rt}$.</Latex>
    <Latex value="@method()" />
    <Latex path="chapters/discussion.tex" />
  </Document>
import KScript.Document

fn method() => ```latex
  \subsection{Method}
  We counted \textbf{gliders} by hand.
  ```

Document(title: "From LaTeX", to: "paper.pdf") {
  Latex ```latex
    \section{Results}
    Gliders travel \emph{diagonally}, and $N(t) = N_0 e^{rt}$.
    ```
  Latex(value: @method())
  Latex(path: "chapters/discussion.tex")
}

읽을 수 없는 명령은 그 명령의 이름을 포함한 오류로 표시돼요.

Edit this page on GitHub