summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/elpres
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-24 21:49:58 +0000
committerKarl Berry <karl@freefriends.org>2018-01-24 21:49:58 +0000
commitafdd16cd0722fc2373c5da7026f4c4ffe601ffed (patch)
tree24b8e73eb16571fbf7e0de9770ef73b0a4ddde89 /Master/texmf-dist/tex/latex/elpres
parent70ef0d6846c2da4367cc9968ed84040d2462622e (diff)
elpres (24jan18)
git-svn-id: svn://tug.org/texlive/trunk@46429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/elpres')
-rw-r--r--Master/texmf-dist/tex/latex/elpres/elpres.cls78
1 files changed, 57 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/elpres/elpres.cls b/Master/texmf-dist/tex/latex/elpres/elpres.cls
index c366647b292..11ccb14b622 100644
--- a/Master/texmf-dist/tex/latex/elpres/elpres.cls
+++ b/Master/texmf-dist/tex/latex/elpres/elpres.cls
@@ -1,14 +1,22 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{elpres}[2005/08/12 class for plain electronic presentations]
+\ProvidesClass{elpres}[2018/01/24 class for plain electronic presentations]
%
-% 2004/06/19 v0.1 initial version
+% 2004/06/19 v0.1 - initial version
%
-% 2004/08/29 v0.2 - Page number: now `footnotesize' instead of `normalsize',
-% - Left and right margins changed
-% - `cenumerate' and `cdescription' environments
-% added
-% 2005/08/12 v0.3 - Options for selection of fonts added
+% 2004/08/29 v0.2 - Page number: now `footnotesize' instead of `normalsize',
+% - Left and right margins changed
+% - `cenumerate' and `cdescription' environments
+% added
%
+% 2005/08/12 v0.3 - Options for selection of fonts added
+%
+% 2018/01/20 v0.4 - Lists environments `citemize', `cenumerate',
+% `cdescription modified
+% - aspect ratio may be selected: 4x3 (default) 16x9,
+% 16x10: i.e. support for widescreen monitors added
+% - documentation updated
+%
+% 2018/01/24 v0.4a - documentation completed
%
% Options: select fonts
@@ -30,15 +38,41 @@
\renewcommand{\fontna}{sansfo}
}
+% Options: screen formats
+\newcommand{\screenformat}{scr4x3}
+
+\DeclareOption{4x3}{%
+ \renewcommand{\screenformat}{scr4x3}%
+}
+
+\DeclareOption{16x9}{%
+ \renewcommand{\screenformat}{scr16x9}%
+}
+
+\DeclareOption{16x10}{%
+ \renewcommand{\screenformat}{scr16x10}%
+}
+
+
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass{article}
-% \LoadClassWithOptions{article}
-%% \RequirePackage[foot=10.2pt,head=15pt,paperwidth=128mm,paperheight=96mm,left=5mm,top=5mm,right=5mm,bottom=8mm]{geometry}
-\RequirePackage[foot=10.2pt,head=0pt,paperwidth=128mm,paperheight=96mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}
+
\RequirePackage{ifthen}
+\ifthenelse{\equal{\screenformat}{scr4x3}}{%
+\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}%
+}{}
+
+\ifthenelse{\equal{\screenformat}{scr16x10}}{%
+\RequirePackage[foot=10.2pt,head=0pt,paperwidth=160mm,paperheight=100mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}%
+}{}
+
\RequirePackage{fancyhdr}
\renewcommand{\headrulewidth}{0mm}
%% \pagestyle{fancy}
@@ -64,9 +98,9 @@
\setlength{\parskip}{0.6ex}
\setlength{\parindent}{0mm}
+%% plain slide -- heading line
\newenvironment{psli}[1][]%
{{\raggedright \large\bfseries #1\par}\par\vspace*{\stretch{1}}}%
-% {{\centering \large\bfseries #1\par}\par\vspace*{\stretch{1}}}%
{\par\vspace*{\stretch{1}}\newpage}
%% raw slide -- no heading
@@ -74,37 +108,39 @@
%% compressed itemize
\newenvironment{citemize}%
- {\begin{itemize}%
+ { \vspace{-0.7ex}%
+ \begin{itemize}%
\setlength{\itemsep}{0ex}%
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}%
}%
- {\end{itemize}}%
+ {\end{itemize}%
+ \vspace{-0.7ex}}%
%% compressed enumerate
\newenvironment{cenumerate}%
- {\begin{enumerate}%
+ { \vspace{-0.7ex}%
+ \begin{enumerate}%
\setlength{\itemsep}{0ex}%
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}%
}%
- {\end{enumerate}}%
+ {\end{enumerate}%
+ \vspace{-0.7ex}}%
%% compressed description
\newenvironment{cdescription}%
- {\begin{description}%
+ { \vspace{-0.7ex}
+ \begin{description}%
\setlength{\itemsep}{0ex}%
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}%
}%
- {\end{description}}%
-
-
-
+ {\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}}{}
-
% vim: syntax=tex tw=2048 ai