Skip to content

Commit

Permalink
feat(LaTeX): init a dtx project.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Nov 29, 2020
1 parent 0374e3e commit 77b2494
Show file tree
Hide file tree
Showing 100 changed files with 874 additions and 12,588 deletions.
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
PACKAGE = bithesis

LATEX = xelatex

SOURCES = $(PACKAGE).ins $(PACKAGE).dtx
CLSFILE = dtx-style.sty bitart.cls bitbook.cls

LATEXMK = latexmk

# make deletion work on Windows
ifdef SystemRoot
RM = del /Q
else
RM = rm -f
endif

.PHONY: all cls doc clean FORCE_MAKE

$(PACKAGE).pdf: cls FORCE_MAKE
$(LATEXMK) $(PACKAGE).dtx

$(CLSFILE): $(SOURCES)
xetex $(PACKAGE).ins

cls: $(CLSFILE)

doc: $(PACKAGE).pdf

viewdoc: doc
$(LATEXMK) -pv $(PACKAGE).dtx

clean:
$(LATEXMK) -c $(PACKAGE).dtx
-@$(RM) -r *.glo $(CLSFILE) _minted-bithesis

clean-dist:
-@$(RM) -r $(PACKAGE).pdf

clean-all: clean clean-dist FORCE_MAKE
108 changes: 0 additions & 108 deletions README-en.md

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 77b2494

Please sign in to comment.