mirror of
https://github.com/congyu711/BeamerTheme.git
synced 2025-07-12 08:31:31 +08:00
split by functions
This commit is contained in:
parent
08128c7bb4
commit
a66026b364
341
content.tex
341
content.tex
@ -1,207 +1,182 @@
|
||||
%-------------------main body-------------------------%
|
||||
\usepackage[english]{babel}
|
||||
\usepackage{amsmath,amssymb,amstext} % math
|
||||
\usepackage{float}
|
||||
\usepackage{array} % array table
|
||||
\usepackage{fancyhdr} % header footer
|
||||
\usepackage{graphicx} % figure
|
||||
\usepackage{lmodern}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{algorithm2e}
|
||||
\usepackage{booktabs}
|
||||
\frame[plain]{\titlepage}
|
||||
\frame{\frametitle{Outline}\tableofcontents}
|
||||
|
||||
\author{Zhibo Wang}
|
||||
\title{Beamer Theme}
|
||||
\date{November 26th, 2018}
|
||||
\section{Introduction}
|
||||
|
||||
\AtBeginSection[]{
|
||||
\frame{\frametitle{Outline}\tableofcontents[currentsection,
|
||||
subsectionstyle=show/show/shaded]}
|
||||
}
|
||||
\begin{frame}
|
||||
\frametitle{Latex and Beamer}
|
||||
|
||||
\begin{document}
|
||||
LaTeX is a high-quality typesetting system;
|
||||
it includes features designed for the production of
|
||||
technical and scientific documentation.
|
||||
|
||||
\frame[plain]{\titlepage}
|
||||
\frame{\frametitle{Outline}\tableofcontents}
|
||||
\vspace{0.4cm}
|
||||
|
||||
\section{Introduction}
|
||||
\pause
|
||||
|
||||
\begin{frame}
|
||||
\frametitle{Latex and Beamer}
|
||||
Beamer is a LaTeX class to create powerful,
|
||||
flexible and nice-looking presentations and slides.
|
||||
|
||||
LaTeX is a high-quality typesetting system;
|
||||
it includes features designed for the production of
|
||||
technical and scientific documentation.
|
||||
The beamer class is focussed on producing (on-screen) presentations,
|
||||
along with support material such as handouts and speaker notes.
|
||||
|
||||
\vspace{0.4cm}
|
||||
\end{frame}
|
||||
|
||||
\pause
|
||||
\section{Beamer Basic}
|
||||
\subsection{Hightlight}
|
||||
|
||||
Beamer is a LaTeX class to create powerful,
|
||||
flexible and nice-looking presentations and slides.
|
||||
\begin{frame}
|
||||
\frametitle{Block and Alert}
|
||||
|
||||
The beamer class is focussed on producing (on-screen) presentations,
|
||||
along with support material such as handouts and speaker notes.
|
||||
\vspace{-1.1cm}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\section{Beamer Basic}
|
||||
\subsection{Hightlight}
|
||||
|
||||
\begin{frame}
|
||||
\frametitle{Block and Alert}
|
||||
|
||||
\vspace{-1.1cm}
|
||||
|
||||
\begin{block}{Pythagorean theorem}
|
||||
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.6pt}
|
||||
$$a^2 + b^2 = c^2$$
|
||||
% \vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.1pt}
|
||||
where c represents the length of the hypotenuse and
|
||||
a and b the lengths of the triangle's other two sides.
|
||||
\end{block}
|
||||
|
||||
\begin{alertblock}{Remark}
|
||||
\begin{itemize}
|
||||
\item the environment above is \alert{block}
|
||||
\item the environment here is \alert{alertblock}
|
||||
\end{itemize}
|
||||
\end{alertblock}
|
||||
|
||||
\alert{Hightlight} these words are highlighted by $\backslash alert$.
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}
|
||||
\frametitle{Proof}
|
||||
|
||||
\begin{block}{Pythagorean theorem}
|
||||
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.1pt}
|
||||
$$a^2 + b^2 = c^2$$
|
||||
% \vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.2pt}
|
||||
\end{block}
|
||||
|
||||
\vspace{0.4cm}
|
||||
|
||||
\begin{proof}
|
||||
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0pt}
|
||||
\begin{align*}
|
||||
&3^2 + 4^2 = 5^2\\
|
||||
&5^2 + 12^2 = 13^2
|
||||
\end{align*}
|
||||
% \vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0pt}
|
||||
\end{proof}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\subsection{Other Environments}
|
||||
|
||||
\begin{frame}[shrink=15]{Algorithm}
|
||||
|
||||
\begin{algorithm}[H]
|
||||
\KwData{this text}
|
||||
\KwResult{how to write algorithm with \LaTeX2e }
|
||||
initialization\;
|
||||
\While{not at end of this document}{
|
||||
read current\;
|
||||
\eIf{understand}{
|
||||
go to next section\;
|
||||
current section becomes this one\;
|
||||
}{
|
||||
go back to the beginning of current section\;
|
||||
}
|
||||
}
|
||||
\caption{How to write algorithms
|
||||
(copied from \href{https://en.wikibooks.org/wiki/LaTeX/Algorithms}{here})}
|
||||
\end{algorithm}
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{More}
|
||||
|
||||
More environments such as
|
||||
\begin{block}{Pythagorean theorem}
|
||||
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.6pt}
|
||||
$$a^2 + b^2 = c^2$$
|
||||
% \vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.1pt}
|
||||
where c represents the length of the hypotenuse and
|
||||
a and b the lengths of the triangle's other two sides.
|
||||
\end{block}
|
||||
|
||||
\begin{alertblock}{Remark}
|
||||
\begin{itemize}
|
||||
\item Definition
|
||||
\item lemma
|
||||
\item corollary
|
||||
\item example
|
||||
\item the environment above is \alert{block}
|
||||
\item the environment here is \alert{alertblock}
|
||||
\end{itemize}
|
||||
\end{alertblock}
|
||||
|
||||
\alert{Hightlight} these words are highlighted by $\backslash alert$.
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}
|
||||
\frametitle{Proof}
|
||||
|
||||
\begin{block}{Pythagorean theorem}
|
||||
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.1pt}
|
||||
$$a^2 + b^2 = c^2$$
|
||||
% \vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0.2pt}
|
||||
\end{block}
|
||||
|
||||
\vspace{0.4cm}
|
||||
|
||||
\begin{proof}
|
||||
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0pt}
|
||||
\begin{align*}
|
||||
&3^2 + 4^2 = 5^2\\
|
||||
&5^2 + 12^2 = 13^2
|
||||
\end{align*}
|
||||
% \vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0pt}
|
||||
\end{proof}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\subsection{Other Environments}
|
||||
|
||||
\begin{frame}[shrink=15]{Algorithm}
|
||||
|
||||
\begin{algorithm}[H]
|
||||
\KwData{this text}
|
||||
\KwResult{how to write algorithm with \LaTeX2e }
|
||||
initialization\;
|
||||
\While{not at end of this document}{
|
||||
read current\;
|
||||
\eIf{understand}{
|
||||
go to next section\;
|
||||
current section becomes this one\;
|
||||
}{
|
||||
go back to the beginning of current section\;
|
||||
}
|
||||
}
|
||||
\caption{How to write algorithms
|
||||
(copied from \href{https://en.wikibooks.org/wiki/LaTeX/Algorithms}{here})}
|
||||
\end{algorithm}
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{More}
|
||||
|
||||
More environments such as
|
||||
|
||||
\begin{itemize}
|
||||
\item Definition
|
||||
\item lemma
|
||||
\item corollary
|
||||
\item example
|
||||
\end{itemize}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\section{Beamer More}
|
||||
|
||||
\subsection{Split Screen}
|
||||
|
||||
\begin{frame}{Minipage}
|
||||
\begin{minipage}{0.5\linewidth}
|
||||
\begin{figure}[h]
|
||||
\includegraphics[width=\textwidth]{imgs/pythagorean.jpg}
|
||||
\end{figure}
|
||||
\end{minipage}%
|
||||
\hfill
|
||||
\begin{minipage}{0.4\linewidth}
|
||||
\begin{itemize}
|
||||
\item item
|
||||
\item another
|
||||
\item more
|
||||
\begin{enumerate}
|
||||
\item first
|
||||
\item second
|
||||
\item third
|
||||
\end{enumerate}
|
||||
\end{itemize}
|
||||
\end{minipage}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Columns}
|
||||
\begin{columns}
|
||||
\column{0.5\textwidth}
|
||||
This is a text in first column.
|
||||
$$E=mc^2$$
|
||||
\begin{itemize}
|
||||
\item First item
|
||||
\item Second item
|
||||
\end{itemize}
|
||||
|
||||
\end{frame}
|
||||
\column{0.5\textwidth}
|
||||
\begin{block}{first block}
|
||||
columns achieves splitting the screen
|
||||
\end{block}
|
||||
\begin{block}{second block}
|
||||
stack block in columns
|
||||
\end{block}
|
||||
|
||||
\section{Beamer More}
|
||||
\end{columns}
|
||||
\end{frame}
|
||||
|
||||
\subsection{Split Screen}
|
||||
\subsection{Table}
|
||||
|
||||
\begin{frame}{Minipage}
|
||||
\begin{minipage}{0.5\linewidth}
|
||||
\begin{figure}[h]
|
||||
\includegraphics[width=\textwidth]{imgs/pythagorean.jpg}
|
||||
\end{figure}
|
||||
\end{minipage}%
|
||||
\hfill
|
||||
\begin{minipage}{0.4\linewidth}
|
||||
\begin{itemize}
|
||||
\item item
|
||||
\item another
|
||||
\item more
|
||||
\begin{enumerate}
|
||||
\item first
|
||||
\item second
|
||||
\item third
|
||||
\end{enumerate}
|
||||
\end{itemize}
|
||||
\end{minipage}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}{Columns}
|
||||
\begin{columns}
|
||||
\column{0.5\textwidth}
|
||||
This is a text in first column.
|
||||
$$E=mc^2$$
|
||||
\begin{itemize}
|
||||
\item First item
|
||||
\item Second item
|
||||
\end{itemize}
|
||||
|
||||
\column{0.5\textwidth}
|
||||
\begin{block}{first block}
|
||||
columns achieves splitting the screen
|
||||
\end{block}
|
||||
\begin{block}{second block}
|
||||
stack block in columns
|
||||
\end{block}
|
||||
|
||||
\end{columns}
|
||||
\end{frame}
|
||||
|
||||
\subsection{Table}
|
||||
\begin{frame}{Create Tables}
|
||||
\begin{center}
|
||||
\begin{table}[!t]
|
||||
% \caption{Three line}
|
||||
% \label{table_time}
|
||||
\begin{tabular}{ccc}
|
||||
\toprule
|
||||
first&second&third\\
|
||||
\midrule
|
||||
1 & 2 & 3 \\
|
||||
4 & 5 & 6 \\
|
||||
7 & 8 & 9 \\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
\end{center}
|
||||
\end{frame}
|
||||
|
||||
|
||||
|
||||
\section{Conclusion}
|
||||
|
||||
\begin{frame}{Create Tables}
|
||||
\begin{center}
|
||||
\begin{table}[!t]
|
||||
% \caption{Three line}
|
||||
% \label{table_time}
|
||||
\begin{tabular}{ccc}
|
||||
\toprule
|
||||
first&second&third\\
|
||||
\midrule
|
||||
1 & 2 & 3 \\
|
||||
4 & 5 & 6 \\
|
||||
7 & 8 & 9 \\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
\end{center}
|
||||
\end{frame}
|
||||
|
||||
\section{Conclusion}
|
||||
|
||||
\begin{frame}{End}
|
||||
This document just aims to test styles in beamer.
|
||||
\end{frame}
|
||||
|
||||
\end{document}
|
||||
\begin{frame}{End}
|
||||
This document just aims to test styles in beamer.
|
||||
\end{frame}
|
@ -1,3 +1,7 @@
|
||||
\documentclass[aspectratio=169]{beamer}
|
||||
\input{template_long.tex}
|
||||
\input{content.tex}
|
||||
\input{pkgs.tex}
|
||||
\input{setting169.tex}
|
||||
\input{global.tex}
|
||||
\begin{document}
|
||||
\input{content.tex}
|
||||
\end{document}
|
@ -1,10 +1,7 @@
|
||||
\documentclass{beamer}
|
||||
|
||||
\usetheme{Copenhagen}
|
||||
\usecolortheme{beaver}
|
||||
\input{template_short.tex}
|
||||
|
||||
\input{content.tex}
|
||||
|
||||
|
||||
|
||||
\input{pkgs.tex}
|
||||
\input{global.tex}
|
||||
\input{setting43.tex}
|
||||
\begin{document}
|
||||
\input{content.tex}
|
||||
\end{document}
|
8
global.tex
Normal file
8
global.tex
Normal file
@ -0,0 +1,8 @@
|
||||
\author{Zhibo Wang}
|
||||
\title{Beamer Theme}
|
||||
\date{November 26th, 2018}
|
||||
|
||||
\AtBeginSection[]{
|
||||
\frame{\frametitle{Outline}\tableofcontents[currentsection,
|
||||
subsectionstyle=show/show/shaded]}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user