Skip to content

Commit 2db6a0c

Browse files
committed
abstract auto generate
1 parent b4f4b89 commit 2db6a0c

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

Makefile

+12-3
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,34 @@ endif
3535

3636
.PHONY: fast loud quite bib spell
3737

38-
fast: $(SRCS) $(REFS)
38+
abs:
39+
@echo "\\\\begin{abstract}" > abs.tex
40+
@cat abs.txt >> abs.tex
41+
@echo "\end{abstract}" >> abs.tex
42+
@echo ================= building abstract.tex ===================
43+
44+
fast: abs $(SRCS) $(REFS)
3945
@echo ================== YOLO: running fast build ==================
4046
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) $(SUFFIX)
47+
# rm abs.tex
4148

42-
loud: $(SRCS) $(REFS)
49+
loud: abs $(SRCS) $(REFS)
4350
@echo ================== YOLO: running full build ==================
4451
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) $(SUFFIX)
4552
$(BIBTEX) $(REPORT)
4653
perl -pi -e "s/%\s+//" $(REPORT).bbl
4754
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) $(SUFFIX)
4855
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) $(SUFFIX)
56+
rm abs.tex
4957

50-
quite: $(SRCS) $(REFS)
58+
quite: abs $(SRCS) $(REFS)
5159
@echo ================== YOLO: running full build quitely ==================
5260
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) 1>/dev/null
5361
$(BIBTEX) $(REPORT)
5462
perl -pi -e "s/%\s+//" $(REPORT).bbl
5563
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) 1>/dev/null
5664
@TEXINPUTS="sty:" $(LATEX) $(REPORT) $(OPTS) 1>/dev/null
65+
rm abs.tex
5766

5867
spell:
5968
make clean

abs.tex

-4
This file was deleted.

abs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Put abstract here~\cite{ex}.

paper.tex

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
\nocite{*}
2020

2121
\input{abs}
22-
\input{intro}
23-
\input{cmds}
2422

2523
\clearpage
2624
\bibliographystyle{plain}

0 commit comments

Comments
 (0)