Skip to content

Commit de970a0

Browse files
polosskcfrpg
andauthored
fix format (#35)
* pre-release 1.5.0 (#26) * GNU General Public License v3.0 * Update README.md * Update README.md (#25) Co-authored-by: cfrpg <[email protected]> * update 1.5.0 * update * update format Co-authored-by: cfrpg <[email protected]>
1 parent 2336a10 commit de970a0

File tree

7 files changed

+76
-39
lines changed

7 files changed

+76
-39
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ be very generous of you!
6969

7070
Copyright (c) 2016-2020 *NWPU Metaphysics Office* <https://github.com/NWPUMetaphysicsOffice>
7171

72-
This repo is under the license of **GNU General Public License v3.0**. Go
72+
This repo is under the license of **GNU General Public License v3.0**. Go
7373
and check [license](LICENSE) for details.
7474

7575
The association *NWPU Metaphysics Office* is a club-like student group. The

chapters/chapter02.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\chapter{测试A}
22
\blindtext
33
\section{我做的1个事}
4-
\blindtext\cite{knuth1986the}\cite{lamport1989latex:}
4+
\blindtext\ucite{knuth1986the}\ucite{lamport1989latex:}
55
\section{我又做的1个事}
66
\blindtext
77
\subsection{两个小标题q}

example.pdf

3.29 KB
Binary file not shown.

example.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
\thispagestyle{empty}
3232
\phantom{s}
3333
\clearpage
34-
\includepdf{preface/tasklist.pdf}
34+
\includepdf{preface/tasklist.pdf}
3535
\newpage
3636
\clearpage
3737
\thispagestyle{empty}
@@ -55,7 +55,7 @@
5555

5656
\mainmatter
5757

58-
\renewcommand{\baselinestretch}{1.0}
58+
\renewcommand{\baselinestretch}{1.25}
5959
\sHalfXiaosi\fSong
6060

6161
% 正文内容

makefile

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,62 @@
11
TEX = xelatex
22
BIB = bibtex
3+
MKI = makeindex
34
MAIN = example
5+
TEXARGS = -synctex=1 -shell-escape
46

5-
target: close clean tex open
7+
sample: close wipesample clean texsamplebib opensample
68

7-
tex: $(MAIN).tex
8-
$(TEX) $<
9+
10+
ifeq ($(OS), Windows_NT)
11+
PLATFORM = Windows
12+
else
13+
ifeq ($(shell uname), Darwin)
14+
PLATFORM = MacOS
15+
else
16+
PLATFORM = Unix-Like
17+
endif
18+
endif
19+
20+
ifeq ($(PLATFORM), Windows)
21+
RM = del /s /f
22+
OPEN = cmd /c start
23+
CLOSE = cmd /c taskkill /im Acrobat.exe /t /f
24+
else
25+
RM = rm -rf
26+
OPEN = open
27+
PID = $$(ps -ef | grep AdobeAcrobat | grep -v grep | awk '{print $$2}')
28+
CLOSE = kill -9 $(PID)
29+
endif
30+
31+
texsample: $(MAIN).tex
32+
$(TEX) $(TEXARGS) $<
33+
$(TEX) $(TEXARGS) $<
34+
35+
texsamplebib: $(MAIN).tex
36+
$(TEX) $(TEXARGS) $<
937
$(BIB) $(MAIN).aux
10-
$(TEX) $<
11-
$(TEX) $<
38+
$(TEX) $(TEXARGS) $<
39+
$(TEX) $(TEXARGS) $<
1240

1341
open: $(MAIN).pdf
14-
cmd /c start $(MAIN).pdf
42+
$(OPEN) $(MAIN).pdf
43+
44+
opensample: $(MAIN).pdf
45+
$(OPEN) $(MAIN).pdf
1546

1647
close:
17-
cmd /c taskkill /im Acrobat.exe /t /f || echo not find
48+
@$(CLOSE) || echo not found
1849

1950
clean:
20-
del /s /f *.aux *.bbl *.blg *.log *.out *.gz *.toc *.thm *.fdb_latexmk *.fls
51+
$(RM) *.gls *.glo *.ind *.idx
52+
$(RM) *.ilg *.aux *.toc *.aux
53+
$(RM) *.hd *.out *.thm *.gz *.nlo *.nls
54+
$(RM) *.log *.lof *.lot *.bbl *.blg
2155

2256
wipe:
23-
del /f $(MAIN).pdf
57+
$(RM) $(MAIN).pdf
58+
59+
wipesample:
60+
$(RM) $(MAIN)-sample.pdf
2461

25-
.PHONY: clean
62+
.PHONY: open close clean wipe

references/reference.bib

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
@misc{NWPUThesisLaTeXTemplate,
2-
title={{{\LaTeX}}-Template-For-NPU-Thesis},
3-
author={Shangkun Shen and Zhihe Wang and Jiduo Zhang and Weijia Zhang},
4-
year={2016},
5-
month={05}
2+
title = {{{\LaTeX}} Template For {NPU} Thesis},
3+
author = {Shangkun Shen and Zhihe Wang and Jiduo Zhang and Weijia Zhang},
4+
year = {2016},
5+
month = {05}
66
}
77

88
@book{knuth1986the,
9-
title={The {{\TeX}}book},
10-
author={Knuth, Donald E},
11-
publisher={Addison-Wesley},
12-
year={1986}
9+
title = {The {{\TeX}}book},
10+
author = {Knuth, Donald E},
11+
publisher = {Addison-Wesley},
12+
year = {1986}
1313
}
1414

1515
@book{lamport1989latex:,
16-
title={{{\LaTeX}}: a document preparation system},
17-
author={Lamport, Leslie},
18-
publisher={Addison-Wesley Professional},
19-
year={1989}
16+
title = {{{\LaTeX}}: a document preparation system},
17+
author = {Lamport, Leslie},
18+
publisher = {Addison-Wesley Professional},
19+
year = {1989}
2020
}
2121

2222

2323
@article{szegedy2015going,
24-
title={Going deeper with convolutions},
25-
author={Szegedy, Christian and Liu, Wei and Jia, Yangqing and Sermanet, Pierre and Reed, Scott E and Anguelov, Dragomir and Erhan, Dumitru and Vanhoucke, Vincent and Rabinovich, Andrew},
26-
journal={computer vision and pattern recognition},
27-
pages={1--9},
28-
year={2015}
24+
title = {Going deeper with convolutions},
25+
author = {Szegedy, Christian and Liu, Wei and Jia, Yangqing and Sermanet, Pierre and Reed, Scott E and Anguelov, Dragomir and Erhan, Dumitru and Vanhoucke, Vincent and Rabinovich, Andrew},
26+
journal = {computer vision and pattern recognition},
27+
pages = {1--9},
28+
year = {2015}
2929
}
3030

3131
@misc{MathSymbolsinLaTeXbypolossk,
32-
title={Math-Symbols-in-{{\LaTeX}}},
33-
author={Shangkun Shen},
34-
year={2017},
35-
month={10}
32+
title = {Math Symbols in {{\LaTeX}}},
33+
author = {Shangkun Shen},
34+
year = {2017},
35+
month = {10}
3636
}

settings/thesis-setting.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176

177177

178178
\titleformat{\chapter}[hang]{\normalfont\sSanhao\filcenter\fHei\bf}%
179-
{\sSanhao{\chaptertitlename}}{20pt}{\sSanhao}
179+
{\sSanhao{\chaptertitlename}}{1em}{\sSanhao}
180180
\titleformat{\section}[hang]{\fHei \bf \sXiaosan}%
181181
{\sXiaosan \thesection}{0.5em}{}{}
182182
\titleformat{\subsection}[hang]{\fHei \bf \sLargeHalfXiaosi}%
@@ -185,9 +185,9 @@
185185
{(\arabic{subsubsection})}{0.5em}{}{} % 小标题式的subsubsection:(4) 标题
186186

187187
% 缩小正文中各级标题之间的缩进
188-
\titlespacing{\chapter}{0pt}{-3ex plus .1ex minus .2ex}{0.25em}
189-
\titlespacing{\section}{0pt}{-0.2em}{0em}
190-
\titlespacing{\subsection}{0pt}{0.5em}{0em}
188+
\titlespacing{\chapter}{0pt}{4pt}{12.25pt}
189+
\titlespacing{\section}{0pt}{7pt}{0em}
190+
\titlespacing{\subsection}{0pt}{6.5pt}{0em}
191191
\titlespacing{\subsubsection}{0pt}{0.25em}{0pt}
192192

193193
% 定义目录中各级标题之间的格式以及缩进

0 commit comments

Comments
 (0)