Debian Codegraph @

texmf-dist/doc/latex/graphicxbox/examples/grfxbox_tst_indians.tex

raw
1 \documentclass{article}
2 \usepackage{graphicxsp}
3 \usepackage[tight,designiv,usetemplates]{web}
4 \usepackage{aeb_tilebg}
5 \usepackage{graphicxbox}
6
7 \title{The \textsf{GraphicxBox} Package\texorpdfstring{\\\textsf{GraphicxSP}, Transparency, Tiling}{: GraphicxSP, Transparency, Tiling}}
8 \author{D. P. Story}
9 \subject{Test file for the AcroTeX eDucation Bundle}
10 \keywords{LaTeX, Web package, tiled backgrounds, Adobe Acrobat}
11 \university{Acro\negthinspace\TeX.Net}
12 \email{[email protected]}
13 \def\webversion{\textcolor{webbrown}{www.acrotex.net}}
14 \revisionLabel{Prepared:}
15 \versionLabel{}
16
17 \newcommand{\cs}[1]{\texttt{\char`\\#1}}
18
19 \embedEPS[transparencyGroup]{cle_ind_back}{graphics/bg_cle_tile}
20 \embedEPS[transparencyGroup]{indianblanket}{graphics/indianblanket}
21 %
22 % Create a 100 by 100 rectangle of while for used as a transparent
23 % background to the \graphicxbox and \fgraphicbox
24 %
25 \begin{createImage}[transparencyGroup]{0 0 100 100}{whiteBG}
26 1 1 1 setrgbcolor 0 0 100 100 rectfill
27 \end{createImage}
28
29 \begin{createImage}[transparencyGroup]{0 0 100 100}{blueBG}
30 0 0 1 setrgbcolor 0 0 100 100 rectfill
31 \end{createImage}
32
33 \parindent0pt\parskip\medskipamount
34
35 \begin{document}
36
37 \maketitle
38
39 \vspace*{0.25in}
40
41 \begin{center}\sffamily\Large\bfseries\color{blue}
42 Introduction
43 \end{center}
44 \begin{quote}\parskip6pt
45 This is the original application that I had envisioned for the
46 \textsf{GraphicxBox} package; using a graphical background behind a
47 \cs{parbox} with an interesting dark (and tiled) background for the
48 page. I wished to write on top of the graphical background, yet
49 have a degree of transparency for seeing through to the background.
50
51 We'll begin the tiling on the next page so you can see what I mean,
52 shall we.
53 \end{quote}
54
55 \newpage
56 \setTileBgGraphic[hiresbb,scale=.4,name=cle_ind_back]{\null}
57
58 \null\vskip-\baselineskip\vfil
59
60 \begin{center}
61 \graphicxbox[name=whiteBG,transparency={/ca .7 /BM/Normal}]{} %
62 {%
63 \begin{minipage}{0.67\linewidth}\parskip6pt\bfseries
64 This document introduces a new command, \cs{graphicxbox}. This
65 command is quite similar to \cs{colorbox}, except
66 \cs{graphicxbox} places a graphic in the background instead
67 of a color. The graphic, in this case, is a simple white rectangle
68 that has been given a an opacity of 0.7.
69
70 As with \cs{colorbox}, the box is increased by \cs{fboxsep} on all sides.
71
72 We use the \textsf{graphicxsp} package to get the transparency, and the
73 \textsf{aeb\_tilebg} package to tile the background.
74 \end{minipage}
75 }
76 \end{center}
77
78 \newpage
79
80 \null\vskip-\baselineskip
81 \vfil
82
83 \begin{center}
84 \setlength{\fboxrule}{2bp}\setlength{\fboxsep}{10bp}%
85 \fgraphicxbox{blue}[name=whiteBG,transparency={/ca .7 /BM/Normal}]{}
86 {%
87 \begin{minipage}{0.67\linewidth}\parskip6pt\bfseries
88 This display panel demos \cs{fgraphicxbox}. This command
89 is similar to \cs{fcolorbox}, it does draw a boundary rule, but
90 inserts a graphic image instead of a flat background. The
91 graphic, in this case, is a simple white rectangle that has been
92 given a an opacity of 0.7.
93
94 As with \cs{fcolorbox}, the box is increased by \cs{fboxsep}
95 on all sides, and the rule width is set by \cs{fboxrule}.
96 \end{minipage}
97 }
98 \end{center}
99
100 \newpage
101
102 \null\vskip-\baselineskip\vfil
103
104 \begin{center}
105 \setlength{\fboxsep}{10bp}%
106 \graphicxbox{graphics/indianblanket}
107 {%
108 \parbox{0.67\linewidth}{\parskip6pt\bfseries
109 The `Indian Blanket' background graphic is inserted with the
110 \textsf{graphicx} package, not by \textsf{graphicxsp}. We have no
111 transparency, of course, but it still looks pretty swave!
112 }%
113 }
114 \end{center}
115
116 \newpage
117
118 \null\vskip-\baselineskip\vfil
119
120 \begin{center}
121 \setlength{\fboxsep}{10bp}%
122 \graphicxbox[name=indianblanket,transparency={/ca .7 /BM/Normal}]{}
123 {%
124 \parbox{0.67\linewidth}{\parskip6pt\bfseries
125 Same `Indian Blanket' graphic as the previous page, but
126 using \textsf{graphicxsp}, with transparency!
127 Cool
128
129 Go Indians!
130 }%
131 }
132 \end{center}
133
134
135 \newpage
136
137 \null\vskip-\baselineskip
138 \vfil
139
140 \begin{center}
141 \setlength{\fboxrule}{0bp}\setlength{\fboxsep}{4bp}%
142 \graphicxbox[name=blueBG,transparency={/ca .5 /BM/Normal}]{}
143 {%
144 \parbox[c]{0.67\linewidth}{%
145 \setlength{\fboxrule}{0bp}\setlength{\fboxsep}{10bp}%
146 \graphicxbox[name=whiteBG,transparency={/ca .7 /BM/Normal}]{}
147 {%
148 \begin{minipage}{\linewidth-2\fboxsep}\parskip6pt\bfseries
149 Someone asked me if the border can be made to be transparent. On first blush,
150 I said ``No! Not at this time.'' The latter phrase I throw in to cover
151 myself in case the answer is ``Yes!''
152 \end{minipage}
153 }
154 }
155 }
156 \end{center}
157
158
159 \end{document}