diff options
author | Sudipto Mallick <smlckz@termux-alpine> | 2024-01-24 16:44:31 +0000 |
---|---|---|
committer | Sudipto Mallick <smlckz@termux-alpine> | 2024-01-24 16:44:31 +0000 |
commit | 6766b6479a1d30680c1eb59df4c4b720eb22ce1c (patch) | |
tree | 19af8079fbed64732f891da09c69356153cc0170 /java/template.typ | |
parent | 8fb719f58f91d1f1f187a1db974682fb3736ee05 (diff) | |
download | zadania-6766b6479a1d30680c1eb59df4c4b720eb22ce1c.tar.gz |
Implement Java Assignment #15 and more
java/{code/ParentWithTwoChildren.java, output/ParentWithTwoChildren.typ, text/ParentWithTwoChildren.typ}: Code, output and assignment text for Java assignment #15 java/state.sql: Update for Java assignment #15 java/template.typ: Allow for long program description to be left aligned and justified, instead of centered java/tobedone: Update to show assignment numbers (implicitly `rowid`)
Diffstat (limited to 'java/template.typ')
-rw-r--r-- | java/template.typ | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/template.typ b/java/template.typ index 57e2e48..30c0a81 100644 --- a/java/template.typ +++ b/java/template.typ @@ -94,9 +94,18 @@ cb(l, lpno) }) -#let assignment(number, description) = align(center, [ +#let assignment(number, description, block: false) = align(center, [ = #text(weight: 600, [Assignment #number]) + #{ + if block == true [ + #set par(justify: true) + #align(left)[ == #text(weight: 500, [Program statement:]) #text(weight: 400, description) + ] + ] else [ +== #text(weight: 500, [Program statement:]) #text(weight: 400, description) + ] + } #locate(loc => alist.update(lst => (..lst, (number, description, counter(page).at(loc).first(), [])))) ]) |