Re: [NTG-context] compilation error in LMTX
On 8/15/20 8:14 PM, Pablo Rodriguez wrote: > On 8/15/20 7:23 PM, Hans Hagen wrote: >> On 8/15/2020 5:25 PM, Pablo Rodriguez wrote: >> >>> Which is the meaning of error number 139? It might help me to know what >>> I should be looking at. >>> Hm, but does the current version also quit? I fixed a mp issue. > > The version that works for me is 2020.08.09. Some previous versions > didn’t work. And versions from 2020.08.11 and both from 2020.08.14 quit. I have just checked and version from 2020.08.11 work too. Both versions from 2020.08.14 quit. I will hunt for the bug next month. 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] compilation error in LMTX
On 8/15/20 7:23 PM, Hans Hagen wrote: > On 8/15/2020 5:25 PM, Pablo Rodriguez wrote: > >> Which is the meaning of error number 139? It might help me to know what >> I should be looking at. > > Hm, but does the current version also quit? I fixed a mp issue. Since my source is huge, I might need to play with enabling and disabling tracing. I can set it to runs: \startluacode if environment.currentrun == 1 then context([[\tracingall]]) trackers.enable("*") end \stopluacode Is there a way that I can limit it to certain pages? 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] compilation error in LMTX
On 8/15/20 7:23 PM, Hans Hagen wrote: > On 8/15/2020 5:25 PM, Pablo Rodriguez wrote: > >> Which is the meaning of error number 139? It might help me to know what >> I should be looking at. >> Hm, but does the current version also quit? I fixed a mp issue. The version that works for me is 2020.08.09. Some previous versions didn’t work. And versions from 2020.08.11 and both from 2020.08.14 quit. 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] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe
Hi Keith, It took me a while before I saw it, but I think you wanted to type in z0 = (60,60); z1 = z0 rotated 120; z2 = z0 rotated 240; instead of z0 = (60,60); z1 = z0 rotated 120; z2 = z1 rotated 240; because the latter puts z2 at z0, resulting in a path that is a straight line. The fact that AR displays anything at all is probably some form of correction like "fill of empty path == single pixel line”. Best wishes, Taco > On 15 Aug 2020, at 17:39, Keith McKay wrote: > > Dear List > > I have come across a problem which I don't think is due to ConTeXt but I'm > hopping the great and the good of this list may be able to explain what is > going on. > > The code below produces an MPpage with a shaded background and two graphics > along with a line of outlined text. When I view in Adobe (or the output from > TeXworks) I see everything as it should be. However, I wanted to convert the > MPpage to a jpeg file and when I opened the pdf in either Apple MAC Preview > or Gimp 2.10 the two graphics are missing, and I have no idea why. > > Could someone explain a way round this? Here is the code. > > Thanks > > Keith > > %% > system > > > system > ConTeXt ver: 2020.07.29 18:36 LMTX fmt: 2020.7.29 int: > english/english > system > > > %%% > > > \setuppapersize [A5, portrait] > \usecolors[crayola] > \starttext > \startMPpage > StartPage; > width := PaperWidth ; height := PaperHeight ; unit := cm ; > definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ; > definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ; > draw lmt_shade [ > path = unitsquare xscaled 14.8cm yscaled 21cm, > direction = "up", > alternative = "linear", > colors = { "MyColor1", "MyColor3" }, > ] ; > z0 = (60,60); > z1 = z0 rotated 120; > z2 = z1 rotated 240; > path carre; > carre = z0--z1--z2--cycle; > picture pic; > pic := image( > numeric d; d := 0.0005; > for i=1 step -d until d: > fill carre scaled i shifted (3.9cm,17cm) withcolor((1 + > i)*(\MPcolor{VividTangerine})) ; > fill carre rotated (45) scaled i shifted (3.9cm,17cm) withcolor((1 + > i)*(\MPcolor{VividTangerine})) ; > fill carre rotated (90) scaled i shifted (3.9cm,17cm) withcolor((1 + > i)*(\MPcolor{VividTangerine})) ; > fill carre rotated (135) scaled i shifted (3.9cm,17cm) withcolor((1 + > i)*(\MPcolor{VividTangerine})) ; > fill carre rotated (180) scaled i shifted (3.9cm,17cm) withcolor((1 + > i)*(\MPcolor{VividTangerine})) ; > fill carre rotated (225) scaled i shifted (3.9cm,17cm) withcolor((1 + > i)*(\MPcolor{VividTangerine})) ; > endfor;); > draw pic rotatedaround(center pic, 270); > draw pic rotatedaround(center pic, 90) shifted (7cm,-13cm) ; > draw lmt_outline [ > text = "Page 18" > kind = "draw", > drawcolor = "VividTangerine", > ] xsized TextWidth shifted (1cm,7.67cm); > StopPage; > \stopMPpage > \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 > ___ > Taco Hoekwater Elvenkind BV ___ 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] compilation error in LMTX
On 8/15/2020 5:25 PM, Pablo Rodriguez wrote: Which is the meaning of error number 139? It might help me to know what I should be looking at. Hm, but does the current version also quit? I fixed a mp issue. 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 ___
[NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe
Dear List I have come across a problem which I don't think is due to ConTeXt but I'm hopping the great and the good of this list may be able to explain what is going on. The code below produces an MPpage with a shaded background and two graphics along with a line of outlined text. When I view in Adobe (or the output from TeXworks) I see everything as it should be. However, I wanted to convert the MPpage to a jpeg file and when I opened the pdf in either Apple MAC Preview or Gimp 2.10 the two graphics are missing, and I have no idea why. Could someone explain a way round this? Here is the code. Thanks Keith %% system > system > ConTeXt ver: 2020.07.29 18:36 LMTX fmt: 2020.7.29 int: english/english system > %%% \setuppapersize [A5, portrait] \usecolors[crayola] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ; definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade [ path = unitsquare xscaled 14.8cm yscaled 21cm, direction = "up", alternative = "linear", colors = { "MyColor1", "MyColor3" }, ] ; z0 = (60,60); z1 = z0 rotated 120; z2 = z1 rotated 240; path carre; carre = z0--z1--z2--cycle; picture pic; pic := image( numeric d; d := 0.0005; for i=1 step -d until d: fill carre scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (45) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (90) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (135) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (180) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; fill carre rotated (225) scaled i shifted (3.9cm,17cm) withcolor((1 + i)*(\MPcolor{VividTangerine})) ; endfor;); draw pic rotatedaround(center pic, 270); draw pic rotatedaround(center pic, 90) shifted (7cm,-13cm) ; draw lmt_outline [ text = "Page 18" kind = "draw", drawcolor = "VividTangerine", ] xsized TextWidth shifted (1cm,7.67cm); StopPage; \stopMPpage \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] compilation error in LMTX
On 8/14/20 9:47 AM, Hans Hagen wrote: > On 8/14/2020 9:26 AM, Pablo Rodriguez wrote: > >> Latest from 2020.08.11 works fine for my huge document, but current >> latest (from today) breaks compilation. So I use latest from 2020.08.11. > > i really need a MWE example then .. all runs well here Sorry, Hans, I wish I could provide a sample, but all I get is this message (with current latest): pages > flushing realpage 55, userpage 55, subpage 1 mtx-context | fatal error: return code: 139 Given that the file is Page changed and I will try to see what can I do with \tracingall and \enabletrackers[*]. Which is the meaning of error number 139? It might help me to know what I should be looking at. 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 ___
[NTG-context] About documented code
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 want to know how to customize it, at least at a minimum, and 2) \showframe is enabled by default. How to disable it? Maybe 1) can answer 2) too. Thank you very much. Cordially, 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 ___