add generated assignment to bundles
This commit is contained in:
5
Makefile
5
Makefile
@@ -12,7 +12,7 @@ TO_PACK := $(TEMPLATE_SRCS) template/LICENSE
|
||||
BUNDLE_THESES := bp_cs bp_en dp_cs dp_en prj_cs prj_en sp_cs sp_en
|
||||
BUNDLE_TARGETS := $(TO_PACK:%=$(BUNDLEDIR)/%) $(BUNDLEDIR)/citations.bib $(BUNDLEDIR)/bp_cs.typ \
|
||||
$(BUNDLE_THESES:%=$(BUNDLEDIR)/%.typ) $(BUNDLEDIR)/Makefile \
|
||||
$(BUNDLEDIR)/title-pages.pdf
|
||||
$(BUNDLEDIR)/title-pages.pdf $(BUNDLEDIR)/assignment.pdf
|
||||
PACK_TARGETS := $(TO_PACK:%=$(PACKDIR)/%) $(PACKDIR)/documentation.typ \
|
||||
$(PACKDIR)/documentation.pdf $(PACKDIR)/citations.bib $(PACKDIR)/Makefile
|
||||
|
||||
@@ -178,6 +178,9 @@ $(BUNDLEDIR)/%.typ: $(BUILD_DIR)/content_%.txt | $(BUNDLEDIR)
|
||||
$(BUNDLEDIR)/title-pages.pdf: theses/title_pages.typ | $(BUNDLEDIR)
|
||||
typst compile --root . --font-path template/fonts $< $@
|
||||
|
||||
$(BUNDLEDIR)/assignment.pdf: theses/assignment.typ | $(BUNDLEDIR)
|
||||
typst compile --root . --font-path template/fonts $< $@
|
||||
|
||||
# == TESTS ==
|
||||
|
||||
include tests/make.mk
|
||||
|
||||
37
theses/assignment.typ
Normal file
37
theses/assignment.typ
Normal file
@@ -0,0 +1,37 @@
|
||||
#let color = red
|
||||
#set text(font: "Inter")
|
||||
#set page(foreground: rect(
|
||||
width: 90%,
|
||||
height: 90%,
|
||||
stroke: (paint: color, thickness: .03em, dash: (.5em, .5em))
|
||||
))
|
||||
|
||||
#set text(lang: "cs")
|
||||
#align(center + horizon, text([
|
||||
*Nahraďte soubor "`assignment.pdf`"* souborem se zadáním.
|
||||
], color, 2em))
|
||||
|
||||
#text([
|
||||
To můžete v online Typst editoru udělat takto:
|
||||
+ Soubor se zadáním stáhněte ze systému. Pokud vaše fakulta nemá žádný systém, požádejte svého vedoucího o PDF soubor se zadáním.
|
||||
+ Přejmenujte ho na "`assignment.pdf`".
|
||||
+ Otevřete v online Typst editoru prohlížeč souborů.
|
||||
+ Přetáhněte svůj přejmenovaný soubor do prohlížeče souborů.
|
||||
+ Pokud jste vše udělali správně, vyskočí vám okno, které se vás ptá, jestli chcete soubor přepsat -- klikněte na přepsat (v angličtině overwrite).
|
||||
], black, 11pt)
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#set text(lang: "en")
|
||||
#align(center + horizon, text([
|
||||
*Replace file "`assignment.pdf`"* with your assignment document.
|
||||
], color, 2em))
|
||||
|
||||
#text([
|
||||
In the online Typst editor you can do it as follows:
|
||||
+ Download the assignment file from the system. If your faculty doesn't have a system, ask your supervisor for a PDF file with the assignment.
|
||||
+ Rename it to "`assignment.pdf`".
|
||||
+ Open the file browser in the online Typst editor.
|
||||
+ Drag and drop your renamed file into the file browser.
|
||||
+ If you did everything correctly, a window will popup, asking you if you want to overwrite the file --- click on overwrite.
|
||||
], black, 11pt)
|
||||
Reference in New Issue
Block a user