8

In Natural Language Processing and related disciplines, it's common to see an "overlaid pages" image included as a node in a flowchart of a system:

  _____
 |  ___|__
 | |   ___|___
 | |  |       |
 | |  |       |
 |_|  |       |
   |__|       |
      |       |
      |_______|

The image is meant to represent a corpus or some other large collection of text data. How can I draw something like this for a Tikz flowchart?

8

You can use shadows library from tikz.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows}

\begin{document}

\begin{tikzpicture}
   \node [double copy shadow={shadow xshift=-1ex,shadow yshift=1.5ex},fill=white,draw=black,thick,minimum height = 2cm,minimum width=1cm] {};
\end{tikzpicture}
\end{document}

enter image description here

If you are using it in a flow chart, you may define a style via tikzset.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows}
\tikzset{    
    overlaid/.style={double copy shadow={shadow xshift=-1ex,shadow yshift=1.5ex},fill=white,draw=black,thick,minimum height = 2cm,minimum width=1cm,text width = 2cm, align=center},
}

\begin{document}

\begin{tikzpicture}
   \node [overlaid] {Some text goes here};
\end{tikzpicture}
\end{document}

enter image description here

  • 2
    This is great, Harish. Thanks for taking the time to share it. – Renklauf Nov 1 '13 at 23:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.