LaTeX

安装

打开这个网页

image-20201016171058010

安装这个即可

然后安装个 TexMaker

1
winget install texmaker

然后可以配置一下,在选项里面配置,可以把编译器改一下来支持中文

image-20201016171147980

LaTeX文档

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\documentclass{article}

\usepackage{ctex}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{multirow}

\title{Use \LaTeX to make presentation}
\author{Fyind}
\date{\today}

\begin{document}
\maketitle
\tableofcontents
\section{create a beamer}
\subsection{title}
\subsection{chapters}
\section{what is in a beamer}
\subsection{inser a picture}
\begin{equation}
a+b+c+d = e
\end{equation}
\subsection{insert formula}
This is my text;
\end{document}

Beamer

第一个beamer演示文稿

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\documentclass{beamer}

\usepackage{ctex}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{multirow}

\title{Use \LaTeX to make presentation}
\subtitle{tutorial}
\author{Fyind}
\date{\today}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\tableofcontents
\end{frame}

\section{create a beamer}
\begin{frame}
\subsection{title}
\subsection{chapters}
\end{frame}

\section{what is in a beamer}
\begin{frame}
\subsection{insert a picture}
\begin{equation}
a+b+c+d = e
\end{equation}

\subsection{insert formula}
\begin{table}
\caption{an example}
\begin{tabular}{cccc}
\toprule
a & b & c & d \\
\midrule
1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\
\bottomrule
\end{tabular}
\end{table}
\end{frame}

This is my text;
\end{document}

在beamer下,每一页ppt都是要放在 \frame 框架下的,除了用 \begin \end来包裹外,还可以使用

1
\framer{\titlepage}

自定义headline

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
\usepackage{ctex}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{multirow}

\setbeamercolor{huibai}{bg=gray, fg=white}

\setbeamertemplate{headline}{
\hbox{

\begin{beamercolorbox}[wd=0.5\paperwidth,ht=0.5cm,dp=2ex]{huibai}
\insertsection \insertsubsection \quad
\end{beamercolorbox}

\begin{beamercolorbox}[wd=0.5\paperwidth,ht=0.5cm,dp=2ex]{huibai}
作者: \insertshortauthor
\end{beamercolorbox}
}
}
image-20201016174008182

使用主体

1
2
\usetheme{Madrid}   % Comilerbau的主题