인용 및 참고 문헌
[@key]를 사용해 인용하세요. 출처는 BibTeX 파일, Source 요소, 또는 둘 다에서 가져올 수 있습니다:
<KScript.Document template="paper" title="Cited" to="'cited.pdf'">
<Paragraph>Life is universal [@berlekamp1982; @rendell2002].</Paragraph>
<Bibliography path="refs.bib">
<Source id="rendell2002" type="inproceedings" author="Paul Rendell" title="Turing Universality of the Game of Life" booktitle="Collision-Based Computing" year="2002" />
</Bibliography>
</KScript.Document>import KScript.Document
Document(template: paper, title: 'Cited', to: 'cited.pdf') {
Paragraph "Life is universal [@berlekamp1982; @rendell2002]."
Bibliography(path: 'refs.bib') {
Source(id: 'rendell2002', type: 'inproceedings', author: 'Paul Rendell', title: 'Turing Universality of the Game of Life', booktitle: "Collision-Based Computing", year: 2002)
}
}인용된 출처만 목록에 나옵니다. citations: numeric(기본값)를 사용하면 처음 인용된 순서대로 [1]과 같이 번호가 매겨집니다. citations: author-year를 사용하면 (Berlekamp et al., 1982)와 같은 형식으로 표시되며, 목록은 저자 순으로 정렬됩니다. Source는 BibTeX 필드를 속성으로 받으며, author는 사람 이름을 and로 구분합니다. 출처를 인용하면서 Bibliography를 생략하면 참고 문헌은 문서 끝에 배치됩니다.
존재하지 않는 id를 가리키는 인용이나 상호 참조는 오류입니다. 같은 id를 두 번 사용하는 것도 오류입니다. id:은 다른 텍스트와 마찬가지로 텍스트이므로, 반복문에서 항목마다 Section(title: $chapter.title, id: "ch-{ $chapter.number }")와 같은 값을 만들 수 있습니다.