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
|
\documentclass{article}
\usepackage[paperwidth=15cm,paperheight=15cm,margin=5pt]{geometry}
\usepackage{amsmath,enum,amssymb,amsfonts,mathrsfs,amsbsy,pxfonts,array,url}
%\usepackage[pdftex]{xcolor}
\usepackage{pdfwidgets}
\pagestyle{empty}
\usepackage[createtips]{fancytooltips}
\makeatletter
\def\bs{\expandafter\@gobble\string\\}
\def\lb{\expandafter\@gobble\string\{}
\def\rb{\expandafter\@gobble\string\}}
\newcounter{Page}
\long\def\Clear#1#2{\stepcounter{Page}%
\global\setbox0=\hbox to #1{%
\vbox{\hsize=#1%
#2}}%
\def\rulecolor{Olive}%
\def\rulewidth{0pt}%
\xdef\xwd{\the\wd0} \xdef\xht{\the\ht0}%
% \typeout{WD=\the\wd0:::::::: HT=\the\ht0}%
\pdfpagewidth=#1 \advance\pdfpagewidth by 30pt
\pdfpageheight=\xht \advance\pdfpageheight by 34pt
\@tempdimc=#1 \advance\@tempdimc 16pt
\noindent\begin{tikzpicture}%
\node[fill=gray!20,shape=quotedbox,inner color=black,
outer color=black!20,very nearly transparent,%
inner sep=4pt,text width=\@tempdimc] (x) {%
\def\rulecolor{black!20}%
\def\rulewidth{1pt}%
\advance\@tempdimc -16pt
\noindent\begin{tikzpicture}
\node[fill=yellow!10,draw,opaque,shape=quotedbox,
inner sep=8pt,text width=\@tempdimc] (x)
{\box0} ;
\end{tikzpicture}} ;%
\end{tikzpicture}
% \box0
\keytip{mytip\thePage}\newpage}
\makeatother
\pdfcompresslevel=0
\begin{document}
\input mytools.tex
\end{document}
|