[NTG-context] Fill an area defined by a subpath (Metafun)
Hello, I have a little problem with coloring an area (path b). Thanks for your help. Fabrice \starttext \startMPcode path circle, p, q, b; circle = fullcircle xscaled 6cm yscaled 3.5cm; p = (point 2 of circle .. (-0.15cm,1.5cm) ..(0,0)..(0.15cm,-1.5cm).. point 6 of circle); q = (subpath(0,2) of circle -- p -- subpath(6,8) of circle --cycle); b = (p -- subpath(2,6) of circle -- cycle); definecolor [ name = "mp:red", r = 1 ]; definecolor [ name = "mp:blue", r = 0.54, g = 0.17, b = 0.89 ]; fill q withcolor "mp:red" withtransparency(1,0.5) ; fill b withcolor "mp:blue" withtransparency(1,0.5) ; draw circle; draw p; label("$\overline{\text{A}}$",( 1.5cm,0)) withcolor "mp:red"; label("$\text{A}$",(-1.5cm,0)) withcolor "mp:blue"; label.top("E",(0,1.85cm)); \stopMPcode \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fill an area defined by a subpath (Metafun)
> On 23 Jul 2020, at 11:48, Fabrice Couvreur > wrote: > > Hello, > I have a little problem with coloring an area (path b). > Thanks for your help. > Fabrice > > \starttext > \startMPcode > > path circle, p, q, b; > > circle = fullcircle xscaled 6cm yscaled 3.5cm; > p = (point 2 of circle .. (-0.15cm,1.5cm) ..(0,0)..(0.15cm,-1.5cm).. point 6 > of circle); > q = (subpath(0,2) of circle -- p -- subpath(6,8) of circle --cycle); > b = (p -- subpath(2,6) of circle -- cycle); That should be: b = (reverse p -- subpath(2,6) of circle -- cycle); Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fill an area defined by a subpath (Metafun)
Hello Taco Thank you so much ; I did not know the reverse operator. Fabrice Le jeu. 23 juil. 2020 à 11:56, Taco Hoekwater a écrit : > > > > On 23 Jul 2020, at 11:48, Fabrice Couvreur > wrote: > > > > Hello, > > I have a little problem with coloring an area (path b). > > Thanks for your help. > > Fabrice > > > > \starttext > > \startMPcode > > > > path circle, p, q, b; > > > > circle = fullcircle xscaled 6cm yscaled 3.5cm; > > p = (point 2 of circle .. (-0.15cm,1.5cm) ..(0,0)..(0.15cm,-1.5cm).. > point 6 of circle); > > q = (subpath(0,2) of circle -- p -- subpath(6,8) of circle --cycle); > > b = (p -- subpath(2,6) of circle -- cycle); > > That should be: > > b = (reverse p -- subpath(2,6) of circle -- cycle); > > Best wishes, > Taco > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] --silent and so on
On 7/23/2020 2:39 PM, Taco Hoekwater wrote: On 22 Jul 2020, at 17:57, thierry horsin wrote: Hi everybody I am a current context user since now many years and in particular I use it on linux with automatic compilation with a bash script detecting any modifications of the .tex file. In order for this to work I used with previous versions the "--nonstopmode --batchmode --silent --noconsole" compilation options. Somewhat related question: is there a way to get rid of the “This is LuaMetaTeX, Version 2.06.18 “ line on the terminal ? Ah, you want to completely hide that tex is used, just in case someone who watches a run gets bad feelings (and expectations) due to earlier experiences, like ever being forced to use the backslasg driven language during education ... "Oh no, please, not TeX again!". Read: you need a hook where you can change it to "typeset on my ipad" or so, like: \starttext \ctxlua { texio.write_nl( "Typeset on my " .. string.char(27) .. "[32;5;7m" .. "IPAD" .. string.char(27) .. "[0m" .. " by me!" ) } \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] --silent and so on
> On 22 Jul 2020, at 17:57, thierry horsin wrote: > > Hi everybody > > I am a current context user since now many years and in particular I use it > on linux with automatic compilation with a bash script detecting any > modifications of the .tex file. In order for this to work I used with > previous versions > > the "--nonstopmode --batchmode --silent --noconsole" compilation options. Somewhat related question: is there a way to get rid of the “This is LuaMetaTeX, Version 2.06.18 “ line on the terminal ? Best wishesm Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] --silent and so on
> On 23 Jul 2020, at 16:21, Hans Hagen wrote: > > On 7/23/2020 2:39 PM, Taco Hoekwater wrote: >>> On 22 Jul 2020, at 17:57, thierry horsin wrote: >>> >>> Hi everybody >>> >>> I am a current context user since now many years and in particular I use it >>> on linux with automatic compilation with a bash script detecting any >>> modifications of the .tex file. In order for this to work I used with >>> previous versions >>> >>> the "--nonstopmode --batchmode --silent --noconsole" compilation options. >> Somewhat related question: is there a way to get rid of the >>“This is LuaMetaTeX, Version 2.06.18 “ >> line on the terminal ? > Ah, you want to completely hide that tex is used, just in case someone who > watches a run gets bad feelings (and expectations) due to earlier > experiences, like ever being forced to use the backslasg driven language > during education ... "Oh no, please, not TeX again!”. Actually, I am trying to capture my (lua-generated) console output to a processing pipe that expects a html page. Best, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] context --engine=luatex not working
Hi list! Is --engine=luatex working? Has it changed? The switch seems to be ignored with newer ConTeXt distributions, so only LuaMetaTeX is used. Thank you in advance. Jairo :) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \insertpages and remote file
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \insertpages [https://eur-lex.europa.eu/legal-content/EL/TXT% /PDF/?uri=CELEX:32015D0022] [width=0pt] \attachment[file=https://eur-lex.europa.eu/% legal-content/EL/TXT/PDF/?uri=CELEX:32015D0022] \attachment[https://eur-lex.europa.eu/legal-content/% EL/TXT/PDF/?uri=CELEX:32015D0022] \stoptext The docuemnt may be attached to the PDF document, but pages cannot be inserted to generate a booklet. Attachment doesn’t work either when the "file" key is removed (see second one. Would it be possible that \insertpages and \filterpages could deal with these urls? Or what am I missing here? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] context --engine=luatex not working
Jairo A. del Rio schrieb am 23.07.2020 um 19:03: Hi list! Is --engine=luatex working? Has it changed? The switch seems to be ignored with newer ConTeXt distributions, so only LuaMetaTeX is used. Thank you in advance. context --luatex Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] indentnext option for \setuplanguage?
Hans, as Garulfo mentioned in a previous message (https://mailman.ntg.nl’t /pipermail/ntg-context/2020/098826.html), French may require that all paragraphs are indented (no matter what comes before the paragraph). Spanish also requires that. How about a key for "indentnext" in \setuplanguage? That makes it easier to have documents that require all "indentnext" keys set to "yes". I don’t mean changing the default behaviour for any language. Could the "indentext" option be added to \setuplanguage? Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___