Skip to content

Commit c32fd6c

Browse files
committed
revised version
1 parent 591cc12 commit c32fd6c

18 files changed

+118
-373
lines changed

README.md

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,35 @@ Tex template for SPEIT internship report. 巴黎高科学院工程师实习报
44

55
Pull requests are appreciated. Feel free to tell me that you can't wait to be one collaborator!
66

7+
## Project structure
8+
9+
```bash
10+
├── internship.tex (entry)
11+
├── tex
12+
│ ├── id.tex (cover info, keywords, etc.)
13+
│ ├── abstract.tex
14+
│ ├── intro.tex (introduction)
15+
│ ├── app_*.tex (appendix)
16+
│ ├── *.tex (body chapters)
17+
├── bib
18+
│ ├── *.bib (bibliography)
19+
├── figure
20+
│ ├── *.pdf/png/jpg/eps (figures)
21+
├───#######################################
22+
├───#######################################
23+
├── 官方word模板.docx
24+
├── sjtuthesis.cfg
25+
├── sjtuthesis.cls
26+
├── .latexmkrc
27+
├── Makefile
28+
├── README.md
29+
```
30+
31+
:warning: Do not need to touch the files below, unless you decide to change layout or style of this template.
32+
733
## How to use online
834

9-
Clone the following template on Overleaf:
35+
Please clone the following template on Overleaf:
1036

1137
[Overleaf template](https://www.overleaf.com/read/ndszvjtqykzq),
1238

@@ -16,7 +42,7 @@ then enjoy it anywhere :blush:
1642

1743
### Preparation
1844

19-
Utilities recommended for writing locally on your WINDOWS laptop:
45+
Download source files on your laptop. Utilities recommended for writing locally on WINDOWS are as followings:
2046
- [texlive](http://mirror.hust.edu.cn/CTAN/systems/texlive/tlnet/)
2147
- [editor](https://www.texstudio.org)
2248
- [font](https://pan.baidu.com/s/1kV68haJ)(optional)
@@ -29,9 +55,15 @@ Utilities recommended for writing locally on your WINDOWS laptop:
2955
- **make clean**: clean up auxiliary files
3056
- **make debug**: error debug
3157

32-
:warning: Do NOT and Do NOT Need to call `make pvc` followed by another `make`!
58+
:warning: Do NOT and Do NOT Need to call `make pvc` followed by another `make`!
59+
60+
You may directly pass by a whole `latexmk` command in shell or in TexStudio options. For example,
61+
62+
In shell: `latexmk -xelatex -gg -silent internship`
63+
64+
In TexStudio (Options --> Configure --> Commands --> latexmk):
65+
`latexmk.exe -xelatex -gg -silent -synctex=1 -interaction=nonstopmode %.tex`
3366

34-
:exclamation: You may directly pass by a whole `latexmk` command in shell or in TexStudio options.
3567

3668
### References
3769

File renamed without changes.

internship.pdf

-22 Bytes
Binary file not shown.

internship.tex

Lines changed: 41 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
%# -*- coding: utf-8-unix -*-
2-
%%==================================================
3-
%% thesis.tex
4-
%%==================================================
5-
6-
% 双面打印
2+
%% Github repo
3+
%% https://github.com/baoyukun/Internship-Report
4+
%% 双面打印
75
\documentclass[bachelor, openany, english]{sjtuthesis}
86
% \documentclass[bachelor, openany, oneside, submit]{sjtuthesis}
97
% \documentclass[master, review]{sjtuthesis}
@@ -17,120 +15,69 @@
1715
% submit % 定稿提交的论文,插入签名扫描版的原创性声明、授权声明
1816
% ]
1917

20-
% 逐个导入参考文献数据库
21-
\addbibresource{bib/thesis.bib}
18+
%% 逐个导入参考文献数据库
19+
\addbibresource{bib/internship.bib}
20+
% 导入下一个参考文献库
2221
% \addbibresource{bib/chap2.bib}
2322

24-
\input{tex/id} % NOTE: the enclosed commands must be executed in preamble
23+
%% 预定义值:封面个人信息,摘要关键词等
24+
\input{tex/id}
2525

2626
\begin{document}
2727

2828
% 默认1.5倍行距
2929
\spacing{1.5}
3030

31-
% 无编号内容:中英文论文封面、授权页
31+
%% 无编号内容:中英文论文封面、授权页
3232
\maketitle
33+
3334
\makeatletter
3435

35-
\ifsjtu@coursepaper
36-
% 摘要 部分课程论文需要,可以自行选择添加或者去除
37-
% \include{tex/abstract}
38-
39-
% 目录 部分课程论文需要,可以自行选择添加或者去除
40-
% \tableofcontents
41-
42-
\else
43-
\ifsjtu@submit\relax
44-
\includepdf{pdf/original.pdf}
45-
\cleardoublepage
46-
\includepdf{pdf/authorization.pdf}
47-
\cleardoublepage
48-
\else
49-
\ifsjtu@review\relax
50-
% exclude the original claim and authorization
51-
\else
52-
% \makeDeclareOriginal
53-
\makeDeclareAuthorization
54-
\fi
55-
\fi
56-
\frontmatter % 使用罗马数字对前言编号
57-
58-
% 摘要
59-
\include{tex/abstract}
60-
61-
% 目录、插图目录、表格目录
62-
\spacing{1.1}
63-
\tableofcontents
64-
\spacing{1.5}
65-
% \listoffigures
66-
% \addcontentsline{toc}{chapter}{\listfigurename} % 将插图目录加入全文目录
67-
% \listoftables
68-
% \addcontentsline{toc}{chapter}{\listtablename} % 将表格目录加入全文目录
69-
% \listofalgorithms
70-
% \addcontentsline{toc}{chapter}{\listalgorithmname} % 将算法目录加入全文目录
71-
72-
% \include{tex/symbol} % 主要符号、缩略词对照表
73-
\fi
36+
% 授权书
37+
\makeDeclareAuthorization
38+
39+
% 使用罗马数字对前言编号
40+
\frontmatter
41+
42+
% 摘要
43+
\include{tex/abstract}
44+
45+
%% 目录、插图目录、表格目录
46+
% 默认窄行距
47+
\spacing{1.1}
48+
49+
\tableofcontents
50+
% \listoffigures
51+
% \addcontentsline{toc}{chapter}{\listfigurename} % 将插图目录加入全文目录
52+
% \listoftables
53+
% \addcontentsline{toc}{chapter}{\listtablename} % 将表格目录加入全文目录
54+
% \listofalgorithms
55+
% \addcontentsline{toc}{chapter}{\listalgorithmname} % 将算法目录加入全文目录
56+
% \include{tex/symbol} % 主要符号、缩略词对照表
57+
58+
% 恢复1.5倍行距
59+
\spacing{1.5}
7460

7561
\makeatother
76-
\mainmatter % 使用阿拉伯数字对正文编号
7762

78-
% 正文内容
63+
% 使用阿拉伯数字对正文编号
64+
\mainmatter
65+
66+
%% 正文内容
7967
\include{tex/intro}
8068
\include{tex/example}
8169
\include{tex/faq}
82-
% \include{tex/summary}
83-
84-
% \backmatter % 文后无编号部分
8570

86-
% 参考资料
71+
%% 参考资料
8772
\printbibliography[heading=bibintoc, title={References}]
8873

89-
% 以下为附录内容
74+
%% 以下为附录内容
9075
\appendix % 使用英文字母对附录编号
9176

92-
% \include{tex/app_setup}
77+
% 个性化行距
9378
\spacing{1.2}
9479
\include{tex/app_eq}
9580
\spacing{1.4}
9681
\include{tex/app_cjk}
97-
% \include{tex/app_log}
98-
99-
% 致谢、发表论文、申请专利、参与项目、简历
100-
% 用于盲审的论文需隐去致谢、发表论文、申请专利、参与的项目
101-
% \makeatletter
102-
103-
% \ifsjtu@coursepaper
104-
% \else
105-
106-
% "研究生学位论文送盲审印刷格式的统一要求"
107-
% http://www.gs.sjtu.edu.cn/inform/3/2015/20151120_123928_738.htm
108-
109-
% 盲审删去删去致谢页
110-
% \ifsjtu@review\relax\else
111-
% \include{tex/ack} % 致谢
112-
% \fi
113-
114-
% \ifsjtu@bachelor
115-
% \ifsjtu@english
116-
% \else
117-
% % 中文学士学位论文要求在最后有一个英文大摘要,单独编页码,英文学士学位论文不需要
118-
% \include{tex/end_english_abstract}
119-
% \fi
120-
% \else
121-
% % 盲审论文中,发表学术论文及参与科研情况等仅以第几作者注明即可,不要出现作者或他人姓名
122-
% \ifsjtu@review\relax
123-
% \include{tex/pubreview}
124-
% \include{tex/projectsreview}
125-
% \else
126-
% \include{tex/pub} % 发表论文
127-
% \include{tex/projects} % 参与的项目
128-
% \include{tex/patents} % 申请专利
129-
% \include{tex/resume} % 个人简历
130-
% \fi
131-
% \fi
132-
% \fi
133-
134-
% \makeatother
13582

13683
\end{document}

sjtuthesis.cfg

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
%# -*- coding: utf-8-unix -*-
22
%%==================================================
3-
%% sjtuthesis.cfg for SJTU Thesis
3+
%% sjtuthesis.cfg
44
%%==================================================
55

66
\ProvidesFile{sjtuthesis.cfg}[2016/04/06 v0.9 sjtuthesis configuration file]
77

8-
%% YOUR OWN INFO
9-
\def\sjtu@label@myStudentID{1172609100xx}
10-
\def\sjtu@label@myName{小坤坤 (Bastile)}
11-
\def\sjtu@label@myMajor{电子与通信工程}
12-
\def\sjtu@label@myCompany{华为技术有限公司}
13-
\def\sjtu@label@myPosition{算法实习生}
14-
\def\sjtu@label@myDuration{2019年3月 -- 2019年8月}
15-
\def\sjtu@label@mySpeitTutor{某位教授}
16-
\def\sjtu@label@myEnterpriseTutor{某位职员}
17-
%% YOUR OWN INFO
18-
198
\def\sjtu@label@StudentID{学号~/~Student ID:}
209
\def\sjtu@label@Name{姓名~/~Name:}
2110
\def\sjtu@label@Major{专业~/~Major:}

sjtuthesis.cls

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%# -*- coding: utf-8-unix -*-
22
%==================================================
3-
%% sjtuthesis.cls for SJTU Master Thesis
3+
%% sjtuthesis.cls
44
%%==================================================
55

66
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
@@ -59,6 +59,15 @@
5959
\AtEndOfClass{\input{sjtuthesis.cfg}}
6060

6161
% Chinese variables
62+
\newcommand\myStudentID[1]{\def\sjtu@value@myStudentID{#1}}
63+
\newcommand\myName[1]{\def\sjtu@value@myName{#1}}
64+
\newcommand\myMajor[1]{\def\sjtu@value@myMajor{#1}}
65+
\newcommand\myCompany[1]{\def\sjtu@value@myCompany{#1}}
66+
\newcommand\myPosition[1]{\def\sjtu@value@myPosition{#1}}
67+
\newcommand\myDuration[1]{\def\sjtu@value@myDuration{#1}}
68+
\newcommand\mySpeitTutor[1]{\def\sjtu@value@mySpeitTutor{#1}}
69+
\newcommand\myEnterpriseTutor[1]{\def\sjtu@value@myEnterpriseTutor{#1}}
70+
6271
\newcommand\classification[1]{\def\sjtu@value@classification{#1}}
6372
\newcommand\studentnumber[1]{\def\sjtu@value@studentnumber{#1}}
6473
\newcommand\confidential[1]{\def\sjtu@value@confidential{#1}}
@@ -99,7 +108,7 @@
99108
%==========
100109

101110
\RequirePackage{etoolbox}
102-
\RequirePackage{geometry} %设置版面
111+
\RequirePackage{geometry}
103112
\RequirePackage{fancyhdr}
104113
\RequirePackage{pageslts}
105114
\RequirePackage[titles]{tocloft}
@@ -669,14 +678,14 @@
669678
\zihao{-3}
670679
\def\arraystretch{1.5}
671680
\begin{tabular}{p{13em}r}
672-
\bf \sjtu@label@StudentID & \underline{\makebox[210pt]{\sjtu@label@myStudentID}} \\
673-
\bf \sjtu@label@Name & \underline{\makebox[210pt]{\sjtu@label@myName}} \\
674-
\bf \sjtu@label@Major & \underline{\makebox[210pt]{\sjtu@label@myMajor}} \\
675-
\bf \sjtu@label@Company & \underline{\makebox[210pt]{\sjtu@label@myCompany}} \\
676-
\bf \sjtu@label@Position & \underline{\makebox[210pt]{\sjtu@label@myPosition}} \\
677-
\bf \sjtu@label@Duration & \underline{\makebox[210pt]{\sjtu@label@myDuration}} \\
678-
\bf \sjtu@label@SpeitTutor & \underline{\makebox[210pt]{\sjtu@label@mySpeitTutor}} \\
679-
\bf \sjtu@label@EnterpriseTutor & \underline{\makebox[210pt]{\sjtu@label@myEnterpriseTutor}} \\
681+
\bf \sjtu@label@StudentID & \underline{\makebox[210pt]{\sjtu@value@myStudentID}} \\
682+
\bf \sjtu@label@Name & \underline{\makebox[210pt]{\sjtu@value@myName}} \\
683+
\bf \sjtu@label@Major & \underline{\makebox[210pt]{\sjtu@value@myMajor}} \\
684+
\bf \sjtu@label@Company & \underline{\makebox[210pt]{\sjtu@value@myCompany}} \\
685+
\bf \sjtu@label@Position & \underline{\makebox[210pt]{\sjtu@value@myPosition}} \\
686+
\bf \sjtu@label@Duration & \underline{\makebox[210pt]{\sjtu@value@myDuration}} \\
687+
\bf \sjtu@label@SpeitTutor & \underline{\makebox[210pt]{\sjtu@value@mySpeitTutor}} \\
688+
\bf \sjtu@label@EnterpriseTutor & \underline{\makebox[210pt]{\sjtu@value@myEnterpriseTutor}} \\
680689
\end{tabular}
681690
}
682691
\end{center}
@@ -795,7 +804,7 @@
795804
%% 前言页眉页脚
796805
\fancypagestyle{front}{%
797806
\fancyhf{}
798-
\fancyhead[L]{\includegraphics[height=1.6cm, keepaspectratio]{figure/sjtubanner}}
807+
\fancyhead[L]{\includegraphics[height=1.5cm, keepaspectratio]{figure/sjtubanner}}
799808
% \fancyhead[C]{\parbox[b]{\markboxwidth}{\raggedleft\nouppercase{\sjtu@fancyhead\sjtu@value@titlemark}}}
800809
\fancyhead[C]{\nouppercase{\sjtu@fancyhead\sjtu@value@titlemark}}
801810
% \fancyfoot[C]{\sjtu@fancyfoot{\thepage}{\lastpageref{pagesLTS.Roman}}}
@@ -804,7 +813,7 @@
804813
%% 正文页眉页脚
805814
\fancypagestyle{main}{%
806815
\fancyhf{}
807-
\fancyhead[L]{\includegraphics[height=1.6cm, keepaspectratio]{figure/sjtubanner}}
816+
\fancyhead[L]{\includegraphics[height=1.5cm, keepaspectratio]{figure/sjtubanner}}
808817
% \fancyhead[C]{\parbox[b]{\markboxwidth}{\raggedleft\nouppercase{\sjtu@fancyhead\sjtu@value@titlemark}}}
809818
\fancyhead[C]{\nouppercase{\sjtu@fancyhead\sjtu@value@titlemark}}
810819
% \fancyfoot[C]{\sjtu@fancyfoot{\thepage}{\lastpageref{pagesLTS.arabic}}}
@@ -813,7 +822,7 @@
813822
% 英文大摘要
814823
\fancypagestyle{biglast}{%
815824
\fancyhf{}
816-
\fancyhead[L]{\includegraphics[height=1.6cm, keepaspectratio]{figure/sjtubanner}}
825+
\fancyhead[L]{\includegraphics[height=1.5cm, keepaspectratio]{figure/sjtubanner}}
817826
% \fancyhead[C]{\parbox[b]{\markboxwidth}{\raggedleft\nouppercase{\sjtu@fancyhead\sjtu@value@titlemark}}}
818827
\fancyhead[C]{\nouppercase{\sjtu@fancyhead\sjtu@value@titlemark}}
819828
% \fancyfoot[C]{\sjtu@fancyfoot{\theCurrentPageLocal}{\lastpageref{pagesLTS.roman.local}}}

tex/ack.tex

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)