Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
hould be able to copy and adapt to your needs. There are lot of things which can be improved in your example. 1. Pass the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct 2. Use \setvariables or \setupdocument to set the document title, revision etc. 3. Use \startsectionblockenvironment to move

Re: [NTG-context] consistent index entries

2020-08-01 Thread Wolfgang Schuster
ot;Altona (Hamburg)", ["Aurich"] = "Aurich (Ostfriesland)" } function userdata.index(name) local indexentry = userdata.lookup[name] or name context.index(indexentry) end \stopluacode \define[1]\Ort{\ctxlua{userdata.index("#1")}} \starttext \Ort{Albano

[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

[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-08 Thread Rudolf Bahr
On Tue, Oct 08, 2019 at 08:55:30AM -0400, Aditya Mahajan wrote: > So, everytime \setvariables is call, the value of the `set` key is executed. Hello Aditya, this is the key sentence to understand better what "reset" and "set" are good for! I had to read your explana

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

2019-10-08 Thread Aditya Mahajan
"reset" key is used before the values in \setvariables are stored while "set" is used after the values are stored. Hello Wolfgang, thank you very much for your detailed answer and your two examples! Concerning the two keys with a special meaning, "reset" and "

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

2019-10-08 Thread Rudolf Bahr
On Sun, Oct 06, 2019 at 10:44:12PM +0200, Wolfgang Schuster wrote: > While it is true that you're free to choose the name for the keys there are > two keys with a special meaning, these two keys are "reset" and "set". The > value of the "reset" key is

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=Rudolf Bah

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] passing variables/data between context and lua

2019-09-29 Thread Martin Althoff
",points) ; > context.setvariable("martin","answer",answer) ; > \stoplua > \stopsetups > > \setvariable{martin}{set}{\directsetup{martin}} > > \starttext > > \setvariables [martin] [question=44] > > Points: \getva

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

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

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

2019-09-09 Thread Hans Hagen
> fill p shifted (2,-2); > fill p withcolor 0.8white; > draw p; > setbounds currentpicture to p; > \stopuseMPgraphic > > \defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}] > > \starttext > \setvariables >   [headert

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

2019-09-09 Thread Fabrice Couvreur
}{\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;

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

2019-08-28 Thread Aditya Mahajan
\defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}] \starttext \setvariables [headertext] [title={Devoir maison}, number={6}, day={02}, month={09}, year={2019}, location={Seconde B}, time={}] \input knuth \stoptext There was a bug with the \date macro which I

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

2019-08-28 Thread Fabrice Couvreur
[framewithshadow][\useMPgraphic{framewithshadow}] \starttext \setvariables [headertext] [title={Devoir maison}, number={6}, day={02}, month={09}, year={2019}, location={Seconde B}, time={}] \input knuth \stoptext

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

2019-08-27 Thread Fabrice Couvreur
; \stopuseMPgraphic \defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}] \starttext \setvariables [headertext] [title={Devoir maison}, number={6}, day={22}, month={08}, year={2019}, location={Seconde B}, time={}] \framed[background=framewithshadow,offset=4bp]{\bf DM

Re: [NTG-context] serial letters

2019-04-09 Thread Wolfgang Schuster
\unknown \stoplettercontent \setvariables   [address]   [name=John,    sex=male] \setvariables   [address]   [name=Anna,    sex=female] \stoptext Wolfgang ___ If your question is of interest to others as well, please

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

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

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}] > > \stopframed >

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
{headertext}} \setvariables [headertext] [title={Devoir surveillé de Mathématiques}, number={4}, day={27}, month={02}, year={2019}, location={T\high{\tfxx ale}~ES}, time={3 heures}] \starttext \input knuth \stoptext

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

2019-02-06 Thread Sanjoy Mahajan
> You can set dimensions with the measure system > > %\definemeasure [TestValue] [20pt] > > \starttext > \measure{TestValue} > \stoptext > > and other values with \setvariables > > %\setvariables [test] [abc=20] Probably the .tuc hystersis can jump up and bite

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
headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Interrogation écrite}, number={6}, day={4}, month={02}, year={2019}, location={Seconde GTE}, time={55 minutes}] \starttext \input Knuth \stoptext Le dim. 27 janv. 2019 à 17:54, Ota

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
}{\directsetup{headertext}} \setvariables [headertext] [title={Interrogation écrite}, number={6}, day={29}, month={01}, year={2019}, location={Seconde GTE}, time={55 minutes}] \starttext \input Knuth \stoptext

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
command in > separate arguments. > > 4. I got rid of the backgrounds setup for the layer. A better solution here > is to create a page without margins which can be done with the "page" layout > where you flush the collected content of the layer with the \

Re: [NTG-context] Question to covers

2018-07-21 Thread Wolfgang Schuster
ackgrounds setup for the layer. A better solution here is to create a page without margins which can be done with the "page" layout where you flush the collected content of the layer with the \flushlayer command. 5. I set the texts for the isse number and title with the \setvari

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

2018-02-11 Thread Hans Hagen
o sort the buffer containing 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},

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

2018-02-10 Thread Otared Kavian
Hi all, In a project using the \setvariables command of ConTeXt, a file containing more than 200 instances of a structure resembling (but with much more fields…) \setvariables[talk] [speaker={Dr Some Speaker}, title={Some title}, room

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

2018-02-01 Thread luigi scarso
On Wed, Jan 31, 2018 at 10:20 PM, Otared Kavian wrote: > > >> On 31 Jan 2018, at 18:11, Wolfgang Schuster >> wrote: >> >>> […] >>> Thanks again, but I wonder where did you find this trick?… in i-context.pdf >>> there is no entry for

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

2018-01-31 Thread Otared Kavian
> On 31 Jan 2018, at 18:11, Wolfgang Schuster > wrote: > >> […] >> Thanks again, but I wonder where did you find this trick?… in i-context.pdf >> there is no entry for \defineseparatedlist… > > setup-en.pdf (and i-context.pdf) contains only commands from the

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

2018-01-31 Thread Wolfgang Schuster
Otared Kavian 31. Januar 2018 um 17:58 Yes it does the job! Thanks again, but I wonder where did you find this trick?… in i-context.pdf there is no entry for \defineseparatedlist… setup-en.pdf (and i-context.pdf) contains only commands from the core. There are

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

2018-01-31 Thread Otared Kavian
> On 31 Jan 2018, at 17:40, Wolfgang Schuster > wrote: > >> […] >> > Add “strip=yes” to remove spaces around the cells. > > \defineseparatedlist > [seplisttalk] > [separator={;}, >command=\maketalk, >strip=yes] > Yes it does the job! Thanks again,

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

2018-01-31 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 16:53 Hi again Wolfgang, I think I understood what is going wrong with my example after your hint: I have to remove all spaces around the separator and remove also the braces around each entry. That is the following works fine:

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

2018-01-31 Thread Rik Kabel
s=mkvi engine=luajittex \setvariables  [one]    [a=1,b=1b,c=1c] \setvariables  [two]    [a=2a,b=2,c=2c] \defineexpandable  \Sets    {one,two} \starttexdefinition unexpanded doInlineTex

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

2018-01-30 Thread Rik Kabel
other value? % macros=mkvi engine=luajittex \setvariables  [one]    [a=1a,b=1b] \setvariables  [two]    [a=2a,b=2b] \define    \Sets    {one,two} \starttexdefinition unexpanded doInlineText #SET

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

2018-01-30 Thread Otared Kavian
> On 30 Jan 2018, at 19:05, Wolfgang Schuster > wrote: >> […] > Spaces after a control sequence are gobbled and multiple spaces are skipped. > > Braces around the filename are allowed because this function was added with > the extensions to the TeX binary (which

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

2018-01-30 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 18:56 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 tolerant in that respect. Compare

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

2018-01-30 Thread Otared Kavian
> On 30 Jan 2018, at 17:37, Wolfgang Schuster > wrote: > >> […] >> 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. > >

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

2018-01-30 Thread Wolfgang Schuster
Otared Kavian 30. Januar 2018 um 16:53 Hi again Wolfgang, I think I understood what is going wrong with my example after your hint: I have to remove all spaces around the separator and remove also the braces around each entry. That is the following works fine:

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

2018-01-30 Thread Otared Kavian
> \startplacefigure[number=no] > \externalfigure[\getvariable{talk}{picture}] > \stopplacefigure > \page > \stopbuffer > > \setvariable{talk}{set}{\getbuffer[pagetalk]} > > \define[3]\maketalk{% > \setvariables[talk]% > [

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

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

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

2018-01-30 Thread Wolfgang Schuster
Otared Kavian <mailto:ota...@gmail.com> 30. Januar 2018 um 15:44 Hi all, I need to create a document using a database and the \setvariables command (which I understood thanks to Wolfgang Schuster). Everything works fine except that using the approach below I need to change the e

[NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
Hi all, I need to create a document using a database and the \setvariables command (which I understood thanks to Wolfgang Schuster). Everything works fine except that using the approach below I need to change the entries in the database by enclosing each entry between a pair of braces

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
able{talk}{picture}} \placefigure[here][]{} {\externalfigure[\authorpicture]} \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \setvariables[talk]% [speakername={Hacker}, title={Up to date hacking}, picture=hacker.jpg ]

Re: [NTG-context] Registers and getparameters

2018-01-23 Thread Hans Hagen
elp me in this matter? When you replace \getparameters with \setvariables you can set a command which is applied each time when you set new values. \defineregister[speakers] \setupregister   [speakers]   [style=sansbold,    n=2] \startbuffer[pagetalk]   \doflushatpar     {\expanded{\sp

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
\stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \showframe[text][text] \starttext \setvariables[talk] [speakername={Gauss}, title={Remarks on Number Theory}, time={10:30}, room={A}] \page \setvariables[talk] [speakername={Poincaré

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
s only the last name in the list instead of getting each speaker name. The following is a (not so minimal…) example. Can anyone help me in this matter? When you replace \getparameters with \setvariables you can set a command which is applied each time when you set new values. \definere

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
r=foreground:contrast, > alternative=middle] > > \starttext > > \setvariables > ... > > *\startstandardmakeup* %D else the content is placed at the very top, > ignoring the header... (bad) > > * \title{Table of contents}* > * \vfill* > * \placecontent* > * \vfill* &g

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
looks like now: %D I copied the head settings to "title", so that it has the same style as the rest %D "title" will not be counted for TOC: \setuphead[title][style=\ssbfc, color=foreground:contrast, alternative=middle] \starttext \setvariables ... *\startstandardmakeup*

Re: [NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
% but don't show it* > ] > > I also added the following line: > > \setuplist[subject][width=2cm] > > The example .tex then starts with > > \starttext > > \setvariables > ... > \startslide > ... > \stopslide > ... > \stoptext > > So I inserte

[NTG-context] Table of content in presentation example

2017-05-12 Thread cryo shock
, % keep track of the number* * number=no % but don't show it* ] I also added the following line: \setuplist[subject][width=2cm] The example .tex then starts with \starttext \setvariables ... \startslide ... \stopslide ... \stoptext So I inserted another \startslide

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
mes) and access the value later in the metapost > graphic. > > Thanks > Fabrice > > \setupbodyfont[pagella,11pt] > > \setupcolors[state=start] > > \defineframedtext > [MyFrame] > [before={\blank}, >after={\blank}, >frame=off, > background=MyFrame, &

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Wolfgang Schuster
italic] \setvariables [text] [text1=Hans, text2=Hagen,] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white\getvariable{text}{text1}"); p := textext.rt("\white\framedtextparameter{Title}"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25Ex

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
, height=fit, style=italic] \setvariables [text] [text1=Hans, text2=Hagen,] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white\getvariable{text}{text1}"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); b := boundingbox p le

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
On 7/26/2016 3:12 PM, Fabrice Couvreur wrote: Hi Hans, How to pass the "SomeText" parameter? with setvariables and getvariable \setupbodyfont[pagella,11pt] \setupcolors[state=start] \defineframedtext [SomeText] [before={\blank}, after={\blank}, frame=off, backgrou

Re: [NTG-context] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Marco Patzer
hile the second > 'variable' assignment does not. What am I missing here? > > Cheers, > > Michael > > > \starttext > > \placecontent > > \setvariables[TOC][list=Second Section] > > \startsection [title={First}, list={First Section}] > This

[NTG-context] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Michael Guravage
\starttext \placecontent \setvariables[TOC][list=Second Section] \startsection [title={First}, list={First Section}] This is the first section. \stopsection \startsection [title={Second}, list={\getvariable{TOC}{list}}] This is the \getvariable{TOC}{list} \stopsection

[NTG-context] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Michael Guravage
\starttext \placecontent \setvariables[TOC][list=Second Section] \startsection [title={First}, list={First Section}] This is the first section. \stopsection \startsection [title={Second}, list={\getvariable{TOC}{list}}] This is the \getvariable{TOC}{list} \stopsection

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

2016-02-04 Thread Pablo Rodriguez
On 01/26/2016 02:45 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 26. Januar 2016 um 09:42 >> [...] >> I guess \definehead is what I should be using. > No, the makeup environment is the right mechanism. You can combine this > with the \setvariables command and create the

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

2016-01-26 Thread Wolfgang Schuster
makeup environment is the right mechanism. You can combine this with the \setvariables command and create the title page when you set the values. \definemakeup[titlepage][align=middle] \startsetups[titlepage] \startmakeup[titlepage] \startfont[SansBold sa 3] \getvariable{tit

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
g more appropriate to use for those kind of variables? You can use the \setvariables command the set the values and access them with \getvariables: \setvariables [information] [title=Document title, author=Author name] \setupinteraction [ state=start, title=\getvariable{information}

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
t. So all I'm after here is a mechanism > for storing variables by name. Is there something more appropriate to > use for those kind of variables? > > You can use the \setvariables command the set the values and access them > with \getvariables: > > \setvariables > [inf

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
these are values which remain > > constant throughout the document. So all I'm after here is a > > mechanism for storing variables by name. Is there something more > > appropriate to use for those kind of variables? > You can use the \setvariables command the set the

[NTG-context] Citing a PhD dissertation

2015-02-01 Thread Idris Samawi Hamid ادريس سماوي حامد
bibliography system? I tried the following (also attached): \starttext \setuppublications[alternative=apa] \setupbtxlabeltext [en] [apa:phdthesis={Doctoral dissertation}] \startsetups btx:apa:phdthesis \setvariables[btx:temp][label=Doctoral Dissertation] \btxsetup

Re: [NTG-context] Citing a PhD dissertation

2015-02-01 Thread Idris Samawi Hamid ادريس سماوي حامد
btx:apa:phdthesis \setvariables[btx:temp][label=Doctoral Dissertation] \btxsetup{btx:apa:common:thesis} \stopsetups \startpublication[k=hamid98, t=phdthesis, a=Hamid, y=1998, s=ISH98] \author[]{Idris Samawi}[I

[NTG-context] Some Lua Code solved

2015-01-26 Thread Eric Gerard
\hauteuronglet=1cm \setvariables[userdata][bottomligne=4] \setvariables[userdata][leftligne=10] \setupTABLE [r][1] [color=dodgerblue, align={middle,lohi}, height=1cm, style=\bfx, framecolor=black] \startluacode userdata = userdata or { } function userdata.onglets(pos

Re: [NTG-context] two questions on mail merging

2014-11-12 Thread Wolfgang Schuster
with \setupbodyfont before you set the content. \setvariables [address] [name=John Doe, street=21 Jumpstreet, zip=12345, town=TeX-City] \definelayer[MyLayer][state=start] \setupbackgrounds[page][background={MyLayer}] \starttext \setlayerframed[MyLayer][frame=off,align=right] {\getvariable

Re: [NTG-context] Problem with last version of ConTeXt

2014-10-19 Thread Hans Hagen
in Context, which is included in the latest distribution TeXLive 2014). In my library are very old pieces of code that I used many years ago in plainTEX in combination with ConTeXtovým code (including frequent use \setvariables). Unfortunately I was despite my great efforts failed to create a reasonable

Re: [NTG-context] Problem with last version of ConTeXt

2014-10-19 Thread Jaroslav Hajtmar
in plainTEX in combination with ConTeXtovým code (including frequent use \setvariables). Unfortunately I was despite my great efforts failed to create a reasonable minimal example, so I'll probably have to wait some time until someone else runs into a similar problem and will be able to describe properly

Re: [NTG-context] Problem with last version of ConTeXt

2014-10-18 Thread Jaroslav Hajtmar
distribution TeXLive 2014). In my library are very old pieces of code that I used many years ago in plainTEX in combination with ConTeXtovým code (including frequent use \setvariables). Unfortunately I was despite my great efforts failed to create a reasonable minimal example, so I'll probably have

Re: [NTG-context] [doifinset] how it works ?

2014-08-21 Thread Wolfgang Schuster
to access the counter with \rawcountervalue[countername] but in your case you can use a different counter mechanism. \setvariables[slide][list={1,2,3,6,7,8}] % \setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}] \def\startSlide {\increment\SlideCounter

[NTG-context] Bug with complex contextual opentype feature

2014-07-18 Thread Georg Duffner
{XeTeX LuaLaTeX XeLaTeX TeX LaTeX2e} \setvariables [otftracker] [font=file:EBGaramond12-Regular.otf, size=24pt, features=experiment, title=Feature Check, sample=\sample] \stoptext % Best regards, Georg

Re: [NTG-context] Bug with complex contextual opentype feature

2014-07-18 Thread Hans Hagen
at 12pt]\feature[+][xtex]\sample}}\par \stopTEXpage \def\sample{XeTeX LuaLaTeX XeLaTeX TeX LaTeX2e} \setvariables [otftracker] [font=file:EBGaramond12-Regular.otf, size=24pt, features=experiment, title=Feature Check, sample=\sample] \stoptext % fixed (back and fore were

Re: [NTG-context] Calculating with variables

2013-11-26 Thread Hans Hagen
On 11/26/2013 7:59 AM, H. Özoguz wrote: Hello there, I am new in variables in ConTeXt, so I tried the the following example of two font-sizes wich should have a ratio of 0.7: \setvariables[fontsize][bigsize=17pt] \setvariables[fontsize][smallsize=0.7\getvariable{fontsize}{size}] \definefont

[NTG-context] Calculating with variables

2013-11-25 Thread H. Özoguz
Hello there, I am new in variables in ConTeXt, so I tried the the following example of two font-sizes wich should have a ratio of 0.7: \setvariables[fontsize][bigsize=17pt] \setvariables[fontsize][smallsize=0.7\getvariable{fontsize}{size}] \definefont[big][name:arial at \getvariable{fontsize

Re: [NTG-context] scope and grouping in flowchart

2013-10-07 Thread Hans Hagen
On 10/6/2013 4:46 PM, Peter Münster wrote: Hi, Why is the \getvariable not in the same grouping level as the \setvariables here: --8---cut here---start-8--- \usemodule[chart] \startFLOWchart[test] \startFLOWcell \setvariables[test][test=test

[NTG-context] scope and grouping in flowchart

2013-10-06 Thread Peter Münster
Hi, Why is the \getvariable not in the same grouping level as the \setvariables here: --8---cut here---start-8--- \usemodule[chart] \startFLOWchart[test] \startFLOWcell \setvariables[test][test=test] \text{\getvariable{test}{test}} % no text

Re: [NTG-context] repost add bib category?

2013-09-12 Thread Sander Maijers
did search for phdthesis in the ConTeXt base files and was found once: in the bxml-apa.mkiv file. How to? \startxmlsetups bibtex:apa:bachelorthesis \setvariables[bibtex:temp][label=Bachelor thesis] \bibxmlsetup{bibtex:apa:common:thesis} \stopxmlsetups used in the .bib file

Re: [NTG-context] repost add bib category?

2013-09-10 Thread Meer, H. van der
bibtex:apa:bachelorthesis \setvariables[bibtex:temp][label=Bachelor thesis] \bibxmlsetup{bibtex:apa:common:thesis} \stopxmlsetups used in the .bib file as: @bachelorthesis{rijneveld:13, Author = {A. Author}, School = {Excellent University}, Title = {{How the Dutch.}}, Year = {2013}} Hans van

[NTG-context] add bib category

2013-09-06 Thread Meer, H. van der
and was found once: in the bxml-apa.mkiv file. How to? \startxmlsetups bibtex:apa:bachelorthesis \setvariables[bibtex:temp][label=Bachelor thesis] \bibxmlsetup{bibtex:apa:common:thesis} \stopxmlsetups used in the .bib file as: @bachelorthesis{rijneveld:13, Author = {A. Author}, School = {Excellent

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

2013-06-04 Thread Wolfgang Schuster
for the data), the other method is the \setvariables command where you can use keys for the entries. Method 1: \usemodule[database] \define[5]\TestCommand {\starttabulate \NC FIRSTNAME \EQ #1 \NC\NR \NC SURNAME \EQ #2 \NC\NR \NC CITY \EQ #3 \NC\NR \NC STREET\EQ #4 \NC\NR

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

2013-06-04 Thread Jaroslav Hajtmar
the data. The first method is to use the database module (you can also use a external file for the data), the other method is the \setvariables command where you can use keys for the entries. Method 1: \usemodule[database] \define[5]\TestCommand {\starttabulate \NC FIRSTNAME \EQ #1 \NC\NR

Re: [NTG-context] Installing an arabic font

2013-05-09 Thread Hans Hagen
} \def\sample{نَسْتَعِينُ} \def\sample{\Uchar0643\Uchar0644\Uchar0651\Uchar0627\Uchar064E} \setvariables [otftracker] [font=file:uthmantn1ver10.ttf, size=24pt, features=arabic, direction=-1, title=Feature Check, sample=\sample] \page \setvariables [otftracker] [font

Re: [NTG-context] Arabic typesetting, one more

2013-05-08 Thread Hans Hagen
On 5/8/2013 7:35 AM, H. Özoguz wrote: \usemodule[fnt-20,art-01] \starttext \def\sample{اللهِ\quad اللَّـهِ} \setvariables [otftracker] [font=name:traditionalarabicnormal, size=24pt, features=arabic, direction=-1, title=Feature Check, sample=\sample] \page

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread Hans Hagen
{اللهِ\quad اللَّـهِ} \setvariables [otftracker] [font=name:traditionalarabicnormal, size=24pt, features=arabic, direction=-1, title=Feature Check, sample=\sample] \page \setvariables [otftracker] [font=arabtype, size=24pt, features=arabic, direction=-1, title

Re: [NTG-context] Arabic typesetting, one more

2013-05-07 Thread H. Özoguz
\usemodule[fnt-20,art-01] \starttext \def\sample{اللهِ\quad اللَّـهِ} \setvariables [otftracker] [font=name:traditionalarabicnormal, size=24pt, features=arabic, direction=-1, title=Feature Check, sample=\sample] \page \setvariables [otftracker] [font

[NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
It is a long time since I used ConTeXt. I am starting again. I have the following code: \setvariables[meta][type=cecil] \if\getvariable{meta}{type}=cecil \setvariables[meta][ name={Cecil Westerhof}, ] \setvariables[layout][ header=0mm, ] \fi But that does

Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Hans Hagen
On 4/26/2013 1:27 PM, Cecil Westerhof wrote: It is a long time since I used ConTeXt. I am starting again. I have the following code: \setvariables[meta][type=cecil] \if\getvariable{meta}{type}=cecil \setvariables[meta][ name={Cecil Westerhof}, ] \setvariables

[NTG-context] Fwd: Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
, Cecil Westerhof wrote: It is a long time since I used ConTeXt. I am starting again. I have the following code: \setvariables[meta][type=cecil] \if\getvariable{meta}{type}=cecil \setvariables[meta][ name={Cecil Westerhof}, ] \setvariables[layout

Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
2013/4/26 Cecil Westerhof cldwester...@gmail.com: I have the following code: \setvariables[meta][type=cecil] This variable is hard coded. Is it possible to set it with a value I send as a command line parameter? -- Cecil Westerhof

Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Hans Hagen
On 4/26/2013 2:35 PM, Cecil Westerhof wrote: 2013/4/26 Cecil Westerhof cldwester...@gmail.com: I have the following code: \setvariables[meta][type=cecil] This variable is hard coded. Is it possible to set it with a value I send as a command line parameter? \getdocumentargument{myargument

Re: [NTG-context] Heading in setuplayout from a variable

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 2:35 PM, Cecil Westerhof wrote: 2013/4/26 Cecil Westerhof cldwester...@gmail.com: I have the following code: \setvariables[meta][type=cecil] This variable is hard coded. Is it possible to set it with a value I send as a command line

Re: [NTG-context] mkiv in endless loop

2013-02-10 Thread Wolfgang Schuster
\def\textdir{Textos/OVA/} Please change the name of the \textdir command because there is already a primitive with this name. When you need your own macros to store text use Camel Case or better use \setvariables and \getvariable to set and access the strings. Wolfgang

  1   2   3   >