Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

csv自始可用Go to source

Reads structured data from a CSV file.

The CSV file will be read and parsed into a 2-dimensional array of strings: Each row in the CSV file will be represented as an array of strings, and all rows will be collected into a single array. Header rows will not be stripped.

Example

#let results = csv("example.csv") #table( columns: 2, [*Condition*], [*Result*], ..results.flatten(), )

参数
Question mark

source
str or path or bytes
必需参数
Question mark
位置参数
Question mark

A path to a CSV file or raw CSV bytes.

delimiter默认值:","

The delimiter that separates columns in the CSV file. Must be a single ASCII character.

row-type默认值:array

How to represent the file’s rows.