Debian Codegraph @

texmf-dist/doc/latex/powerdot/pdpream.ble

raw
1 %%
2 %% This is file `pdpream.ble',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% powerdot.dtx (with options: `preamble')
8 %%
9 %% ---------------------------------------------------------------------------------
10 %% Copyright (C) 2005-2008 Hendri Adriaens, Chris Ellison; 2009-2021 Hendri Adriaens
11 %% ---------------------------------------------------------------------------------
12 %%
13 %% This work may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either version 1.3
15 %% of this license or (at your option) any later version.
16 %% The latest version of this license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.3 or later is part of all distributions of LaTeX
19 %% version 2003/12/01 or later.
20 %%
21 %% This work has the LPPL maintenance status "maintained".
22 %%
23 %% This Current Maintainer of this work is Hendri Adriaens.
24 %%
25 %% This work consists of all files listed in manifest.txt.
26 %%
27 \usepackage{url}
28 \usepackage{fourier}
29 \usepackage{xcolor}
30 \usepackage{enumitem}
31 \usepackage{graphicx}
32 \usepackage{pst-char}
33 \usepackage{listings}
34 \usepackage{array}
35 \usepackage{xkeyval}
36 \usepackage[section]{placeins}
37 \addtolength\textheight{2cm}
38 \addtolength\topmargin{-1cm}
39 \lstnewenvironment{command}{%
40 \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
41 xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
42 \lstnewenvironment{example}[1][]{%
43 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
44 backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
45 xrightmargin=\fboxsep,gobble=1,%
46 }\lstset{#1}}{}
47 \def\mktitledecor{%
48 \rput[tl]{90}(-5.5,-26.51){%
49 \psline[linewidth=1pt](0,1.5)(\paperheight,1.5)%
50 \rput[lB](.075\paperheight,.5){\pscharpath[linecolor=blue!50,%
51 fillcolor=yellow!20,fillstyle=solid,linewidth=.5pt]%
52 {\Huge\bfseries\sffamily powerdot}%
53 }%
54 \rput[rB](.925\paperheight,.5){\pscharpath[linecolor=blue!50,%
55 fillcolor=yellow!20,fillstyle=solid,linewidth=.5pt]%
56 {\Huge\bfseries Documentation}%
57 }%
58 \psline[linewidth=1pt](0,0)(\paperheight,0)%
59 }%
60 }
61 \makeatletter
62 \def\option#1{%
63 \XKV@for@n{#1}\pd@tempa{%
64 \fcolorbox{black}{red!20}{\texttt\pd@tempa}\quad
65 }%
66 \vspace*{.2cm}%
67 }
68 \def\tableofcontents{\@starttoc{toc}}
69 \renewenvironment{theglossary}{%
70 \section*{Version history}%
71 For more information on bug fixes, typeset the source code
72 documentation (see section~\ref{sec:source}).\par\medskip
73 \GlossaryParms \let\item\@idxitem \ignorespaces
74 }{}%
75 \def\DescribeMacros{\leavevmode\@bsphack
76 \begingroup\MakePrivateLetters\Describe@Macros}
77 \def\Describe@Macros#1{\endgroup\strut
78 \marginpar{\raggedleft
79 \def\@tempa{#1}\count@\z@
80 \XKV@for@o\@tempa\@tempa{%
81 \ifnum\count@>\z@\\\fi\advance\count@\@ne
82 \MacroFont\expandafter\string\@tempa
83 \expandafter\SpecialUsageIndex\expandafter{\@tempa}%
84 }}%
85 \@esphack\ignorespaces
86 }
87 \def\DescribeOption#1{\leavevmode\@bsphack
88 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
89 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
90 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
91 \def\SpecialOptionIndex#1{\@bsphack
92 \index{#1\actualchar{\protect\ttfamily#1}
93 (option)\encapchar usage}\@esphack}
94 \def\DescribeOptions#1{\leavevmode\@bsphack
95 \marginpar{\raggedleft\strut\emph{options}%
96 \@for\@tempa:=#1\do{%
97 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
98 }}\@esphack\ignorespaces}
99 \def\SpecialEnvIndex#1{\@bsphack
100 \index{#1\actualchar{\protect\ttfamily#1}
101 (environment)\encapchar usage}\@esphack}
102 \def\changes@#1#2#3{%
103 \protected@edef\@tempa{%
104 \noexpand\glossary{\textbf{#1}\hfill\emph{(#2)}%
105 \levelchar
106 \ifx\saved@macroname\@empty
107 \space\actualchar\generalname
108 \else
109 \expandafter\@gobble\saved@macroname
110 \actualchar\string\verb\quotechar*%
111 \verbatimchar\saved@macroname\verbatimchar
112 \fi
113 :\levelchar #3}%
114 }%
115 \@tempa\endgroup\@esphack
116 }
117 \makeatother
118 \def\PrintChangesX{%
119 \begingroup
120 \let\efill\relax
121 \PrintChanges
122 \endgroup
123 }
124 \def\PrintIndexX{%
125 \begingroup
126 \setcounter{IndexColumns}{2}
127 \setlength{\columnsep}{18pt}%
128 \setlength{\columnseprule}{.4pt}%
129 \PrintIndex
130 \endgroup
131 }
132 \def\larg#1{{\ttfamily\char`\<}\meta{#1}{\ttfamily\char`\>}}
133 \def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
134 \def\LyXarrow{\leavevmode\,$\triangleright$\,\allowbreak}
135 \let\pf\textsf
136 \def\equals{=}
137 \setcounter{tocdepth}{2}
138 \newcolumntype{d}{c|l}
139 \newcolumntype{e}{c|c|c|c}
140 \newcolumntype{f}{l|p{8cm}}
141 \RecordChanges
142 \CodelineIndex
143 \newcounter{FAQ}
144 \def\question{%
145 \stepcounter{FAQ}%
146 \parskip4pt plus 2pt minus 1pt
147 \itemsep4pt plus 2pt minus 1pt
148 \parsep4pt plus 2pt minus 1pt
149 \item[\textbf{Q\arabic{FAQ}}]%
150 }
151 \def\answer{%
152 \parskip0pt
153 \itemsep0pt
154 \parsep0pt
155 \item[\textbf{A\arabic{FAQ}}]%
156 }
157 \def\styleexample#1{%
158 \IfFileExists{powerdot-styleexample-#1.001}{%
159 \IfFileExists{powerdot-styleexample-#1.002}{%
160 \hspace*{\stretch{1}}%
161 \fbox{\includegraphics[scale=.16,angle=-90,clip]%
162 {powerdot-styleexample-#1.001}}%
163 \hspace*{\stretch{2}}%
164 \fbox{\includegraphics[scale=.16,angle=-90,clip]%
165 {powerdot-styleexample-#1.002}}%
166 \hspace*{\stretch{1}}\par
167 }{\textbf{No example files found for style \pf{#1}.}}%
168 }{\textbf{No example files found for style \pf{#1}.}}%
169 }
170 \endinput
171 %%
172 %% End of file `pdpream.ble'.