Skip to content

Commit

Permalink
细化了使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
iontrap-ustc committed Oct 21, 2018
1 parent c9a4051 commit 48101b9
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 41 deletions.
69 changes: 51 additions & 18 deletions Main.lyx
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,11 @@ Main 文档
\end_layout

\begin_layout Enumerate
包含文件注意使用相对路径
包含子文件时注意使用相对路径,便于整个项目移动
\end_layout

\begin_layout Enumerate
单独章节的lyx文件可以单独编译查看,不必在Main文档中编译查看而浪费时间。
\end_layout

\begin_layout Enumerate
可以在Main文件里直接添加章节格式,而没必要一定包含文件,但不建议如此。
子章节lyx文件可以单独编译查看,不必在Main文档中编译查,节省查看时间。
\end_layout

\end_inset
Expand All @@ -201,12 +197,14 @@ status open
封面设置,在主文档Main.lyx的导言区设置:
\end_layout

\begin_deeper
\begin_layout Plain Layout
文档\SpecialChar menuseparator
首选项\SpecialChar menuseparator
latex导言区
\end_layout

\end_deeper
\end_inset


Expand Down Expand Up @@ -248,7 +246,7 @@ status open
\end_layout

\begin_layout Enumerate
FrontMatter.lyx文件。可进入此文件编辑,把不需要的部注释掉或者参考例子添加内容。
FrontMatter.lyx文件。可进入此文件编辑,把不需要的部注释掉或者参考例子添加内容。
\end_layout

\end_inset
Expand All @@ -268,14 +266,41 @@ filename "./chapters/FrontMatter.lyx"

\begin_layout MainMatter

\end_layout

\begin_layout Standard
\begin_inset Note Note
status collapsed

\begin_layout Plain Layout

\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Note Note
status open

\begin_layout Plain Layout
正文章节
\end_layout

\begin_layout Enumerate
章节排序只需要把include的顺序改变即可。也可以直接包含 tex文件。
\end_layout

\begin_layout Enumerate
新建LyX文件,需要copy已有的子章节,例如Introduction.lyx,然后重命名文件,最点击菜单 插入\SpecialChar menuseparator
文件\SpecialChar menuseparator
子文档,选择子文档。
\end_layout

\begin_layout Enumerate
章节排序只需要把include的顺序改变即可。也可以直接包含 tex文件
Tip: 编辑论文时,可以从Skill.lyx直接copy需要的格式,然后在此基础上修改。
\end_layout

\end_inset
Expand Down Expand Up @@ -308,7 +333,11 @@ filename "chapters/Skills.lyx"
status open

\begin_layout Plain Layout
参考文献用Bibtex实现,要放在Main文档中,其他子文当可以引用
参考文献
\end_layout

\begin_layout Plain Layout
参考文献用Bibtex实现。需在Main文档中,其他子文当方可引用。
\end_layout

\end_inset
Expand All @@ -328,22 +357,26 @@ bibfiles "Ref"
\end_layout

\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chapters/Appendix.lyx"
\begin_inset Note Note
status open

\begin_layout Plain Layout
附录
\end_layout

\begin_layout Plain Layout
在Apendix.lyx中设置了附录,需在底页之前放置。底页后放置章序号会被省略。
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Note Note
status open

\begin_layout Plain Layout
已在Apendix.lyx中设置开始附录,要在底页之前放置,底页之后会省去章的序号
\end_layout
\begin_inset CommandInset include
LatexCommand include
filename "chapters/Appendix.lyx"

\end_inset

Expand Down
35 changes: 30 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Lyx template for USTC thesis
## 目的 ##


中国科学技术大学学位论文Lyx模板,方便USTCer编辑学位论文。包含博士、硕士、学士模版。
中国科学技术大学学位论文Lyx模板,方便USTCer编辑学位论文。包含了博士、硕士、学士模版。

## 下载 ##

Expand All @@ -27,13 +27,27 @@ Lyx template for USTC thesis
git clone --recursive https://git.lug.ustc.edu.cn/jmcui/ustclyx.git
```

* LyX 版本要求 >= 2.3。

## 使用 ##

* 在Main文档中编译可获得整篇Thesis;单独章节也可以单独编译。
* 创建新章节文件,请copy Introduction.lyx, 然后重命名。如果直接新建文档,需要按照Introduction.lyx的文档属性重新设置,采用拷贝重命名的方法可以避免这个问题。
* 更具体的介绍和使用技巧见模板中Introduction.yx 和 skill.lyx
* Lyx 版本要求 >= 2.3
* 选择学位论文类型:

打开Main.lyx文档,菜单 文档->首选项->文档类->文档类选项。填写文档类选项,默认为doctor。

* doctor 博士模版
* master 硕士模版
* bachelor 学士模版

* 编译:

Main.lyx文档中点击👀[查看]图标,编译可获得整篇论文的pdf;在子章节文件中,点击👀[查看]图标,获得单独章节的pdf。

* 创建新文件:

请copy Introduction.lyx, 然后重命名。如果直接新建文档,需要按照Introduction.lyx的文档属性重新设置,采用拷贝重命名的方法可以避免这个问题。

* 更具体技巧见模板中Introduction.yx 和 skill.lyx


## LyX 优点:
Expand All @@ -52,3 +66,14 @@ Lyx template for USTC thesis
## 模版原理

本Lyx模版的latex使用ustcthesis模版,[github链接](https://github.com/ustctug/ustcthesis)。感谢众多USTCer的努力,这个模版已经是研究生院认可的学位论文模版[学位论文模版](https://gradschool.ustc.edu.cn/ylb/xw.html)。本模版主要在ustcthesis模版上加了一个Lyx layout层 (USTCtheisis.layout文件),在此基础上定义了一些常用的命令,以方便编辑文档。

ustcthesis中模版选项:

````
% 学位论文类选项
doctor|master|bachelor [academic|professional] [chinese|english] [print|pdf]
% 参考文献选项
[super|numebers|authoryear]
````
详细说明参考[ustcthesis](https://github.com/ustctug/ustcthesis)。
27 changes: 15 additions & 12 deletions USTCthesis.layout
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,17 @@ Style Denotation
ddl.denotation dt { font-weight: bold; }
EndHTMLStyle
End
#####################################

NoStyle Part
NoStyle Part*
NoStyle Bibliography
NoStyle Author
NoStyle Title
NoStyle Date
NoStyle Address
NoStyle Right_Address
NoStyle Cover
#####################################

# Custom Inset Layout
InsetLayout Flex:href
LyXType custom
# LyXType element
LabelString 超链接
LatexType Command
LatexName href
Decoration Classic

Argument 1
Mandatory 1
LabelString "Link"
Expand All @@ -172,6 +163,18 @@ Argument 1
Color blue
EndFont
EndArgument

End

#####################################

# delete style
NoStyle Part
NoStyle Part*
NoStyle Bibliography
NoStyle Author
NoStyle Title
NoStyle Date
NoStyle Address
NoStyle Right_Address
NoStyle Cover
NoStyle Denotation
77 changes: 71 additions & 6 deletions chapters/Introduction.lyx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ noprefix "false"
\end_layout

\begin_layout Standard
请参考ustcthesis中
请参考ustcthesis中的
\begin_inset Flex href
status open

Expand Down Expand Up @@ -322,11 +322,32 @@ git clone --recursive https://git.lug.ustc.edu.cn/jmcui/ustclyx.git
\end_layout

\begin_layout Subsection
编辑和编译论文
使用
\end_layout

\begin_layout Itemize
在Main文档中编译可获得整篇Thesis;单独章节也可以单独编译。
选择学位论文类型: 打开Main.lyx文档,菜单 文档\SpecialChar menuseparator
首选项\SpecialChar menuseparator
文档类\SpecialChar menuseparator
文档类选项。填写文档类选项,默认为doctor。
\end_layout

\begin_deeper
\begin_layout Description
doctor 博士模版
\end_layout

\begin_layout Description
master 硕士模版
\end_layout

\begin_layout Description
bachelor 学士模版
\end_layout

\end_deeper
\begin_layout Itemize
Main.lyx文档中点击[查看]图标,可获得整篇Thesis的pdf;在子章节文件中,点击[查看]图标,获得单独章节的pdf。
\end_layout

\begin_layout Itemize
Expand All @@ -335,15 +356,59 @@ git clone --recursive https://git.lug.ustc.edu.cn/jmcui/ustclyx.git
\end_layout

\begin_layout Itemize
更具体的介绍和使用技巧见模板中Introduction.yx 和 skill.lyx
更具体的介绍、使用技巧,见模板中Introduction.yx 和 skill.lyx
\end_layout

\begin_layout Section
模板参数
模板选项
\end_layout

\begin_layout Standard
本Lyx模版的latex使用ustcthesis模版。本模版主要在ustcthesis模版上加了一个Lyx layout层 (USTCtheisis.layout
文件),在此基础上定义了一些常用的命令,以方便编辑文档。
\end_layout

\begin_layout Standard
ustcthesis中模版选项:
\end_layout

\begin_layout Standard
\begin_inset listings
lstparams "numbers=left,numberstyle={\tiny},stepnumber=1,basicstyle={\footnotesize},breaklines=true,showstringspaces=false,tabsize=4,frame=shadowbox,commentstyle={\color{red!50!green!50!blue!50}},rulesepcolor={\color{red!20!green!20!blue!20}},keywordstyle={\color{blue!90}\bfseries},stringstyle={\ttfamily},keepspaces=true,breakindent=22pt,flexiblecolumns=true,breakautoindent=true,breakindent=4em,texcl=true,aboveskip=1em"
inline false
status open

\begin_layout Plain Layout

% 学位论文类选项
\end_layout

\begin_layout Plain Layout

doctor|master|bachelor [academic|professional] [chinese|english] [print|pdf]
\end_layout

\begin_layout Plain Layout

\end_layout

\begin_layout Plain Layout

% 参考文献选项
\end_layout

\begin_layout Plain Layout

[super|numebers|authoryear]
\end_layout

\end_inset


\end_layout

\begin_layout Standard
参考ustcthesis模版参数.
详细请参考ustcthesis模版选项.
\end_layout

\begin_layout Standard
Expand Down

0 comments on commit 48101b9

Please sign in to comment.