From 37fceda406fdeb36413fb4476c13fae49738705a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 14 Jul 2020 21:01:45 +0000 Subject: elpres (14jul20) git-svn-id: svn://tug.org/texlive/trunk@55834 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/elpres/elpres.cls | 46 +++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/elpres') diff --git a/Master/texmf-dist/tex/latex/elpres/elpres.cls b/Master/texmf-dist/tex/latex/elpres/elpres.cls index 11ccb14b622..b1786496d31 100644 --- a/Master/texmf-dist/tex/latex/elpres/elpres.cls +++ b/Master/texmf-dist/tex/latex/elpres/elpres.cls @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{elpres}[2018/01/24 class for plain electronic presentations] +\ProvidesClass{elpres}[2020/07/12 class for plain electronic presentations] % % 2004/06/19 v0.1 - initial version % @@ -18,9 +18,19 @@ % % 2018/01/24 v0.4a - documentation completed % +% 2020/07/12 v0.5 - class option `navisymb' added; elpres now also requires +% the hyperref and xcolor packages. New commands: +% `auvimm', `fromlinktext' `totargettext'. +% new class option `nofonts' for use with lualatex. +% - documentation updated +% +% % Options: select fonts \newcommand{\fontna}{initialisiert} +\DeclareOption{nofonts}{% + \renewcommand{\fontna}{withoutfont}% +} \DeclareOption{tmrfont}{% \renewcommand{\familydefault}{\rmdefault}% \renewcommand{\fontna}{tmrfo}% @@ -54,12 +64,18 @@ } +% Option: navigation symbols +\newcommand{\navigation}{withoutnavigationsymb} +\DeclareOption{navisymb}{% + \renewcommand{\navigation}{withnavi}% +} + \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions\relax \LoadClass{article} - \RequirePackage{ifthen} +\RequirePackage{xcolor} \ifthenelse{\equal{\screenformat}{scr4x3}}{% \RequirePackage[foot=10.2pt,head=0pt,paperwidth=128mm,paperheight=96mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}% @@ -73,7 +89,10 @@ \RequirePackage[foot=10.2pt,head=0pt,paperwidth=160mm,paperheight=100mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}% }{} + +\RequirePackage[hyperfootnotes=false]{hyperref} \RequirePackage{fancyhdr} + \renewcommand{\headrulewidth}{0mm} %% \pagestyle{fancy} %% \rfoot{\thepage} @@ -85,6 +104,7 @@ {Please use ``titlepage'' environment instead}% } + \fancypagestyle{pres}{% \fancyhf{}% \fancyfoot[RO]{\footnotesize \thepage}% @@ -92,6 +112,22 @@ \pagestyle{pres} +%% menu for navigation symbols +\ifthenelse{\equal{\navigation}{withnavi}}{% +\hypersetup{menubordercolor=white}% +\rfoot{% + \scriptsize% + \textcolor[gray]{0.6}{% + \Acrobatmenu{FirstPage}{$\ll$}\hspace{0.5em}% + \Acrobatmenu{PrevPage}{$<$}\hspace{0.5em}% + \Acrobatmenu{NextPage}{$>$}\hspace{0.5em}% + \Acrobatmenu{LastPage}{$\gg$}\hspace{0.5em}% + \Acrobatmenu{GoBack}{$\leftarrow$}\hspace{0.5em}% + \Acrobatmenu{GoForward}{$\rightarrow$}\hspace{0.5em}% + \Acrobatmenu{GoToPage}{[n]}\hspace{1.2em}% + }\footnotesize \thepage}% +}{}% + \newcommand{\distance}[1]{\vspace*{\stretch{#1}}} \newcommand{\abstand}[1]{\vspace*{\stretch{#1}}} @@ -142,5 +178,11 @@ \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}} % vim: syntax=tex tw=2048 ai -- cgit v1.2.3