summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-24 21:17:35 +0000
committerKarl Berry <karl@freefriends.org>2015-03-24 21:17:35 +0000
commit1b9aa95deee3641bd94fd7589b3ebe1e84f87103 (patch)
tree41d76f74295d82814fd0674fbda81767c5d3dc10
parentd612b2f9446fa4d7d81b52c357758ea272ed7c5c (diff)
epyt (24mar15)
git-svn-id: svn://tug.org/texlive/trunk@36611 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/epyt/README11
-rw-r--r--Master/texmf-dist/doc/latex/epyt/epyt-demo.pdfbin0 -> 44861 bytes
-rw-r--r--Master/texmf-dist/doc/latex/epyt/epyt-demo.tex85
-rw-r--r--Master/texmf-dist/tex/latex/epyt/beamerthemeepyt.sty232
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/epyt.tlpsrc0
7 files changed, 330 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/epyt/README b/Master/texmf-dist/doc/latex/epyt/README
new file mode 100644
index 00000000000..0fd5d41565d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epyt/README
@@ -0,0 +1,11 @@
+Package epyt: a simple and clean theme for LaTeX beamer class
+Copyright (C) 2013-2015 Zou Hu <zohooo@yeah.net>
+
+Please report bugs, problems, and suggestions via
+ https://github.com/zohooo/epyt
+
+The package may be distributed and/or modified under the conditions
+of the LaTeX Project Public License, either version 1.3 of this
+license or (at your option) any later version. The latest version
+of this license is in
+ http://www.latex-project.org/lppl.txt
diff --git a/Master/texmf-dist/doc/latex/epyt/epyt-demo.pdf b/Master/texmf-dist/doc/latex/epyt/epyt-demo.pdf
new file mode 100644
index 00000000000..2801bdebc35
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epyt/epyt-demo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/epyt/epyt-demo.tex b/Master/texmf-dist/doc/latex/epyt/epyt-demo.tex
new file mode 100644
index 00000000000..1f3e0ed756c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epyt/epyt-demo.tex
@@ -0,0 +1,85 @@
+% -*- coding: utf-8 -*-
+% !TEX program = xelatex
+%
+% Package epyt: a simple and clean theme for LaTeX beamer class
+% Copyright (C) 2013-2015 Zou Hu <zohooo@yeah.net>
+%
+% Please report bugs, problems, and suggestions via
+% https://github.com/zohooo/epyt
+%
+% The package may be distributed and/or modified under the conditions
+% of the LaTeX Project Public License, either version 1.3 of this
+% license or (at your option) any later version. The latest version
+% of this license is in
+% http://www.latex-project.org/lppl.txt
+
+\documentclass[14pt]{beamer}
+
+\usetheme[color=white]{epyt} % black, blue, green, white
+
+\usepackage{arev} % use arev sans font
+
+\hypersetup{
+ pdfpagemode={FullScreen},
+}
+
+\title{Epyt Theme for Beamer}
+\author{zohooo@yeah.net}
+%\institute{https://github.com/zohooo/epyt}
+
+\begin{document}
+
+\begin{frame}[plain]\transboxout
+\titlepage
+\end{frame}
+
+\begin{frame}\transboxin
+\begin{center}
+\tableofcontents[hideallsubsections]
+\end{center}
+\end{frame}
+
+\epytsetup{color=green}
+
+\section{Introduction}
+
+\begin{frame}{Introduction}
+Epyt is a simple but nice theme for Beamer, with the following features: \pause
+\begin{itemize}[<+->]
+\item simple structure: with page numbers at footer, no head bar and side bar;
+\item simple templates: displaying theorems with traditional inline style;
+\item simple colors: using only several foreground and background colors.
+\end{itemize}
+\end{frame}
+
+\epytsetup{color=blue}
+
+\section{Enumerates}
+
+\begin{frame}[fragile]{Ordered Lists}
+A Beamer theme consists of the following four parts: \pause
+\begin{enumerate}[<+->]
+\item outer theme, with \verb!\usebeameroutertheme!;
+\item inner theme, with \verb!\usebeamerinnertheme!;
+\item color theme, with \verb!\usebeamercolortheme!;
+\item font theme, with \verb!\usebeamerfonttheme!.
+\end{enumerate}
+\end{frame}
+
+\epytsetup{color=black}
+
+\section{Mathmatics}
+
+\begin{frame}{Example}
+\begin{example}
+Prove the following result:
+\[ \lim_{x\to0}\frac{\sin 3x}{\ln(1-2x)}=-\frac{3}{2} \]
+\end{example}\pause
+\begin{proof}
+Since $\sin 3x \sim 3x$ and $\ln(1-2x) \sim -2x$, we have
+\[ \lim_{x\to0}\frac{\sin 3x}{\ln(1-2x)}=\lim_{x\to0}\frac{3x}{-2x}=-\frac{3}{2}, \]
+and we are done.
+\end{proof}
+\end{frame}
+
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/epyt/beamerthemeepyt.sty b/Master/texmf-dist/tex/latex/epyt/beamerthemeepyt.sty
new file mode 100644
index 00000000000..d655edc3a38
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/epyt/beamerthemeepyt.sty
@@ -0,0 +1,232 @@
+% -*- coding: utf-8 -*-
+%
+% Package epyt: a simple and clean theme for LaTeX beamer class
+% Copyright (C) 2013-2015 Zou Hu <zohooo@yeah.net>
+%
+% Please report bugs, problems, and suggestions via
+% https://github.com/zohooo/epyt
+%
+% The package may be distributed and/or modified under the conditions
+% of the LaTeX Project Public License, either version 1.3 of this
+% license or (at your option) any later version. The latest version
+% of this license is in
+% http://www.latex-project.org/lppl.txt
+
+\ProvidesPackage{beamerthemeepyt}[2015/03/24 v0.6]
+
+\makeatletter
+
+\mode<presentation>
+
+\def\beamer@epyt@color{white}
+\DeclareOptionBeamer{color}[white]{\def\beamer@epyt@color{#1}}
+\ProcessOptionsBeamer
+
+%% basic settings
+
+\setbeamersize{text margin left=1em,text margin right=1em}
+%\geometry{hmargin=1em,vmargin=0em}
+
+%% define some templates
+
+% make "vertical shading" modifiable in the middle of the document
+% see beamerbaseauxtemplates.sty for the original code
+
+\define@key{epyt@backgroundshade}{bottom}{\def\epyt@bgsb{#1}}
+\define@key{epyt@backgroundshade}{middle}{\def\epyt@bgsm{#1}}
+\define@key{epyt@backgroundshade}{top}{\def\epyt@bgst{#1}}
+\define@key{epyt@backgroundshade}{midpoint}{\def\epyt@bgsmp{#1}}
+
+\defbeamertemplate{background canvas}{epyt shading}[1][]
+{%
+ \setkeys{epyt@backgroundshade}{middle={},midpoint=0.5}%
+ \setkeys{epyt@backgroundshade}{#1}%
+ \pgfdeclareverticalshading[\epyt@bgsb,\epyt@bgsm,\epyt@bgst]%
+ {epyt@backgroundshading}{\the\paperwidth}%
+ {color(0cm)=(\epyt@bgsb);
+ color(\epyt@bgsmp\paperheight)=(\epyt@bgsm);
+ color(\the\paperheight)=(\epyt@bgst)}%
+ \pgfuseshading{epyt@backgroundshading}%
+}
+
+%% color theme
+
+\definecolor{dgray}{HTML}{202020}
+\definecolor{lgray}{HTML}{404040}
+\definecolor{dblue}{HTML}{3333B2}
+\definecolor{tblue}{HTML}{000099}
+\definecolor{gblue}{HTML}{0033CC}
+\definecolor{lblue}{HTML}{ABCDEF}
+\definecolor{dred}{HTML}{660033}
+\definecolor{dgreen}{HTML}{254535}
+\definecolor{ggreen}{HTML}{214131}
+\definecolor{lgreen}{HTML}{A9EFA9}
+\definecolor{dorange}{HTML}{C07000}
+
+\def\beamer@epyt@color@do@white{
+ \setbeamercolor{normal text}{bg=white,fg=black}
+ \setbeamertemplate{background canvas}[default]
+ \setbeamertemplate{background}[default]
+ \setbeamercolor{structure}{fg=blue}
+ \setbeamercolor{local structure}{fg=teal}
+ \setbeamercolor{footline}{bg=dblue,fg=white}
+}
+\def\beamer@epyt@color@do@blue{
+ \setbeamercolor{normal text}{bg=dblue,fg=white}
+ \setbeamertemplate{background canvas}[epyt shading][top=tblue,middle=dblue,bottom=tblue]
+ \setbeamertemplate{background}[grid][step=1mm,color=gblue]
+ \setbeamercolor{structure}{fg=yellow}
+ \setbeamercolor{local structure}{fg=lblue}
+ \setbeamercolor{footline}{bg=dred,fg=white}
+ \setbeamercolor{navigation symbols}{bg=dred}
+ \setbeamercolor{navigation symbols dimmed}{fg=dred}
+}
+\def\beamer@epyt@color@do@green{
+ \setbeamercolor{normal text}{bg=dgreen,fg=white}
+ \setbeamertemplate{background canvas}[default]
+ \setbeamertemplate{background}[grid][step=1mm,color=ggreen]
+ \setbeamercolor{structure}{fg=yellow}
+ \setbeamercolor{local structure}{fg=lgreen}
+ \setbeamercolor{footline}{bg=dorange,fg=white}
+ \setbeamercolor{navigation symbols}{bg=dorange}
+ \setbeamercolor{navigation symbols dimmed}{fg=dorange}
+}
+\def\beamer@epyt@color@do@black{
+ \setbeamercolor{normal text}{bg=black,fg=white}
+ \setbeamertemplate{background canvas}[epyt shading][top=black,middle=dgray,bottom=lgray]
+ \setbeamertemplate{background}[default]
+ \setbeamercolor{structure}{fg=yellow}
+ \setbeamercolor{local structure}{fg=lblue}
+ \setbeamercolor{footline}{bg=,fg=white}
+}
+
+\def\beamer@epyt@color@do{%
+ \expandafter\let\expandafter\next
+ \csname beamer@epyt@color@do@\beamer@epyt@color\endcsname
+ \ifx\next\relax \let\next\beamer@epyt@color@do@white \fi
+ \next
+ % need this when switching color themes in the middle of the document
+ \usebeamercolor[fg]{normal text}%
+ %\renewcommand{\normalcolor}{\color{normal text.fg}}%
+}
+
+\beamer@epyt@color@do
+
+\RequirePackage{xkeyval}
+\define@key{epytsetup}{color}{\def\beamer@epyt@color{#1}}
+\newcommand{\epytsetup}[1]{%
+ \setkeys{epytsetup}{#1}%
+ \beamer@epyt@color@do
+}
+
+\setbeamercolor{title}{use=structure,fg=structure.fg}
+\setbeamercolor{subtitle}{use={structure,normal text},fg=structure.fg!90!normal text.bg}
+\setbeamercolor{section in toc}{parent=title}
+\setbeamercolor{subsection in toc}{parent=subtitle}
+\setbeamercolor{frametitle}{parent=title}
+\setbeamercolor{theoremname}{parent=subtitle}
+\setbeamercolor{proofname}{parent=subtitle}
+
+%% font theme
+
+\setbeamerfont{title}{size=\LARGE}
+\setbeamerfont{subtitle}{size=\large}
+\setbeamerfont{author}{size=\large}
+\setbeamerfont{institute}{size=\normalsize}
+\setbeamerfont{date}{size=\large}
+\setbeamerfont{section in toc}{size=\Large}
+\setbeamerfont{subsection in toc}{size=\large}
+\setbeamerfont{frametitle}{size=\large}
+
+\usefonttheme{professionalfonts} % there is some problem with default math fonts
+%\usepackage{arev}
+
+%% inner theme
+
+\setbeamertemplate{itemize items}[default]
+\setbeamertemplate{enumerate items}[default]
+
+\setbeamertemplate{section in toc}[sections numbered]
+\setbeamertemplate{subsection in toc}{}
+
+% sections and subsections
+
+\AtBeginSection[]{
+\begin{frame}
+ \begin{center}
+ \usebeamerfont{section in toc}
+ \tableofcontents[sectionstyle=show/hide,subsectionstyle=hide]
+ \end{center}
+\end{frame}
+}
+
+\AtBeginSubsection[]{
+\begin{frame}
+ \begin{beamercolorbox}[wd=\paperwidth,center]{subsection in toc}%
+ \usebeamerfont{subsection in toc}\insertsectionnumber.\insertsubsectionnumber\hspace*{2ex}\insertsubsection%
+ \end{beamercolorbox}%
+\end{frame}
+}
+
+% disable block style for theorems
+
+\setbeamertemplate{theorem begin}
+{%
+ \upshape%\bfseries\inserttheoremheadfont
+ {\usebeamercolor[fg]{theoremname}%
+ \inserttheoremname\inserttheoremnumber
+ \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
+ %\inserttheorempunctuation
+ }%
+ \quad\normalfont
+}
+\setbeamertemplate{theorem end}{\par}
+
+
+\setbeamertemplate{proof begin}
+{%
+ %\bfseries
+ {\usebeamercolor[fg]{proofname}\insertproofname}%
+ \quad\normalfont
+}
+\setbeamertemplate{proof end}{\par}
+
+%% outer theme
+
+\setbeamertemplate{frametitle}{\noindent\usebeamerfont{frametitle}\insertframetitle\par}
+\setbeamertemplate{navigation symbols}{}
+\setbeamertemplate{footline}
+{
+ \hbox{%
+ \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,left]{footline}%
+ \hspace*{1ex}\usebeamerfont{footline}\Acrobatmenu{GoToPage}{\insertframenumber{}/\inserttotalframenumber}
+ \end{beamercolorbox}%
+ \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{footline}%
+ \usebeamerfont{footline}\insertshorttitle
+ \end{beamercolorbox}%
+ \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,right]{footline}%
+ \usebeamerfont{footline}%
+ \Acrobatmenu{GoBack}{$\lhd$}\hspace*{1ex}\Acrobatmenu{GoForward}{$\rhd$}\hspace*{1ex}%
+ \hyperlinkframeendprev{$\vartriangle$}\hspace*{1ex}\hyperlinkframestartnext{$\triangledown$}\hspace*{1ex}
+ \end{beamercolorbox}%
+ }%
+}
+
+\mode<handout>{
+ \setbeamertemplate{background canvas}{}
+ \setbeamertemplate{background}{}
+ \setbeamercolor{normal text}{fg=black, bg=white}
+ \setbeamercolor{title}{fg=blue}
+ \setbeamercolor{subtitle}{fg=blue!70!gray}
+ \setbeamercolor{section in toc}{fg=blue!90!gray}
+ \setbeamercolor{subsection in toc}{fg=blue!80!gray}
+ \setbeamercolor{frametitle}{fg=blue!70!gray}
+ \setbeamercolor{theoremname}{fg=blue!60!gray}
+ \setbeamercolor{proofname}{fg=blue!60!gray}
+ \setbeamercolor{footline}{bg=white,fg=black}
+}
+
+\mode
+<all>
+
+\makeatother
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 342b47016bf..75facf1efe2 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -190,7 +190,7 @@ my @TLP_working = qw(
enumitem enumitem-zref envbig environ envlab
epigrafica epigram epigraph epiolmec eplain
epsdice epsf epsf-dvipdfmx epsincl epslatex-fr
- epspdf epspdfconversion epstopdf
+ epspdf epspdfconversion epstopdf epyt
eqell eqlist eqname eqnarray eqparbox errata esami es-tex-faq
erdc erewhon esdiff esint esint-type1 esk eskd eskdx eso-pic esstix esvect
estcpmm
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 2bde6d9ffbd..1d04b043181 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -263,6 +263,7 @@ depend environ
depend envlab
depend epigraph
depend epiolmec
+depend epyt
depend eqell
depend eqlist
depend eqname
diff --git a/Master/tlpkg/tlpsrc/epyt.tlpsrc b/Master/tlpkg/tlpsrc/epyt.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/epyt.tlpsrc