[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
\getvariable{tugboat}{author}}\par \getvariable{tugboat}{address}\par {\tt\getvariable{tugboat}{email}}\par \startStreszczenia \doifelsebufferempty {abstract} { % no abstract } { \blank[line

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
, 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

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

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

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

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

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

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

[NTG-context] Pass string into text background graphic

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

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

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

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

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

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

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

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

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

Re: [NTG-context] Failing \doifemptyelse

2022-06-24 Thread Willi Egger via ntg-context
setvariables >>>[Test] >>>[Number=] >>> >>> >>> \starttext >>>Value of variable Number before test: \getvariable{Test}{Number} \crlf >>> >>> \doifemptyelse{\getvariable{Test}{Number}} >>>{\dor

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Hans Hagen via ntg-context
test: \getvariable{Test}{Number} \crlf \doifemptyelse{\getvariable{Test}{Number}} {\dorecurse {5} {TEST} } {Nothing defined \par Contents of variable Number: \getvariable{Test

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Hans Hagen via ntg-context
test: \getvariable{Test}{Number} \crlf \doifemptyelse{\getvariable{Test}{Number}} {\dorecurse {5} {TEST} } {Nothing defined \par Contents of variable Number: \getvariable{Test

[NTG-context] Failing \doifemptyelse

2022-06-23 Thread Willi Egger via ntg-context
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

Re: [NTG-context] Simple question

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

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
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 \

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
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

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

Re: [NTG-context] Displaying names in Chicago-Turabian "note" style

2021-12-21 Thread Joey McCollum via ntg-context
horelse}{\currentbtxtag}{\getvariable{btx:sbl}{previousinlinetag}} { \btxlabeltext{sbl:idem} } { \currentbtxciteauthorbyfield } } { \currentbtxciteauthorbyfield } \btxcomma } \stoptexdefinition (3) I haven't implemented support for ibid. tracking (it

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Wolfgang Schuster via ntg-context
\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

Re: [NTG-context] Default values for key-value macros

2021-10-10 Thread Hans Hagen via ntg-context
,     }     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}}  

[NTG-context] Default values for key-value macros

2021-10-10 Thread noib3 via ntg-context
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

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Denis Maier via ntg-context
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

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Denis Maier via ntg-context
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

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-20 Thread Denis Maier via ntg-context
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

[NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-20 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Adjustment for header and footer

2021-08-22 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
]}}] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=TextStyle,align=middle] \getvariable{headertext}{location}\\ Spécialité mathématiques\\ \getvariable{headertext}{title} n\high{\tfxx

Re: [NTG-context] columnsets messed up

2021-07-04 Thread Henning Hraban Ramm
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

Re: [NTG-context] [passing parameter into MPpage]

2021-02-12 Thread Hans Hagen
); 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

Re: [NTG-context] parsing multi-valued parameters

2021-02-12 Thread Werner Hennrich
. 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

Re: [NTG-context] parsing multi-valued parameters

2021-02-12 Thread Hans Hagen
[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

Re: [NTG-context] \doassign variable - updates not picked up

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

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

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

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

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

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

[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] messages on undefined control sequences

2020-11-06 Thread Pablo Rodriguez
**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

Re: [NTG-context] need help comparing strings

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

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Wolfgang Schuster
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

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Aditya Mahajan
> 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

[NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
, 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

[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{}{}?

Re: [NTG-context] consistent index entries

2020-08-01 Thread Wolfgang Schuster
} \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}

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
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{

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread Wolfgang Schuster
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

[NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
\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

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

2020-04-20 Thread Pablo Rodriguez
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

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

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

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

2019-10-22 Thread Fabrice Couvreur
] \setupheadertexts [{\startframed [headerframed] [foregroundstyle=bold,background=framewithshadow] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number} \stopframed}] \setupheadertexts [{\startframed [headerframed] [align=flushleft

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

2019-10-08 Thread Aditya Mahajan
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][

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

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

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

2019-10-05 Thread Rudolf Bahr
> 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

Re: [NTG-context] Custom Footertext

2019-09-30 Thread Pablo Rodriguez
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

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

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

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

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

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

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

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

2019-09-09 Thread Hans Hagen
gt; >  \definecolor[ColorA][0.8(white)] > > >  \startsetups [headertext] > >    \setupheadertexts >      [{\startframed [headerframed] >      [foregroundstyle=bold,background=framewithshadow] >      \getvariable{headertext}{title}

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

2019-09-09 Thread Fabrice Couvreur
t] > > > >\setupheadertexts > > [{\startframed [headerframed] > > [foregroundstyle=bold,background=framewithshadow] > > \getvariable{headertext}{title} > > n\high{o}\,\getvariable{headertext}{number} > > \stopframed}] >

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

2019-08-28 Thread Aditya Mahajan
] \setupheadertexts [{\startframed [headerframed] [foregroundstyle=bold,background=framewithshadow] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number} \stopframed}] \setupheadertexts [{\startframed [headerframed] [align=flushleft,foregroundstyle

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

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

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

2019-08-27 Thread Mikael P. Sundqvist
eaderframed] > [frame=off, > height=fit, > width=fit] > > \definecolor[ColorA][0.8(white)] > > > \startsetups [headertext] > > \setupheadertexts > [{\startframed [headerframed] > [foregroundstyle=bold,background=color,backgr

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

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

[NTG-context] about SimpleSlides

2019-07-30 Thread Atsuhito Kohda
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

[NTG-context] about SimpleSlide

2019-07-29 Thread Atsuhito Kohda
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

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; >[header] > >[text] > >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > > [frame=off, > > height

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

2019-02-19 Thread Fabrice Couvreur
> >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \startset

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

2019-02-18 Thread Otared Kavian
off, > topframe=off, > bottomframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > > \startsetups [headertext] > > \setupheadertexts >[{ > \startfra

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

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

Re: [NTG-context] hysteresis with content in blocks (one strike and you can be out forever)

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

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

2019-02-04 Thread Fabrice Couvreur
ethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{

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

2019-01-27 Thread Hans Hagen
]     \setupheadertexts     [{     \startframed [headerframed] [foregroundstyle=bold]     \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number}     \stopframed     }]     \setupheadertexts     [{     \startframed [headerframed

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

2019-01-27 Thread Otared Kavian
mframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > >\startsetups [headertext] > \setupheadertexts > [{ > \startframed [headerfr

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

2019-01-27 Thread Fabrice Couvreur
] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-09 Thread Alan Braslau
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

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
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

Re: [NTG-context] Question to covers

2018-07-21 Thread Henning Hraban Ramm
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

Re: [NTG-context] Question to covers

2018-07-21 Thread Wolfgang Schuster
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]

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

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

Re: [NTG-context] Expansion help needed, getvariable and TABLE

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

Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-31 Thread Rik Kabel
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

Re: [NTG-context] Expansion help needed, getvariable and TABLE

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

Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-31 Thread Rik Kabel
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

Re: [NTG-context] Expansion help needed, getvariable and TABLE

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

Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Rik Kabel
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

[NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Rik Kabel
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

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

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

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

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

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

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

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

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

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

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

[NTG-context] \setvariables and database module

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

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

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

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

2018-01-27 Thread Otared Kavian
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   2   3   4   >