summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/opacity-pro/examples/op-tk.tex
blob: b55a0709877fce985d3b4f24e1579129ec110502 (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
\documentclass{article}
\usepackage{opacity-pro}
\usepackage[usetemplates]{web}
\usepackage{anyfontsize}

% In this demo, we use the optional argument <PDFKVs>, these are PDF key values
% that are entered in the proper form, for a PDF. Here we use the knockout entry
% /TK <true|false>. Read about it in the PDF Reference
%
% We also demonstrate the settransparency environment on page 3

\textBgColor{webyellow}

\pagestyle{empty}

\margins{.25in}{.25in}{24pt}{.25in}
\setScreensizeFromGraphic[hiresbb,scale=3]{digis/grandcanyon}
\template[hiresbb]{digis/grandcanyon}

\everymath{\displaystyle}

\begin{document}

\vspace*{0pt}\vfil

\fontsize{50}{50}\bfseries
\noindent\settransparency{.5}{.5}[/TK false]
{%
    \put(0,60){\color{blue}Hello 3D World!}
    \put(4,64){\color{red}Hello 3D World!}
    \put(8,68){\color{green}Hello 3D World!}
}%
\settransparency{.5}{.5}[/TK false]
{%
    \put(40,-68){\color{blue}$\mathbf{\int\limits_0^5 f(x) dx}$}
    \put(44,-64){\color{red}$\mathbf{\int\limits_0^5 f(x) dx}$}
    \put(48,-60){\color{green}$\mathbf{\int\limits_0^5 f(x) dx}$}
}

\vfill
{\large\sffamily\bfseries With text knockout false (\texttt{/TK false}).}
\newpage

\vspace*{0pt}\vfil
%
% Same page but without the text knockout
%
\noindent\settransparency{.5}{.5}
{%
    \put(0,60){\color{blue}Hello 3D World!}
    \put(4,64){\color{red}Hello 3D World!}
    \put(8,68){\color{green}Hello 3D World!}
}%
\settransparency{.5}{.5}
{%
    \put(40,-68){\color{blue}$\displaystyle\mathbf{\int\limits_0^5 f(x) dx}$}
    \put(44,-64){\color{red}$\displaystyle\mathbf{\int\limits_0^5 f(x) dx}$}
    \put(48,-60){\color{green}$\displaystyle\mathbf{\int\limits_0^5 f(x) dx}$}
}
\vfill
{\large\sffamily\bfseries With text knockout true (\texttt{/TK true}), the default.}
\newpage

\begin{quote}\Large
When the content to be made transparent has verbatim text,
use the environment version.
\end{quote}

\vspace{.5in}

\begin{center}\sffamily\fontsize{60}{60}\bfseries\color{yellow}
\begin{settransparency}{.3}{}
\verb!%^$&#{!
\end{settransparency}
\end{center}
\end{document}