[NTG-context] Making ConTeXt stop on all or some errors
Hi all, yesterday I asked about where to put color profiles. My problem was that ConTeXt for some unknown reason didn't find the color profiles I downloaded. But most annoying was the fact that I didn't saw the error in the log because ConTeXt only complains about not finding the profile. Is there a way to make ConTeXt stop if it does not find the profile like it stops if I use a unknown command? I want to avoid that we send a pdf without a profile to the print shop, because we overlook a message in the logs. juh ___ 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] Where to put icc color profiles
Am 03.02.19 um 18:19 schrieb Mojca Miklavec: > Dear Jan, > > On Sun, 3 Feb 2019 at 14:49, Jan U. Hasecke wrote: >> >> I downloaded some color profiles and stored them in: >> >> /context/tex/texmf-context/colors/icc/profiles >> >> But they get overwritten, when I update context. > > Please try to put them to > /context/tex/texmf-local/colors/icc/profiles > instead (and maybe run "mtxrun --generate" afterwards just in case). Thanks. Seems to work. :-) juh ___ 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] About the macro path intersectionpoint path with Metapost
Dear Fabrice, Metapost is great for drawiang figures but it is not easy for me to use it. > b:= fullcircle scaled 2cm shifted (0,-3cm); > pair A, B ; > A:= p intersectionpoint r ; > B:= p intersectionpoint r ; > path u ; > u:= A--B--cycle ; A and B are the same point. One of “r” should be changed to “q” or “b”. Then you can have a line. I also made similar errors many times too. Btw, is there any reason to add “—cycle”? Enjoy the drawing. Best regards, Dalyoung ___ 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] Show the letters of the alphabet with a loop (Metapost)
On Mon, 4 Feb 2019 09:19:26 +1300 Henri Menke wrote: > Use the infont operator. Easier yet, the string can contain the font switch \bf: draw textext("\bf "(i)) ; ___ 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] Show the letters of the alphabet with a loop (Metapost)
On 4/02/19 12:50 AM, Fabrice Couvreur wrote: > Sorry Henri, but I still have a question : how to have the letters in bold > type ? Use the infont operator. That info is a bit hidden in “2.10 Analyzing pictures” of the MetaFun manual. \starttext \startMPcode for i=0 upto 3 : for j=0 upto 3 : draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; endfor ; endfor ; for i=0 upto 4 : for j=0 upto 4 : label.llft( char(i*5+j+ASCII "A") infont "SerifBold*default", (4*i*cm,4*j*cm) ) withcolor white randomized (1,1,1) ; endfor ; endfor ; \stopMPcode \stoptext > Thank you. > Fabrice > > Le dim. 3 févr. 2019 à 10:12, Fabrice Couvreur > a écrit : > >> Hi Henry >> Thank you for everything. >> Fabrice >> >> Le sam. 2 févr. 2019 à 20:58, Henri Menke a écrit : >> >>> On 2/2/19 11:49 PM, Fabrice Couvreur wrote: Hi Henri, Great ! I would also like these letters to be randomly colored. >>> >>> You should play with randomseed, the starting color (here white) and the >>> randomization amplitude (1,1,1). You mileage may vary. >>> >>> \starttext >>> >>> \startMPcode >>> for i=0 upto 3 : >>> for j=0 upto 3 : >>> draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; >>> endfor ; >>> endfor ; >>> for i=0 upto 4 : >>> for j=0 upto 4 : >>> label.llft(char(i*5+j+ASCII "A"), (4*i*cm,4*j*cm)) >>> withcolor white randomized (1,1,1) ; >>> endfor ; >>> endfor ; >>> \stopMPcode >>> >>> \stoptext >>> Thank you. Fabrice Le sam. 2 févr. 2019 à 11:16, Henri Menke a >>> écrit : > On 2/2/19 10:47 PM, Fabrice Couvreur wrote: >> The idea is to display the first 25 letters of the alphabet. The code > below >> shows the letter a to show what I want to do. >> Thank you. >> Fabrice > > Use char and ASCII. > > \starttext > > \startMPcode > for i=0 upto 3 : > for j=0 upto 3 : > draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; > endfor ; > endfor ; > for i=0 upto 4 : > for j=0 upto 4 : > label.llft(char(i*5+j+ASCII "A"), (4*i*cm,4*j*cm)) ; > endfor ; > endfor ; > \stopMPcode > > \stoptext > >> >> \starttext >> >> \startMPcode >> for i=0 upto 3 : >> for j=0 upto 3 : >> draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; >> endfor ; >> endfor ; >> for i=0 upto 4 : >> for j=0 upto 4 : >> label.llft("A", (4*i*cm,4*j*cm)) ; >> endfor ; >> endfor ; >> \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 >> > >>> ___ >> > > > >>> ___ > 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 >>> ___ >>> >>> >>> ___ >>> 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] inner option for \showgrid
Dear list, In the i-context.pdf file, among the \showgrid[…,…] options there are: right, left, and outer. Is it possible to add another option: inner? TIA Marcus Vinicius ___ 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] problem with \sym?
Alan Bowen schrieb am 03.02.19 um 15:33: Processing a table of contents with the latest standalone (ConTeXt ver: 2019.01.28 16:58 MKIV beta fmt: 2019.2.3) fails with the following message: luatex warning > hpack filter: error: ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422: attempt to compare number with nil tex error > tex error on line 18 in file c_Contents.tex: ? \strc_itemgroups_make_symbol_box ...mbol \fi \fi } \let \strc_itemgroups_extr... \strc_itemgroups_insert_item ...s_make_symbol_box \strc_itemgroups_make_dest... \strc_itemgroups_start_item ...groups_insert_item \dostoptagged \ifcondition... \dotagsetitem \sym ..._symbol \startitemgroupitem \dotagsetitem \s!symbol l.18 \sym{0.} Prolegomena to the Study of Hellenistic Astronomy This worked with the previous standalone. Can you provide a example because the error message shows a problem with itemize while you mention the table of contents. 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 ___
Re: [NTG-context] Title from setupinteraction used in header
Am 03.02.19 um 17:34 schrieb Wolfgang Schuster: > > Use \setupdocument to set the metadata for the PDF. You can access the > values with the \documentvariable command. > > \setuppagenumbering > [location=] > > \setupheadertexts > [\documentvariable{metadata:title} – \documentvariable{metadata:author}] > > \setupdocument > [metadata:title={foo}, > metadata:subtitle={bar}, > metadata:author={Peter}, > metadata:keyword={context}] > > \starttext > \samplefile{lorem} > \stoptext > Thank you, Wolfgang. juh ___ 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] Where to put icc color profiles
Dear Jan, On Sun, 3 Feb 2019 at 14:49, Jan U. Hasecke wrote: > > I downloaded some color profiles and stored them in: > > /context/tex/texmf-context/colors/icc/profiles > > But they get overwritten, when I update context. Please try to put them to /context/tex/texmf-local/colors/icc/profiles instead (and maybe run "mtxrun --generate" afterwards just in case). Mojca ___ 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] Color profile not found
Am 03.02.19 um 15:26 schrieb Jan U. Hasecke: > I get an error when I use. > > \setupbackend[ >format=PDF/X-3:2003, >intent={Coated FOGRA39 (ISO 12647-2:2004)}, >] > > backend > profiles > profile specification 'Coated FOGRA39 (ISO > 12647-2:2004)' loaded from > '/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml' > backend > profiles > error, couldn't locate profile > 'CoatedFOGRA39.icc' > backend > profiles > invalid output intent 'Coated FOGRA39 (ISO > 12647-2:2004)' > > I copied the file CoatedFOGRA39.icc to > > context/tex/texmf-context/colors/icc/profiles > > My setup worked before. > > Using the intent "ISO Coated v2 300\letterpercent\space (ECI)" I get no > error. > I solved the problem by installing the color profiles on my debian machine so that they are in ~/.colors/icc Then I exported in .bashrc export OSCOLORDIR="$HOME/.color/icc" This solved the issue here. But as I am working in a group I would like to have a solution that works without installing the color profiles locally. juh ___ 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] Title from setupinteraction used in header
Jan U. Hasecke schrieb am 03.02.19 um 14:23: Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter}, keyword={context}] \starttext \startchapter[title={chapter title},] \input lorem \stopchapter \startchapter[title={another chapter title},] \input lorem \stopchapter \stoptext How can I insert title, subtitle and author from setupinteraction into headertexts? Background: authors shall define title, subtitle etc in the product file with setupinteraction (or a better method if available). In the environment file I want to insert theses informations into headers and footers. Use \setupdocument to set the metadata for the PDF. You can access the values with the \documentvariable command. \setuppagenumbering [location=] \setupheadertexts [\documentvariable{metadata:title} – \documentvariable{metadata:author}] \setupdocument [metadata:title={foo}, metadata:subtitle={bar}, metadata:author={Peter}, metadata:keyword={context}] \starttext \samplefile{lorem} \stoptext 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] problem with \sym?
Processing a table of contents with the latest standalone (ConTeXt ver: 2019.01.28 16:58 MKIV beta fmt: 2019.2.3) fails with the following message: luatex warning > hpack filter: error: ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422: attempt to compare number with nil tex error > tex error on line 18 in file c_Contents.tex: ? \strc_itemgroups_make_symbol_box ...mbol \fi \fi } \let \strc_itemgroups_extr... \strc_itemgroups_insert_item ...s_make_symbol_box \strc_itemgroups_make_dest... \strc_itemgroups_start_item ...groups_insert_item \dostoptagged \ifcondition... \dotagsetitem \sym ..._symbol \startitemgroupitem \dotagsetitem \s!symbol l.18 \sym{0.} Prolegomena to the Study of Hellenistic Astronomy This worked with the previous standalone. Alan ___ 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] Color profile not found
I get an error when I use. \setupbackend[ format=PDF/X-3:2003, intent={Coated FOGRA39 (ISO 12647-2:2004)}, ] backend > profiles > profile specification 'Coated FOGRA39 (ISO 12647-2:2004)' loaded from '/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'CoatedFOGRA39.icc' backend > profiles > invalid output intent 'Coated FOGRA39 (ISO 12647-2:2004)' I copied the file CoatedFOGRA39.icc to context/tex/texmf-context/colors/icc/profiles My setup worked before. Using the intent "ISO Coated v2 300\letterpercent\space (ECI)" I get no error. TIA juh ___ 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] Where to put icc color profiles
Hi all, I downloaded some color profiles and stored them in: /context/tex/texmf-context/colors/icc/profiles But they get overwritten, when I update context. Can I put color profiles in the working folder of my project. And how do I access them with setupbackend? TIA juh -- Software-Dokumentation mit Sphinx http://www.amazon.de/dp/1497448689/ Paperback: 224 Seiten ___ 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] Title from setupinteraction used in header
Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter}, keyword={context}] \starttext \startchapter[title={chapter title},] \input lorem \stopchapter \startchapter[title={another chapter title},] \input lorem \stopchapter \stoptext How can I insert title, subtitle and author from setupinteraction into headertexts? Background: authors shall define title, subtitle etc in the product file with setupinteraction (or a better method if available). In the environment file I want to insert theses informations into headers and footers. TIA juh ___ 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] Show the letters of the alphabet with a loop (Metapost)
Sorry Henri, but I still have a question : how to have the letters in bold type ? Thank you. Fabrice Le dim. 3 févr. 2019 à 10:12, Fabrice Couvreur a écrit : > Hi Henry > Thank you for everything. > Fabrice > > Le sam. 2 févr. 2019 à 20:58, Henri Menke a écrit : > >> On 2/2/19 11:49 PM, Fabrice Couvreur wrote: >> > Hi Henri, >> > Great ! I would also like these letters to be randomly colored. >> >> You should play with randomseed, the starting color (here white) and the >> randomization amplitude (1,1,1). You mileage may vary. >> >> \starttext >> >> \startMPcode >> for i=0 upto 3 : >> for j=0 upto 3 : >> draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; >> endfor ; >> endfor ; >> for i=0 upto 4 : >> for j=0 upto 4 : >> label.llft(char(i*5+j+ASCII "A"), (4*i*cm,4*j*cm)) >> withcolor white randomized (1,1,1) ; >> endfor ; >> endfor ; >> \stopMPcode >> >> \stoptext >> >> > Thank you. >> > Fabrice >> > >> > Le sam. 2 févr. 2019 à 11:16, Henri Menke a >> écrit : >> > >> >> On 2/2/19 10:47 PM, Fabrice Couvreur wrote: >> >> > The idea is to display the first 25 letters of the alphabet. The code >> >> below >> >> > shows the letter a to show what I want to do. >> >> > Thank you. >> >> > Fabrice >> >> >> >> Use char and ASCII. >> >> >> >> \starttext >> >> >> >> \startMPcode >> >> for i=0 upto 3 : >> >> for j=0 upto 3 : >> >> draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; >> >> endfor ; >> >> endfor ; >> >> for i=0 upto 4 : >> >> for j=0 upto 4 : >> >> label.llft(char(i*5+j+ASCII "A"), (4*i*cm,4*j*cm)) ; >> >> endfor ; >> >> endfor ; >> >> \stopMPcode >> >> >> >> \stoptext >> >> >> >> > >> >> > \starttext >> >> > >> >> > \startMPcode >> >> > for i=0 upto 3 : >> >> > for j=0 upto 3 : >> >> > draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; >> >> > endfor ; >> >> > endfor ; >> >> > for i=0 upto 4 : >> >> > for j=0 upto 4 : >> >> > label.llft("A", (4*i*cm,4*j*cm)) ; >> >> > endfor ; >> >> > endfor ; >> >> > \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 >> >> > >> >> >> ___ >> >> > >> >> >> >> >> >> >> ___ >> >> 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 >> > >> ___ >> > >> >> >> ___ >> 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 ___
[NTG-context] About the macro path intersectionpoint path with Metapost
Hi, I would like to reproduce the attached figure. My problem is to create the points of intersection between the circles. It seems that my approach is not the right one. Thank you. Fabrice \starttext \startMPcode path p, q, r, b ; p:= fullcircle scaled 6cm ; q:= fullcircle scaled 4cm shifted (2.5cm,2cm) ; r:= fullcircle scaled 4cm shifted (-2.5cm,2cm); b:= fullcircle scaled 2cm shifted (0,-3cm); pair A, B ; A:= p intersectionpoint r ; B:= p intersectionpoint r ; path u ; u:= A--B--cycle ; draw p ; draw q ; draw r ; draw b ; draw u numberstriped (.25,15,5) withcolor magenta ; \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] Show the letters of the alphabet with a loop (Metapost)
Hi Henry Thank you for everything. Fabrice Le sam. 2 févr. 2019 à 20:58, Henri Menke a écrit : > On 2/2/19 11:49 PM, Fabrice Couvreur wrote: > > Hi Henri, > > Great ! I would also like these letters to be randomly colored. > > You should play with randomseed, the starting color (here white) and the > randomization amplitude (1,1,1). You mileage may vary. > > \starttext > > \startMPcode > for i=0 upto 3 : > for j=0 upto 3 : > draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; > endfor ; > endfor ; > for i=0 upto 4 : > for j=0 upto 4 : > label.llft(char(i*5+j+ASCII "A"), (4*i*cm,4*j*cm)) > withcolor white randomized (1,1,1) ; > endfor ; > endfor ; > \stopMPcode > > \stoptext > > > Thank you. > > Fabrice > > > > Le sam. 2 févr. 2019 à 11:16, Henri Menke a > écrit : > > > >> On 2/2/19 10:47 PM, Fabrice Couvreur wrote: > >> > The idea is to display the first 25 letters of the alphabet. The code > >> below > >> > shows the letter a to show what I want to do. > >> > Thank you. > >> > Fabrice > >> > >> Use char and ASCII. > >> > >> \starttext > >> > >> \startMPcode > >> for i=0 upto 3 : > >> for j=0 upto 3 : > >> draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; > >> endfor ; > >> endfor ; > >> for i=0 upto 4 : > >> for j=0 upto 4 : > >> label.llft(char(i*5+j+ASCII "A"), (4*i*cm,4*j*cm)) ; > >> endfor ; > >> endfor ; > >> \stopMPcode > >> > >> \stoptext > >> > >> > > >> > \starttext > >> > > >> > \startMPcode > >> > for i=0 upto 3 : > >> > for j=0 upto 3 : > >> > draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; > >> > endfor ; > >> > endfor ; > >> > for i=0 upto 4 : > >> > for j=0 upto 4 : > >> > label.llft("A", (4*i*cm,4*j*cm)) ; > >> > endfor ; > >> > endfor ; > >> > \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 > >> > > >> > ___ > >> > > >> > >> > >> > ___ > >> 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 > > > ___ > > > > > ___ > 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 ___