[NTG-context] memoir-style chapter heading

2020-08-16 Thread jbf
Am completely new to using Metafun, which I presume I would need to use to achieve a Hansen Memoir-style Chapter heading (chapter title overlayed on a large lightgray number). Of course, I am assuming I would need to use Metafun to create this... So my first question is to ask if I could

Re: [NTG-context] A dumb question about MetaFun

2020-08-16 Thread Jairo A. del Rio
I found another workaround, but I'm going to try this. Thank you, Keith, and thank you, Taco. Cordially, Jairo :) El dom., 16 de ago. de 2020 3:36 p. m., Taco Hoekwater escribió: > > > > On 16 Aug 2020, at 21:09, Keith McKay wrote: > > > > Jairo > > > > Try > > > > draw unitsquare scaled 1cm

Re: [NTG-context] A dumb question about MetaFun

2020-08-16 Thread Taco Hoekwater
> On 16 Aug 2020, at 21:09, Keith McKay wrote: > > Jairo > > Try > > draw unitsquare scaled 1cm shifted (xcm, ycm); > > Page 11 of the manual metafun-p.pdf is your friend here. My recent > conversation with Taco on this list will be usefull as well. Also: \starttext \startMPpage % puts

Re: [NTG-context] A dumb question about MetaFun

2020-08-16 Thread Keith McKay
Jairo Try draw unitsquare scaled 1cm shifted (xcm, ycm); Page 11 of the manual metafun-p.pdf is your friend here. My recent conversation with Taco on this list will be usefull as well. Best Wishes Keith On 16/08/2020 18:06, Jairo A. del Rio wrote: Hi list! A simple question: is there an

[NTG-context] A dumb question about MetaFun

2020-08-16 Thread Jairo A. del Rio
Hi list! A simple question: is there an equivalent of thetextext for a normal picture (an "image(draw ... ;)")? I want to move the center of a picture to an specific point, like this: \startMPpage draw thetextext("\tttf hello", origin) ; draw unitsquare scaled 1cm; \stopMPpage The "hello" is

Re: [NTG-context] reading a single element from XML

2020-08-16 Thread Pablo Rodriguez
On 8/16/20 11:46 AM, Taco Hoekwater wrote: > \xmlfilter is your friend: > > \startxmlsetups xml:initialize >\xmlsetsetup{#1}{html}{xml:gen} > \stopxmlsetups > > \xmlregistersetup{xml:initialize} > > \startxmlsetups xml:gen >

Re: [NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-16 Thread Keith McKay
Thanks Taco! I have been playing about with an example from this site https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html which was originally for a square and I obviously didn't get my angles right. Thanks for spotting it. I'm beginning to appreciate where the Fun in MetaFun

Re: [NTG-context] reading a single element from XML

2020-08-16 Thread Taco Hoekwater
\xmlfilter is your friend: \startxmlsetups xml:initialize \xmlsetsetup{#1}{html}{xml:gen} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:gen \xmlfilter{#1}{/**/span[@class='special']/command(xml:special)} \stopxmlsetups \startxmlsetups xml:special

[NTG-context] reading a single element from XML

2020-08-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] This is Only a paragraph. This is another paragraph. This is another paragraph. This is another paragraph. This is another paragraph. \stopbuffer

Re: [NTG-context] About documented code

2020-08-16 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 15.08.2020 um 16:24: Hi list! I have some questions about the template used by module documentation. When I apply context --extra=module t-mymodule.mkvi --autopdf I obtain a nice file, but, among other things, 1) the cover page seems to be a bit... greenish? So I