\getvariable{tugboat}{author}}\par
\getvariable{tugboat}{address}\par
{\tt\getvariable{tugboat}{email}}\par
\startStreszczenia
\doifelsebufferempty {abstract} {
% no abstract
} {
\blank[line
,
width=max,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Définition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\white\getva
urrentTextSetCounter]%
\setxvariable
{concurrent}
{text:\rawcountervalue[ConcurrentTextSetCounter]}
{#1}}
% Account for the counter incrementing twice and the index being 1-based.
\def\ConcurrentTextGet{%
\incrementnumber[ConcurrentTextGetCounter]%
\getvariable
{con
SetCounter]}
{#1}}
% Account for the counter incrementing twice and the index being 1-based.
\def\ConcurrentTextGet{%
\incrementnumber[ConcurrentTextGetCounter]%
\getvariable
{concurrent}
{text:\number\numexpr1+\rawcountervalue[ConcurrentTextGetCounter]/2\relax}}
\startuseMPgraph
draw title;
);
endgroup;\stopusableMPgraphic
\definetextbackground[TextConcurrentFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
location=paragraph,
]
\definestartstop[concurrent][
before={%
\blank[big]%
LEGEND: \xmlatt{\getvariable{div}{con
ntFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
location=paragraph,
]
\definestartstop[concurrent][
before={%
\blank[big]%
LEGEND: \xmlatt{\getvariable{div}{concurrent}}{data-title}%
\blank[big]%
\setMPtext{concurrent}{\xmlatt{\getvariable{div}{con
}]\xmlflush{#1}\stop
\stopxmlsetups
\definestartstop[concurrent][
before={TITLE: \xmlatt{\getvariable {div} {concurrent} {title}}},
]
\starttext
\xmlprocessbuffer{main}{demo}{}
\stoptext
% EOT
It doesn't look like the variables are taking, regardless of whether
{title} or {data-title
\definestartstop[concurrent][
before={TITLE: \xmlatt{\getvariable {div} {concurrent} {title}}},
]
\starttext
\xmlprocessbuffer{main}{demo}{}
\stoptext
% EOT
It doesn't look like the variables are taking, regardless of whether
{title} or {data-title} are used.
\startxmlsetups xml:div
{\getvariable {div} {concurrent} {title}}},
]
\starttext
\xmlprocessbuffer{main}{demo}{}
\stoptext
% EOT
It doesn't look like the variables are taking, regardless of whether
{title} or {data-title} are used.
On Thu, Aug 10, 2023 at 12:44 AM Hans Hagen wrote:
> On 8/10/2023 9:10 AM, Thanga
}{\usermap[concurrent.location]}
\setMPtext{1}{%
\xmlatt {\getvariable {div} {concurrent} {title}%
}
I can verify the attribute values exist by exporting them to the document:
something like that .. untested as no mwe
Hans
setvariables
>>>[Test]
>>>[Number=]
>>>
>>>
>>> \starttext
>>>Value of variable Number before test: \getvariable{Test}{Number} \crlf
>>>
>>> \doifemptyelse{\getvariable{Test}{Number}}
>>>{\dor
Value of variable Number before test: \getvariable{Test}{Number}
\crlf
\doifemptyelse{\getvariable{Test}{Number}}
{\dorecurse
{5}
{TEST}
}
{Nothing defined \par
Contents of variable Number: \getvariable{Test}{Number
test: \getvariable{Test}{Number} \crlf
\doifemptyelse{\getvariable{Test}{Number}}
{\dorecurse
{5}
{TEST}
}
{Nothing defined \par
Contents of variable Number: \getvariable{Test
test: \getvariable{Test}{Number} \crlf
\doifemptyelse{\getvariable{Test}{Number}}
{\dorecurse
{5}
{TEST}
}
{Nothing defined \par
Contents of variable Number: \getvariable{Test
Good evening gurus!
Why is the minimal example failing? i.e. executing always the else-branch?
\setuppapersize[A6][A6]
\setvariables
[Test]
[Number=]
\starttext
Value of variable Number before test: \getvariable{Test}{Number} \crlf
able depending on a mode:
\doifmode{simple}{\setvariable{gerben}{level}{simple}}
and then
\externalfigure[images/\getvariable{gerben}{level}/\currentlanguage/cow]
Hraban
___
If your question is of interest to others as w
ign={flushright,lohi}]
\bTR
\bTD \externalfigure[cow][height=2cm] \eTD
\bTD
\doiftextelse{\getvariable{assignments}{date}}{\getvariable{assignments}{date}}{\date}
\eTD
\eTR
\bTR
\bTD Course: \getvariable{assignments}{code} \eTD
\bTD \getvariable{assignments}{assignment} \eTD
\
” to use a variable?
You can get rid of the temp variable before the command definition but
now you have to access it with a different method in \mymacro, below is
one way (LMTX only) but \setvariable and \getvariable work as well.
\define[1]\mymacro
{\iftok{#1}{\getvalue{previousmymacro
t; You can get rid of the temp variable before the command definition but
> > now you have to access it with a different method in \mymacro, below is
> > one way (LMTX only) but \setvariable and \getvariable work as well.
> >
> > \define[1]\mymacro
> > {\iftok{
it with a different method in \mymacro, below is
one way (LMTX only) but \setvariable and \getvariable work as well.
\define[1]\mymacro
{\iftok{#1}{\getvalue{previousmymacro}}%
same as last time
\else
it is different from last time
\fi
\setvalue{previousmymacro}{#1
definition but
now you have to access it with a different method in \mymacro, below is
one way (LMTX only) but \setvariable and \getvariable work as well.
\define[1]\mymacro
{\iftok{#1}{\getvalue{previousmymacro}}%
same as last time
\else
it is different from last time
\fi
horelse}{\currentbtxtag}{\getvariable{btx:sbl}{previousinlinetag}}
{
\btxlabeltext{sbl:idem}
} {
\currentbtxciteauthorbyfield
}
} {
\currentbtxciteauthorbyfield
}
\btxcomma
}
\stoptexdefinition
(3) I haven't implemented support for ibid. tracking (it
\externalfigure[\MillFigure]
\externalfigure[CowFigure]
\externalfigure[\getvariable{figures}{hacker}]
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
,
}
args = utilities.parsers.settings_to_hash(keyvals)
use "local args" here ^
for k, v in pairs(args) do
style[k] = v
end
context.setvariables({'style'}, style)
end
\stopluacode
\define\placestyle{
\doiftext
{\getvariable{style}{text}}
style[k] = v
end
context.setvariables({'style'}, style)
end
\stopluacode
\define\placestyle{
\doiftext
{\getvariable{style}{text}}
{\color[\getvariable{style}{color}]{\getvariable{style}{text}}}
}
\starttext
\style[
text={Some red text},
color=red,
]
\style[
color=blue
tion via
```
\setxvariables[btx:sbl][previousinlinetag=\currentbtxtag]
```
and checking it in the appropriate places via
```
getvariable{btx:sbl}{previousinlinetag}
```
I initially tried to do this with a simple macro \btx_sbl_previousinlinetag
defined in publ-imp-sbl.mkvi (in the same scope as
reviouselse. But since \btxdoifsameaspreviouselse relies on
> the indexed structure of the bibliographic list to determine what the
> "previous" entry is, it won't work for my purposes; I need to retrieve the
> tag of the last entry passed to the \cite command.
>
> I ended up making this w
sbl][previousinlinetag=\empty]
```
in the publ-imp-sbl.mkvi file, resetting it at the end of each citation via
```
\setxvariables[btx:sbl][previousinlinetag=\currentbtxtag]
```
and checking it in the appropriate places via
```
getvariable{btx:sbl}{previousinlinetag}
```
I initially tried to do th
poses; I need to retrieve the
> tag of the last entry passed to the \cite command.
>
> I ended up making this work by initializing a global variable via
>
> ```
> \setxvariables[btx:sbl][previousinlinetag=\empty]
> ```
>
> in the publ-imp-sbl.mkvi file, resetting it at the end of e
this work by initializing a global variable via
```
\setxvariables[btx:sbl][previousinlinetag=\empty]
```
in the publ-imp-sbl.mkvi file, resetting it at the end of each citation via
```
\setxvariables[btx:sbl][previousinlinetag=\currentbtxtag]
```
and checking it in the appropriate places via
```
g
es[btx:sbl][previousinlinetag=\currentbtxtag]
```
and checking it in the appropriate places via
```
getvariable{btx:sbl}{previousinlinetag}
```
I initially tried to do this with a simple macro \btx_sbl_previousinlinetag
defined in publ-imp-sbl.mkvi (in the same scope as the rest of the
spe
to be adjusted to the
width of the paper.
Thanks
Fabrice
[...]
\setupheadertexts
[{
\startframed [headerframed]
[align=flushleft,foregroundstyle=\ssx]
Lycée LA SALLE\\
Durée : \getvariable{headertext}{time}\\
\date[d=\getvariable{headertext}{day},m=\getvariable
]}}]
\startsetups [headertext]
\setupheadertexts
[{
\startframed [headerframed]
[foregroundstyle=TextStyle,align=middle]
\getvariable{headertext}{location}\\
Spécialité mathématiques\\
\getvariable{headertext}{title} n\high{\tfxx
https://sedna.fiee.net/f/24d54a952b0243a98775/?dl=1
>
> What could case that?
Even curioser:
If there isn’t a \page after \stopcolumnset, the second-to-last section
(subject) disappears and the last one is typeset completely.
(Later:)
Ok, found it:
\def\stopArticle{%
\par\signArticle
);
draw thefmttext(#2) shifted(10mm, 205m);
draw thefmttext(#3) shifted(10mm, 30mm);
\stopMPpage
}
\blz[01][02][AA]
\blz[03][42][ZZ]
whatever suits your purpose or taste, like
\def\blz[#1]%
{\begingroup
\setvariables[blz][#1]%
\startMPpage
draw textext("\getvariabl
.
Would be great if you could just let me know where to look or what to
sarch for
\setvariables[mynamespace][a=1,b=2,c={3,4,5}]
\doifelseinset{4}{\getvariable{mynamespace}{c}}{FOUR}{OEPS}
\setvariables[mynamespace][d={one,two,three,four}]
\doifelseinset{4}{\getvariable{mynamespace}{c}}{FOUR}{OEPS
[mynamespace][a=1,b=2,c={3,4,5}]
\doifelseinset{4}{\getvariable{mynamespace}{c}}{FOUR}{OEPS}
\setvariables[mynamespace][d={one,two,three,four}]
\doifelseinset{4}{\getvariable{mynamespace}{c}}{FOUR}{OEPS}
\doifelseinset{two}{\getvariable{mynamespace}{d}}{y}{n}
of course when you need millions
set and access values (you still have to ensure all values you set
are global).
\setupheadertexts[\getvariable{header}{text}]
\starttext
\setgvariables[header][text=First page]
Page 1
\page
\setgvariables[header][text=Last page]
Page 2
\stoptext
Wolf
Passing variables to Lua wikified
<https://wiki.contextgarden.net/CLD_passing_variables#Variables>.
Jano
On Wed, 25 Nov 2020 at 14:33, Jano Kula wrote:
> Hello Hans!
>
> On Wed, 25 Nov 2020 at 12:33, Hans Hagen wrote:
>
>> Never give up ...
>>
>> \
Hello Hans!
On Wed, 25 Nov 2020 at 12:33, Hans Hagen wrote:
> Never give up ...
>
> \meaning\getvariable
>
Thank you for reminding me of this one.
print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
> "test:something&qu
On 11/25/2020 11:54 AM, Jano Kula wrote:
Hello,
running in circles I have to give up on such an easy thing as passing a
tex variable to lua (knowing everything is stored in lua).
\setvariable{test}{something}{}
\starttext
\getvariable{test}{something}\par
% how to access the variable
Hello,
running in circles I have to give up on such an easy thing as passing a tex
variable to lua (knowing everything is stored in lua).
\setvariable{test}{something}{}
\starttext
\getvariable{test}{something}\par
% how to access the variable on lua end?
\startluacode
-- var =
\stopluacode
**de,**de-de,**de-at,**de-ch] {\hiddentitle
{[Bildtitelseite]}}\stopmodeset }\doifdefined
{hiddentitle}{\CoverPageTitle }
\setupbodyfont [svb]{\scale [width=.35\textwidth ]{\sc
\getvariable {coverpage}{author}}}\vfill \scale [width=\textwidth]...
\setuppapersize[A6]
Would it be
On 10/13/20 6:14 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 13.10.2020 um 17:33:
>> [...]
>> 2. Is there no Lua version of \getvariable{...}{...}?
>
> There is no need because everything is stored in a Lua table.
> [...]
> local argumentlist = d
quot;)}}
{123}{yes}{no}
\stoptext
For compilation, I run the command:
context --purgeall --arguments=fname={abc123} test-file.tex
These things are failing:
1. I don’t know how to get \numbersfname equal to "123". I don’t know
what I’m doing wrong.
2. Is there no Lua ve
> d: \cldcontext{d}\\
> \doifelse{\cldcontext{d:match("\letterpercent d+")}}
> {123}{yes}{no}
> \stoptext
>
> For compilation, I run the command:
>
> context --purgeall --arguments=fname={abc123} test-file.tex
>
> These things are failing:
>
&g
, I run the command:
context --purgeall --arguments=fname={abc123} test-file.tex
These things are failing:
1. I don’t know how to get \numbersfname equal to "123". I don’t know
what I’m doing wrong.
2. Is there no Lua version of \getvariable{...}{...}?
3. I’m trying this on a Linux b
}
c: \cldcontext{c}\\
\doifelse{\cldcontext{c:match("\letterpercent d+")}}
{123}{yes}{no}\\
d: \cldcontext{d}\\
\doifelse{\cldcontext{d:match("\letterpercent d+")}}
{123}{yes}{no}
\stoptext
Which is the Lua equivalent of \getvariable{}{}?
}
\Ort{Altona}
\Ort{Aurich}
\dontleavehmode\page
\placeindex
\stoptext
end lua example
begin tex example
\setvariables
[index]
[Albano={Albano (Provinz Rom)},
%Altona={Altona (Hamburg)},
Aurich={Aurich (Ostfriesland)}]
\define[1]\Ort
{\doifelsevariable{index}{#1}
ent in the ToC like the list
> argument.
>
> > The minimal working example below shows what I'm trying to do.
> >
> > Best wishes and many thanks in advance.
> >
> > James
> >
> >
> \define\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{
but it
won't work when you try to show the argument in the ToC like the list
argument.
The minimal working example below shows what I'm trying to do.
Best wishes and many thanks in advance.
James
\define\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{myvar}{date}\hfill\getvariable{myvar}{ref
\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{myvar}{date}\hfill\getvariable{myvar}{ref}}}
\define\mylist{\getvariable{myvar}{list}---{\bf \getvariable{myvar}{date}}}
\starttext
\completecontent
\setvariables[myvar][
title={What I would like},
date={2020},
ref={Reference No 1},
list
section and access the value of this macro with the
> beforesection-key. You should ensure the content if this temporary macro
> is cleared when your conditional is false.
>
> \setuphead
> [section]
>[beforesection=\getvariable{xml}{beforesection}]
>
> \startxmlsetups
is cleared when your conditional is false.
\setuphead
[section]
[beforesection=\getvariable{xml}{beforesection}]
\startxmlsetups xml:section
\doifelse{\xmlatt{#1}{id}}{\selectedtopic}
{\setvariable{xml}{beforesection}{conditional}}
{\setvariable{xml}{beforesection
]
\setupheadertexts
[{\startframed [headerframed]
[foregroundstyle=bold,background=framewithshadow]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
\stopframed}]
\setupheadertexts
[{\startframed [headerframed]
[align=flushleft
setvariables ...)
Here is one way to define it:
\def\totalpoints{0}
\setvariables
[exam]
[
points=0, % This is important.
set={\edef\totalpoints{\the\numexpr(\totalpoints +
\getvariable{exam}{points})\relax}},
]
\starttext
\setvariables[exam][points=5]
\setvariables[exam][
r,
date=\currentdate]
\starttext
\getvariable{metadata}{author}\par
\getvariable{metadata}{date}
\stoptext
The main point of the command is that you can choose whatever name you
want for the keys to store the values.
Instead a using a list of values to store in a key-value-method you can
also p
> A solution which uses only existing commands in the document.
>
> \startsetups [martin]
> \startlua
> local points = tonumber(\getvariable{martin}{question}) or 0 ;
> points = points * 92 ;
> local answer = 42 ;
> context.setv
t[pagella]
> \setupbodyfont[pagella,12pt]
I would say that the first line isn’t required.
> \setupcolors[state=start]
If I’m not wrong, this is also the default.
> \setupfootertexts[section][]
This might be what you need:
\setupfootertexts[section][\getvariable{document}{metad
isting commands in the document.
>
> \startsetups [martin]
> \startlua
> local points = tonumber(\getvariable{martin}{question}) or 0 ;
>points = points * 92 ;
> local answer = 42 ;
> context.setvariable("martin","points
?
Module: \def etc.
Document/Style: \setvariable(s) because \getvariable works also for
unknown keys.
Should I use a \newdimen for every custom measure that I want to use with
\dimexpr, e.g.
\def\MyWidth{10mm}
or better
\newdimen\MyWidth
\MyWidth=10mm
?
\definemeasure [MyWIdth] [10mm
A solution which uses only existing commands in the document.
\startsetups [martin]
\startlua
local points = tonumber(\getvariable{martin}{question}) or 0 ;
points = points * 92 ;
local answer = 42 ;
context.setvariable("martin","
gt;
> \definecolor[ColorA][0.8(white)]
>
>
> \startsetups [headertext]
>
> \setupheadertexts
> [{\startframed [headerframed]
> [foregroundstyle=bold,background=framewithshadow]
> \getvariable{headertext}{title}
t]
> >
> >\setupheadertexts
> > [{\startframed [headerframed]
> > [foregroundstyle=bold,background=framewithshadow]
> > \getvariable{headertext}{title}
> > n\high{o}\,\getvariable{headertext}{number}
> > \stopframed}]
>
]
\setupheadertexts
[{\startframed [headerframed]
[foregroundstyle=bold,background=framewithshadow]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
\stopframed}]
\setupheadertexts
[{\startframed [headerframed]
[align=flushleft,foregroundstyle
]
[foregroundstyle=bold,background=framewithshadow]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
\stopframed}]
\setupheadertexts
[{\startframed [headerframed]
[align=flushleft,foregroundstyle=]
Lycée LA SALLE, Lille
eaderframed]
> [frame=off,
> height=fit,
> width=fit]
>
> \definecolor[ColorA][0.8(white)]
>
>
> \startsetups [headertext]
>
> \setupheadertexts
> [{\startframed [headerframed]
> [foregroundstyle=bold,background=color,backgr
]
[foregroundstyle=bold,background=color,backgroundcolor=ColorA]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
\stopframed}]
\setupheadertexts
[{\startframed [headerframed]
[align=flushleft,foregroundstyle=]
Lycée LA SALLE, Lille
age number.
It seems, e.g. the following in s-simpleslides-Split.tex
fails to get the "date".
draw
\sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{date}}
I think it is very helpful to see date, title on a slide
so I'd like to know the fix.
Thanks in advance.
Best rega
e.g. the following in s-simpleslides-Split.tex
fails to get the "date".
draw
\sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{date}}
I think it is very helpful to see date, title on a slide
so I'd like to know the fix.
Thanks in advance.
Best regards,
A
or csv file.
\usemodule[letter]
\setuplettersection
[opening]
[alternative=setups]
\startsetups [letter:section:opening]
\doifelse{\getvariable{address}{sex}}{male}
{Dear Sir,}
{Dear Madam,}
\stopsetups
\setvariable{address}{set}{\placeletter}
\starttext
\startlettercontent
t; >[header]
> >[text]
> >[frame=off,
> > topframe=off,
> > bottomframe=on,
> > framecolor=,
> > rulethickness=1pt]
> >
> > \defineframed
> >[headerframed]
> > [frame=off,
> > height
> >[frame=off,
> > topframe=off,
> > bottomframe=on,
> > framecolor=,
> > rulethickness=1pt]
> >
> > \defineframed
> >[headerframed]
> >[frame=off,
> > height=fit,
> > width=fit]
> >
> > \startset
off,
> topframe=off,
> bottomframe=on,
> framecolor=,
> rulethickness=1pt]
>
> \defineframed
>[headerframed]
>[frame=off,
> height=fit,
> width=fit]
>
> \startsetups [headertext]
>
> \setupheadertexts
>[{
> \startfra
,
bottomframe=on,
framecolor=,
rulethickness=1pt]
\defineframed
[headerframed]
[frame=off,
height=fit,
width=fit]
\startsetups [headertext]
\setupheadertexts
[{
\startframed [headerframed] [foregroundstyle=bold]
\getvariable{headertext}{title}
n\high{o
eems like overkill (although in my scripts that I use
for running expeirments with blocks etc., I take this approach), and
maybe there is a simpler way.
You can set dimensions with the measure system
%\definemeasure [TestValue] [20pt]
\starttext
\measure{TestValue}
\stoptext
and other
ethickness=1pt]
\defineframed
[headerframed]
[frame=off,
height=fit,
width=fit]
\startsetups [headertext]
\setupheadertexts
[{
\startframed [headerframed] [foregroundstyle=bold]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{
]
\setupheadertexts
[{
\startframed [headerframed] [foregroundstyle=bold]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
\stopframed
}]
\setupheadertexts
[{
\startframed [headerframed
mframe=on,
> framecolor=,
> rulethickness=1pt]
>
> \defineframed
>[headerframed]
>[frame=off,
> height=fit,
> width=fit]
>
>\startsetups [headertext]
> \setupheadertexts
> [{
> \startframed [headerfr
]
\defineframed
[headerframed]
[frame=off,
height=fit,
width=fit]
\startsetups [headertext]
\setupheadertexts
[{
\startframed [headerframed] [foregroundstyle=bold]
\getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number
pic) ;
label.lft(decimal ymax,ulcorner pic) ;
\stopuseMPgraphic
\unexpanded\def\ContourPlot
{\dosingleempty\doContourPlot}
\def\doContourPlot[#1]%
{\setvariables
[ContourPlot]
[x={0,0},
y={0,0},
w=10cm,
n=1000,
e=1e-2,
#1]%
\ctxlua{userdat
ourPlot[#1]%
{\setvariables[ContourPlot][#1]%
\ctxlua{userdata.contourplot(
function(x,y) return \getvariable{ContourPlot}{function} end,
{\getvariable{ContourPlot}{x}},
{\getvariable{ContourPlot}{y}},
\getvariable{ContourPlot}{n})}%
\useMPgraphic{doublefun::C
t;\externalfigure[MAG][page=\noffigurepages]}
>
> \setlayer
> [whole]
> [x=\dimexpr210mm+\measure{SpineWidth}\relax,
>y=0mm]
> {\externalfigure[MAG][page=1]}
>
> \setlayerframed
> [whole]
> [x=210mm,
>y=20mm]
> [frame=off,
>o
AG]
\externalfigure[MAG][page=\noffigurepages]}
\setlayer
[whole]
[x=\dimexpr210mm+\measure{SpineWidth}\relax,
y=0mm]
{\externalfigure[MAG][page=1]}
\setlayerframed
[whole]
[x=210mm,
y=20mm]
[frame=off,
offset=overlay,
width=\measure{SpineWidth},
align=center]
buffer
% we define what is to be typeset for each day
\define[1]\talksofday{%
\expdoif{\getvariable{talk}{day}}{#1}{%
\starttabulate[|f{\bi}l|p|][before=]%
\NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR
\NC Title
On 1/31/2018 4:40 PM, Rik Kabel wrote:
On 2018-01-31 09:54, Wolfgang Schuster wrote:
Rik Kabel schrieb:
\starttexdefinition doTableRowExpB #SET
\define\A{\getvariable{#SET}{a}}
\define\B{\getvariable{#SET}{b}}
\define\C{\getvariable{#SET}{c}}
\bTR
\expanded{\bTC\A\eTC
On 2018-01-31 09:54, Wolfgang Schuster wrote:
Rik Kabel schrieb:
\starttexdefinition doTableRowExpB #SET
\define\A{\getvariable{#SET}{a}}
\define\B{\getvariable{#SET}{b}}
\define\C{\getvariable{#SET}{c}}
\bTR
\expanded{\bTC\A\eTC}
\expanded{\bTC\B\eTC
Rik Kabel schrieb:
\starttexdefinition doTableRowExpB #SET
\define\A{\getvariable{#SET}{a}}
\define\B{\getvariable{#SET}{b}}
\define\C{\getvariable{#SET}{c}}
\bTR
\expanded{\bTC\A\eTC}
\expanded{\bTC\B\eTC}
\expanded{\bTC\C\eTC}
\eTR
\stoptexdefinition
You
ly via \getvariable, everything works as expected in
simple text and in TABLEs. When I \define a macro to the
\getvariable, that works in simple text, but only the value of the
last iteration appears in the TABLE. The macro definition is saved
and when it is used, that is the value that it has.
So, how
Rik Kabel <mailto:cont...@rik.users.panix.com>
31. Januar 2018 um 03:10
Listers,
I have a problem, and a question on ConTeXt programming efficiency.
In the example below, I have a set of variables. When these are
reference directly via \getvariable, everything works as expected in
On 2018-01-30 21:10, Rik Kabel wrote:
Listers,
I have a problem, and a question on ConTeXt programming efficiency.
In the example below, I have a set of variables. When these are
reference directly via \getvariable, everything works as expected in
simple text and in TABLEs. When I \define
Listers,
I have a problem, and a question on ConTeXt programming efficiency.
In the example below, I have a set of variables. When these are
reference directly via \getvariable, everything works as expected in
simple text and in TABLEs. When I \define a macro to the \getvariable,
that works
with Lua.
>
> \externalfigure[\cldcontext{string.collapsespaces("\getvariable{talk}{picture}")}]
>
Thanks again! That does it.
However, it seems strange that the \externalfigure command does not accept a
space in front of the file name nor after the file extension, while \input is
very to
sttalk
Is there a way to make the \defineseparatedlist command to be more
tolerant for the filename?
No but you can remove the space with Lua.
\externalfigure[\cldcontext{string.collapsespaces("\getvariable{talk}{picture}&qu
>
>
> Thanks Wolfgang! That fixes the issues concerning the entries which are text,
> but now the filename is not understood by the command \maketalk: here is the
> modified code:
>
> %% begin database-command.tex
> \usemodule[database]
>
> \starttext
> \sta
atabase]
\starttext
\startbuffer[pagetalk]
\starttabulate[|f{\bi}l|p|][before=]%
\NC Speaker \EQ
\goto{{\sc
\getvariable{talk}{speakername}}}[fig:\getvariable{talk}{speakername}]
\NC\NR
\NC Title \EQ \getvariable{talk}{title}\NC\NR
\sto
can I change my approach to this problem in order to achieve what
is needed?
Many thanks for any hint.
Best regards: OK
% begin database-command.tex
\usemodule[database]
\starttext
\startbuffer[pagetalk]
\starttabulate[|f{\bi}l|p|][before=]%
\NC Speaker \EQ
\goto{{\sc
\getvariable{talk}{speak
?
Many thanks for any hint.
Best regards: OK
% begin database-command.tex
\usemodule[database]
\starttext
\startbuffer[pagetalk]
\starttabulate[|f{\bi}l|p|][before=]%
\NC Speaker \EQ
\goto{{\sc
\getvariable{talk}{speakername}}}[fig:\getvariable{talk}{speakername
epends 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\authorp
r 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
\defineexpand
1 - 100 of 330 matches
Mail list logo