diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-21 22:16:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-21 22:16:07 +0000 |
commit | 10d00e85d081b1e2b3e234413d63e863bf11d9c2 (patch) | |
tree | a824cc44ac3b628ed9d9ba36839fcacdc9b82089 /Master/texmf-dist/tex | |
parent | 420f99fea3510c7f655a3b3e14020cb4825bd210 (diff) |
beamertheme-saintpetersburg (21nov17)
git-svn-id: svn://tug.org/texlive/trunk@45877 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
3 files changed, 529 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamercolorthemeSaintPetersburg.sty b/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamercolorthemeSaintPetersburg.sty new file mode 100644 index 00000000000..f0851eb1773 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamercolorthemeSaintPetersburg.sty @@ -0,0 +1,88 @@ +%% +%% This is file `beamercolorthemeSaintPetersburg.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamercolorthemeSaintPetersburg.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2017 by Ivan Gankevich <igankevich@ya.ru> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c 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 +%% +%% and version 1.3c or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamercolorthemeSaintPetersburg}[2017/11/20 Saint Petersburg color theme] +\definecolor{spbuTerracotta}{cmyk}{.08,.91,.92,.33} +\definecolor{spbuGray}{cmyk}{.21,.11,.09,.22} +\definecolor{spbuWhite1}{RGB}{245,246,245} +\definecolor{spbuWhite2}{RGB}{230,231,230} +\definecolor{spbuWhite3}{RGB}{217,218,217} +\definecolor{spbuWhiteRed2}{RGB}{255,231,230} +\definecolor{spbuWhiteRed3}{RGB}{255,160,160} +\definecolor{spbuRed}{RGB}{200,40,40} +\definecolor{spbuDarkGray}{HTML}{404040} +\definecolor{spbuDarkGray2}{HTML}{5F7177} + +\setbeamercolor{normal text}{fg=spbuDarkGray,bg=spbuWhite1} +\setbeamercolor{frametitle}{bg=spbuWhite1,fg=spbuTerracotta} +\setbeamercolor{title}{bg=spbuWhite1,fg=spbuTerracotta} +\setbeamercolor{subtitle}{parent=title} +\setbeamercolor{date}{parent=normal text} +\setbeamercolor{author}{parent=normal text} +\setbeamercolor{institute}{parent=normal text} +\setbeamercolor{background canvas}{parent=normal text} +\setbeamercolor{background}{parent=background canvas} +\setbeamercolor{math text}{fg=spbuDarkGray,bg=spbuWhite1} +\setbeamercolor{item}{parent=normal text} +\setbeamercolor{block title}{fg=spbuDarkGray,bg=spbuWhite3} +\setbeamercolor{block body}{fg=spbuDarkGray,bg=spbuWhite2} +\setbeamercolor{block title alerted}{fg=spbuRed,bg=spbuWhiteRed3} +\setbeamercolor{block body alerted}{fg=spbuDarkGray,bg=spbuWhiteRed2} +\setbeamercolor{block title example}{bg=spbuWhite3} +\setbeamercolor{block body example}{fg=spbuDarkGray,bg=spbuWhite2} + +\setbeamercolor{section in toc}{parent=normal text} +\setbeamercolor{part page}{parent=frametitle} +\setbeamercolor{section page}{parent=frametitle} +\setbeamercolor{subsection page}{parent=frametitle} +\setbeamercolor{part title}{parent=frametitle,fg=spbuDarkGray} + +\beamertemplatesolidbackgroundcolor{spbuWhite1} + +\setbeamercolor{bibliography item}{parent=normal text} +\setbeamercolor*{bibliography entry title}{parent=normal text} +\setbeamercolor*{bibliography entry author}{parent=normal text} +\setbeamercolor*{bibliography entry location}{parent=normal text,fg=spbuDarkGray2} +\setbeamercolor*{bibliography entry journal}{parent=normal text,fg=spbuDarkGray2} +\setbeamercolor*{bibliography entry note}{parent=normal text} + +\setbeamercolor{abstract title}{parent=frametitle} +\setbeamercolor{abstract}{parent=normal text} + +\setbeamercolor{caption name}{parent=frametitle} +\setbeamercolor{caption}{parent=normal text} + +\setbeamercolor{title in head/foot}{parent=title} +\setbeamercolor{subtitle in head/foot}{parent=subtitle} +\setbeamercolor{author in head/foot}{parent=author} +\setbeamercolor{date in head/foot}{parent=date} +\setbeamercolor{institute in head/foot}{parent=institute} + +\makeatletter% +\if@spbuPoster% +\beamertemplatesolidbackgroundcolor{white} +\fi% +\makeatother% +\endinput +%% +%% End of file `beamercolorthemeSaintPetersburg.sty'. diff --git a/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamerfontthemeSaintPetersburg.sty b/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamerfontthemeSaintPetersburg.sty new file mode 100644 index 00000000000..5ba6ac7b63b --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamerfontthemeSaintPetersburg.sty @@ -0,0 +1,163 @@ +%% +%% This is file `beamerfontthemeSaintPetersburg.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerfontthemeSaintPetersburg.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2017 by Ivan Gankevich <igankevich@ya.ru> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c 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 +%% +%% and version 1.3c or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamerfontthemeSaintPetersburg}[2017/11/20 Saint Petersburg font theme] +\RequirePackage{FiraMono} +\RequirePackage{opensans} +\RequirePackage{ifxetex} +\ifxetex% +\RequirePackage{fontspec} + +\makeatletter% +\if@spbuPoster% +\setmainfont[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +Mapping=tex-text +]{OldStandard} +\newfontfamily\cyrillicfont[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +Mapping=tex-text +]{OldStandard} +\else% +\setmainfont[ +Extension=.ttf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +BoldItalicFont=*-BoldItalic, +Mapping=tex-text +]{OpenSans} +\newfontfamily\cyrillicfont[ +Extension=.ttf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +BoldItalicFont=*-BoldItalic, +Mapping=tex-text +]{OpenSans} +\fi% +\makeatother% +\setromanfont[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +Mapping=tex-text +]{OldStandard} +\setsansfont[ +Extension=.ttf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +BoldItalicFont=*-BoldItalic, +Mapping=tex-text +]{OpenSans} +\setmonofont[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold +]{FiraMono} +\newfontfamily\cyrillicfontrm[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +Mapping=tex-text +]{OldStandard} +\newfontfamily\cyrillicfontsf[ +Extension=.ttf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +BoldItalicFont=*-BoldItalic, +Mapping=tex-text +]{OpenSans} +\newfontfamily\cyrillicfonttt[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold +]{FiraMono} +\newfontfamily\rmfamily[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +Mapping=tex-text +]{OldStandard} +\newfontfamily\sffamily[ +Extension=.ttf, +UprightFont=*-Regular, +BoldFont=*-Bold, +ItalicFont=*-Italic, +BoldItalicFont=*-BoldItalic, +Mapping=tex-text +]{OpenSans} +\newfontfamily\ttfamily[ +Extension=.otf, +UprightFont=*-Regular, +BoldFont=*-Bold +]{FiraMono} +\fi% + +\setbeamerfont{note page}{size=\small} +\setbeamerfont{tiny structure}{family=\sffamily} +\setbeamerfont{structure}{family=\sffamily} +\setbeamerfont{section in toc}{family=\sffamily} +\setbeamerfont{subsection in toc}{family=\sffamily} +\setbeamerfont{subsubsection in toc}{family=\sffamily} +\setbeamerfont{block title}{series=\mdseries} +\setbeamerfont{block body}{series=\mdseries} +\setbeamerfont{block body example}{series=\mdseries} +\setbeamerfont{block title alerted}{series=\bfseries} +\setbeamerfont{abstract}{size=\normalsize} +\setbeamerfont{title}{size=\Large} +\setbeamerfont{subtitle}{size=\Large} +\setbeamerfont{author}{size=\large} +\usefonttheme{professionalfonts} + +\makeatletter% +\if@spbuPoster% + +\usefonttheme{serif} + +\setbeamerfont{bibliography item}{size=\small} +\setbeamerfont{bibliography entry author}{size=\small} + +\setbeamerfont{section in head/foot}{series=\bfseries} +\setbeamerfont{block title}{series=\bfseries} +\setbeamerfont{block alerted title}{series=\bfseries} +\setbeamerfont{frametitle}{series=\bfseries,size=\Large} +\setbeamerfont{caption}{size=\normalsize} +\setbeamerfont{caption name}{size=\normalsize} + +\fi% +\makeatother% +\endinput +%% +%% End of file `beamerfontthemeSaintPetersburg.sty'. diff --git a/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamerthemeSaintPetersburg.sty b/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamerthemeSaintPetersburg.sty new file mode 100644 index 00000000000..3003eaa5f99 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-saintpetersburg/beamerthemeSaintPetersburg.sty @@ -0,0 +1,278 @@ +%% +%% This is file `beamerthemeSaintPetersburg.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerthemeSaintPetersburg.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2017 by Ivan Gankevich <igankevich@ya.ru> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3c 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 +%% +%% and version 1.3c or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamerthemeSaintPetersburg}[2017/11/20 SaintPetersburg Beamer theme] +\newif\if@spbuPoster +\newif\if@spbuLogo +\@spbuPosterfalse +\@spbuLogotrue +\DeclareOption{poster}{\@spbuPostertrue} +\DeclareOption{nologo}{\@spbuLogofalse} +\ProcessOptions + +\mode<presentation> + +\usefonttheme{SaintPetersburg} + +\RequirePackage{graphicx} +\RequirePackage{tikz} +\makeatletter% +\usebackgroundtemplate{% +\ifnum\thepage=1\relax% +\hspace{\beamer@leftmargin}% +\begin{beamercolorbox}[wd=\paperwidth,ht=\paperheight,dp=0pt]{background canvas}% +\begin{tikzpicture}[remember picture,overlay]% +\node[anchor=south east,opacity=0.1] at (current page.south east) {% +\IfFileExists{\detokenize{CoA_Medium.eps}}% +{\includegraphics[width=0.7\paperwidth,trim=0 55 10 0,clip]{CoA_Medium.eps}}% +{} +};% +\end{tikzpicture}% + \end{beamercolorbox}% +\else% +\usebeamercolor[bg]{background canvas}\rule{\paperwidth}{\paperheight}% +\fi% +} +\makeatother% + +\newcommand*{\spbuInsertField}[1]{% +\usebeamerfont{#1}% +\usebeamercolor[fg]{#1}% +\expandafter\relax\csname insert#1\endcsname% +\par% +} + +\setbeamertemplate{title page}{% +\centering% +\vspace{0.2\textheight}\spbuInsertField{title}% +\vskip0.5\baselineskip\ifx\insertsubtitle\empty\else% +\spbuInsertField{subtitle}% +\fi% +\vskip\baselineskip\spbuInsertField{author}% +\vfill\spbuInsertField{institute}% +\vfill\inserttitlegraphic% +\vfill\spbuInsertField{date}% +} + +\setbeamertemplate{frametitle}{% +\spbuInsertField{frametitle} +\ifx\insertframesubtitle\empty\else% +\spbuInsertField{framesubtitle} +\fi% +} + +\setbeamertemplate{navigation symbols}{} +\beamertemplatenavigationsymbolsempty + +\setbeamertemplate{note page}{% +\begin{minipage}{0.85\paperwidth}% +\spbuInsertField{note}% +\end{minipage}% +} + +\setbeamertemplate{block begin}{ +\vspace{-\baselineskip}% +\begin{flushright} +\begin{beamercolorbox}[colsep*=.75ex]{block title}% +\usebeamerfont*{block title}\insertblocktitle +\end{beamercolorbox}% +{\parskip0pt\nointerlineskip\par}% +\usebeamerfont{block body}% +\begin{beamercolorbox}[colsep*=.75ex,vmode]{block body}% +} +\setbeamertemplate{block end}{ +\end{beamercolorbox} +\end{flushright} +} + +\setbeamertemplate{block alerted begin}{ +\vspace{-\baselineskip}% +\begin{flushright} +\begin{beamercolorbox}[colsep*=.75ex]{block title alerted}% +\usebeamerfont*{block title alerted}\insertblocktitle +\end{beamercolorbox}% +{\parskip0pt\nointerlineskip\par}% +\usebeamerfont{block body alerted}% +\begin{beamercolorbox}[colsep*=.75ex,vmode]{block body alerted}% +} +\setbeamertemplate{block alerted end}{ +\end{beamercolorbox} +\end{flushright} +} + +\setbeamertemplate{block example begin}{ +\vspace{-\baselineskip}% +\begin{flushright} +\begin{beamercolorbox}[colsep*=.75ex]{block title example}% +\usebeamerfont*{block title example}\insertblocktitle +\end{beamercolorbox}% +{\parskip0pt\nointerlineskip\par}% +\usebeamerfont{block body example}% +\begin{beamercolorbox}[colsep*=.75ex,vmode]{block body example}% +} +\setbeamertemplate{block example end}{ +\end{beamercolorbox} +\end{flushright} +} + +\setbeamertemplate{qed symbol}{$\blacksquare$} + +\setbeamertemplate{theorem begin}{% +\inserttheoremheadfont% +\begin{\inserttheoremblockenv}{% +\inserttheoremname% +\ifx\inserttheoremaddition\empty\else\ (\inserttheoremaddition)\fi% +}% +} +\setbeamertemplate{theorem end}{\end{\inserttheoremblockenv}} + +\setbeamertemplate{proof begin}{% +\inserttheoremheadfont% +\begin{\inserttheoremblockenv}{% +\proofname% +}% +} +\setbeamertemplate{proof end}{\end{\inserttheoremblockenv}} + +\setbeamertemplate{bibliography item}{} + +\setbeamertemplate{abstract title}{% +\usebeamerfont{abstract title}% +\usebeamercolor[fg]{abstract title}% +\abstractname.% +} + +\makeatletter% +\if@spbuPoster% + +\setbeamertemplate{abstract begin}{% +\begin{minipage}{\linewidth}% +\justifying% +} +\setbeamertemplate{abstract end}{% +\end{minipage}% +} + +\newcommand*{\othergraphic}[1]{\gdef\@othergraphic{#1}}% +\newcommand*{\@othergraphic}[1]{}% +\newcommand*{\insertothergraphic}{\@othergraphic{}}% + +\newcommand*{\leftcolumnwidth}[1]{\gdef\@leftcolumnwidth{#1}}% +\newcommand*{\@leftcolumnwidth}[1]{.2\linewidth}% +\newcommand*{\insertleftcolumnwidth}{\@leftcolumnwidth{}}% + +\newcommand*{\rightcolumnwidth}[1]{\gdef\@rightcolumnwidth{#1}}% +\newcommand*{\@rightcolumnwidth}[1]{.2\linewidth}% +\newcommand*{\insertrightcolumnwidth}{\@rightcolumnwidth{}}% + +\newcommand*{\middlecolumnwidth}[1]{\gdef\@middlecolumnwidth{#1}}% +\newcommand*{\@middlecolumnwidth}[1]{.6\linewidth}% +\newcommand*{\insertmiddlecolumnwidth}{\@middlecolumnwidth{}}% + +\setbeamertemplate{headline}{% +\vskip2cm% +\begin{columns}% +\begin{column}{\insertleftcolumnwidth}% +\centering% +\inserttitlegraphic% +\end{column}% +\begin{column}{\insertmiddlecolumnwidth}% +\centering% +{\usebeamercolor[fg]{title in head/foot}\textbf{\huge{\inserttitle}}}% +\vskip 1.5cm% +{\usebeamercolor{author in head/foot}\Large{\insertauthor}}% +\vskip\baselineskip% +{\usebeamercolor{institute in head/foot}\large{\insertinstitute}}% +\vskip2cm% +\end{column}% +\begin{column}{\insertrightcolumnwidth}% +\centering% +\insertothergraphic% +\end{column}% +\vspace{1cm}% +\end{columns}% +} + +\setbeamertemplate{footline}{ +\vskip2cm% +\begin{center}% +\begin{minipage}[c][3cm][c]{0.95\textwidth}% +\centering% +\begin{flushleft}% +\vskip-1cm% +\begin{tikzpicture}[remember picture,overlay]% +\fill [spbuTerracotta] (0,0) rectangle (\textwidth,0.1cm);% +\end{tikzpicture}% +\end{flushleft}% +\vskip1cm% +{\usebeamercolor{normal text}\textbf{\large{\insertshorttitle}}}% +\end{minipage}% +\end{center}% +\vskip1cm% +} + +\renewcommand{\section}[1]{% +\vskip\baselineskip% +\begin{center}% +{\textcolor{spbuTerracotta}{\textbf{\Large #1}}}% +\vskip0.4\baselineskip% +\end{center}% +\justifying% +\setlength{\parindent}{1.5cm}% +} + +\renewcommand{\subsection}[1]{% +\vskip0.8\baselineskip% +\begin{center}% +{\textcolor{spbuTerracotta}{\textbf{\textsl{\large #1}}}}% +\vskip0.3\baselineskip% +\end{center}% +\justifying% +\setlength{\parindent}{1.5cm}% +} + +\setbeamertemplate{bibliography item}[text] + +\fi% +\makeatother% + +\usecolortheme{SaintPetersburg} + +\newtranslation[to=russian]{Part}{Часть} +\newtranslation[to=russian]{Section}{Раздел} +\newtranslation[to=russian]{Subsection}{Подраздел} +\newtranslation[to=russian]{Theorem}{Теорема} +\newtranslation[to=russian]{Proof}{Доказательство} +\newtranslation[to=russian]{Corollary}{Следствие} +\newtranslation[to=russian]{Definition}{Определение} +\newtranslation[to=russian]{Definitions}{Определения} +\newtranslation[to=russian]{Fact}{Утверждение} +\newtranslation[to=russian]{Lemma}{Лемма} +\newtranslation[to=russian]{Example}{Пример} +\newtranslation[to=russian]{Examples}{Примеры} + +\mode<all> + +\endinput +%% +%% End of file `beamerthemeSaintPetersburg.sty'. |