Skip to content

Commit 6d6b171

Browse files
committed
在Main.lyx 导言区加了 listing设置
1 parent ce7f525 commit 6d6b171

File tree

3 files changed

+31
-41
lines changed

3 files changed

+31
-41
lines changed

Main.lyx

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,34 @@
3737

3838
%
3939
\usepackage{bibentry,natbib}
40+
41+
%%图、表的格式化引用
42+
\newrefformat{fig}{\hyperref[#1]{图\ref*{#1}\,}}
43+
\newrefformat{eq}{\hyperref[#1]{式\ref*{#1}\,}}
44+
\newrefformat{tab}{\hyperref[#1]{表\ref*{#1}\,}}
45+
46+
%%listings设置
47+
\usepackage{listings}
48+
\usepackage{xcolor}
49+
\lstset{
50+
tabsize=4, %
51+
frame=shadowbox, %把代码用带有阴影的框圈起来
52+
commentstyle=\color{red!50!green!50!blue!50},%浅灰色的注释
53+
rulesepcolor=\color{red!20!green!20!blue!20},%代码块边框为淡青色
54+
keywordstyle=\color{blue!90}\bfseries, %代码关键字的颜色为蓝色,粗体
55+
showstringspaces=false,%不显示代码字符串中间的空格标记
56+
stringstyle=\ttfamily, % 代码字符串的特殊格式
57+
keepspaces=true, %
58+
breakindent=22pt, %
59+
basicstyle=\footnotesize, %
60+
showspaces=false, %
61+
flexiblecolumns=true, %
62+
breaklines=true,%对过长的代码自动换行
63+
breakautoindent=true,%
64+
breakindent=4em,%
65+
texcl=true,
66+
aboveskip=1em %代码块边框
67+
}
4068
\end_preamble
4169
\options doctor
4270
\use_default_options false
@@ -68,7 +96,7 @@ theorems-ams
6896
\index_command default
6997
\paperfontsize default
7098
\spacing single
71-
\use_hyperref true
99+
\use_hyperref false
72100
\pdf_bookmarks false
73101
\pdf_bookmarksnumbered false
74102
\pdf_bookmarksopen false
@@ -186,7 +214,7 @@ latex导言区
186214

187215
\begin_layout Standard
188216
\begin_inset ERT
189-
status collapsed
217+
status open
190218

191219
\begin_layout Plain Layout
192220

@@ -293,7 +321,6 @@ status open
293321
LatexCommand bibtex
294322
btprint "btPrintCited"
295323
bibfiles "Ref"
296-
options "ustcthesis/ustcthesis-numerical"
297324

298325
\end_inset
299326

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ Lyx template for USTC thesis
2424
## 使用 ##
2525

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

3231

3332

chapters/Skills.lyx

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,42 +1024,6 @@ status open
10241024
如果分支没被激活,文中分支的标签会显示叉号,激活则显示对号。在Main文档中已经预定义好了GroupVersion分支,可以直接使用。
10251025
\end_layout
10261026

1027-
\begin_layout Subsection
1028-
设置PDF meta属性
1029-
\end_layout
1030-
1031-
\begin_layout Standard
1032-
PDF meta属性需要在在Main.lyx中的导言区设定,默认的属性如下,可以改成自己论文的信息:
1033-
\end_layout
1034-
1035-
\begin_layout LyX-Code
1036-
1037-
\backslash
1038-
hypersetup {
1039-
\begin_inset Separator latexpar
1040-
\end_inset
1041-
1042-
1043-
\end_layout
1044-
1045-
\begin_deeper
1046-
\begin_layout LyX-Code
1047-
pdftitle={A USTCer's Thesis},
1048-
\begin_inset Newline newline
1049-
\end_inset
1050-
1051-
pdfauthor={A USTCer},
1052-
\begin_inset Newline newline
1053-
\end_inset
1054-
1055-
pdfsubject={Thesis,USTC,University of Science and Technology of China}
1056-
\end_layout
1057-
1058-
\end_deeper
1059-
\begin_layout LyX-Code
1060-
}
1061-
\end_layout
1062-
10631027
\begin_layout Subsection
10641028
编辑图片
10651029
\end_layout

0 commit comments

Comments
 (0)