Skip to main content
Glama
cite.md1.97 kB
# Cite ## `cite` Cite a work from the bibliography. Before you starting citing, you need to add a [bibliography] somewhere in your document. # Example ```example This was already noted by pirates long ago. @arrgh Multiple sources say ... @arrgh @netwok. You can also call `cite` explicitly. #cite(<arrgh>) #bibliography("works.bib") ``` If your source name contains certain characters such as slashes, which are not recognized by the `<>` syntax, you can explicitly call `label` instead. ```typ Computer Modern is an example of a modernist serif typeface. #cite(label("DBLP:books/lib/Knuth86a")). >>> #bibliography("works.bib") ``` # Syntax This function indirectly has dedicated syntax. [References]($ref) can be used to cite works from the bibliography. The label then corresponds to the citation key. ## Parameters ### key *(required)* The citation key that identifies the entry in the bibliography that shall be cited, as a label. ### supplement A supplement for the citation such as page or chapter number. In reference syntax, the supplement can be added in square brackets: ### form The kind of citation to produce. Different forms are useful in different scenarios: A normal citation is useful as a source at the end of a sentence, while a "prose" citation is more suitable for inclusion in the flow of text. If set to `{none}`, the cited work is included in the bibliography, but nothing will be displayed. ### style The citation style. This can be: - `{auto}` to automatically use the [bibliography's style]($bibliography.style) for citations. - A string with the name of one of the built-in styles (see below). Some of the styles listed below appear twice, once with their full name and once with a short alias. - A path string to a [CSL file](https://citationstyles.org/). For more details about paths, see the [Paths section]($syntax/#paths). - Raw bytes from which a CSL style should be decoded. ## Returns - content

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server