\doifelse{\getvariable{address}{sex}}{male}
>> {Dear Sir,}
>> {Dear Madam,}
>> \stopsetups
>> \setvariable{address}{set}{\placeletter}
>> \starttext
>> \startlettercontent
>> \unknown
>> \stoplettercontent
>> \set
[opening]
[alternative=setups]
\startsetups [letter:section:opening]
\doifelse{\getvariable{address}{sex}}{male}
{Dear Sir,}
{Dear Madam,}
\stopsetups
\setvariable{address}{set}{\placeletter}
\starttext
\startlettercontent
\unknown
\stoplettercontent
\setvariables
[address
\setvariable{Thing}{Status}{1}
\setvariable{Thing}{PreviousStatus}{0}
\define[1]\startThing{
\setvariable{Thing}{PreviousStatus}{\getvariable{Thing}{Status}}
\setvariable{Thing}{Status}{#1}
<<< %
\doifnot{\getvariable{Thing}{Status}}{\getvariable{Thing}{PreviousStatus}}{%
, I get
the output every time.
Please help…
Hraban
\setvariable{Thing}{Status}{1}
\setvariable{Thing}{PreviousStatus}{0}
\define[1]\startThing{
\setvariable{Thing}{PreviousStatus}{\getvariable{Thing}{Status}}
\setvariable{Thing}{Status}{#1}
<<< %
\doifnot{\getvariable{Thin
tions.com> wrote:
> >
> > Hi,
> >
> > I am trying to use the Pocket Diary module to create a photo calendar as
> described in the Calendar Examples. The examples work fine. By default
> weeks begin on Monday. Does anyone know how to specify that weeks begin on
>
cify that weeks begin on Sunday?
> I have searched through all the setvariable assignments, but nothing seems
> applicable.
>
> I have attached an example file so you needn't retrieve all the examples. Any
> help would be appreciated.
Your example didn't work for me - I
w to specify that
weeks begin on Sunday? I have searched through all the setvariable
assignments, but nothing seems applicable.
I have attached an example file so you needn't retrieve all the examples.
Any help would be appreciated.
--
With kind regards,
Michael
<http://literatesolut
ocument}{*}{-}
\xmlsetsetup{\xmldocument}{html|body}{xml:*}
\xmlsetsetup{\xmldocument}{div}{xml:*}\stopxmlsetups
\xmlregistersetup{xml:xhtml}
\startxmlsetups xml:html
\xmlflush{#1}\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}\stopxmlsetups
\startxmlsetups xml:div
\setvariab
p{\xmldocument}{html|body}{xml:*}
\xmlsetsetup{\xmldocument}{div}{xml:*}\stopxmlsetups
\xmlregistersetup{xml:xhtml}
\startxmlsetups xml:html
\xmlflush{#1}\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}\stopxmlsetups
\startxmlsetups xml:div
\setvariable{div}{\xmlatt{#1}{class}}{#1}
\start[\xmlatt
}{xml:*}
\xmlsetsetup{\xmldocument}{div}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:xhtml}
\startxmlsetups xml:html
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:div
\setvariable{div}{\xmlatt{#1}{class}}{#1}
\start[\xmlatt{#1}{
}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:xhtml}
\startxmlsetups xml:html
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:div
\setvariable{div}{\xmlatt{#1}{class}}{#1}
\start[\xmlatt{#1}{class}]\xmlflush{#1}\stop
\stopxmls
xhtml}
\startxmlsetups xml:html
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:div
\setvariable{div}{\xmlatt{#1}{class}}{#1}
\start[\xmlatt{#1}{class}]\xmlflush{#1}\stop
\stopxmlsetups
\definestartstop[concurrent][
before={TITLE: \x
On 8/10/2023 9:10 AM, Thangalin wrote:
Environments for the DIV element gets translated using:
\startxmlsetups xml:div
\setvariable {div} {\xmlatt{#1}{class}} {#1}
\start[\xmlatt{#1}{class}]\xmlflush{#1}\stop
\stopxmlsetups
\setMPtext{1}{\usermap[concurrent.title]}
\setMPtext{2
variable 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
” 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{
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}}
That was the
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
}]
\stopsetups
\setvariable{headertext}{set}{\directsetup{headertext}}
\setvariables
[headertext]
[title={Devoir maison},
number={2},
day={22},
month={08},
year={2021},
location={Terminale},
time={2 heures}]
\starttext
\samplefile{lorem}
\stoptext
\vbox\bgroup% open vbox (\par needed)
}
\def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox
\setvariable{Test}{Height}{\the\ht0}%
}%
\startluacode
ctx = context
function TestBox()
ctx("TeX Box: ") ctx.copy(false
needed)
}
\def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox
\setvariable{Test}{Height}{\the\ht0}%
}%
\startluacode
ctx = context
function TestBox()
ctx("TeX Box: ")ctx.copy(false,0)ctx.par()
ctx("TeX Getvar: ") c
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 on
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
}
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{}{}? I g
xml:section
>
> \doifelse{\xmlatt{#1}{id}}{\selectedtopic}
> {\setvariable{xml}{beforesection}{conditional}}
> {\setvariable{xml}{beforesection}{}}
>
> \startsection[title={\xmlatt{#1}{id}}]
> \xmlflush{#1}
> \stopsection
>
>
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
}] [D,month,{ },year]
\stopframed}]
\stopsetups
\setvariable{headertext}{set}{\directsetup{headertext}}
\setvariables
[headertext]
[title={Corrigé du devoir maison},
number={1},
day={22},
month={10},
year={2019},
location={Secondes GTE-GTF},
time
Rudolf Bahr schrieb am 06.10.2019 um 07:11:
Hello Wolfgang,
what exactly does the command
"\setvariable{martin}{set}{\directsetup{martin}}"?
Let's start with a simple example where I set a values with the
\setvariables command.
\setvariables
[metadata]
[author=Rudol
ariable("martin","points",points) ;
> context.setvariable("martin","answer",answer) ;
> \stoplua
> \stopsetups
>
> \setvariable{martin}{set}{\directsetup{martin}}
>
> \starttext
>
> \setvariables [martin] [question=4
er to
write calculations (electro physics and maths) in Lua, I then want to pass the
results out to Context.
Greetings, Martin
> > > \define\question{44}
> > \defineexpandable\question{44}
>
> Would it make sense to use a counter or some other TeX construct?
>
> Is
wered too:
https://mailman.ntg.nl/pipermail/ntg-context/2012/064326.html
That helps too. However I can find little documentation on the \setvariable/s
commands.
I'll play around with the solution to understand it better.
> \defineexpandable\question{44}
> A solution which us
Henning Hraban Ramm schrieb am 28.09.2019 um 08:53:
Am 2019-09-27 um 14:58 schrieb Wolfgang Schuster
:
\define\question{44}
\defineexpandable\question{44}
Would it make sense to use a counter or some other TeX construct?
Is it better to use \setvariable(s) for simple values than any \def
> Am 2019-09-27 um 14:58 schrieb Wolfgang Schuster
> :
>
>> \define\question{44}
> \defineexpandable\question{44}
Would it make sense to use a counter or some other TeX construct?
Is it better to use \setvariable(s) for simple values than any \def?
Should I use a \newdime
uot;,"points",points) ;
context.setvariable("martin","answer",answer) ;
\stoplua
\stopsetups
\setvariable{martin}{set}{\directsetup{martin}}
\starttext
\setvariables [martin] [question=44]
Points: \getvariable{martin}{points}
The answer is
> \stopframed}]
>
> [{\startframed [headerframed]
> [align=flushright,foregroundstyle=]
>
>
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
>
d]
> > [align=flushright,foregroundstyle=]
> >
> >
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> > \stopframed}]
> >
> > \stopsetups
> >
> > \setvariable{headertext}{set
}]
\stopsetups
\setvariable{headertext}{set}{\directsetup{headertext}}
\startuseMPgraphic{framewithshadow}
path p;
p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle;
fill p shifted (2,-2);
fill p withcolor 0.8white;
draw p;
setbounds currentpicture to p;
\stopuseMPgraphic
\\
\getvariable{headertext}{location}
\stopframed}]
[{\startframed [headerframed]
[align=flushright,foregroundstyle=]
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed}]
\stopsetups
\setvariable
}]
\stopsetups
\setvariable{headertext}{set}{\directsetup{headertext}}
\startuseMPgraphic{framewithshadow}
path p;
p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle;
fill p shifted (2,-2);
fill p withcolor 0.8white;
draw p;
setbounds currentpicture to p
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; \stopframed
> > }]
> > [{
> > \startframed [headerframed]
> > [align=flushright,foregroundstyle=\ssx]
> >Lycée LA SALLE\\
> >
> > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{
t; > }]
> > [{
> > \startframed [headerframed]
> [align=flushright,foregroundstyle=\ssx]
> >Lycée LA SALLE\\
> >
>
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> > \stopframe
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> \stopframed
> }]
>
> \stopsetups
>
>
> \setvariable{headertext}{set}{\directsetup{headertext}}
> \setvariables
> [headertext]
> [title={Devoir
}]
[{
\startframed [headerframed]
[align=flushright,foregroundstyle=\ssx]
Lycée LA SALLE\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]
\stopsetups
\setvariable{headertext}{set}{\directsetup
stopframed
}]
[{
\startframed [headerframed]
[align=flushright,foregroundstyle=\ssx]
Lycée LA SALLE\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]
\stopsetups
\setvariable{
LA SALLE\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]
\stopsetups
\setvariable{headertext}{set}{\directsetup{headertext}}
\setvariables
[headertext]
[title
ée LA SALLE\\
>
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> \stopframed
> }]
>
> \stopsetups
>
> \setvariable{headertext}{set}{\directsetup{headertext}}
>
> \setvar
}]
[{
\startframed [headerframed]
[align=flushright,foregroundstyle=\ssx]
Lycée LA SALLE\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]
\stopsetups
\setvariable{headertext}{set
ining the data according to some key?
Think different ... see end.
Best regards: OK
%% begin setvariable-getbuffer.tex
\startbuffer[talkdata]
%%
\setvariables[talk]%
[speakername={Gauss},
title={Remarks on Number Theory},
time
e=]%
> \NC Speaker \EQ
> \goto{{\sc
> \getvariable{talk}{speakername}}}[fig:\getvariable{talk}{speakername}]
>\NC\NR
> \NC Title \EQ \getvariable{talk}{title}\NC\NR
> \stoptabulate
> \startplacefigure[number=no]
> \e
=no]
\externalfigure[\getvariable{talk}{picture}]
\stopplacefigure
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\define[3]\maketalk{%
\setvariables[talk]%
[speakername={#1},
tit
ername}}}[fig:\getvariable{talk}{speakername}]
\NC\NR
\NC Title \EQ \getvariable{talk}{title} \NC\NR
\stoptabulate
\startplacefigure[number=no]
\externalfigure[\getvariable{talk}{picture}]
\stopplacefigure
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\define[3]\maketalk{%
\setvar
}]
\NC\NR
\NC Title \EQ \getvariable{talk}{title}\NC\NR
\stoptabulate
\startplacefigure[number=no]
\externalfigure[\getvariable{talk}{picture}]
\stopplacefigure
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\define[3
figure[location=here]
\externalfigure[\getvariable{talk}{picture}]
\stopplacefigure
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\setvariables[talk]%
[speakername={Hacker},
title={Up to date hacking},
picture=hacker.jpg
]
You’re missing a coma after “picture=hacker.jpg” which r
efigure[here][]{}
{\externalfigure[\authorpicture]}
\page
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\setvariables[talk]%
[speakername={Hacker},
title={Up to date hacking},
picture=hacker.jpg
]
e} \NC\NR
\NC Room \EQ \getvariable{talk}{room} \NC\NR
\HL
\stoptabulate
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\showframe[text][text]
\starttext
\setvariables
[talk]
[speakername={Gauss},
title={Remarks on Number Theory},
time={10:
m> 22. Januar 2018 um 21:39
>> Hi Wolfgang,
>>
>> Thank you very much for your reply and your wise advice to use the
>> \setvariable mechanism. It is indeed much more convenient to use for what I
>> intend to do.
>>
>> The only remaining problem is tha
Otared Kavian <mailto:ota...@gmail.com>
22. Januar 2018 um 21:39
Hi Wolfgang,
Thank you very much for your reply and your wise advice to use the
\setvariable mechanism. It is indeed much more convenient to use for
what I intend to do.
The only remaining problem is that when several
Hi Wolfgang,
Thank you very much for your reply and your wise advice to use the \setvariable
mechanism. It is indeed much more convenient to use for what I intend to do.
The only remaining problem is that when several talks are included in my file
(in the following example there three of them
e{talk}{speakername} \NC\NR
\NC Title \EQ \getvariable{talk}{title} \NC\NR
\NC Time\EQ \getvariable{talk}{time}\NC\NR
\NC Room\EQ \getvariable{talk}{room}\NC\NR
\HL
\stoptabulate
\stopbuffer
\setvariable{talk}{set}{\getbuffer[pagetalk]}
\showframe[text
)
\setvariable and \getvariable (to reuse some text in different places)
So, does ConTeXt run some sort of pre-processing step that processes all of the
above and which results in an intermediate document that is then type-set? And
is it possible to only run this pre-processing step and get access to
paragraphs depending on some
conditions)
\setvariable and \getvariable (to reuse some text in different places)
are you sure that there are no mechanism already built in context that
can be of help? (of just lua)
So, does ConTeXt run some sort of pre-processing step that processes all of the
phs depending on some
> conditions)
> \setvariable and \getvariable (to reuse some text in different places)
>
> So, does ConTeXt run some sort of pre-processing step that processes all of
> the above and which results in an intermediate document that is then
> type-set?
Hi all,
I am working with a reasonably complex document structure, where I make heavy
use of the following constructs
\input (to import a number of source files)
\if and \newif (to switch between different paragraphs depending on some
conditions)
\setvariable and \getvariable (to reuse some
lepage}{title}
\stopfont
\stopmakeup
\stopsetups
\setvariable{titlepage}{set}{\texsetup{titlepage}}
\starttext
\setvariables[titlepage][title=Titlepages for dummies]
\stoptext
Wolfgang
___
If your question
middle,location=outer]
>
> \definelayer[infolayer][width=\framedwidth,height=\framedheight]
>
> \startsetups[infolayer:place]
>
> \setlayer[infolayer][preset=middleright]{\rotate{\getvariable{infotext}{points}}}
> \stopsetups
>
>
> \defineframed[infobox][frame=off,wid
{\rotate{\getvariable{infotext}{points}}}
\stopsetups
\defineframed[infobox][frame=off,width=max,background=infolayer,setups=infolayer:place]
\define[2]\Info
{\par
\setvariable{infotext}{points}{#2}%
\infobox[height=#1]{}}
\starttext
\startitemize[n]
\starthead{Question 1}
\
} \NC\NR
\NC STREET\EQ \getvariable{test}{street}\NC\NR
\NC POSTCODE \EQ \getvariable{test}{postcode} \NC\NR
\stoptabulate
\page
\stopsetups
\setvariable{test}{set}{\setups{test}}
\starttext
\setvariables
[test]
[firstname=John,
surname=Smith,
c
\EQ \getvariable{test}{postcode} \NC\NR
\stoptabulate
\page
\stopsetups
\setvariable{test}{set}{\setups{test}}
\starttext
\setvariables
[test]
[firstname=John,
surname=Smith,
city=Prague,
street=Václavské náměstí 20,
postcode=11500]
\setvariables
[test]
[firstname=P
?
%\setvariable[myotherspace][\getallvariablesfrom[myfirstnamespace]]
\stoptext
There is no way to access the list with the parameters from \setvariables but
the question why you
want a command for each variable. In MkIV direct use of values in the form
\myfirstnamespaceid
are replaced
ce]]
>
> % Now would be defined macros \myfirstnamespaceid (1) and
> \myfirstnamespacevalue (text)
>
>
> % Assign all the variables of [myfirstnamespace] namespace to [myotherspace]
> namespace?
> %\setvariable[myotherspace][\getallvariablesfrom[myfirstnamespace]]
>
[myotherspace] namespace?
%\setvariable[myotherspace][\getallvariablesfrom[myfirstnamespace]]
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
w to TeX world. This is my first message to list. I
> hope you understand me, English isn't my mother language.
>
> I'm trying to use a variable set by \setvariable in Lua. I tried some
> combinations, based on manual but I couldn't succeed. The code below
> exemplifi
Am 05.01.2012 um 15:49 schrieb Wagner Macedo:
> Hello,
>
> I'm relatively quite new to TeX world. This is my first message to list. I
> hope you understand me, English isn't my mother language.
>
> I'm trying to use a variable set by \setvariable in Lua. I tri
Hello,
I'm relatively quite new to TeX world. This is my first message to list. I
hope you understand me, English isn't my mother language.
I'm trying to use a variable set by \setvariable in Lua. I tried some
combinations, based on manual but I couldn't succeed. The code be
e:a]
> Note A
> \stopbuffer
>
> \startsetups[footnote:b]
> Note B
> \stopsetups
>
> %\setvariables[footnote][c={Note C}]
> \setvariable{footnote}{c}{Note C}
>
> \starttext
>
> A\footnote{\getbuffer[footnote:a]}
>
> B\footnote{\texsetup{footnote:b}}
>
\startbuffer[footnote:a]
Note A
\stopbuffer
\startsetups[footnote:b]
Note B
\stopsetups
%\setvariables[footnote][c={Note C}]
\setvariable{footnote}{c}{Note C}
\starttext
A\footnote{\getbuffer[footnote:a]}
B\footnote{\texsetup{footnote:b}}
C\footnote{\getvariable{footnote}{c}}
\stoptext
You can
pletter}.
\setup[setupletter:value]\flushatnextpar{\index{\tex{setupletter}}}
The first command \type{\setlettervalue} takes two commands like \type{\setvalue} or
-\type{\setvariable} and could be used like:
+\type{\setvariable}.
\starttyping
\setlettervalue{firstname} {Mike}
\setlettervalue{fam
Am 14.06.10 15:46, schrieb Vyatcheslav Yatskovsky:
Wolfgang, thank you very much!
But after all the struggle I see ugly bug. Table number is increased
after every page split! %)
Minimal example attached (0.tex)
Dunno but you can replace the texts (\sps etc.) with the \setvariable(s
ong with luatex formats (if I
>> remember correctly due to seemingly different paths).
>>
>> Hans, would it be possible to generate metafun format on the fly, the
>> same way as luatex format? That would be the best solution.
>
> in tex.rb patch aroun dline 678:
>
>
in tex.rb patch aroun dline 678:
else
report("unable to make format due to lack of permissions")
texformatpath = ''
setvariable('error','no permissions to write')
end
if
}}}
\setvalue{myfunction:1}{\medspace dog }
\setvalue{myfunction:2}{\medspace cat }
\setvalue{myfunction:default}{\ldots}
I'm working now a lot with \setvariable and \getvariable. What are
the
advantages/disadvantages of set/get-value over set/get-variable?
It's more a style dec
tvalue{myfunction:1}{\medspace dog }
> \setvalue{myfunction:2}{\medspace cat }
> \setvalue{myfunction:default}{\ldots}
Hello,
I'm working now a lot with \setvariable and \getvariable. What are the
advantages/disadvantages of set/get-value over set/get-variable?
Cheers, Peter
--
Contact
}}}
\setvalue{myfunction:1}{\medspace dog }
\setvalue{myfunction:2}{\medspace cat }
\setvalue{myfunction:default}{\ldots}
Hello,
I'm working now a lot with \setvariable and \getvariable. What are the
advantages/disadvantages of set/get-value over set/get-variable?
It's more a style dec
in one of the
table fields when the author forgets to fill a row when using the
template. I've tried a lot of combinations of \setvariable, \setvalue,
and several \doifSOMETHING, but at this point it only works if the
author omits the \bNombreCampoGUI \eNombreCampoGUI pair, but if he
puts the
Elliot Clifton schrieb:
> Hi Peter,
>
> Thanks for your reply. I think I may have misunderstood the variable
> section on the wiki. I been using \setvariable to both declare and
> assign variables from my component files. When I should have been
> declaring them in the envi
Aditya Mahajan wrote:
> On Sun, 27 May 2007, Elliot Clifton wrote:
>
>
>> Hi Peter,
>>
>> Thanks for your reply. I think I may have misunderstood the variable
>> section on the wiki. I been using \setvariable to both declare and
>> assign variables from
On Sun, 27 May 2007, Elliot Clifton wrote:
> Hi Peter,
>
> Thanks for your reply. I think I may have misunderstood the variable
> section on the wiki. I been using \setvariable to both declare and
> assign variables from my component files. When I should have been
> dec
Hi Peter,
Thanks for your reply. I think I may have misunderstood the variable
section on the wiki. I been using \setvariable to both declare and
assign variables from my component files. When I should have been
declaring them in the environment file first, right?
\setvariable[namespace][key
antexcontent(filename)
if FileTest.file?(filename) and tex = File.open(filename) then
while str = tex.gets do
case str.chomp
when /^\%/o then
# next
when
/\\(starttekst|stoptekst|startonderdeel|startd
Monday, June 28, 2004 Hans Hagen wrote:
> Giuseppe Bilotta wrote:
>>What is the difference between setvariable and getparameters?
>>
>>
> the second one does interface translations
Sorry, I meant rawgetparameters
--
Gi
Giuseppe Bilotta wrote:
What is the difference between setvariable and getparameters?
the second one does interface translations
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat
Monday, June 28, 2004 Hans Hagen wrote:
> There is
> \setvariables [yournamespace] [yourvar=yourval]
> which operates independent of the language interface
> \getvariable{yournamespace}{yourvar}
> can be used to pick up a var
What is the difference between setvariable an
93 matches
Mail list logo