[Tex-nl] ovalbox met uitsparing

Piet van Oostrum piet at vanoostrum.org
Tue Jan 17 14:22:38 CET 2012


Dan wordt het dus zoiets:

\newsavebox{\BBL}
\newlength{\WW}\newlength{\HH}

\newcommand \bijbel[2]{
\sbox{\BBL}{\bigskip
  \begin{minipage}[b]{\linewidth}%
    \hspace{0.3\linewidth}%
   \begin{minipage}[r]{0.6\linewidth}%
     \vspace{2mm} {\LARGE #1} \\  {\large #2\par}
     \vspace{2mm} 
   \end{minipage}
 \end{minipage}\bigskip}
\setlength{\WW}{\wd\BBL}
\setlength{\HH}{\ht\BBL}
\addtolength{\HH}{\dp\BBL}
\begin{tikzpicture}
\clip [rounded corners=1cm] (0,0) rectangle (\WW,\HH);
\draw (0,\HH) node [inner sep=0pt,anchor=north west] {\includegraphics[width=2cm]{bijbel}};
\draw [ultra thick, rounded corners=1cm] (0,0) rectangle (\WW,\HH);
\draw (0,0) node [anchor=south west, inner sep=0pt] {\usebox\BBL};
\end{tikzpicture}
}

-- 
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]



More information about the TeX-NL mailing list