Serve assolutamente una versione con TikZ 😉 …
… ad esempio:
[attachment=515]tikz_sphere.jpg[/attachment]
Il relativo codice:`
\documentclass{article}
\usepackage{tikz,lipsum}
\makeatletter
\pgfkeys{/tikz/.cd,
corner size/.initial=10pt
}
\pgfdeclareshape{document}{
\inheritsavedanchors[from=rectangle]
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\inheritanchor[from=rectangle]{north}
\inheritanchor[from=rectangle]{south}
\inheritanchor[from=rectangle]{west}
\inheritanchor[from=rectangle]{east}
\savedmacro\cornersize{%
\edef\cornersize{\pgfkeysvalueof{/tikz/corner size}}%
}
% … and possibly more
\backgroundpath{
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
% compute corner of ‘‘flipped page’’
\pgf@xc=\pgf@xb \advance\pgf@xc by-\cornersize
\pgf@yc=\pgf@yb \advance\pgf@yc by-\cornersize
% construct main path
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yb}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
\pgfpathclose
% add little corner
\pgfpathmoveto{\pgfpoint{\pgf@xc}{\pgf@yb}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yc}}
\pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
}
}
\makeatother
\begin{document}
\tikzset{document color/.style={top color=cyan!10, bottom color=cyan!20}}
\tikzset{document size/.style={minimum width=\textwidth,minimum height=0.8\textheight,text width=0.7\textwidth}}
\begin{tikzpicture}
\node[draw,document, corner size=50pt,document color, document size] (x) {
\lipsum[1-2]
};
\end{tikzpicture}
\end{document}
` Notare che può essere sicuramente migliorato (magari con un ripiego più smooth) da qualche esperto di forme come Spike: io ho semplicemente “rubato” il codice a pagina 631 del manuale di TikZ.. ed aggiunto un parametro per cambiare le dimensioni del ripiego.
Ciao
Claudio