diff options
author | Sudipto Mallick <smlckz@termux-alpine> | 2024-01-12 10:13:01 +0000 |
---|---|---|
committer | Sudipto Mallick <smlckz@termux-alpine> | 2024-01-12 10:13:01 +0000 |
commit | ac7aba2bacaaf74a91e218ee537fe3bf267b8e4d (patch) | |
tree | ffa6a98fa31b9031b918d448a6cb7744ad66122d /java/buildall | |
parent | 87554cf575a4a92f00908a7cccfe6c92db2ef3ef (diff) | |
download | zadania-ac7aba2bacaaf74a91e218ee537fe3bf267b8e4d.tar.gz |
Initial implementation of complete assignment
This is the initial implementation of the generation of complete document of the assignments. java/buildall: Generates a Typst document from the list of assignments in `alist.txt` (needs to updated to work with `state.sql` in future). java/prelude.typ: Contains the prelude code responsible for generating the table of contents, using the facilities provided by Typst. java/template.typ: Updated so that it can be used with `prelude.typ` for generating the table of contents. .gitignore: To ignore `all.typ`, which is a build artifact.
Diffstat (limited to 'java/buildall')
-rw-r--r-- | java/buildall | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/buildall b/java/buildall index 7cdd0c0..4468d35 100644 --- a/java/buildall +++ b/java/buildall @@ -1,4 +1,4 @@ #!/bin/sh - -awk '$3 == "#" { printf("#include(\"text/%s.typ\")\n", $2) }' alist.txt > all.typ -typst compile --root $PWD all.typ a/all.pdf +cat prelude.typ > all.typ +awk '$2 == "#" { printf("#include(\"text/%s.typ\")\n", $1) }' alist.txt >> all.typ +typst compile --root $PWD all.typ docs/all.pdf |