[NTG-context] Re: serial letters

2024-11-11 Thread Robert via ntg-context
\doifelse{\getvariable{address}{sex}}{male} >> {Dear Sir,} >> {Dear Madam,} >> \stopsetups >> \setvariable{address}{set}{\placeletter} >> \starttext >> \startlettercontent >> \unknown >> \stoplettercontent >> \set

[NTG-context] Re: serial letters

2024-11-11 Thread juh+ntg-context--- via ntg-context
  [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

[NTG-context] Fwd: expansion and variables

2024-07-17 Thread Hans Hagen
\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}}{%

[NTG-context] expansion and variables

2024-07-17 Thread Henning Hraban Ramm
, 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

[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
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 >

[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Bruce Horrocks
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

[NTG-context] Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
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

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
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

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
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

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
}{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}{

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
}{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

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
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

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
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

Re: [NTG-context] Simple question

2022-05-10 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-11 Thread Hans Hagen via ntg-context
” 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

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Aditya Mahajan via ntg-context
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{

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
}] \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

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Hans Hagen
                    \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

[NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
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

Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Hans Hagen
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

[NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
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

[NTG-context] Lua equivalent of \getvariable{}{}

2020-10-11 Thread Pablo Rodriguez
} 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

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
xml:section > > \doifelse{\xmlatt{#1}{id}}{\selectedtopic} > {\setvariable{xml}{beforesection}{conditional}} > {\setvariable{xml}{beforesection}{}} > > \startsection[title={\xmlatt{#1}{id}}] > \xmlflush{#1} > \stopsection > >

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Wolfgang Schuster
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

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
}] [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

Re: [NTG-context] passing variables/data between context and lua

2019-10-06 Thread Wolfgang Schuster
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

Re: [NTG-context] passing variables/data between context and lua

2019-10-05 Thread Rudolf Bahr
ariable("martin","points",points) ; > context.setvariable("martin","answer",answer) ; > \stoplua > \stopsetups > > \setvariable{martin}{set}{\directsetup{martin}} > > \starttext > > \setvariables [martin] [question=4

Re: [NTG-context] defs, variables and dimensions (was: passing variables/data between context and lua)

2019-09-29 Thread Martin Althoff
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

Re: [NTG-context] passing variables/data between context and lua

2019-09-29 Thread Martin Althoff
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

Re: [NTG-context] defs, variables and dimensions

2019-09-28 Thread Wolfgang Schuster
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

Re: [NTG-context] defs, variables and dimensions (was: passing variables/data between context and lua)

2019-09-27 Thread Henning Hraban Ramm
> 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

Re: [NTG-context] passing variables/data between context and lua

2019-09-27 Thread Wolfgang Schuster
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

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Hans Hagen
>       \stopframed}] > >      [{\startframed [headerframed] >          [align=flushright,foregroundstyle=] > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] >     

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
d] > > [align=flushright,foregroundstyle=] > > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > > \stopframed}] > > > > \stopsetups > > > > \setvariable{headertext}{set

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
}] \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

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
\\ \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

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
}] \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

Re: [NTG-context] serial letters

2019-04-09 Thread Wolfgang Schuster
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

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
t; \stopframed > > }] > > [{ > > \startframed [headerframed] > > [align=flushright,foregroundstyle=\ssx] > >Lycée LA SALLE\\ > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
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

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > \stopframed > }] > > \stopsetups > > > \setvariable{headertext}{set}{\directsetup{headertext}} > \setvariables > [headertext] > [title={Devoir

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
}] [{ \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

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
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{

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
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

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
ée LA SALLE\\ > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > \stopframed > }] > > \stopsetups > > \setvariable{headertext}{set}{\directsetup{headertext}} > > \setvar

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
}] [{ \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

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
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

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
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

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
=no] \externalfigure[\getvariable{talk}{picture}] \stopplacefigure \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \define[3]\maketalk{% \setvariables[talk]% [speakername={#1}, tit

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Wolfgang Schuster
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

[NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
}] \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

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Wolfgang Schuster
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

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
efigure[here][]{} {\externalfigure[\authorpicture]} \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \setvariables[talk]% [speakername={Hacker}, title={Up to date hacking}, picture=hacker.jpg ]

Re: [NTG-context] Registers and getparameters

2018-01-23 Thread Hans Hagen
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:

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
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

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
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

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
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

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
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

Re: [NTG-context] Access to Intermediate Document after Pre-processing

2016-08-08 Thread Hans Hagen
) \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

Re: [NTG-context] Access to Intermediate Document after Pre-processing

2016-08-08 Thread Hans Hagen
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

Re: [NTG-context] Access to Intermediate Document after Pre-processing

2016-08-03 Thread Henri Menke
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?

[NTG-context] Access to Intermediate Document after Pre-processing

2016-08-03 Thread Malte Stien
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

Re: [NTG-context] which is the best/right element for elements in cover and title pages?

2016-01-26 Thread Wolfgang Schuster
lepage}{title} \stopfont \stopmakeup \stopsetups \setvariable{titlepage}{set}{\texsetup{titlepage}} \starttext \setvariables[titlepage][title=Titlepages for dummies] \stoptext Wolfgang ___ If your question

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread DesdeChaves
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

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread Wolfgang Schuster
{\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} \

Re: [NTG-context] \processcommalist and load values into macros.

2013-06-04 Thread Jaroslav Hajtmar
} \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

Re: [NTG-context] \processcommalist and load values into macros.

2013-06-04 Thread Wolfgang Schuster
\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

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
? %\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

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Wolfgang Schuster
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]] >

[NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
[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

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wagner Macedo
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

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wolfgang Schuster
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

[NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread 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 tried some combinations, based on manual but I couldn't succeed. The code be

Re: [NTG-context] Indenting in footnotes

2011-08-15 Thread Cecil Westerhof
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}} >

Re: [NTG-context] Indenting in footnotes

2011-08-15 Thread Wolfgang Schuster
\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

[NTG-context] [PATCH] small corrections for the ConTeXt-correspondence manual

2010-08-15 Thread Paul Menzel
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

Re: [NTG-context] ntRe: Table head

2010-06-14 Thread Wolfgang Schuster
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

Re: [NTG-context] status of minimals

2009-09-12 Thread Mojca Miklavec
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: > >

Re: [NTG-context] status of minimals

2009-09-12 Thread Hans Hagen
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

Re: [NTG-context] setvalue/setvariable

2009-02-05 Thread Wolfgang Schuster
}}} \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

[NTG-context] setvalue/setvariable (was: Re: Remove leading spaces)

2009-02-05 Thread Peter Münster
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

Re: [NTG-context] setvalue/setvariable

2009-02-05 Thread Wolfgang Schuster
}}} \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

[NTG-context] Custom Section / Table of contents inside a table

2008-08-08 Thread Demian Gutierrez
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

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Peter Rolf
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

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Hans Hagen
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

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Aditya Mahajan
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

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Elliot Clifton
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

Re: [NTG-context] Identifying context files

2006-02-03 Thread Hans Hagen
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

Re[2]: [NTG-context] High level user macro (howto?)

2004-06-28 Thread Giuseppe Bilotta
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

Re: [NTG-context] High level user macro (howto?)

2004-06-28 Thread Hans Hagen
Giuseppe Bilotta wrote: What is the difference between setvariable and getparameters? the second one does interface translations Hans - Hans Hagen | PRAGMA ADE Ridderstraat

Re[2]: [NTG-context] High level user macro (howto?)

2004-06-28 Thread Giuseppe Bilotta
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