summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex
blob: 94780ac5d5ef4d7bd63eded4c2ff9bbf433ef919 (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
\documentclass{article}

\usepackage{ocgtools}

\layerVshift=1in
\advance\layerVshift by 16pt  % determined experimentally

\begin{document}

\ocgtext{Test}{We test placing OCG's.} for placing OCG's:

\hbox to \hsize{\hss\begin{minipage}{0.2\linewidth}
  \ocgminitextlb{lb}{This is optional OCG.}

  \ocgminitextrb{rb}{This is optional OCG.}

  \ocgminitextlt{lt}{This is optional OCG.}

  \ocgminitextrt{rt}{This is optional OCG.}
\end{minipage}
\hss\hss\hss
\begin{minipage}{0.2\linewidth}
  \ocgminitextlb{lb}{This is optional OCG.}

  \ocgminitextrb{rb}{This is optional OCG.}

  \ocgminitextlt{lt}{This is optional OCG.}

  \ocgminitextrt{rt}{This is optional OCG.}
\end{minipage}
\hss
}
\newpage

\ocgminitextlb{New}{New} \ocgminitextrb{page}{page}.

Second line

\bigskip

\ocgminitext{New}{New} \ocgminitext{page}{page}.

Second line
\newpage

Plain page.
\newpage

\ocgminitextlb{Last}{Last} \ocgminitextrb{page}{page}.

Second line on last page.
\end{document}