diff --git a/README.md b/README.md index 1b3cb23..1f53c98 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,27 @@ 3. beamerinnerthemeOUCSlide.sty:内部元素定义文件。 4. beamerouterthemeOUCSlide.sty:整体布局定义文件。 5. beamerthemeOUCSlide.sty:主题定义文件。 -5. logos:图标文件夹。 +5. logos:模板中使用的Logo存放文件夹。 6. figs:插入的图片文件夹。 7. fontawesome.pdf:图标使用说明文件。 + +# 使用方法 +1. 从git上clone项目到本地。目前,共有3个git库供选择,分别是:[Github](https://github.com/dryangyq/ouc-slide-latex-template.git)、[Gitee](https://gitee.com/dryangyq/ouc-slide-latex-template.git)和[Gitlab](https://gitlab.com/dryangyq/ouc-slide-latex-template.git)。这三个库都和[源库](https://git.yangyq.net/laoyang/ouc-slide-latex-template.git)保持一致和同步,从理论上来讲,使用任何一个库都可以。 +2. 安装Tex编译器,推荐使用[TexLive](https://tug.org/texlive/),安装成功后,可以使用自带的TeXworks打开目录下的tex文件进行编译。 +3. 可以安装其他的IDE工具进行Tex文件的编写和修改,推荐使用[Visual Studio Code](https://code.visualstudio.com/)。 +4. 编译时,请选择XeLaTex,有时候,可能需要连续编译两次,以得到正确的页码和图表编号。 + +# 元素介绍 +## 使用分节 + +本模板使用分节进行整体规划,章节共三级,对应的关键字分别是: +``` +\section +\subsection +\subsubsection +``` +其中,\section会有单独的页面进行显示。如下图所示。而且,section将会出现在目录页面中。 +![section](/figs/fig01.png ) +\subsection 和 \subsubsection都没有单独的页面想对应,他们会出现在对应章节的frame中,作为标题进行呈现,并且加入了自动编号的效果。需要说明的是,\subsection是必须的,而 \subsubsection 却可有可无。他们呈现出的最终的效果,如下图所示。 +![subsection](/figs/fig02.png) +需要注意的是,虽然frame的标题,是由subsection和subsubsection自动生成的,但是frame中的frametitle仍然是必须的,否则没有frametitle这个元素,标题无法自动填充。 \ No newline at end of file diff --git a/slides.tex b/slides.tex index c4927e1..903b679 100644 --- a/slides.tex +++ b/slides.tex @@ -71,7 +71,7 @@ \begin{frame} \frametitle{模板使用方法} \begin{enumerate} - \item 从git上clone整个文件夹目录\footnote{https://git.yangyq.net/laoyang/ouc-slide-latex-template.git }\footnote{https://github.com/dryangyq/ouc-slide-latex-template.git} \footnote{https://gitee.com/dryangyq/ouc-slide-latex-template}\footnote{https://gitlab.com/dryangyq/ouc-slide-latex-template}\\~ + \item 从git上clone整个文件夹目录\footnote{https://git.yangyq.net/laoyang/ouc-slide-latex-template.git }\footnote{https://github.com/dryangyq/ouc-slide-latex-template.git} \footnote{https://gitee.com/dryangyq/ouc-slide-latex-template.git}\footnote{https://gitlab.com/dryangyq/ouc-slide-latex-template.git}\\~ \item 编辑tex文件进行修改\\~ \item 编译tex文件为PDF\\~ \begin{enumerate}