-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Juntong Chen <[email protected]>
- Loading branch information
Showing
12 changed files
with
28 additions
and
306 deletions.
There are no files selected for viewing
Binary file removed
BIN
-431 KB
packages/preview/modern-ecnu-thesis/0.1.0/modern-ecnu-thesis-doctor-academic.pdf
Binary file not shown.
Binary file removed
BIN
-431 KB
packages/preview/modern-ecnu-thesis/0.1.0/modern-ecnu-thesis-doctor-professional.pdf
Binary file not shown.
Binary file removed
BIN
-431 KB
packages/preview/modern-ecnu-thesis/0.1.0/modern-ecnu-thesis-master-academic.pdf
Binary file not shown.
Binary file removed
BIN
-432 KB
packages/preview/modern-ecnu-thesis/0.1.0/modern-ecnu-thesis-master-professional.pdf
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
packages/preview/modern-ecnu-thesis/0.1.0/template/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
TYP_SRC = $(shell find . -name '*.typ') | ||
|
||
TARGET = thesis.pdf | ||
TARGET_TYP = thesis.typ | ||
TYPST_FLAGS = --pdf-standard 1.7 --root .. | ||
|
||
$(TARGET): $(TYP_SRC) | ||
typst compile $(TYPST_FLAGS) (TARGET_TYP) | ||
@echo "Build successful: $(shell du -h $(TARGET_TYP) | cut -f1)" | ||
|
||
.PHONY: clean, watch, count | ||
clean: | ||
rm -f $(TARGET) | ||
|
||
watch: | ||
typst watch $(TYPST_FLAGS) $(TARGET_TYP) | ||
|
||
# Count words and characters in mainmatter and backmatter | ||
count: | ||
@echo "#words: $(shell typst query $(TARGET_TYP) '<total-words>' 2>/dev/null --field value --one)" | ||
@echo "#chars: $(shell typst query $(TARGET_TYP) '<total-chars>' 2>/dev/null --field value --one)" | ||
|
||
build-dev: | ||
typst compile $(TYPST_FLAGS) --input doctype=bachelor $(TARGET_TYP) modern-ecnu-thesis-bachelor.pdf | ||
typst compile $(TYPST_FLAGS) --input doctype=master --input degree=academic $(TARGET_TYP) modern-ecnu-thesis-master-academic.pdf | ||
typst compile $(TYPST_FLAGS) --input doctype=master --input degree=professional $(TARGET_TYP) modern-ecnu-thesis-master-professional.pdf | ||
typst compile $(TYPST_FLAGS) --input doctype=doctor --input degree=academic $(TARGET_TYP) modern-ecnu-thesis-doctor-academic.pdf | ||
typst compile $(TYPST_FLAGS) --input doctype=doctor --input degree=professional $(TARGET_TYP) modern-ecnu-thesis-doctor-professional.pdf |
Binary file removed
BIN
-431 KB
packages/preview/modern-ecnu-thesis/0.1.0/template/modern-ecnu-thesis-doctor-academic.pdf
Binary file not shown.
Binary file removed
BIN
-431 KB
...ages/preview/modern-ecnu-thesis/0.1.0/template/modern-ecnu-thesis-doctor-professional.pdf
Binary file not shown.
Binary file removed
BIN
-431 KB
packages/preview/modern-ecnu-thesis/0.1.0/template/modern-ecnu-thesis-master-academic.pdf
Binary file not shown.
Binary file removed
BIN
-432 KB
...ages/preview/modern-ecnu-thesis/0.1.0/template/modern-ecnu-thesis-master-professional.pdf
Binary file not shown.
306 changes: 0 additions & 306 deletions
306
packages/preview/modern-ecnu-thesis/0.1.0/template/thesis-bachelor.typ
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.