On 8-8-2012 19:48, Wolfgang Schuster wrote:

The arguments you give with the first argument are processed by context before 
they
are written to the utility file and only three values can be used when you 
create your
own list layout, the user variables on the other side are written to the 
utility file without
any modification and whatever you write here can be used in the list.

Here is a few lines extension that provides access (will be in next beta):

% macros=mkvi

\unprotect

\installcorenamespace{floatuserdata}

\installsetuponlycommandhandler \??floatuserdata {floatuserdata}

\def\strc_floats_start_place_indeed[#settings][#userdata]%
  {\strc_floats_reset_variables
   \edef\savedfloatlocation{\floatcaptionparameter\c!location}%

\setupcurrentfloatcaption[\c!location=,\c!reference=,\c!title=,\c!marking=,\c!list=,\c!bookmark=,#settings]%
   \def\savedfloatuserdata{#2}%
   \edef\floatlocation{\floatcaptionparameter\c!location}%
   \setupcurrentfloatcaption[\c!location=\savedfloatlocation]%
   \ifx\floatlocation\empty
      \edef\floatlocation{\floatparameter\c!default}%
   \fi
   \ifsecondargument
     \setupcurrentfloatuserdata[#userdata]%
   \fi

\doifinsetelse\v!split\floatlocation\strc_floats_place_next_box_split\strc_floats_place_next_box_normal
   \bgroup
   \ignorespaces}

\protect

\starttext

\startplacefigure[title=oeps][subtitle=whatever]
    \framed[width=10cm,height=5cm]{\floatuserdataparameter{subtitle}}
\stopplacefigure

\stoptext

(a few more mechanisms will get a \*userdataparameter .. no time for that now)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

Reply via email to