Skip to content

Commit

Permalink
Reformat dir structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetAdmin committed Jun 21, 2019
1 parent 3a3a1b3 commit fd46316
Show file tree
Hide file tree
Showing 41 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
| thesis: 论文类 | proposal: 开题报告 | true: 生成盲审用pdf(隐藏个人信息) | 默认: cs |
| design: 设计类 | final: 最终论文/设计 | false: 生成提交用pdf |`config/format/major/` 下目录名相同 |

1.`content` 目录下编写内容
1.`body` 目录下编写内容
1.`pages` 目录下填写必要的内容,如审核评语等
1.`figure` 目录下保存图片,在 `reference/ref.bib` 内插入文献条目
1.`figure` 目录下保存图片,在 `body/ref.bib` 内插入文献条目
1. 在根目录下运行命令 `latexmk -xelatex -outdir=out zjuthesis` 即可编译 TeX 文件到 `out` 目录(该目录不会被记录版本)

## 扩展
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions content/final/content.tex → body/final/content.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
\pagestyle{common}
\setcounter{page}{1}

\input{content/final/introduction/introduction}
\input{content/final/body/body}
\input{body/final/introduction/introduction}
\input{body/final/body/body}

\newpage
\printbibliography[title={参考文献}]

\input{content/final/appendix}
\input{content/final/cv}
\input{body/final/appendix}
\input{body/final/cv}
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions content/proposal/content.tex → body/proposal/content.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
\ifthenelse{\equal{\Type}{thesis}}
{
% `thesis` content
\input{content/proposal/review/review}
\input{content/proposal/proposal/proposal}
\input{content/proposal/translation/translation}
\input{content/proposal/original/original}
\input{body/proposal/review/review}
\input{body/proposal/proposal/proposal}
\input{body/proposal/translation/translation}
\input{body/proposal/original/original}
}
{
\ifthenelse{\equal{\Type}{design}}
{
% `design` content
\input{content/proposal/proposal/proposal}
\input{content/proposal/translation/translation}
\input{content/proposal/original/original}
\input{content/proposal/midcheck/midcheck}
\input{body/proposal/proposal/proposal}
\input{body/proposal/translation/translation}
\input{body/proposal/original/original}
\input{body/proposal/midcheck/midcheck}
}
{
% otherwise, blank
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions body/proposal/proposal/proposal.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\cleardoublepage
\chapter{开题报告}

\input{body/proposal/proposal/background}
\input{body/proposal/proposal/content}
\input{body/proposal/proposal/plan}

\newpage
\printbibliography[title={参考文献}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion config/commands.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

\newcommand{\bful}[1]{{\bfseries\uline{#1}}}

\newcommand{\inputpage}[1]{\input{pages/#1}}
\newcommand{\inputpage}[1]{\input{page/#1}}

\newcommand{\chapternonum}[1]
{
Expand Down
2 changes: 1 addition & 1 deletion config/path.tex
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
\graphicspath{{figure/}}
\bibliography{reference/ref.bib}
\bibliography{body/ref.bib}
9 changes: 0 additions & 9 deletions content/proposal/proposal/proposal.tex

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pages/final/previous.tex → page/final/previous.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
\pagestyle{previous}

\inputpage{final/promise}
\input{content/final/thanksto}
\input{content/final/abstract}
\input{body/final/thanksto}
\input{body/final/abstract}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions page/proposal/design/post.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
\cleardoublestylepage{empty}
\pagestyle{empty}

\inputpage{proposal/design/proposaleval}
\inputpage{proposal/design/midcheckeval}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\cleardoublestylepage{empty}
\pagestyle{empty}

\input{pages/proposal/thesis/proposaleval}
\inputpage{proposal/thesis/proposaleval}
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions pages/proposal/design/post.tex

This file was deleted.

6 changes: 3 additions & 3 deletions zjuthesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
\ifthenelse{\equal{\Type}{design}}
{\part{毕业设计}}
{\part{毕业论文}}
\input{content/final/content}
\input{body/final/content}

\inputpage{final/post}

Expand All @@ -43,7 +43,7 @@

\inputpage{proposal/cover}
\inputpage{proposal/previous}
\input{content/proposal/content}
\input{body/proposal/content}
\inputpage{proposal/post}
}

Expand All @@ -52,7 +52,7 @@
\inputpage{proposal/cover}
\inputpage{proposal/previous}
\inputpage{proposal/toc}
\input{content/proposal/content}
\input{body/proposal/content}
\inputpage{proposal/post}
}

Expand Down

0 comments on commit fd46316

Please sign in to comment.