2

I am building un flowchart in psmatrix and need to generate the flowchart report(document) shape and I don't know as do it. The symbol is like in the picture below. Can somebody help me, please?

TIA.

enter image description here

3

2 Answers 2

4

A solution with pst-node. With its \psDefBoxNodes command, which defines 12 nodes for any bounding box of an object, I define a \mypsframe command:

\documentclass[pdf, x11names]{article}%

 \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc }
\usepackage{fourier}
\usepackage{erewhon}

\usepackage{pst-node}%
\newcommand\mypsframe[1]{%
\psDefBoxNodes{T}{\psframebox[linestyle=none, framesep=10pt]{#1}}%
\psset{linecolor=VioletRed3, linewidth=1.2pt, angleA = -30,angleB = 150,arrows = -}
\psline(T:bl)(T:tl)(T:tr)(T:br)
\pccurve{c-c}(T:bl)(T:br)
}

\begin{document}

\begin{pspicture}
    \mypsframe{Print Text}
\end{pspicture}

\end{document}

enter image description here

3

I know that you want pstricks answer. Hence this answer using tikz is just for academic purposes (please don't upvote).

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols}
\tikzset{report/.style={tape, draw, tape bend top=none}
}
\begin{document}
\begin{tikzpicture}
  \node[report] {Print text};
\end{tikzpicture}
\end{document}

enter image description here

You can adjust the bend quantity using tape bend height=1cm in

\tikzset{report/.style={tape, draw, tape bend top=none,tape bend height=1cm}
}

to get (exotic)

enter image description here

Change the curvature by

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols,positioning}
\tikzset{reporta/.style={tape,tape bend top=out and in, tape bend bottom=out and in, draw, tape bend height=1cm},
reportb/.style={tape,tape bend top=in and out, tape bend bottom=in and out, draw, tape bend height=1cm}
}
\begin{document}
\begin{tikzpicture}
  \node[reporta] (a) {Print text};
  \node[reportb, right = of a] {Print text};
\end{tikzpicture}
\end{document}

enter image description here

1
  • 1
    I think an answer, if well written, deserves an upvote to honour the contribution to the site. Isn't providing alternative part of science?
    – Johannes_B
    Mar 29, 2015 at 9:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .