summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fancytooltips/tip.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-03-18 23:44:11 +0000
committerKarl Berry <karl@freefriends.org>2007-03-18 23:44:11 +0000
commitb258a3e8678fb74008868627b815aa566c87f561 (patch)
treeea47ad5210d16019f1f47e353e905c4e9d13f85e /Master/texmf-dist/doc/latex/fancytooltips/tip.tex
parent60b16cc4ebfd06c89381dd6927e20246d3c08bff (diff)
fancytooltips update (12mar07)
git-svn-id: svn://tug.org/texlive/trunk@4053 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/fancytooltips/tip.tex')
-rw-r--r--Master/texmf-dist/doc/latex/fancytooltips/tip.tex43
1 files changed, 22 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/fancytooltips/tip.tex b/Master/texmf-dist/doc/latex/fancytooltips/tip.tex
index 8df3daa088b..e34f9584c98 100644
--- a/Master/texmf-dist/doc/latex/fancytooltips/tip.tex
+++ b/Master/texmf-dist/doc/latex/fancytooltips/tip.tex
@@ -1,29 +1,30 @@
\documentclass{article}
\usepackage[papersize={2cm,2cm},margin=1pt]{geometry}
\usepackage{color}
-\definecolor{yellow}{rgb}{1,1,0.9}
-\def\cislo#1{
- \begin{flushright}
- \fcolorbox{red}{yellow}{
- \begin{minipage}{0.3\linewidth}
- \LARGE #1
- \end{minipage}}
- \end{flushright}
+
+\long\def\strankaB#1{
+\setbox0=\hbox{\fboxsep 0 pt
+\color{red}
+\shadowbox{{\fboxsep 4pt\colorbox{yellow}
+ {\color{black}#1
+ }}}}
+\pdfpagewidth=\wd0
+\pdfpageheight=\ht0
+\advance \pdfpageheight by \dp0
+\copy0
\newpage
}
+
+\usepackage{fancybox}
\begin{document}
-\begin{flushright}
- \fcolorbox{red}{yellow}{{\begin{minipage}{0.8\linewidth}
- Einstein:\\[4pt]
- $E=mc^2$
- \end{minipage}}}
-\end{flushright}
-\newpage
- \cislo{1}
- \cislo{2}
- \cislo{3}
- \cislo{4}
- \cislo{5}
- \cislo{6}
+
+\strankaB{\Huge $E=mc^2$}
+
+\strankaB{\LARGE number $ 1$}
+\strankaB{\LARGE number $ 2$}
+\strankaB{\LARGE number $ 3$}
+\strankaB{\LARGE number $ 4$}
+\strankaB{\LARGE number $ 5$}
+\strankaB{\LARGE number $ 6$}
\end{document}