From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- .../powerdot-tuliplab/powerdot-tuliplab.sty | 197 +++++++++++++++++++++ 1 file changed, 197 insertions(+) create mode 100644 macros/latex/contrib/powerdot-tuliplab/powerdot-tuliplab.sty (limited to 'macros/latex/contrib/powerdot-tuliplab/powerdot-tuliplab.sty') diff --git a/macros/latex/contrib/powerdot-tuliplab/powerdot-tuliplab.sty b/macros/latex/contrib/powerdot-tuliplab/powerdot-tuliplab.sty new file mode 100644 index 0000000000..b2ea2c469a --- /dev/null +++ b/macros/latex/contrib/powerdot-tuliplab/powerdot-tuliplab.sty @@ -0,0 +1,197 @@ +%% +%% --------------------------------------------------------------- +%% Copyright (C) 2012-2018 Gang Li +%% --------------------------------------------------------------- +%% +%% This work is a modification of the default powerdot style and 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 and version 1.3 or later is part of all +%% distributions of LaTeX version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Gang Li. +%% +%% + +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{powerdot-tuliplab}[2011/04/25 v1.4g default style (HA)] +\RequirePackage{pifont} + +\definecolor{pdcolor1}{rgb}{.17,.31,.44} +\definecolor{pdcolor2}{rgb}{.75,.85,.92} +\definecolor{pdcolor3}{rgb}{.9,.95,.98} +\pddefinepalettes{purple}{ + \colorlet{pdcolor1}{pdcolor1>wheel,45} + \colorlet{pdcolor2}{pdcolor2>wheel,45} + \colorlet{pdcolor3}{pdcolor3>wheel,45} +} + +% clockrefresh=60000, +% clockhook=bl, +% clockpos=, +% clockwidth=3cm, +% clockheight=\baselineskip, +% clockcharsize=16pt, +% clockalign=2, +% clockcolor=red, + + +%% TOP Left Image +\newbox\pd@imagebox +\pdifsetup{landscape}{% + \sbox\pd@imagebox{\includegraphics[%trim=50 20 0 20,clip,% + width=.17\slidewidth,height=.1\slideheight]{logos/tulip.eps}% + }% +}{% + \sbox\pd@imagebox{\includegraphics[%trim=170 0 80 0,clip,% + width=.17\slidewidth,height=.1\slideheight]{logos/tulip.eps}% + }% +} + +%% Bottom banner +\newbox\pd@wordmark +\pdifsetup{landscape}{ + \sbox\pd@wordmark{\includegraphics[width=0.3\slidewidth%]scale=.15% %0.2 + ]{logos/tulip-wordmark.eps}% + } +}{ + \sbox\pd@wordmark{\includegraphics[width=0.3\slidewidth%[scale=.15% %0.3 + ]{logos/tulip-wordmark.eps}% + } +} +% defining the seal +\newbox\pd@seal +\pdifsetup{landscape}{ + \sbox\pd@seal{\includegraphics[ + width=.2\slidewidth]{logos/tulip-logo.eps}% + } +}{ + \sbox\pd@seal{\includegraphics[ + width=.2\slidewidth]{logos/tulip-logo.eps}% +% width=.12\slidewidth,height=.12\slidewidth]{logos/tulip-logo.eps}% + } +} + +%% TITLE PAGE +\pddefinetemplate{titleslide}{% + titlefont=\large\bfseries\centering, + % clockcolor=pdcolor3,clockpos={.5\slidewidth,.5\slideheight}, + rftemp=\pd@@rf, + lfpos={.03\slidewidth,.04\slideheight}, + cfpos={.5\slidewidth,.04\slideheight}, + rfpos={.97\slidewidth,.04\slideheight}, + texthook=t,textpos={.5\slidewidth,.7\slideheight}, + textwidth=.9\slidewidth,textfont=\centering, + textheight=.6\slideheight +}{% +%% TODO: psframe (a,b)(c,d) +%% where a, b specifies the left corner, +%% c, d specifies right corner +%% value at left botton is (0,0) + \psframe*[linecolor=pdcolor2,linewidth=0pt]% + (0,0)(\slidewidth,.1\slideheight)% + \psframe*[linecolor=pdcolor3,linewidth=0pt]% + (0,\slideheight)(\slidewidth,.8\slideheight)% + \rput[bl](.05\slidewidth,.08\slideheight){\usebox\pd@seal}% + \psline[linecolor=pdcolor3]% + (.01\slidewidth,.8\slideheight)(0.99\slidewidth,.8\slideheight)% + \psline[linecolor=pdcolor1]% + (0,.8\slideheight)(\slidewidth,.8\slideheight)% +} + +\pddefinetemplate{basic}{% + titlepos={.2\slidewidth,.93\slideheight}, + titlewidth=.75\slidewidth,textheight=.68\slideheight, + titlefont=\large\bfseries\raggedright, + % clockcolor=pdcolor3,clockpos={.5\slidewidth,.5\slideheight}, + lfpos={.03\slidewidth,.04\slideheight}, + cfpos={.5\slidewidth,.04\slideheight}, + rfpos={.97\slidewidth,.04\slideheight}, + tocslidesep=.6ex, + toctcolor=pdcolor1, + tochlcolor=pdcolor1, + tochltcolor=pdcolor3, + ifsetup=portrait, + textpos={.05\slidewidth,.83\slideheight}, + textwidth=.9\slidewidth, + tocsecsep=.6ex, + stochook=tr,stocpos={.48\slidewidth,.09\slideheight}, + stocfont=\tiny\raggedleft, + ntocpos={.52\slidewidth,.09\slideheight}, + ifsetup=landscape, + textpos={.2\slidewidth,.83\slideheight}, + textwidth=.75\slidewidth +}{% + \psframe*[linecolor=pdcolor2,linewidth=0pt]% + (0,0)(\slidewidth,.1\slideheight)% + \psframe*[linecolor=pdcolor3,linewidth=0pt]% + (0,\slideheight)(\slidewidth,.9\slideheight)% + \rput(.16\slidewidth,.048\slideheight){\usebox\pd@wordmark}% + \rput[tl](0,\slideheight){\usebox\pd@imagebox}% +% positioning of slide nr and date +% \rput[rb](.97\slidewidth,.010\slideheight){\black \tiny (\theslide)} +% \rput[lb](.03\slidewidth,.010\slideheight){\black \tiny \@date} +} +% }{% +% % positioning of maroon lines and logo +% \psframe*[linecolor=pdcolor3,linewidth=0pt]% +% (.01\slidewidth,.91\slideheight)(.99\slidewidth,.915\slideheight)% +% \psframe*[linecolor=pdcolor2,linewidth=0pt]% +% (0,0)(\slidewidth,.1\slideheight)% +% % \psframe*[linecolor=pdcolor3,linewidth=0pt]% +% % (.0\slidewidth,.080\slideheight)(.99\slidewidth,.055\slideheight)% +% \rput[rb](.98\slidewidth,.06\slideheight){\usebox\pd@wordmark}% +% % positioning of slide nr and date +% \rput[rb](.97\slidewidth,.010\slideheight){\black \tiny \theslide} +% \rput[lb](.03\slidewidth,.010\slideheight){\black \tiny \@date} +% } + + + +\pddefinetemplate[basic]{wideslide}{% + textpos={.05\slidewidth,.83\slideheight}, + textwidth=.9\slidewidth}{ + \psframe*[linecolor=pdcolor2,linewidth=0pt]% + (0,0)(\slidewidth,.1\slideheight)% +\rput[bl](.05\slidewidth,.08\slideheight){\usebox\pd@seal}% +} +\pddefinetemplate[basic]{slide}{% + ifsetup=landscape, + tocpos={.015\slidewidth,.83\slideheight}, + tocwidth=.14\slidewidth, + tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1](-.05,-.05)(.143\slidewidth,-.05)} +}{% + \pdifsetup{landscape}{% + \psframe[fillstyle=solid,fillcolor=pdcolor3,linestyle=none,% + linewidth=0pt](0,.9\slideheight)(.17\slidewidth,.1\slideheight)% + }{}% +} +\pddefinetemplate[slide]{sectionslide}{% + titlehook=c,titlefont=\Large\bfseries\centering, + ifsetup=landscape, + titlepos={.575\slidewidth,.55\slideheight}, + ifsetup=portrait, + titlewidth=.9\slidewidth, + titlepos={.5\slidewidth,.55\slideheight} +}{} +\pddefinetemplate[wideslide]{sectionwideslide}{ + titlehook=c,titlefont=\Large\bfseries\centering, + titlewidth=.9\slidewidth, + titlepos={.5\slidewidth,.55\slideheight} +}{} +\setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide} +\def\labelitemi{\footnotesize\ding{110}} +\def\labelitemii{\small\ding{117}} +\def\labelitemiii{\tiny\ding{110}} +\def\labelitemiv{\tiny\ding{117}} +\pdsetup{ + list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt} +} +\def\rmdefault{cmss} +\endinput +%% +%% +%% End of file `powerdot-tuliplab.sty'. -- cgit v1.2.3