epyt-theme

效果:

epyt-demo.tex

 1 %  -*- coding: utf-8 -*-
 2 % !TEX program = xelatex
 3
 4 \documentclass[14pt,notheorems]{beamer}
 5
 6 \usetheme[color=green]{epyt} % black, blue, green, white
 7 \usepackage[UTF8,noindent]{ctex}
 8
 9 \hypersetup{
10   pdfpagemode={FullScreen},
11 }
12
13 \newtheorem{theorem}{定理}
14 \newtheorem{definition}[theorem]{定义}
15 \newtheorem{example}[theorem]{例子}
16
17 \newtheorem*{theorem*}{定理}
18 \newtheorem*{definition*}{定义}
19 \newtheorem*{example*}{例子}
20
21 \renewcommand{\proofname}{证明}
22
23 \title{Epyt, a Simple and Nice Theme for Beamer}
24 \author{[email protected]}
25
26 \begin{document}
27
28 \begin{frame}[plain]\transboxout
29 \titlepage
30 \end{frame}
31
32 \begin{frame}\transboxin
33 \begin{center}
34 \tableofcontents[hideallsubsections]
35 \end{center}
36 \end{frame}
37
38 \section{简要介绍}
39
40 \begin{frame}{简要介绍}\transdissolve
41 Epyt 是一个简洁美观的 Beamer 演示文稿主题。它有这些特点:\pause
42 \begin{itemize}[<+->]
43 \item 结构简洁,只有包含必需元素的底栏,没有顶栏和侧栏。
44 \item 内容简洁,列表环境和定理环境都使用了简单的形式。
45 \item 配色简洁,仅仅用到几种背景色和前景色。
46 \end{itemize}
47 \end{frame}
48
49 \section{列表环境}
50
51 \begin{frame}[fragile]{有序列表}\transwipe[direction=270]
52 无序列表前面已经看到,现在来看看有序列表。一个 Beamer 的主题由下列四部分组成:\pause
53 \begin{enumerate}[<+->]
54 \item 外部主题,用 \verb!\usebeameroutertheme! 命令;
55 \item 内部主题,用 \verb!\usebeamerinnertheme! 命令;
56 \item 颜色主题,用 \verb!\usebeamercolortheme! 命令;
57 \item 字体主题,用 \verb!\usebeamerfonttheme! 命令。
58 \end{enumerate}
59 \end{frame}
60
61 \section{数学环境}
62
63 \begin{frame}{例子证明}\transglitter[direction=90]
64 \begin{example}
65 用等价无穷小代换证明下面极限:
66 \[ \lim_{x\to0}\frac{\sin 3x}{\ln(1-2x)}=-\frac{3}{2} \]
67 \end{example}\pause
68 \begin{proof}
69 因为$\sin 3x \sim 3x$,$\ln(1-2x) \sim -2x$,所以我们有
70 \[ \lim_{x\to0}\frac{\sin 3x}{\ln(1-2x)}=\lim_{x\to0}\frac{3x}{-2x}=-\frac{3}{2}, \]
71 即等式成立。
72 \end{proof}
73 \end{frame}
74
75 \section{使用说明}
76
77 \begin{frame}[fragile]{使用说明}\transblindsvertical
78 \begin{itemize}
79 \item 建议在演示文稿中使用大号的字体,例如:
80 \begin{verbatim}
81 \documentclass[14pt]{beamer}
82 \usebeamertheme{epyt}
83 \end{verbatim}\pause
84 \item 如果要使用中文,可以用 \verb ctex 宏包,例如:
85 \begin{verbatim}
86 \documentclass[14pt]{beamer}
87 \usebeamertheme{epyt}
88 \usepacakge[UTF8,noindent]{ctex}
89 \end{verbatim}\pause
90 \item 在载入主题时有几种配色风格可以选择。
91 \end{itemize}
92 \end{frame}
93
94 \end{document}

beamerthemeepyt.sty

  1 %% -*- coding: utf-8 -*-
  2
  3 %% epyt: a simple and nice theme for beamer
  4 %% home: https://github.com/zohooo/epyt
  5
  6 \ProvidesPackage{beamerthemeepyt}[2014/04/08 v0.5]
  7
  8 \mode<presentation>
  9
 10 \DeclareOptionBeamer{color}[black]{\def\[email protected]@color{#1}}
 11 \ProcessOptionsBeamer
 12
 13 %% default theme
 14
 15 \usetheme{default}
 16
 17 %% color theme
 18
 19 \def\[email protected]@[email protected]{black}
 20 \def\[email protected]@[email protected]{blue}
 21 \def\[email protected]@[email protected]{green}
 22 \def\[email protected]@[email protected]{white}
 23
 24 \definecolor{dgray}{HTML}{202020}
 25 \definecolor{lgray}{HTML}{404040}
 26 \definecolor{dblue}{HTML}{0000CC}
 27 \definecolor{lblue}{HTML}{ABCDEF}
 28 \definecolor{dgreen}{HTML}{254535}
 29 \definecolor{ggreen}{HTML}{214131}
 30 \definecolor{lgreen}{HTML}{A9EFA9}
 31 \definecolor{dorange}{HTML}{C07000}
 32
 33 \ifx\[email protected]@color\[email protected]@[email protected]
 34   \setbeamertemplate{background canvas}{}
 35   \setbeamertemplate{background}{}
 36   \setbeamercolor{normal text}{bg=white,fg=black}
 37   \setbeamercolor{structure}{fg=blue}
 38   \setbeamercolor{local structure}{fg=lgreen}
 39 \else\ifx\[email protected]@color\[email protected]@[email protected]
 40   \setbeamertemplate{background canvas}[vertical shading][top=black, middle=dblue, bottom=black]
 41   \setbeamercolor{normal text}{bg=blue, fg=white}
 42   \setbeamercolor{structure}{fg=yellow}
 43   \setbeamercolor{local structure}{fg=lblue}
 44 \else\ifx\[email protected]@color\[email protected]@[email protected]
 45   \setbeamercolor{background canvas}{bg=dgreen}
 46   \setbeamertemplate{background}[grid][step=1mm,color=ggreen]
 47   \setbeamercolor{normal text}{bg=dgreen, fg=white}
 48   \setbeamercolor{structure}{fg=yellow}
 49   \setbeamercolor{local structure}{fg=lgreen}
 50   \setbeamercolor{footline}{bg=dorange}
 51   \setbeamercolor{navigation symbols}{bg=dorange}
 52   \setbeamercolor{navigation symbols dimmed}{fg=dorange}
 53 \else
 54   \setbeamertemplate{background canvas}[vertical shading][top=black, middle=dgray, bottom=lgray]
 55   \setbeamercolor{normal text}{bg=black,fg=white}
 56   \setbeamercolor{structure}{fg=yellow}
 57   \setbeamercolor{local structure}{fg=lblue}
 58 \fi\fi\fi
 59
 60 \setbeamercolor{title}{fg=structure.fg}
 61 \setbeamercolor{subtitle}{fg=structure.fg!70!normal text.bg}
 62 \setbeamercolor{section in toc}{fg=structure.fg!90!normal text.bg}
 63 \setbeamercolor{subsection in toc}{fg=structure.fg!80!normal text.bg}
 64 \setbeamercolor{frametitle}{fg=structure.fg!70!normal text.bg}
 65 \setbeamercolor{theoremname}{fg=structure.fg!60!normal text.bg}
 66 \setbeamercolor{proofname}{fg=structure.fg!60!normal text.bg}
 67 \setbeamercolor{footline}{fg=normal text.fg}
 68 \setbeamercolor{navigation symbols}{fg=normal text.fg}
 69 \setbeamercolor{navigation symbols dimmed}{fg=normal text.fg}
 70
 71 %% font theme
 72
 73 \setbeamerfont{title}{size=\huge}
 74 \setbeamerfont{subtitle}{size=\large}
 75 \setbeamerfont{author}{size=\large}
 76 \setbeamerfont{institute}{size=\normalsize}
 77 \setbeamerfont{date}{size=\large}
 78 \setbeamerfont{section in toc}{size=\Large}
 79 \setbeamerfont{subsection in toc}{size=\large}
 80 \setbeamerfont{frametitle}{size=\large}
 81
 82 \usefonttheme{professionalfonts} % there is some problem with default math fonts
 83
 84 %% inner theme
 85
 86 \setbeamertemplate{itemize items}[default]
 87 \setbeamertemplate{enumerate items}[default]
 88
 89 \setbeamertemplate{section in toc}[sections numbered]
 90 \setbeamertemplate{subsection in toc}{}
 91
 92 % sections and subsections
 93
 94 \AtBeginSection[]{
 95 \begin{frame}
 96   \begin{center}
 97     \usebeamerfont{section in toc}
 98     \tableofcontents[sectionstyle=show/hide,subsectionstyle=hide]
 99   \end{center}
100 \end{frame}
101 }
102
103 \AtBeginSubsection[]{
104 \begin{frame}
105   \begin{beamercolorbox}[wd=\paperwidth,center]{subsection in toc}%
106   \usebeamerfont{subsection in toc}\insertsectionnumber.\insertsubsectionnumber\hspace*{2ex}\insertsubsection%
107   \end{beamercolorbox}%
108 \end{frame}
109 }
110
111 % disable block style for theorems
112
113 \setbeamertemplate{theorem begin}
114 {%
115   \bfseries\upshape %\inserttheoremheadfont
116   {\usebeamercolor[fg]{theoremname}%
117   \inserttheoremname\inserttheoremnumber
118   \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
119   \inserttheorempunctuation}\quad
120   \normalfont
121 }
122 \setbeamertemplate{theorem end}{}
123
124
125 \setbeamertemplate{proof begin}
126 {%
127   \bfseries {\usebeamercolor[fg]{proofname}%
128   \insertproofname}\quad
129   \normalfont
130 }
131 \setbeamertemplate{proof end}{}
132
133 %% outer theme
134
135 \setbeamertemplate{frametitle}{\noindent\usebeamerfont{frametitle}\insertframetitle\par}
136 \setbeamertemplate{navigation symbols}{}
137 \setbeamertemplate{footline}
138 {
139   \hbox{%
140   \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,left]{footline}%
141     \hspace*{1ex}\usebeamerfont{footline}\insertframenumber{}/\inserttotalframenumber
142   \end{beamercolorbox}%
143   \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{footline}%
144     \usebeamerfont{footline}\insertshorttitle
145   \end{beamercolorbox}%
146   \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,right]{footline}%
147     \usebeamerfont{footline}\hyperlinkframeendprev{$\lhd$}\hspace*{1ex}\hyperlinkframestartnext{$\rhd$}\hspace*{1ex}
148   \end{beamercolorbox}%
149   }%
150 }
151
152 \mode<handout>{
153   \setbeamertemplate{background canvas}{}
154   \setbeamertemplate{background}{}
155   \setbeamercolor{normal text}{fg=black, bg=white}
156   \setbeamercolor{title}{fg=blue}
157   \setbeamercolor{subtitle}{fg=blue!70!gray}
158   \setbeamercolor{section in toc}{fg=blue!90!gray}
159   \setbeamercolor{subsection in toc}{fg=blue!80!gray}
160   \setbeamercolor{frametitle}{fg=blue!70!gray}
161   \setbeamercolor{theoremname}{fg=blue!60!gray}
162   \setbeamercolor{proofname}{fg=blue!60!gray}
163   \setbeamercolor{footline}{bg=white}
164 }
165
166 \mode<all>
时间: 2024-08-29 04:43:00

epyt-theme的相关文章

Android的Style和Theme 译文

Style 是Window和View的一种外观和格式的属性集合.它可以作为高度,间距,字体大小,背景颜色等属性.Style是一种 xml 资源文件,放在和布局文件不同的文件夹里: Style 的设计理念和 Web一脉相承--即它们都允许你把内容和样式分离. 例如,你用Style可以把下面这个xml文件: <TextView android:layout_width="fill_parent" android:layout_height="wrap_content&quo

Linux mint cinnamon how to customize theme

Linux mint cinnamon       how to customize theme Linux mint have two style theme- system theme and user theme eg: system setting->themes like picture below: Void is user theme and the other is system theme,system theme can't be uninstalled. So the th

Notepad++ sublime text theme for C/C++

转自:https://coderwall.com/p/36x7uw 嗯,我决定还是把 整个文件贴出来,方便: 导入方法: 找到notepad++的目录,进入到themes里面. 建立一个:Waher-style.xml 然后把下面的内容copy进去.保存重启notepad++.然后在Settings 选择 Style Configurator. 在Select theme:里选择Waher-style. <?xml version="1.0" encoding="Win

Android 5.x Theme 与 ToolBar 实战

1.概述 随着Material Design的逐渐的普及,业内也有很多具有分享精神的伙伴翻译了material design specification ,中文翻译地址:Material Design 中文版.So,我们也开始Android 5.x相关的blog,那么首先了解的当然是其主题的风格以及app bar. 当然,5.x普及可能还需要一段时间,所以我们还是尽可能的去使用兼容包支持低版本的设备. ps:本博客使用: compileSdkVersion 22 buildToolsVersio

poj1743 Musical Theme

地址:http://poj.org/problem?id=1743 题目: Musical Theme Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 28675   Accepted: 9674 Description A musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range

hdu4763 Theme Section

地址:http://acm.hdu.edu.cn/showproblem.php?pid=4763 题目: Theme Section Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3491    Accepted Submission(s): 1623 Problem Description It's time for music!

POJ 1743Musical Theme

Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 27889   Accepted: 9413 Description A musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the piano. It is u

开发中遇到的问题(一)——java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

1.错误描述: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 2.起因: 在Manifest中设置我的activity全屏 1 <activity android:name=".SplashActivity" 2 android:theme="@android:style/Theme.Black.No

POJ1743 Musical Theme [没做出来]

Musical Theme Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 27539   Accepted: 9290 Description A musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the

编译或运行时可能会出现错误: Error:Error retrieving parent for item: No resource found that matches the given name “Theme.AppCompat.Light”

这个问题我在刚开始写"HelloWorld"时就遇到,以为是API版本太高,下载了常用的API 19.17--一系列的,后来还是有问题.就上网查了很多,遇到几篇不错的文章,记录下来,方便以后查看. No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案  http://www.360doc.com/content/15/0316/15/9200790_455576135.shtml And