[NTG-context] Speech bubbles

Otared Kavian otared at gmail.com
Tue Feb 8 21:06:01 CET 2011


Hi Wolfgang,

Just out of curiosity I tested your example file, but mkiv stops upon
	! Undefined control sequence.
	l.16 \defineannotation
The version I have is ConTeXt  ver: 2011.02.05 11:37 MKIV.

Best regards: OK

On 8 févr. 2011, at 17:38, Wolfgang Schuster wrote:

> 
> Am 08.02.2011 um 17:08 schrieb Andreas Harder:
> 
>> This worked for me.
> 
> Thanks, i wrapped it in a environment.
> 
> \usemodule[tikz,annotation]
> \usetikzlibrary[shapes.callouts]
> 
> \define[2]\SpeechbubbleCommand
>  {\starttikzpicture[remember picture]
>   \node[rectangle callout, draw] (node:ref) {\framedtext[width=fit,frame=off]{#2}};
>   \stoptikzpicture}
> 
> \defineannotation
>  [speechbubble]
>  [alternative=command,
>       command=\SpeechbubbleCommand]
> 
> \starttext
> 
> \speechbubble{Hello!}
> 
> \startspeechbubble
> \input ward
> \stopspeechbubble
> 
> \stoptext
> 
> Wolfgang
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

%%%%%%%%%%%%%%%%%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: Otared.Kavian at math.uvsq.fr






More information about the ntg-context mailing list