Skip to content

Commit

Permalink
make changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed May 19, 2022
1 parent ddbcebf commit 44f5965
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
8 changes: 2 additions & 6 deletions cj/titlepage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
\thispagestyle{empty}
\tableofcontents

\def\blankpage{%
\clearpage%
\thispagestyle{empty}%
\null%
\clearpage}
\blankpage
\clearpage
\thispagestyle{empty}
7 changes: 4 additions & 3 deletions fyzika/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ GRAPHICS=graphics
PDF=$(patsubst %.md,$(OUT)/%.pdf,$(wildcard *.md))
GRAPH_DEPS=$(call graphics-deps,$(GRAPHICS))

.PHONY: all graphics pdf complete test
.PHONY: all graphics pdf complete clean
.SECONDARY: $(GRAPH_DEPS)

all: graphics pdf complete clean
all: graphics pdf complete

include ../Makefile.inc

Expand All @@ -20,8 +20,9 @@ clean:

allMarkdownInputs=$(addsuffix }, $(addprefix \markdownInput{../,$(shell ls -v *.md)))

completeOptions := twoside,titlepage
$(OUT)/complete.pdf: $(wildcard *.md) template.cls $(GRAPH_DEPS) | $(GRAPHICS_OUT) $(OUT)
cd $(@D); $(call XELATEX,'\documentclass[twoside]{../template}\begin{document}\tableofcontents$(allMarkdownInputs)\listoffigures\listoftables\end{document}')
cd $(@D); $(call XELATEX,'\documentclass[$(completeOptions)]{../template}\begin{document}\maketitle\tableofcontents\newpage$(allMarkdownInputs)\listoffigures\listoftables\end{document}')

.SECONDEXPANSION:
$(OUT)/%.pdf: %.md template.cls $$(call graphics-deps,$(GRAPHICS),$$(shell echo $$* | cut -d'-' -f1)) | $(GRAPHICS_OUT) $(OUT)
Expand Down
7 changes: 4 additions & 3 deletions ivt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ GRAPHICS=graphics
PDF=$(patsubst %.md,$(OUT)/%.pdf,$(wildcard *.md))
GRAPH_DEPS=$(call graphics-deps,$(GRAPHICS))

.PHONY: all graphics pdf complete test
.PHONY: all graphics pdf complete clean
.SECONDARY: $(GRAPH_DEPS)

all: graphics pdf complete clean
all: graphics pdf complete

include ../Makefile.inc

Expand All @@ -20,8 +20,9 @@ clean:

allMarkdownInputs=$(addsuffix }, $(addprefix \markdownInput{../,$(shell ls -v *.md)))

completeOptions := twoside,titlepage
$(OUT)/complete.pdf: $(wildcard *.md) template.cls $(GRAPH_DEPS) | $(GRAPHICS_OUT) $(OUT)
cd $(@D); $(call XELATEX,'\documentclass[twoside]{../template}\begin{document}\tableofcontents$(allMarkdownInputs)\listoffigures\listoftables\end{document}')
cd $(@D); $(call XELATEX,'\documentclass[$(completeOptions)]{../template}\begin{document}\maketitle\tableofcontents\newpage$(allMarkdownInputs)\listoffigures\listoftables\end{document}')

.SECONDEXPANSION:
$(OUT)/%.pdf: %.md template.cls $$(call graphics-deps,$(GRAPHICS),$$(shell echo $$* | cut -d'-' -f1)) $$(wildcard source_codes/$$(shell echo $$* | cut -d'-' -f1)*) | $(GRAPHICS_OUT) $(OUT)
Expand Down

0 comments on commit 44f5965

Please sign in to comment.