Skip to content

Commit

Permalink
Fix a few incorrect formattings
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Apr 24, 2020
1 parent 77e3dc0 commit 111ed0b
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 81 deletions.
188 changes: 118 additions & 70 deletions wiki/Video/Episode-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,150 +47,198 @@
- LaTeX 初尝试:

```latex
\documentclass {article}
\documentclass{article}

\begin {document}
\begin{document}
First document. This is a simple example, with no
extra parameters or packages included.
\end {document}
\end{document}
```

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

```latex
\documentclass {article}
\documentclass{article}

\title {First document}
\author {Hubert Farnsworth\thanks {funded by the Overleaf team}}
\date {February 2017}
\begin {document}
\title{First document}
\author{Hubert Farnsworth
\thanks{funded by the Overleaf team}}
\date{February 2017}
\begin{document}
\maketitle
We have now added a title, author and date to our first \LaTeX {} document!
\end {document}
We have now added a title, author and date to our first \LaTeX{} document!
\end{document}
```

- 文本格式化命令:

```latex
\documentclass {article}
\usepackage {graphicx}
\graphicspath {{images/}}
\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}
\documentclass{article}
\usepackage{graphicx}
\graphicspath{{images/}}
\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.
\end {document}
\end{document}
```

- 添加图片示例:

```latex
\documentclass {article}
\usepackage {graphicx}
\graphicspath {{images/}}
\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.
\end {document}
\documentclass{article}
\usepackage{graphicx}
\graphicspath{{images/}}

\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.
\end{document}
```

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

```latex
\documentclass {article}
\usepackage {graphicx}
\graphicspath {{images/}}
\begin {document}
\begin {figure}[h]\centering\includegraphics [width=0.25\textwidth]{universe}\caption {a nice plot}\label {fig:mesh1}\end {figure}
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.
\end {document}
\documentclass{article}
\usepackage{graphicx}
\graphicspath{{images/}}

\begin{document}

\begin{figure}[h]
\centering
\includegraphics[width=0.25\textwidth]{universe}
\caption{a nice plot}
\label{fig:mesh1}
\end{figure}

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.
\end{document}
```

- 表格示例:

```latex
\documentclass {article}

\begin {document}
\begin {center}\begin {tabular}{c c c} cell1&cell2&cell3\\
cell4&cell5&cell6\\cell7&cell8&cell9\end {tabular}\end {center}
\end {document}
\documentclass{article}

\begin{document}
\begin{center}
\begin{tabular}{c c c}
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
cell7 & cell8 & cell9
\end{tabular}
\end{center}
\end{document}
```

- 无序列表示例:

```latex
\documentclass {article}

\begin {document}
\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}
\end {document}
\documentclass{article}

\begin{document}
\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}
\end{document}
```

- 有序列表示例:

```latex
\documentclass {article}

\begin {document}
\begin {enumerate}\item This is the first entry in our list\item The list numbers increase with each entry we add\end {enumerate}
\end {document}
\documentclass{article}

\begin{document}
\begin{enumerate}
\item This is the first entry in our list
\item The list numbers increase with each entry we add
\end{enumerate}
\end{document}
```

- 添加数学公式示例:

```latex
\documentclass {article}
\documentclass{article}

\begin{document}
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 {document}
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}
\end {document}
\begin{equation}
E=m
\end{equation}
\end{document}
```

- 论文摘要示例:

```latex
\documentclass {article}
\documentclass{article}

\begin {document}
\begin {abstract} This is a simple paragraph at the beginning of the document. A brief introduction about the main subject.\end {abstract}
\end {document}
\begin{document}
\begin{abstract}
This is a simple paragraph at the beginning of the document. A brief introduction about the main subject.
\end{abstract}
\end{document}
```

- 换行示例:

```latex
\documentclass {article}
\begin {document}
\documentclass{article}
\begin{document}

Now that we have written our abstract, we can begin writing our first paragraph.

This line will start a second Paragraph.
\end {document}
\end{document}
```

- 添加章节示例:

```latex
\documentclass {article}
\begin {document}
\section {Introduction} This is the first section.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem.
\section {Second Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem.
\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
\end {document}
\documentclass{article}
\begin{document}

\section{Introduction}
This is the first section.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem.

\section{Second Section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem.

\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
\end{document}
```

- 添加目录示例:

```latex
\documentclass {article}
\usepackage [utf8]
{inputenc}
\title {Sections and Chapters}
\author {Gubert Farnsworth}
\date {}
\begin {document}
\documentclass{article}
\usepackage[utf8]{inputenc}

\title{Sections and Chapters}
\author{Gubert Farnsworth}
\date{}

\begin{document}
\maketitle
\tableofcontents
\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.
\end {document}

\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.
\end{document}
```

- [Overleaf 官方文档](https://www.overleaf.com/learn/latex/Main_Page)
17 changes: 6 additions & 11 deletions wiki/Video/Episode-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@
- 本项目的 [GitHub Release 页面](https://github.com/spencerwooo/BIThesis/releases/)
- [BIThesis 项目首页](https://github.com/spencerwooo/BIThesis)
- 个人信息的定义位于 `main.tex`[第 69 行至第 74 行](https://github.com/spencerwooo/BIThesis/blob/master/graduation-thesis/main.tex#L69-L74)

:::vue
.
├── `\deptName`:你所在学院
├── `\majorName`:你所就读的专业
├── `\yourName`:你的姓名
├── `\yourStudentID`:你的学号
└── `\mentorName`:你的指导教师
:::

- `\deptName`:你所在学院
- `\majorName`:你所就读的专业
- `\yourName`:你的姓名
- `\yourStudentID`:你的学号
- `\mentorName`:你的指导教师
- 章节文件的相对路径引用:

```latex
Expand Down Expand Up @@ -60,5 +55,5 @@
- 引用这一标签为 `szegedy2016rethinking` 的参考文献:

```latex
正文,正文正文 \cite {szegedy2016rethinking} 正文正文……
正文,正文正文 \cite{szegedy2016rethinking} 正文正文……
```

0 comments on commit 111ed0b

Please sign in to comment.