summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/graphicxbox/examples/grfxbox_tst_indians.tex
blob: 3c13ad0840afbcbed1027c2c1568a54e6ac317d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
\documentclass{article}
\usepackage{graphicxsp}
\usepackage[tight,designiv,usetemplates]{web}
\usepackage{aeb_tilebg}
\usepackage{graphicxbox}

\title{The \textsf{GraphicxBox} Package\texorpdfstring{\\\textsf{GraphicxSP}, Transparency, Tiling}{: GraphicxSP, Transparency, Tiling}}
\author{D. P. Story}
\subject{Test file for the AcroTeX eDucation Bundle}
\keywords{LaTeX, Web package, tiled backgrounds, Adobe Acrobat}
\university{Acro\negthinspace\TeX.Net}
\email{dpstory@acrotex.net}
\def\webversion{\textcolor{webbrown}{www.acrotex.net}}
\revisionLabel{Prepared:}
\versionLabel{}

\newcommand{\cs}[1]{\texttt{\char`\\#1}}

\embedEPS[transparencyGroup]{cle_ind_back}{graphics/bg_cle_tile}
\embedEPS[transparencyGroup]{indianblanket}{graphics/indianblanket}
%
% Create a 100 by 100 rectangle of while for used as a transparent
% background to the \graphicxbox and \fgraphicbox
%
\begin{createImage}[transparencyGroup]{0 0 100 100}{whiteBG}
1 1 1 setrgbcolor 0 0 100 100 rectfill
\end{createImage}

\begin{createImage}[transparencyGroup]{0 0 100 100}{blueBG}
0 0 1 setrgbcolor 0 0 100 100 rectfill
\end{createImage}

\parindent0pt\parskip\medskipamount

\begin{document}

\maketitle

\vspace*{0.25in}

\begin{center}\sffamily\Large\bfseries\color{blue}
    Introduction
\end{center}
\begin{quote}\parskip6pt
This is the original application that I had envisioned for the
\textsf{GraphicxBox} package; using a graphical background behind a
\cs{parbox} with an interesting dark (and tiled) background for the
page. I wished to write on top of the graphical background, yet
have a degree of transparency for seeing through to the background.

We'll begin the tiling on the next page so you can see what I mean,
shall we.
\end{quote}

\newpage
\setTileBgGraphic[hiresbb,scale=.4,name=cle_ind_back]{\null}

\null\vskip-\baselineskip\vfil

\begin{center}
\graphicxbox[name=whiteBG,transparency={/ca .7 /BM/Normal}]{} %
{%
    \begin{minipage}{0.67\linewidth}\parskip6pt\bfseries
        This document introduces a new command, \cs{graphicxbox}. This
        command is quite similar to \cs{colorbox}, except
        \cs{graphicxbox} places a graphic in the background instead
        of a color. The graphic, in this case, is a simple white rectangle
        that has been given a an opacity of 0.7.

        As with \cs{colorbox}, the box is increased by \cs{fboxsep} on all sides.

        We use the \textsf{graphicxsp} package to get the transparency, and the
        \textsf{aeb\_tilebg} package to tile the background.
    \end{minipage}
}
\end{center}

\newpage

\null\vskip-\baselineskip
\vfil

\begin{center}
\setlength{\fboxrule}{2bp}\setlength{\fboxsep}{10bp}%
\fgraphicxbox{blue}[name=whiteBG,transparency={/ca .7 /BM/Normal}]{}
{%
    \begin{minipage}{0.67\linewidth}\parskip6pt\bfseries
        This display panel demos \cs{fgraphicxbox}. This command
        is similar to \cs{fcolorbox}, it does draw a boundary rule, but
        inserts a graphic image instead of a flat background. The
        graphic, in this case, is a simple white rectangle that has been
        given a an opacity of 0.7.

        As with \cs{fcolorbox}, the box is increased by \cs{fboxsep}
        on all sides, and the rule width is set by \cs{fboxrule}.
    \end{minipage}
}
\end{center}

\newpage

\null\vskip-\baselineskip\vfil

\begin{center}
\setlength{\fboxsep}{10bp}%
\graphicxbox{graphics/indianblanket}
{%
    \parbox{0.67\linewidth}{\parskip6pt\bfseries
        The `Indian Blanket' background graphic is inserted with the
        \textsf{graphicx} package, not by \textsf{graphicxsp}.  We have no
        transparency, of course, but it still looks pretty swave!
    }%
}
\end{center}

\newpage

\null\vskip-\baselineskip\vfil

\begin{center}
\setlength{\fboxsep}{10bp}%
\graphicxbox[name=indianblanket,transparency={/ca .7 /BM/Normal}]{}
{%
    \parbox{0.67\linewidth}{\parskip6pt\bfseries
        Same `Indian Blanket' graphic as the previous page, but
        using \textsf{graphicxsp}, with transparency!
        Cool

        Go Indians!
    }%
}
\end{center}


\newpage

\null\vskip-\baselineskip
\vfil

\begin{center}
\setlength{\fboxrule}{0bp}\setlength{\fboxsep}{4bp}%
\graphicxbox[name=blueBG,transparency={/ca .5 /BM/Normal}]{}
{%
    \parbox[c]{0.67\linewidth}{%
    \setlength{\fboxrule}{0bp}\setlength{\fboxsep}{10bp}%
        \graphicxbox[name=whiteBG,transparency={/ca .7 /BM/Normal}]{}
        {%
            \begin{minipage}{\linewidth-2\fboxsep}\parskip6pt\bfseries
            Someone asked me if the border can be made to be transparent. On first blush,
            I said ``No! Not at this time.'' The latter phrase I throw in to cover
            myself in case the answer is ``Yes!''
            \end{minipage}
        }
    }
}
\end{center}


\end{document}