# `TF007` CSVs Load requirements and comments from CSVs :::{dropdown} Is a test for :open: :icon: check-circle-fill :color: primary - [`SF009` CSV for requirements](/requirements/SF009) - [`SF010` CSV for comments](/requirements/SF010) ::: ## Initial state Blank project ## Procedure ### Step 1 Write a CSV file for requirements ```console $ cat spec.csv ``` ```csv id,short,long S01,"Lorem ipsum","A requirement from CSV" ``` ### Step 2 Write a CSV file for comments ```console $ cat comments.csv ``` ```csv from,about,date,text "Some Person",S01,"01/01/2025","A comment from CSV" ``` ### Step 3 Write a typst file importing the CSVs ```console $ cat dummy.typ ``` ```typst #import "@local/speky:0.0.7": speky, table_to_comments, table_to_requirements #speky((table_to_requirements(csv("spec.csv"), "functional"), table_to_comments(csv("comments.csv")))) ``` ### Step 4 Generate the PDF ```console $ typst compile dummy.typ && open dummy.pdf ``` ### Step 5 Verify the requirement and comment appear properly