add generated title pages to bundles
This commit is contained in:
6
Makefile
6
Makefile
@@ -11,7 +11,8 @@ TEMPLATE_SRCS := $(shell find template -type f) $(LIBS:%=template/lib/%) \
|
||||
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
|
||||
$(BUNDLE_THESES:%=$(BUNDLEDIR)/%.typ) $(BUNDLEDIR)/Makefile \
|
||||
$(BUNDLEDIR)/title-pages.pdf
|
||||
PACK_TARGETS := $(TO_PACK:%=$(PACKDIR)/%) $(PACKDIR)/documentation.typ \
|
||||
$(PACKDIR)/documentation.pdf $(PACKDIR)/citations.bib $(PACKDIR)/Makefile
|
||||
|
||||
@@ -174,6 +175,9 @@ $(BUNDLEDIR)/template/%: template/% | $(BUNDLEDIR)/template
|
||||
$(BUNDLEDIR)/%.typ: $(BUILD_DIR)/content_%.txt | $(BUNDLEDIR)
|
||||
sed 's/\.\.\/template\//template\//' $< > $@
|
||||
|
||||
$(BUNDLEDIR)/title-pages.pdf: theses/title_pages.typ | $(BUNDLEDIR)
|
||||
typst compile --root . --font-path template/fonts $< $@
|
||||
|
||||
# == TESTS ==
|
||||
|
||||
include tests/make.mk
|
||||
|
||||
45
theses/title_pages.typ
Normal file
45
theses/title_pages.typ
Normal file
@@ -0,0 +1,45 @@
|
||||
#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 tento soubor* "`title-pages.pdf`" souborem se zadáním vygenerovaným *ze~STAGu*.
|
||||
], color, 2em))
|
||||
|
||||
#text([
|
||||
To můžete v online Typst editoru udělat takto:
|
||||
+ *Počkejte až budete mít oficiálně schválené zadání práce.*
|
||||
+ Soubor s titulními stranami se vám pak ukáže ve STAGu -- stáhněte soubor ze STAGu.
|
||||
+ Přejmenujte ho na "`title-pages.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).
|
||||
|
||||
Oficiálně *není doporučeno soubor vytvářet manuálně*, ale opravdu ho stáhnout ho ze STAGu.
|
||||
Soubor ze STAGu navíc obsahuje důležitá metadata.
|
||||
], black, 11pt)
|
||||
|
||||
#pagebreak()
|
||||
|
||||
#set text(lang: "en")
|
||||
#align(center + horizon, text([
|
||||
*Replace this file* "`title-pages.pdf`" with the title pages document with assignment genenerated *from~STAG*.
|
||||
], color, 2em))
|
||||
|
||||
#text([
|
||||
In the online Typst editor you can do it as follows:
|
||||
+ *Wait until you have your assignment officially approved.*
|
||||
+ The file with the title pages will then appear in STAG for you --- download the file from STAG.
|
||||
+ Rename it to "`title-pages.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.
|
||||
|
||||
Officially, it is *not recommended to create the file manually*, but, indeed, download it from STAG.
|
||||
The file from STAG also includes some important metadata.
|
||||
], black, 11pt)
|
||||
Reference in New Issue
Block a user