#Assemble content by selecting certain ‘tagged’ passages

4 messages · Page 1 of 1 (latest)

spice sinew
#

(Typst newbie here) I’m looking to assemble content by selecting certain ‘tagged’ passages from multiple Typst documents (e.g. by passing the tag(s) via a template variable). Can someone please suggest the best general approach, and what functions I should be researching? Many thanks.

steel vortex
#

in general you can use query to return things with particular labels

#

?r

Cats are cute.<cats>

Cats have long tails.<cats>

Dogs have wet noses.<dogs>

Cats eat fish.<cats>

Cows say "moo."<cows>

#context query(
  label("cats")
)