[pstricks] Re: Word Balloons

Paul Smith phhs80 at gmail.com
Sat Sep 17 23:28:36 CEST 2005


On 9/17/05, Herbert Voss <LaTeX at zedat.fu-berlin.de> wrote:
> > I haven't seen anything in PSTricks for creating word balloons (used in cartoons to show the
> > thoughts or speech of a character). I believe PowerPoint has word balloons.  Does anyone
> > know of anything from PSTricks?
> 
> \documentclass[12pt]{article}
> \usepackage{pstricks,pst-node}
> %
> \makeatletter
> \def\psWordBallon{\pst at object{psWordBallon}}
> \def\psWordBallon at i(#1)(#2)#3#4{{%
>    \use at par
>    \pst at killglue
>    \pnode(#2){WB at end}
>    \rput(#1){\ovalnode{WB at center}{\parbox{#3}{#4}}}
> 
> \nccurve[doubleline=true,doublesep=5pt,arrows=->,fillstyle=none]{WB at center}{WB at end}
>    \ignorespaces
> }}
> \makeatother
> \parindent=0pt
> \begin{document}
> 
> \psWordBallon[angleB=100,angleA=-30](0,0)(3,-3){3cm}{Let's see what we
> can see in this Word Ballon \ldots}
> \psWordBallon[angleB=140,angleA=-90,linecolor=red,fillstyle=solid,fillcolor=cyan](5,0)(4,-6){2cm}%
>     {\raggedright Let's see what we can see in this Word Ballon \ldots}
> 
> \vspace{6cm}
> Syntax: \verb+\psWordBallon[options](text center)(arrow end){text
> width}{text}+
> 
> \end{document}

I tried the above example, but I get the following error:

(/usr/share/texmf/tex/generic/pstricks/pst-node.tex  v97 patch 11, 2000/11/09))
 (./word_balloons.aux)
Underfull \hbox (badness 2837) in paragraph at lines 21--21
[]\OT1/cmr/m/n/12 Let's see what

! LaTeX Error: \verb ended by end of line.

\listfiles produces the following output:

Any ideas?

 *File List*
  article.cls    2004/02/16 v1.4f Standard LaTeX document class
  size12.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2005/08/13 v1.10 `PSTricks' (tvz)
  xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
   color.cfg    2005/02/03 v1.3 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-node.sty    2004/07/15 package wrapper for pst-node.tex
pst-node.tex    2000/11/09 97 patch 11 `pst-node' (tvz)
 ***********

Thanks in advance,

Paul




More information about the PSTricks mailing list