Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-18 Thread Geert Verhaag
On 18-09-2020 09:03, Hans Hagen wrote: On 9/17/2020 9:41 PM, Geert Verhaag wrote: Hi ConTeXt users, That's indeed magic and it works! Hans, thanks for your prompt answer! But I would like to take this a step further, by introducing a macro within the start/stopuseMPgraphic structure like so

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-17 Thread Geert Verhaag
e not understanding argument passing properly within METAPOST macros! Can someone please explain why this 2 argument example doesn't work? (But maybe this isn't the proper list to ask questions like these. If so, I'm sorry for bothering you!) Regards, Gerard On 16-09-2020 16:32, Geert Ver

[NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-16 Thread Geert Verhaag
Hi, I'm trying to pass a string argument value to an MPgraphic but it doesn't seem to work: Tried the following: \startuseMPgraphic{name}{lbl}   pair a ; a := (3cm,3cm) ;label.top("\MPvariable{lbl}",a) ; \stopuseMPgraphic \starttext   \useMPgraphic{name}{lbl=1} \stoptext The above works as

Re: [NTG-context] How to get attribute value from xml tag?

2019-10-20 Thread Geert Verhaag
On 20-10-19 16:38, Thomas A. Schmitz wrote: On 20. Oct 2019, at 16:05, Geert Verhaag wrote: The \xmlfirst{#1}{distance} yields 20, but how can the unit attribute value km be accessed? Gerard \xmlattribute{#1}{/distance}{unit} (probably, you need to make a real example. See xml-mkiv.pdf

[NTG-context] How to get attribute value from xml tag?

2019-10-20 Thread Geert Verhaag
Hi, Struggling with XML in ConTeXt. I'have the following tag in my xml file: ...       20   ... \startxmlsetups xml:invoice:travel   \xmlfirst{#1}{distance} \stopxmlsetups The \xmlfirst{#1}{distance} yields /20/, but how can the unit attribute value /km/ be accessed? Gerard --

Re: [NTG-context] XML xmldoif struggle!

2019-05-03 Thread Geert Verhaag
, Gerard On 03-05-19 00:51, Aditya Mahajan wrote: On Thu, 2 May 2019, Geert Verhaag wrote: Yes, I got it working! It is somewhat tricky. Trying to understanding the concepts behind all this isn't easy for me, but I'm bashing on. I also find understanding XML processing rules to be complicated

Re: [NTG-context] XML xmldoif struggle!

2019-05-02 Thread Geert Verhaag
Hi Pablo, Yes, I got it working! It is somewhat tricky. Trying to understanding the concepts behind all this isn't easy for me, but I'm bashing on. Thanks! Regards, Gerard On 02-05-19 14:47, Pablo Rodriguez wrote: On 5/1/19 9:28 PM, Geert Verhaag wrote: Hoi Pablo, Thanks for your

Re: [NTG-context] XML xmldoif struggle!

2019-05-01 Thread Geert Verhaag
all this is far too complex for me! The documentation simply isn't meant for beginners like me, sorry! Regards, Gerard On 01-05-19 13:20, Pablo Rodriguez wrote: On 4/30/19 9:58 PM, Geert Verhaag wrote: [...] \startxmlsetups xml:invoice:invoice   \xmlfirst{#1}{currency} \par   \xmldoif

[NTG-context] XML xmldoif struggle!

2019-04-30 Thread Geert Verhaag
Hi, I've the following XML tag in my XML file:   EURO . with invoice being the root tag! Now I have a setup defined as below (only part!): \startxmlsetups xml:invoice:invoice   \xmlfirst{#1}{currency} \par   \xmldoif{\xmlfirst{#1}{currency}}{contains(text(),'EURO')} { Euro set!

[NTG-context] Request for xml.filter explanation!

2019-04-10 Thread Geert Verhaag
Hi, I've the following xml file: *     a paragraph of text   40.2       another paragraph of text   10.7       still another paragraph!   20.5   * And want to calculate the total value of all the objects: like so: *\startxmlsetups xml:example:base  

[NTG-context] Write your own module?

2019-03-26 Thread Geert Verhaag
Hi, I'd like to start writing a module, and test it using ConTeXt MkIV standalone installation. Dived into wiki.contextgarden.net but was unable to find a basic tutorial on how to tackle this. Yes, I did find a module template, but can't figure out where the module should go such that

Re: [NTG-context] Font installation help needed!

2018-10-02 Thread Geert Verhaag
On 01-10-18 01:49, Aditya Mahajan wrote: On Sun, 30 Sep 2018, Geert Verhaag wrote: Hi, I'm currently using ConTeXt version: mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /home/verhaag/context/tex/texmf-context/tex/context/base

[NTG-context] Font installation help needed!

2018-09-30 Thread Geert Verhaag
Hi, I'm currently using ConTeXt version: mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /home/verhaag/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2013.08.11 20:23 I'd like to use the

[NTG-context] Duplex printing problem!

2016-05-05 Thread Geert Verhaag
Hi, I try something like this: *\definepapersize[BOOK][width=270mm,height=195mm]** **\setuppapersize[BOOK][A4,landscape]* while my *\setuplayout* command contains: *location={doublesided,left}* among other settings. I would expect that the BOOK-page on the front and back side would move to

Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?

2015-04-17 Thread Geert Verhaag
wrote: Am 15.04.2015 um 22:12 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? I created only a new float environment which copies all values from the figure environment but it saves all

Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?

2015-04-15 Thread Geert Verhaag
Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? Regards, Gerard On 13-04-15 21:02, Wolfgang Schuster wrote: Am 12.04.2015 um 20:53 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi, I was wondering whether it is possible to exclude

[NTG-context] How to exclude certain figures from list of figures in ConTeXt?

2015-04-13 Thread Geert Verhaag
Hi, I was wondering whether it is possible to exclude certain figures of a document using the \placelistoffigures command in ConTeXt? For example those that start having a reference like ['fig:figure:exclude']? Gerard