Skip to content

Commit 111ed0b

Browse files
committed
Fix a few incorrect formattings
1 parent 77e3dc0 commit 111ed0b

File tree

2 files changed

+124
-81
lines changed

2 files changed

+124
-81
lines changed

wiki/Video/Episode-3.md

Lines changed: 118 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -47,150 +47,198 @@
4747
- LaTeX 初尝试:
4848

4949
```latex
50-
\documentclass {article}
50+
\documentclass{article}
5151
52-
\begin {document}
52+
\begin{document}
5353
First document. This is a simple example, with no
5454
extra parameters or packages included.
55-
\end {document}
55+
\end{document}
5656
```
5757

5858
- 标题,作者和日期示例:
5959

6060
```latex
61-
\documentclass {article}
61+
\documentclass{article}
6262
63-
\title {First document}
64-
\author {Hubert Farnsworth\thanks {funded by the Overleaf team}}
65-
\date {February 2017}
66-
\begin {document}
63+
\title{First document}
64+
\author{Hubert Farnsworth
65+
\thanks{funded by the Overleaf team}}
66+
\date{February 2017}
67+
\begin{document}
6768
\maketitle
68-
We have now added a title, author and date to our first \LaTeX {} document!
69-
\end {document}
69+
We have now added a title, author and date to our first \LaTeX{} document!
70+
\end{document}
7071
```
7172

7273
- 文本格式化命令:
7374

7475
```latex
75-
\documentclass {article}
76-
\usepackage {graphicx}
77-
\graphicspath {{images/}}
78-
\begin {document} The universe is immense and it seems to be homogeneous, in a large scale, everywhere we look at.
79-
\begin {center}\includegraphics {universe}\end {center}
76+
\documentclass{article}
77+
\usepackage{graphicx}
78+
\graphicspath{{images/}}
79+
\begin{document} The universe is immense and it seems to be homogeneous, in a large scale, everywhere we look at.
80+
\begin{center}\includegraphics{universe}\end{center}
8081
There's a picture of a galaxy above.
81-
\end {document}
82+
\end{document}
8283
```
8384

8485
- 添加图片示例:
8586

8687
```latex
87-
\documentclass {article}
88-
\usepackage {graphicx}
89-
\graphicspath {{images/}}
90-
\begin {document} The universe is immense and it seems to be homogeneous, in a large scale, everywhere we look at.\begin {center}\includegraphics {universe}\end {center} There's a picture of a galaxy above.
91-
\end {document}
88+
\documentclass{article}
89+
\usepackage{graphicx}
90+
\graphicspath{{images/}}
91+
92+
\begin{document}
93+
The universe is immense and it seems to be homogeneous, in a large scale, everywhere we look at.
94+
95+
\begin{center}
96+
\includegraphics{universe}
97+
\end{center}
98+
99+
There's a picture of a galaxy above.
100+
\end{document}
92101
```
93102

94103
- 图片添加标题,标签和参考示例:
95104

96105
```latex
97-
\documentclass {article}
98-
\usepackage {graphicx}
99-
\graphicspath {{images/}}
100-
\begin {document}
101-
\begin {figure}[h]\centering\includegraphics [width=0.25\textwidth]{universe}\caption {a nice plot}\label {fig:mesh1}\end {figure}
102-
As you can see in the figure\ref {fig:mesh1}, the function grows near 0. Also, in the page\pageref {fig:mesh1} is the same example.
103-
\end {document}
106+
\documentclass{article}
107+
\usepackage{graphicx}
108+
\graphicspath{{images/}}
109+
110+
\begin{document}
111+
112+
\begin{figure}[h]
113+
\centering
114+
\includegraphics[width=0.25\textwidth]{universe}
115+
\caption{a nice plot}
116+
\label{fig:mesh1}
117+
\end{figure}
118+
119+
As you can see in the figure\ref{fig:mesh1}, the function grows near 0. Also, in the page\pageref{fig:mesh1} is the same example.
120+
\end{document}
104121
```
105122

106123
- 表格示例:
107124

108125
```latex
109-
\documentclass {article}
110-
111-
\begin {document}
112-
\begin {center}\begin {tabular}{c c c} cell1&cell2&cell3\\
113-
cell4&cell5&cell6\\cell7&cell8&cell9\end {tabular}\end {center}
114-
\end {document}
126+
\documentclass{article}
127+
128+
\begin{document}
129+
\begin{center}
130+
\begin{tabular}{c c c}
131+
cell1 & cell2 & cell3 \\
132+
cell4 & cell5 & cell6 \\
133+
cell7 & cell8 & cell9
134+
\end{tabular}
135+
\end{center}
136+
\end{document}
115137
```
116138

117139
- 无序列表示例:
118140

119141
```latex
120-
\documentclass {article}
121-
122-
\begin {document}
123-
\begin {itemize}\item The individual entries are indicated with a black dot, a so-called bullet.\item The text in the entries may be of any length.\end {itemize}
124-
\end {document}
142+
\documentclass{article}
143+
144+
\begin{document}
145+
\begin{itemize}
146+
\item The individual entries are indicated with a black dot, a so-called bullet.
147+
\item The text in the entries may be of any length.
148+
\end{itemize}
149+
\end{document}
125150
```
126151

127152
- 有序列表示例:
128153

129154
```latex
130-
\documentclass {article}
131-
132-
\begin {document}
133-
\begin {enumerate}\item This is the first entry in our list\item The list numbers increase with each entry we add\end {enumerate}
134-
\end {document}
155+
\documentclass{article}
156+
157+
\begin{document}
158+
\begin{enumerate}
159+
\item This is the first entry in our list
160+
\item The list numbers increase with each entry we add
161+
\end{enumerate}
162+
\end{document}
135163
```
136164

137165
- 添加数学公式示例:
138166

139167
```latex
140-
\documentclass {article}
168+
\documentclass{article}
169+
170+
\begin{document}
171+
The mass-energy equivalence is described by the famous equation\[E=mc^2\] discovered in 1905 by Albert Einstein. In natural units ($c=1$), the formula expresses the identity
141172
142-
\begin {document}
143-
The mass-energy equivalence is described by the famous equation\[E=mc^2\] discovered in 1905 by Albert Einstein. In natural units ($c=1$), the formula expresses the identity\begin {equation} E=m\end {equation}
144-
\end {document}
173+
\begin{equation}
174+
E=m
175+
\end{equation}
176+
\end{document}
145177
```
146178

147179
- 论文摘要示例:
148180

149181
```latex
150-
\documentclass {article}
182+
\documentclass{article}
151183
152-
\begin {document}
153-
\begin {abstract} This is a simple paragraph at the beginning of the document. A brief introduction about the main subject.\end {abstract}
154-
\end {document}
184+
\begin{document}
185+
\begin{abstract}
186+
This is a simple paragraph at the beginning of the document. A brief introduction about the main subject.
187+
\end{abstract}
188+
\end{document}
155189
```
156190

157191
- 换行示例:
158192

159193
```latex
160-
\documentclass {article}
161-
\begin {document}
194+
\documentclass{article}
195+
\begin{document}
162196
163197
Now that we have written our abstract, we can begin writing our first paragraph.
164198
165199
This line will start a second Paragraph.
166-
\end {document}
200+
\end{document}
167201
```
168202

169203
- 添加章节示例:
170204

171205
```latex
172-
\documentclass {article}
173-
\begin {document}
174-
\section {Introduction} This is the first section.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem.
175-
\section {Second Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem.
176-
\subsection {First Subsection} Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales... \section*{Unnumbered Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem
177-
\end {document}
206+
\documentclass{article}
207+
\begin{document}
208+
209+
\section{Introduction}
210+
This is the first section.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem.
211+
212+
\section{Second Section}
213+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem.
214+
215+
\subsection{First Subsection}
216+
Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...
217+
218+
\section*{Unnumbered Section}
219+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem
220+
\end{document}
178221
```
179222

180223
- 添加目录示例:
181224

182225
```latex
183-
\documentclass {article}
184-
\usepackage [utf8]
185-
{inputenc}
186-
\title {Sections and Chapters}
187-
\author {Gubert Farnsworth}
188-
\date {}
189-
\begin {document}
226+
\documentclass{article}
227+
\usepackage[utf8]{inputenc}
228+
229+
\title{Sections and Chapters}
230+
\author{Gubert Farnsworth}
231+
\date{}
232+
233+
\begin{document}
190234
\maketitle
191235
\tableofcontents
192-
\section {Introduction} This is the first section.\addcontentsline {toc}{section}{Unnumbered Section}\section*{Unnumbered Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\section {Second Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
193-
\end {document}
236+
237+
\section{Introduction} This is the first section.
238+
\addcontentsline{toc}{section}{Unnumbered Section}
239+
\section*{Unnumbered Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
240+
\section{Second Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
241+
\end{document}
194242
```
195243

196244
- [Overleaf 官方文档](https://www.overleaf.com/learn/latex/Main_Page)

wiki/Video/Episode-4.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@
1111
- 本项目的 [GitHub Release 页面](https://github.com/spencerwooo/BIThesis/releases/)
1212
- [BIThesis 项目首页](https://github.com/spencerwooo/BIThesis)
1313
- 个人信息的定义位于 `main.tex`[第 69 行至第 74 行](https://github.com/spencerwooo/BIThesis/blob/master/graduation-thesis/main.tex#L69-L74)
14-
15-
:::vue
16-
.
17-
├── `\deptName`:你所在学院
18-
├── `\majorName`:你所就读的专业
19-
├── `\yourName`:你的姓名
20-
├── `\yourStudentID`:你的学号
21-
└── `\mentorName`:你的指导教师
22-
:::
23-
14+
- `\deptName`:你所在学院
15+
- `\majorName`:你所就读的专业
16+
- `\yourName`:你的姓名
17+
- `\yourStudentID`:你的学号
18+
- `\mentorName`:你的指导教师
2419
- 章节文件的相对路径引用:
2520

2621
```latex
@@ -60,5 +55,5 @@
6055
- 引用这一标签为 `szegedy2016rethinking` 的参考文献:
6156

6257
```latex
63-
正文,正文正文 \cite {szegedy2016rethinking} 正文正文……
58+
正文,正文正文 \cite{szegedy2016rethinking} 正文正文……
6459
```

0 commit comments

Comments
 (0)