代码拉取完成,页面将自动刷新
MAIN = main
NAME = ustcthesis
CLSFILES = $(NAME).cls
BSTFILES = $(NAME)-numerical.bst $(NAME)-authoryear.bst $(NAME)-bachelor.bst
SHELL = bash
LATEXMK = latexmk -xelatex
VERSION = $(shell cat $(NAME).dtx | egrep -o "\[\d\d\d\d/\d\d\/\d\d v.+\]" \
| egrep -o "v\S+")
TEXMF = $(shell kpsewhich --var-value TEXMFHOME)
.PHONY : main cls doc test save clean all install distclean zip FORCE_MAKE
main : $(MAIN).pdf
all : main doc
cls : $(CLSFILES) $(BSTFILES)
doc : $(NAME).pdf
$(MAIN).pdf : $(MAIN).tex $(CLSFILES) $(BSTFILES) FORCE_MAKE
$(LATEXMK) $<
$(NAME).cls : $(NAME).dtx
xetex $<
$(NAME).pdf : $(NAME).dtx FORCE_MAKE
$(LATEXMK) $<
test:
texlua test/build.lua check
texlua test/build-toc.lua check
texlua test/build-bib.lua check
# texlua test/build-nomencl.lua check
save:
texlua test/build.lua save --quiet titlepage
texlua test/build.lua save --quiet titlepage-master
texlua test/build.lua save --quiet titlepage-secret
texlua test/build.lua save --quiet titlepage-bachelor
texlua test/build.lua save --quiet statement
texlua test/build.lua save --quiet statement-secret
texlua test/build.lua save --quiet package-siunitx
texlua test/build-toc.lua save --quiet main
texlua test/build-toc.lua save --quiet main-english
texlua test/build-toc.lua save --quiet main-bachelor
texlua test/build-toc.lua save --quiet main-bachelor-arabic
texlua test/build-toc.lua save --quiet main-bachelor-english
texlua test/build-toc.lua save --quiet main-lof
texlua test/build-toc.lua save --quiet main-lot
texlua test/build-bib.lua save --quiet bib-super
texlua test/build-bib.lua save --quiet bib-numbers
texlua test/build-bib.lua save --quiet bib-authoryear
texlua test/build-bib.lua save --quiet bib-bachelor
texlua test/build-nomencl.lua save --quiet package-nomencl
clean : FORCE_MAKE
$(LATEXMK) -c $(MAIN).tex
$(LATEXMK) -c $(NAME).dtx
texlua test/build.lua clean
distclean :
$(LATEXMK) -C $(MAIN).tex
$(LATEXMK) -C $(NAME).dtx
texlua test/build.lua clean
install : cls doc
mkdir -p $(TEXMF)/{doc,source,tex}/latex/$(NAME)
mkdir -p $(TEXMF)/bibtex/bst/$(NAME)
cp $(BSTFILES) $(TEXMF)/bibtex/bst/$(NAME)
cp $(NAME).pdf $(TEXMF)/doc/latex/$(NAME)
cp $(NAME).dtx $(TEXMF)/source/latex/$(NAME)
cp $(CLSFILES) $(TEXMF)/tex/latex/$(NAME)
zip : main doc
ln -sf . $(NAME)
zip -r ../$(NAME)-$(VERSION).zip $(NAME)/{README.md,LICENSE,\
$(NAME).dtx,$(NAME).pdf,$(NAME).cls,$(NAME)-*.bst,figures,\
$(MAIN).tex,chapters,bib,$(MAIN).pdf,\
latexmkrc,Makefile}
rm $(NAME)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。