summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fancytooltips/tip.tex
diff options
context:
space:
mode:
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}