> On 27 Jan 2018, at 11:43, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> […]
> \defineexpandable\...{…}

Hi Wolfgang,

Thanks again! Indeed 

        \defineexpandable\authorpicture{hacker.jpg}

solves the problem in the simplified case I was reporting. 
However in the real case, the file « hacker.jpg » is in fact a file which 
depends on other variables, and when I include \defineexpandable in the 
\getvariable environment then it does not work anymore: saying

        \defineexpandable\authorpicture{\getvariable{talk}{picture}}
or
        \defineexpandable\authorpicture{\expanded{\getvariable{talk}{picture}}}
or
        \defineexpandable\authorpicture{\expandafter\getvariable{talk}{picture}}
does not solve the problem.

Below is a minimal example showing the issue (with what you taught me last 
week…).

Best regards: OK

\starttext
\startbuffer[pagetalk]
        \starttabulate[|f{\bi}l|p|][before=]%
        \NC Speaker \EQ \getvariable{talk}{speakerfirstname} {\sc 
\getvariable{talk}{speakername}}
         \NC\NR
        \NC Title   \EQ \getvariable{talk}{title}    \NC\NR
        \stoptabulate
        \defineexpandable\authorpicture{\getvariable{talk}{picture}}
        \placefigure[here][]{}
                {\externalfigure[\authorpicture]}
\page
\stopbuffer

\setvariable{talk}{set}{\getbuffer[pagetalk]}

\setvariables[talk]%
        [speakername={Hacker},
        title={Up to date hacking},
        picture=hacker.jpg
        ]
        
\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to