diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/PSTricks_7_de/exapd.cls |
Initial commit
Diffstat (limited to 'info/examples/PSTricks_7_de/exapd.cls')
-rw-r--r-- | info/examples/PSTricks_7_de/exapd.cls | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/info/examples/PSTricks_7_de/exapd.cls b/info/examples/PSTricks_7_de/exapd.cls new file mode 100644 index 0000000000..5363ddbda4 --- /dev/null +++ b/info/examples/PSTricks_7_de/exapd.cls @@ -0,0 +1,56 @@ +% +% $Id: exapd.cls 298 2016-05-05 12:13:58Z herbert $ +% +%% +%% The LaTeX Companion, 2ed +%% +%% Example ``powerdot like'' class for use with the book examples. +%% +%% Copyright (C) 2009 Niedernair/Voss +%% +%% It 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. +%% +%% See http://www.latex-project.org/lppl.txt for details. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{powerdot}} +\ProcessOptions\relax +\LoadClass{powerdot} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + +\endinput + |