summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/elpres/elpres.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/elpres/elpres.cls')
-rw-r--r--macros/latex/contrib/elpres/elpres.cls78
1 files changed, 60 insertions, 18 deletions
diff --git a/macros/latex/contrib/elpres/elpres.cls b/macros/latex/contrib/elpres/elpres.cls
index b1786496d3..f5334dd234 100644
--- a/macros/latex/contrib/elpres/elpres.cls
+++ b/macros/latex/contrib/elpres/elpres.cls
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{elpres}[2020/07/12 class for plain electronic presentations]
+\ProvidesClass{elpres}[2020/08/15 class for plain electronic presentations]
%
% 2004/06/19 v0.1 - initial version
%
@@ -24,6 +24,8 @@
% new class option `nofonts' for use with lualatex.
% - documentation updated
%
+% 2020/08/15 v0.6 - command `slidetitlecolor' added, color scheme files
+% added, most parts of the documentation rewritten
%
% Options: select fonts
@@ -75,18 +77,25 @@
\LoadClass{article}
\RequirePackage{ifthen}
-\RequirePackage{xcolor}
+\RequirePackageWithOptions{xcolor}
+\RequirePackage{graphicx}
\ifthenelse{\equal{\screenformat}{scr4x3}}{%
-\RequirePackage[foot=10.2pt,head=0pt,paperwidth=128mm,paperheight=96mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
+ \RequirePackage[foot=10.2pt,head=0pt,%
+ paperwidth=128mm,paperheight=96mm,%
+ left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
}{}
\ifthenelse{\equal{\screenformat}{scr16x9}}{%
-\RequirePackage[foot=10.2pt,head=0pt,paperwidth=176mm,paperheight=99mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
+ \RequirePackage[foot=10.2pt,head=0pt,%
+ paperwidth=176mm,paperheight=99mm,%
+ left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
}{}
\ifthenelse{\equal{\screenformat}{scr16x10}}{%
-\RequirePackage[foot=10.2pt,head=0pt,paperwidth=160mm,paperheight=100mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
+ \RequirePackage[foot=10.2pt,head=0pt,%
+ paperwidth=160mm,paperheight=100mm,%
+ left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
}{}
@@ -94,10 +103,6 @@
\RequirePackage{fancyhdr}
\renewcommand{\headrulewidth}{0mm}
-%% \pagestyle{fancy}
-%% \rfoot{\thepage}
-%% \cfoot{}
-%% \lfoot{}
\renewcommand{\maketitle}%
{\ClassError{elpres}{Caution: ``maketitle'' command not supported}%
@@ -107,17 +112,27 @@
\fancypagestyle{pres}{%
\fancyhf{}%
-\fancyfoot[RO]{\footnotesize \thepage}%
+\rfoot{\footnotesize \thepage}%
}
+\renewcommand{\rhead}{\ClassError{elpres}{Caution:
+ command ``rhead'' not supported}}
+\renewcommand{\chead}{\ClassError{elpres}{Caution:
+ command ``chead'' not supported}}
+\renewcommand{\lhead}{\ClassError{elpres}{Caution:
+ command ``lhead'' not supported}}
+\renewcommand{\fancyhead}{\ClassError{elpres}{Caution:
+ ``fancyhead'' not supported}}
+
\pagestyle{pres}
%% menu for navigation symbols
\ifthenelse{\equal{\navigation}{withnavi}}{%
\hypersetup{menubordercolor=white}%
\rfoot{%
- \scriptsize%
- \textcolor[gray]{0.6}{%
+ \scriptsize%
+ \providecolor{epnavigationmenucolor}{rgb}{0.6,0.6,0.6}
+ \textcolor{epnavigationmenucolor}{%
\Acrobatmenu{FirstPage}{$\ll$}\hspace{0.5em}%
\Acrobatmenu{PrevPage}{$<$}\hspace{0.5em}%
\Acrobatmenu{NextPage}{$>$}\hspace{0.5em}%
@@ -135,10 +150,18 @@
\setlength{\parindent}{0mm}
%% plain slide -- heading line
+
+\providecommand{\sli@tico}{black}
+
+\providecommand{\slidetitlecolor}[1]{%
+ \renewcommand{\sli@tico}{#1}%
+}
+
\newenvironment{psli}[1][]%
- {{\raggedright \large\bfseries #1\par}\par\vspace*{\stretch{1}}}%
+{{\raggedright \large\bfseries \textcolor{\sli@tico}{#1}\par}%
+ \par\vspace*{\stretch{1}}}%
{\par\vspace*{\stretch{1}}\newpage}
-
+
%% raw slide -- no heading
\newenvironment{rsli}{}{\newpage}%
@@ -175,14 +198,33 @@
{\end{description}%
\vspace{-0.7ex}}%
-\ifthenelse{\equal{\fontna}{tmrfo}}{\RequirePackage{mathptmx}\RequirePackage{courier}}{}
-\ifthenelse{\equal{\fontna}{helvetfo}}{\RequirePackage[scaled=0.92]{helvet}\RequirePackage{courier}}{}
-\ifthenelse{\equal{\fontna}{initialisiert}}{\renewcommand{\familydefault}{\sfdefault}}{}
-\ifthenelse{\equal{\fontna}{withoutfont}}{}{}
+ \ifthenelse{\equal{\fontna}{tmrfo}}%
+ {\RequirePackage{mathptmx}%
+ \RequirePackage{courier}}{}
+
+ \ifthenelse{\equal{\fontna}{helvetfo}}%
+ {\RequirePackage[scaled=0.92]{helvet}%
+ \RequirePackage{courier}}{}
+
+ \ifthenelse{\equal{\fontna}{initialisiert}}{\renewcommand{\familydefault}%
+ {\sfdefault}}{}
+
+ \ifthenelse{\equal{\fontna}{withoutfont}}{}{}
\newcommand{\auvimm}[2]{\href{#2}{#1}}
\newcommand{\fromlinktext}[2]{\hyperlink{#2}{#1}}
\newcommand{\totargettext}[2]{\hypertarget{#2}{#1}}
+%% (External): Default colors for defined slide elements, the are modified in
+%% style files -- these color names may be used by authors of presentations
+
+% (External): normal text color
+\definecolor{eptextcolor}{rgb}{0,0,0}
+\color{eptextcolor}
+% (External): highlighted text
+\definecolor{ephighlightcolor}{rgb}{0.6,0.1,0.1}
+% (External): may be used on the title page
+\definecolor{eptitlecolor}{rgb}{0.6,0.1,0.1}
+
% vim: syntax=tex tw=2048 ai