Skip to content

Commit

Permalink
fix: remove pdf
Browse files Browse the repository at this point in the history
Signed-off-by: Juntong Chen <[email protected]>
  • Loading branch information
jtchen2k committed Jan 12, 2025
1 parent f6909dd commit ca6abf8
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 306 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
28 changes: 28 additions & 0 deletions packages/preview/modern-ecnu-thesis/0.1.0/template/Makefile
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
306 changes: 0 additions & 306 deletions packages/preview/modern-ecnu-thesis/0.1.0/template/thesis-bachelor.typ

This file was deleted.

Binary file not shown.
Binary file not shown.

0 comments on commit ca6abf8

Please sign in to comment.