Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On 11/21/2018 1:37 PM, Ulrike Fischer wrote: Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer: Khaled wrote that "is that [the code] uses the last palette color A bit too much deleted. It should say "it is a bug that ..." in context use the context interface (which uses a different implementation of the function you call) \starttext \definefontfeature[seguiemj-cl][default][colr=yes,ccmp=yes,dist=yes] \definefontsynonym[emoji][seguiemj*seguiemj-cl] \definecolor[emoji-red] [r=.4] \definecolor[emoji-gray][s=1,t=.5,a=1] \definefontcolorpalette [emoji-r] [emoji-red,emoji-gray] \definefontfeature[seguiemj-r][ccmp=yes,dist=yes,colr=emoji-r] \definefont[MyEmojiR][seguiemj*seguiemj-r @ 100pt] \startTEXpage[offset=10pt] \MyEmojiR\resolvedemoji{triangular ruler} \stopTEXpage \stoptext I'm not sure what yoy mwan with 0x as that's intercepted .. the choice for the last color as default is just that, a choice, could be the first one or none (or configureable if needed) 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] Issues with RGB to CMYK conversion with color profiles
On Wed, Nov 21, 2018 at 3:02 PM Jan U. Hasecke wrote: > Am 19.11.18 um 11:14 schrieb luigi scarso: > > > Perhaps this is still useful > > https://www.tug.org/TUGboat/tb31-3/tb99scarso.pdf > > Thanks a lot for the hint. > > I don't understand the equations but at least I found transicc to > calculate color conversions. > > What precision is useful in the wild? > > I now use three digits after the decimal point, eg.: > > \definecolor [hs-logoblau] [c=0.976, m=0.665, y=0.028, k=0.116] > > It's safe to specify a color as 8bit per channel rgb, or in percent. i.e. see for example https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F (more on https://en.wikipedia.org/wiki/Lists_of_colors ) 16bit per channel rgb are also possible, but old RIP can have problems (for example https://www.pantone.com/color-finder/#/pick?pantoneBook=pantoneSolidCoatedV3M2 shows rgb 8bit per channel and CMYK 0 to 100) Btw: be careful of the checker shadow illusion https://en.wikipedia.org/wiki/Optical_illusion colors not always look as they are expressed in numeric form. -- luigi ___ 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] Issues with RGB to CMYK conversion with color profiles
Am 19.11.18 um 11:14 schrieb luigi scarso: > Perhaps this is still useful > https://www.tug.org/TUGboat/tb31-3/tb99scarso.pdf Thanks a lot for the hint. I don't understand the equations but at least I found transicc to calculate color conversions. What precision is useful in the wild? I now use three digits after the decimal point, eg.: \definecolor [hs-logoblau] [c=0.976, m=0.665, y=0.028, k=0.116] 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] font-ocl.lua:76: attempt to call a nil value (field 'register')
Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer: > Khaled wrote that "is that [the code] uses the last palette color A bit too much deleted. It should say "it is a bug that ..." -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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] font-ocl.lua:76: attempt to call a nil value (field 'register')
I tried to register a demo colorpalette: \starttext \directlua{fonts.handlers.otf.registerpalette("demo", { { g=1 }, %accents { b=1 }, %06dd { r=0.5, g=0.5, b=0.5 }, %unused? { g = 0.5, b=0, r=1 }, } )} blub \stoptext and got the error font-ocl.lua:76: attempt to call a nil value (field 'register') (I wanted to test the coloring of https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf, Khaled wrote that "is that [the code] uses the last palette color for layers using paletteIndex 0x (special value that means use text color)." and that local default = colorvalues[#colorvalues] font-ocl.lua is faulty) -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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] Issues with RGB to CMYK conversion with color profiles
On Mon, Nov 19, 2018 at 10:57 AM Henning Hraban Ramm wrote: > > It would make sense to outsource color calculations to a color management > library like LittleCMS. > > yes. Perhaps this is still useful https://www.tug.org/TUGboat/tb31-3/tb99scarso.pdf -- luigi ___ 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] Issues with RGB to CMYK conversion with color profiles
Am 2018-11-18 um 19:26 schrieb Hans Hagen : > On 11/14/2018 4:51 PM, Wolfgang Schuster wrote: >> Jan U. Hasecke schrieb am 14.11.18 um 11:39: >>> Hi all, >>> >>> attached you find my colormanagement tests and I need your help to >>> understand and debug the situation. >>> >>> I am testing together with a friend of mine, a professional >>> colormanager, who does not know ConTeXt. >> Even without a color profile the results from the normal conversion of >> colors from cmyk to rgb >> can result in differences between ConTeXt and Gimp because both use >> different formulas. >> This is the formula from ConTeXt (attr-col.lua) >> r = 1.0 - math.min(1.0,c+k) >> g = 1.0 - math.min(1.0,m+k) >> b = 1.0 - math.min(1.0,y+k) >> and this is the one from Gimp >> (https://gitlab.gnome.org/GNOME/gimp/blob/master/libgimpcolor/gimpcolorspace.c) >> r = 1.0 - math.min(1.0,c*(1.0-k)+k) >> g = 1.0 - math.min(1.0,m*(1.0-k)+k) >> b = 1.0 - math.min(1.0,y*(1.0-k)+k) > Are there more variants? Do we need to support variants? Oh my, color separation is a science of its own, but not an exact science... Any really usable color conversion algorithm uses color profiles. It would make sense to outsource color calculations to a color management library like LittleCMS. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Issues with RGB to CMYK conversion with color profiles
On 11/14/2018 4:51 PM, Wolfgang Schuster wrote: Jan U. Hasecke schrieb am 14.11.18 um 11:39: Hi all, attached you find my colormanagement tests and I need your help to understand and debug the situation. I am testing together with a friend of mine, a professional colormanager, who does not know ConTeXt. Even without a color profile the results from the normal conversion of colors from cmyk to rgb can result in differences between ConTeXt and Gimp because both use different formulas. This is the formula from ConTeXt (attr-col.lua) r = 1.0 - math.min(1.0,c+k) g = 1.0 - math.min(1.0,m+k) b = 1.0 - math.min(1.0,y+k) and this is the one from Gimp (https://gitlab.gnome.org/GNOME/gimp/blob/master/libgimpcolor/gimpcolorspace.c) r = 1.0 - math.min(1.0,c*(1.0-k)+k) g = 1.0 - math.min(1.0,m*(1.0-k)+k) b = 1.0 - math.min(1.0,y*(1.0-k)+k) Are there more variants? Do we need to support variants? 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] Footnotes and endnotes
> Am 17.11.2018 um 15:43 schrieb Pablo Rodriguez : > > On 11/17/18 1:51 PM, Axel Kielhorn wrote: >> Hello, > > Hi Axel, > >> I want to show the translator notes in a different way. Right now I >> have the footnote in green, but the footnote marker in the text does >> change neither font nor color?> Shouldn’t the marker be green and >> bold? Setting numberconversion works, but the other options seem to >> be without effect. > >\setupnote[translaternote][textstyle=\bf, textcolor=green] With this information I found: https://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote The headcolor in \setupnotation is actually the color of the marker in the note while the maker in the text is defined with \setupnote. I guess I have to request edit rights for the garden. DONE > >> I want to include longer notes as endnotes. I can change the marker >> shown with the notes to (1) but he marker in the text does not >> change. Thus you can’t distinguish between a footnote and an >> endnote. > > As far as I know, left and right arent’t options in \setupnote. The page mentioned above offers the following solution: \definenote[commentnote][endnote] \setupnotation[commentnote] [color=red,left={(},right={)}] \setupnote [commentnote] [textcommand=\mycommentcommand] \define[1]\mycommentcommand{\high{\tfxx(#1)}} Thanks for pointing me in the right direction. Axel ___ 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] Footnotes and endnotes
On 11/17/18 1:51 PM, Axel Kielhorn wrote: > Hello, Hi Axel, > I want to show the translator notes in a different way. Right now I > have the footnote in green, but the footnote marker in the text does > change neither font nor color?> Shouldn’t the marker be green and > bold? Setting numberconversion works, but the other options seem to > be without effect. \setupnote[translaternote][textstyle=\bf, textcolor=green] > I want to include longer notes as endnotes. I can change the marker > shown with the notes to (1) but he marker in the text does not > change. Thus you can’t distinguish between a footnote and an > endnote. As far as I know, left and right arent’t options in \setupnote. > I tried a footnote within a footnote, that didn’t work, should it? (I > don’t actually need this, I was just curious.) They don’t work (I wonder what might they be useful for). But Hans or Wolfgang know better. > When I define commentnote based on endnote I get the same numbering. > How can I either - use different counters for both kind of notes or I guess you have to avoid defining commentnote based on endnote. You may always do the following: \setupnotation [authornote, endnote, commentnote, footnote, translaterpnote] [style=bold] > - print both notes with the same placenotes command, in the right > order? Then, place the notes in the right order. But in that case, only using one kind of notes may be less problematic. I hope it helps, 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] Footnotes and endnotes
Hello, I have some problems with footnotes and endnotes. I have two kinds of footnotes: Those by the original author and those by the translator. I want to show the translator notes in a different way. Right now I have the footnote in green, but the footnote marker in the text does change neither font nor color? Shouldn’t the marker be green and bold? Setting numberconversion works, but the other options seem to be without effect. I want to include longer note as endnotes. I can change the marker shown with the notes to (1) but he marker in the text does not change. Thus you can’t distinguish between a footnote and an endnote. I tried a footnote within a footnote, that didn’t work, should it? (I don’t actually need this, I was just curious.) When I define commentnote based on endnote I get the same numbering. How can I either - use different counters for both kind of notes or - print both notes with the same placenotes command, in the right order? Greetings Axel \starttext \definenote[authornote][footnote] \setupnotation[authornote] [style=bold] \definenote[translaternote][rule=off] \setupnotation[translaternote] [headstyle=bold, numberconversion=a, headcolor=green, style=bolditalic, color=green] % No color for the footnotemark? \definenote[translaterpnote][rule=off] \setupnotation[translaterpnote] [way=bypage, numberconversion=set 2,headstyle=bold] \definenote[commentnote][endnote] \setupnotation[commentnote] [color=red,left={(},right={)}] % How to style the footnotemark in the text? \setupnotation[endnote] [left={(},right={)}] \startsection[ reference=fußnoten, title={Fußnoten} ] \index{Fußnoten} \input ward\footnote{Eine normale Fußnote. Mit etwas Text, damit die Seite voll wird. \input ward} \input ward\translaternote{Eine Fußnote des Übersetzters} \commentnote{Mehr Informationen gibt es in den Endnoten am Ende des Kapitels.} \input ward\translaterpnote{Alternativ kann man die Übersetzernoten auch seitenweise nummerieren. Zur Unterscheidung von normalen Fußnoten hier mit Zeichen statt Zahlen.} \input ward\footnote{Was ist mit Fußnoten in Fußnoten?\footnote{Das geht natürlich auch.}} % Why not? \input ward\endnote{Eine normale Endnote, ohne spezielle Formatierung. Man kann sie nicht von einer Fußnote unterscheiden.} \input ward\translaterpnote{Die zweite Fußnote auf der Seite.} \startsubsection[title={Endnoten}] \placenotes[endnote] \placenotes[commentnote] \stopsubsection \stopsection \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] Issues with RGB to CMYK conversion with color profiles
Jan U. Hasecke schrieb am 14.11.18 um 11:39: Hi all, attached you find my colormanagement tests and I need your help to understand and debug the situation. I am testing together with a friend of mine, a professional colormanager, who does not know ConTeXt. Even without a color profile the results from the normal conversion of colors from cmyk to rgb can result in differences between ConTeXt and Gimp because both use different formulas. This is the formula from ConTeXt (attr-col.lua) r = 1.0 - math.min(1.0,c+k) g = 1.0 - math.min(1.0,m+k) b = 1.0 - math.min(1.0,y+k) and this is the one from Gimp (https://gitlab.gnome.org/GNOME/gimp/blob/master/libgimpcolor/gimpcolorspace.c) r = 1.0 - math.min(1.0,c*(1.0-k)+k) g = 1.0 - math.min(1.0,m*(1.0-k)+k) b = 1.0 - math.min(1.0,y*(1.0-k)+k) 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Am 14.11.18 um 16:04 schrieb Peter Rolf: > Mh, the file size of "ISOcoated_v2_300_eci.icc" is around 1.7MB. I > highly doubt that ConTeXt can compress it into a 10KB PDF. > > But I'm not so sure if PDF/X-3 needs embedding (there was an exception). > Never used it (only PDF/X-4p) and I can't remember the specifications > (all those stuff was added over 8 years ago). > > I just assume you have installed the icc profiles properly (needs a > manual installation!) :D There are some profiles in the context installation. At least something was found: backend > profiles > profile specification 'ISOcoated_v2_300_eci.icc' loaded from '/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > omitting reference to profile for intent 'ISO Coated v2 300% (ECI)' But, yes the size is too small to have the whole profile incorporated. 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Am 2018-11-14 um 15:36 schrieb Jan U. Hasecke: > Thanks a lot, Peter. > > Am 14.11.18 um 14:58 schrieb Peter Rolf: >> Hi Jan, >> >> I donno if things have changed (ConTeXt is a fast moving target), so >> take my answers with a grain of salt. >> >> (1) >> AFAIK there is no ACTIVE color management in ConTeXt in the sense that >> there is an automatic color conversion from one profiled(!) colorspace >> into another profiled color space. This means that all given colors >> (objects) have to be in the correct (profiled) color space already! >> >> Objects with embedded color profiles (e.g. a PDF bitmap graphic with icc >> profile) will use those. Objects without a profile will use the >> corresponding "default" color space profiles. These default color space >> profiles can be defined via "profile" in \setupbackend. >> This way every color in the PDF is defined properly. > > This would clarify some of the issues. > > When I define rgb colors AND use not-print-modus I get the right rgb > colors in the pdf. > > When I define cmyk colors AND use print modus I get colors that might be > correct (tested next week) > > But obviously it is not possible to define both color spaces in > \definecolor because I don't get the same colors in the pdf as with the > cmyk-only defined file. > > Maybe I misunderstood this, I've got a hint here, that I could define > rgb and cmyk in the same \definecolor and choose the right color space > in \setupcolors. > > The correct method of defining rgb AND cmyk in the same file would be to > put the definecolor command inside a startstopmode-environment. > > Can someone confirm this? > Should work (the other part is invisible for ConTeXt). >> >> (2) >> >> I think so. Can't test, because my Windows 10 is beyond repair after >> three "upgrades" and Acrobat is not working properly anymore. >> >> (3) >> >> Judging from the size of the final PDF, the icc profile is not embedded. >> The profiles have to be installed in "the right place" (this includes >> ConTeXt but also the PDF viewer software). >> >> See "ICC profiles" section at >> >> https://wiki.contextgarden.net/PDFX >> > > With --mode=print (which uses the color profiles) the pdf get bigger. >> 10.000 compared to 8.000 without the mode. So I would guess that they > are included. > Mh, the file size of "ISOcoated_v2_300_eci.icc" is around 1.7MB. I highly doubt that ConTeXt can compress it into a 10KB PDF. But I'm not so sure if PDF/X-3 needs embedding (there was an exception). Never used it (only PDF/X-4p) and I can't remember the specifications (all those stuff was added over 8 years ago). I just assume you have installed the icc profiles properly (needs a manual installation!) :D > I hope I get this sorted out, because I want to print a series of > folders and other print products with ConTeXt in the near future. > > juh > >> (5) see (1) and (3) >> >> >> >> Hope this helps, >> >> >> Peter >> >> >> Am 2018-11-14 um 11:39 schrieb Jan U. Hasecke: >>> Hi all, >>> >>> attached you find my colormanagement tests and I need your help to >>> understand and debug the situation. >>> >>> I am testing together with a friend of mine, a professional >>> colormanager, who does not know ConTeXt. >>> >>> >>> There are several files in the archive: >>> >>> The differences in the files are the color definition and the color >>> profile used. >>> >>> - rgb-xxx.tex – colors are defined with RGB values only. >>> >>> - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. >>> >>> The cmyk colors are derived from the rgb values using gimp and the >>> color profiles sRGB/ISOCoated >>> >>> - cmyk-xxx.tex – colors are defined with CMYK values only. >>> >>> The xxx stand for two color profiles: iso-coated and swop. >>> >>> What I see is this: >>> >>> Colors in pdfs are the same no matter what color profile I choose. >>> >>> With rgb values and rgb/cmyk values I get the same colors in pdf (the >>> wrong ones). >>> >>> With cmyk values only I get other colors in pdf. Next week my friend >>> will test if these are the right ones. >>> >>> I have many questions: >>> >>> 1. Is colormanagement working in ConTeXt at all? >>> 2. Is my code correct? >>> 3. Why d
Re: [NTG-context] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Thanks a lot, Peter. Am 14.11.18 um 14:58 schrieb Peter Rolf: > Hi Jan, > > I donno if things have changed (ConTeXt is a fast moving target), so > take my answers with a grain of salt. > > (1) > AFAIK there is no ACTIVE color management in ConTeXt in the sense that > there is an automatic color conversion from one profiled(!) colorspace > into another profiled color space. This means that all given colors > (objects) have to be in the correct (profiled) color space already! > > Objects with embedded color profiles (e.g. a PDF bitmap graphic with icc > profile) will use those. Objects without a profile will use the > corresponding "default" color space profiles. These default color space > profiles can be defined via "profile" in \setupbackend. > This way every color in the PDF is defined properly. This would clarify some of the issues. When I define rgb colors AND use not-print-modus I get the right rgb colors in the pdf. When I define cmyk colors AND use print modus I get colors that might be correct (tested next week) But obviously it is not possible to define both color spaces in \definecolor because I don't get the same colors in the pdf as with the cmyk-only defined file. Maybe I misunderstood this, I've got a hint here, that I could define rgb and cmyk in the same \definecolor and choose the right color space in \setupcolors. The correct method of defining rgb AND cmyk in the same file would be to put the definecolor command inside a startstopmode-environment. Can someone confirm this? > > (2) > > I think so. Can't test, because my Windows 10 is beyond repair after > three "upgrades" and Acrobat is not working properly anymore. > > (3) > > Judging from the size of the final PDF, the icc profile is not embedded. > The profiles have to be installed in "the right place" (this includes > ConTeXt but also the PDF viewer software). > > See "ICC profiles" section at > > https://wiki.contextgarden.net/PDFX > With --mode=print (which uses the color profiles) the pdf get bigger. >10.000 compared to 8.000 without the mode. So I would guess that they are included. I hope I get this sorted out, because I want to print a series of folders and other print products with ConTeXt in the near future. juh > (5) see (1) and (3) > > > > Hope this helps, > > > Peter > > > Am 2018-11-14 um 11:39 schrieb Jan U. Hasecke: >> Hi all, >> >> attached you find my colormanagement tests and I need your help to >> understand and debug the situation. >> >> I am testing together with a friend of mine, a professional >> colormanager, who does not know ConTeXt. >> >> >> There are several files in the archive: >> >> The differences in the files are the color definition and the color >> profile used. >> >> - rgb-xxx.tex – colors are defined with RGB values only. >> >> - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. >> >> The cmyk colors are derived from the rgb values using gimp and the >> color profiles sRGB/ISOCoated >> >> - cmyk-xxx.tex – colors are defined with CMYK values only. >> >> The xxx stand for two color profiles: iso-coated and swop. >> >> What I see is this: >> >> Colors in pdfs are the same no matter what color profile I choose. >> >> With rgb values and rgb/cmyk values I get the same colors in pdf (the >> wrong ones). >> >> With cmyk values only I get other colors in pdf. Next week my friend >> will test if these are the right ones. >> >> I have many questions: >> >> 1. Is colormanagement working in ConTeXt at all? >> 2. Is my code correct? >> 3. Why do pdfs with different color profiles show the same colors? >> 4. Why does ConTeXt not take the cmyk colors from \definecolor when >> there are rgb values as well? >> 5. Where can I define a coresponding rgb profile? In Scribus you have to >> define two profiles (eg. sRGB and ISOCoated) to make colormanagement work. >> >> 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Hi Jan, I donno if things have changed (ConTeXt is a fast moving target), so take my answers with a grain of salt. (1) AFAIK there is no ACTIVE color management in ConTeXt in the sense that there is an automatic color conversion from one profiled(!) colorspace into another profiled color space. This means that all given colors (objects) have to be in the correct (profiled) color space already! Objects with embedded color profiles (e.g. a PDF bitmap graphic with icc profile) will use those. Objects without a profile will use the corresponding "default" color space profiles. These default color space profiles can be defined via "profile" in \setupbackend. This way every color in the PDF is defined properly. (2) I think so. Can't test, because my Windows 10 is beyond repair after three "upgrades" and Acrobat is not working properly anymore. (3) Judging from the size of the final PDF, the icc profile is not embedded. The profiles have to be installed in "the right place" (this includes ConTeXt but also the PDF viewer software). See "ICC profiles" section at https://wiki.contextgarden.net/PDFX (5) see (1) and (3) Hope this helps, Peter Am 2018-11-14 um 11:39 schrieb Jan U. Hasecke: > Hi all, > > attached you find my colormanagement tests and I need your help to > understand and debug the situation. > > I am testing together with a friend of mine, a professional > colormanager, who does not know ConTeXt. > > > There are several files in the archive: > > The differences in the files are the color definition and the color > profile used. > > - rgb-xxx.tex – colors are defined with RGB values only. > > - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. > > The cmyk colors are derived from the rgb values using gimp and the > color profiles sRGB/ISOCoated > > - cmyk-xxx.tex – colors are defined with CMYK values only. > > The xxx stand for two color profiles: iso-coated and swop. > > What I see is this: > > Colors in pdfs are the same no matter what color profile I choose. > > With rgb values and rgb/cmyk values I get the same colors in pdf (the > wrong ones). > > With cmyk values only I get other colors in pdf. Next week my friend > will test if these are the right ones. > > I have many questions: > > 1. Is colormanagement working in ConTeXt at all? > 2. Is my code correct? > 3. Why do pdfs with different color profiles show the same colors? > 4. Why does ConTeXt not take the cmyk colors from \definecolor when > there are rgb values as well? > 5. Where can I define a coresponding rgb profile? In Scribus you have to > define two profiles (eg. sRGB and ISOCoated) to make colormanagement work. > > 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 > ___ > ___ 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
I forgot the archive. :-( Am 14.11.18 um 11:39 schrieb Jan U. Hasecke: > Hi all, > > attached you find my colormanagement tests and I need your help to > understand and debug the situation. > > I am testing together with a friend of mine, a professional > colormanager, who does not know ConTeXt. > > > There are several files in the archive: > > The differences in the files are the color definition and the color > profile used. > > - rgb-xxx.tex – colors are defined with RGB values only. > > - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. > > The cmyk colors are derived from the rgb values using gimp and the > color profiles sRGB/ISOCoated > > - cmyk-xxx.tex – colors are defined with CMYK values only. > > The xxx stand for two color profiles: iso-coated and swop. > > What I see is this: > > Colors in pdfs are the same no matter what color profile I choose. > > With rgb values and rgb/cmyk values I get the same colors in pdf (the > wrong ones). > > With cmyk values only I get other colors in pdf. Next week my friend > will test if these are the right ones. > > I have many questions: > > 1. Is colormanagement working in ConTeXt at all? > 2. Is my code correct? > 3. Why do pdfs with different color profiles show the same colors? > 4. Why does ConTeXt not take the cmyk colors from \definecolor when > there are rgb values as well? > 5. Where can I define a coresponding rgb profile? In Scribus you have to > define two profiles (eg. sRGB and ISOCoated) to make colormanagement work. > > 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 > ___ > <> ___ 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Hi all, attached you find my colormanagement tests and I need your help to understand and debug the situation. I am testing together with a friend of mine, a professional colormanager, who does not know ConTeXt. There are several files in the archive: The differences in the files are the color definition and the color profile used. - rgb-xxx.tex – colors are defined with RGB values only. - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. The cmyk colors are derived from the rgb values using gimp and the color profiles sRGB/ISOCoated - cmyk-xxx.tex – colors are defined with CMYK values only. The xxx stand for two color profiles: iso-coated and swop. What I see is this: Colors in pdfs are the same no matter what color profile I choose. With rgb values and rgb/cmyk values I get the same colors in pdf (the wrong ones). With cmyk values only I get other colors in pdf. Next week my friend will test if these are the right ones. I have many questions: 1. Is colormanagement working in ConTeXt at all? 2. Is my code correct? 3. Why do pdfs with different color profiles show the same colors? 4. Why does ConTeXt not take the cmyk colors from \definecolor when there are rgb values as well? 5. Where can I define a coresponding rgb profile? In Scribus you have to define two profiles (eg. sRGB and ISOCoated) to make colormanagement work. 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] Issues with RGB to CMYK conversion with color profiles
On 11/12/2018 9:02 AM, Jan U. Hasecke wrote: Hi all, with the following file I tested the color conversion of context. I get the same CMYK-values in the output pdf file using different color profiles. A friend of mine can test the color values of PDF with a special software. My guess: the profiles are not used during pdf generation. You can test this by commenting/uncommenting the other profile. I created the files with context --mode=print example.tex My context version is mtx-context | ConTeXt Process Management 1.02 mtx-context | current version: 2018.08.30 18:41 Is this the correct way of producing cmyk-pdfs? I am missing the declaration of the RGB color profile. When doing color management in Scribus I define two profiles: one for RGB and one for CMYK. AFAIK you need both to convert rgb to cmyk. Any hints? it's probably better to define hs-dunkelblau etc in cmyk color space then juh --- example.tex --- \definecolor [hs-logoblau] [r=0.000, g=0.314, b=0.580] \definecolor [hs-dunkelblau] [r=0.258, g=0.474, b=0.737] \definecolor [hs-hellblau] [r=0.6, g=0.737, b=0.858] \definecolor [hs-orange] [r=0.866, g=0.286, b=0.003] \startnotmode[print] \setupcolors[cmyk=no,rgb=yes] \stopnotmode \startmode[print] \setupcolors[cmyk=yes,rgb=no] \setupbackend[ format=PDF/X-1a:2003, % intent={ISO Coated v2 300\letterpercent\space (ECI)}, intent={SWOP2006_Coated3v2.icc}, ] \stopmode \setuppapersize [A4] [A4] \starttext \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-orange] HS Orange r=0.866, g=0.286, b=0.003 \blank \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-logoblau] HS Logoblau r=0.000, g=0.314, b=0.580 \blank \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-dunkelblau] HS Dunkelblau r=0.258, g=0.474, b=0.737 \blank \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-hellblau] HS Hellblau r=0.6, g=0.737, b=0.858 \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 ___ -- - 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Hi all, with the following file I tested the color conversion of context. I get the same CMYK-values in the output pdf file using different color profiles. A friend of mine can test the color values of PDF with a special software. My guess: the profiles are not used during pdf generation. You can test this by commenting/uncommenting the other profile. I created the files with context --mode=print example.tex My context version is mtx-context | ConTeXt Process Management 1.02 mtx-context | current version: 2018.08.30 18:41 Is this the correct way of producing cmyk-pdfs? I am missing the declaration of the RGB color profile. When doing color management in Scribus I define two profiles: one for RGB and one for CMYK. AFAIK you need both to convert rgb to cmyk. Any hints? juh --- example.tex --- \definecolor [hs-logoblau] [r=0.000, g=0.314, b=0.580] \definecolor [hs-dunkelblau] [r=0.258, g=0.474, b=0.737] \definecolor [hs-hellblau] [r=0.6, g=0.737, b=0.858] \definecolor [hs-orange] [r=0.866, g=0.286, b=0.003] \startnotmode[print] \setupcolors[cmyk=no,rgb=yes] \stopnotmode \startmode[print] \setupcolors[cmyk=yes,rgb=no] \setupbackend[ format=PDF/X-1a:2003, % intent={ISO Coated v2 300\letterpercent\space (ECI)}, intent={SWOP2006_Coated3v2.icc}, ] \stopmode \setuppapersize [A4] [A4] \starttext \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-orange] HS Orange r=0.866, g=0.286, b=0.003 \blank \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-logoblau] HS Logoblau r=0.000, g=0.314, b=0.580 \blank \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-dunkelblau] HS Dunkelblau r=0.258, g=0.474, b=0.737 \blank \blackrule[width=3cm,height=1cm,depth=0pt,color=hs-hellblau] HS Hellblau r=0.6, g=0.737, b=0.858 \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] Table, xtable and lua
On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxtable({"align=middle, width=1.25cm"}) > context.startxrow() > context.startxcell({"width=0.5cm"}) context("") context.stopxcell() > letter = {'A','B','C','D','E','F','G','H','I','J'} > for letter = 1,10 do > context.startxcell() context(print(letter)) context.stopxcell() > end letters = {'A','B','C','D','E','F','G','H','I','J'} for _,letter in ipairs(letters) do context.startxcell() context(letter) context.stopxcell() end > context.stopxrow() > context.startxrow({"background=color","backgroundcolor=gray"}) > > context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"}) > context("1") context.stopxcell() > context.startxcell({"width=2cm"}) context("Année") context.stopxcell() > for y = 1998,2006 do > context.startxcell() context(y) context.stopxcell() > end > context.stopxrow() > context.startxrow() > context.startxcell({"width=0.5cm"}) context("2") context.stopxcell() > > context.startxcell({"width=2cm","background=color","backgroundcolor=gray"}) > context("Prix (kg)") context.stopxcell() > local p = 1 > for y = 1,9 do > context.startxcell() context("%0.3f",p) context.stopxcell() > p = p*1.031 > end > context.stopxrow() > context.stopxtable() > \stopluacode > \stopmidaligned > \stoplinecorrection > \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 ___
Re: [NTG-context] Table, xtable and lua
On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxtable({"align=middle, width=1.25cm"}) > context.startxrow() > context.startxcell({"width=0.5cm"}) context("") context.stopxcell() > letter = {'A','B','C','D','E','F','G','H','I','J'} > for letter = 1,10 do > context.startxcell() context(print(letter)) context.stopxcell() > end for _,letter in ipairs(letters) do context.startxcell() context(letter) context.stopxcell() end > context.stopxrow() > context.startxrow({"background=color","backgroundcolor=gray"}) > > context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"}) > context("1") context.stopxcell() > context.startxcell({"width=2cm"}) context("Année") context.stopxcell() > for y = 1998,2006 do > context.startxcell() context(y) context.stopxcell() > end > context.stopxrow() > context.startxrow() > context.startxcell({"width=0.5cm"}) context("2") context.stopxcell() > > context.startxcell({"width=2cm","background=color","backgroundcolor=gray"}) > context("Prix (kg)") context.stopxcell() > local p = 1 > for y = 1,9 do > context.startxcell() context("%0.3f",p) context.stopxcell() > p = p*1.031 > end > context.stopxrow() > context.stopxtable() > \stopluacode > \stopmidaligned > \stoplinecorrection > \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 ___
[NTG-context] Table, xtable and lua
Hi, I can not complete the first line of the table with the letters of the alphabet. Thank you. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \startluacode context.startxtable({"align=middle, width=1.25cm"}) context.startxrow() context.startxcell({"width=0.5cm"}) context("") context.stopxcell() letter = {'A','B','C','D','E','F','G','H','I','J'} for letter = 1,10 do context.startxcell() context(print(letter)) context.stopxcell() end context.stopxrow() context.startxrow({"background=color","backgroundcolor=gray"}) context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"}) context("1") context.stopxcell() context.startxcell({"width=2cm"}) context("Année") context.stopxcell() for y = 1998,2006 do context.startxcell() context(y) context.stopxcell() end context.stopxrow() context.startxrow() context.startxcell({"width=0.5cm"}) context("2") context.stopxcell() context.startxcell({"width=2cm","background=color","backgroundcolor=gray"}) context("Prix (kg)") context.stopxcell() local p = 1 for y = 1,9 do context.startxcell() context("%0.3f",p) context.stopxcell() p = p*1.031 end context.stopxrow() context.stopxtable() \stopluacode \stopmidaligned \stoplinecorrection \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] Colormanagement
On 11/10/2018 2:34 PM, Jan U. Hasecke wrote: Am 09.11.18 um 17:20 schrieb luigi scarso: I think you should use the best colorspace (rgb ) and let the print shop do its job -- of course this means that you have signed their sample (hard proof) of your project. I really tend to do this. I am currently exploring the color management system of ConTeXt together with a friend you is working as a color manager in print industry. And my first try was a failure. The cmyk values in the resulting pdf file (with color profile) differs from the values we calculated (using the same color profile in Gimp). But we have to investigate a bit further, so don't panic. Maybe I the fault was mine. Is there a test case tex file we could use to test the color management? there is no real 1-1 translation from rgb-cmyk .. in many programs that do that there is some additional magic (i remember that photoshop also applied the paper properties and that there was no roundtrip) this is where color profiles come in even viewers (like acrobat) can apply some magic so that the colors come out different from what you expect try this on screen and in print: \startMPpage path p ; p := fullcircle scaled 1cm ; fill p shifted (0cm,1cm) withcolor (1,1,0) ; fill p shifted (1cm,1cm) withcolor (0,0,1,0) ; fill p shifted (0cm,0cm) withcolor (1/2,1/2,0) ; fill p shifted (1cm,0cm) withcolor (0,0,1/2,0) ; \stopMPpage 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] Colormanagement
Am 09.11.18 um 17:20 schrieb luigi scarso: > I think you should use the best colorspace (rgb ) > and let the print shop do its job -- of course this means that you have > signed their sample (hard proof) of your project. > I really tend to do this. I am currently exploring the color management system of ConTeXt together with a friend you is working as a color manager in print industry. And my first try was a failure. The cmyk values in the resulting pdf file (with color profile) differs from the values we calculated (using the same color profile in Gimp). But we have to investigate a bit further, so don't panic. Maybe I the fault was mine. Is there a test case tex file we could use to test the color management? 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] Colormanagement
On Fri, Nov 9, 2018 at 4:24 PM Jan U. Hasecke wrote: > Hi all, > > I defined some colors with \definecolor like this: > > \definecolor [myblue] [r=0.000, g=0.314, b=0.580, c=0.98, m=0.67, > y=0.03, k=0.12] > > \startnotmode[print] > \setupcolors[cmyk=no,rgb=yes] > \stopnotmode > > \startmode[print] > \setupcolors[cmyk=yes,rgb=no] > \setupbackend[ > format=PDF/X-3:2003, >intent={ISO Coated v2 300\letterpercent\space (ECI)}, >] > \stopmode > > When I use "context" or "context --mode=print" everything works as > expected. > > But! I have SVG icons I want to use in the document. They contain the > above defined rgb colors. > > When I use --mode=print I get different colors for the SVG icons. > > So context converts the SVG files to PDFs but does not change the colors > accordingly to CMYK. > > What are my options? Do I miss something? > > 1. Let the designer produce icons in pdf with the given cmyk colors. > > 2. Don't use cmyk colors at all. > > In fact on my home printer the printed rgb colors look brighter than the > cmyk colors. This might change in the print shop when they print with > the right color profile, but it makes me nervous. > I think you should use the best colorspace (rgb ) and let the print shop do its job -- of course this means that you have signed their sample (hard proof) of your project. Hraban ? -- luigi ___ 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] Colormanagement
Hi all, I defined some colors with \definecolor like this: \definecolor [myblue] [r=0.000, g=0.314, b=0.580, c=0.98, m=0.67, y=0.03, k=0.12] \startnotmode[print] \setupcolors[cmyk=no,rgb=yes] \stopnotmode \startmode[print] \setupcolors[cmyk=yes,rgb=no] \setupbackend[ format=PDF/X-3:2003, intent={ISO Coated v2 300\letterpercent\space (ECI)}, ] \stopmode When I use "context" or "context --mode=print" everything works as expected. But! I have SVG icons I want to use in the document. They contain the above defined rgb colors. When I use --mode=print I get different colors for the SVG icons. So context converts the SVG files to PDFs but does not change the colors accordingly to CMYK. What are my options? Do I miss something? 1. Let the designer produce icons in pdf with the given cmyk colors. 2. Don't use cmyk colors at all. In fact on my home printer the printed rgb colors look brighter than the cmyk colors. This might change in the print shop when they print with the right color profile, but it makes me nervous. 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] PDF/A no longer compliant?
On Sat, Nov 3, 2018 at 1:58 PM Leo Nikkilä wrote: > I’m afraid I don’t remember exactly which validator that was. I tried a > few such as veraPDF and Adobe Acrobat’s preflight verifier. > > I found one of the preflight output files from Acrobat (but not the input > document unfortunately) and these were the errors when validated against > PDF/A-3a: > > 1. Device process color used but no PDF/A OutputIntent (101 matches on 1 > page) - 1 > 2. Syntax problem: String object invalid (odd number of hexadecimal > characters) > > I think the second error was due to the BOM. > ok, thank you very much. -- luigi ___ 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] PDF/A no longer compliant?
I’m afraid I don’t remember exactly which validator that was. I tried a few such as veraPDF and Adobe Acrobat’s preflight verifier. I found one of the preflight output files from Acrobat (but not the input document unfortunately) and these were the errors when validated against PDF/A-3a: 1. Device process color used but no PDF/A OutputIntent (101 matches on 1 page) - 1 2. Syntax problem: String object invalid (odd number of hexadecimal characters) I think the second error was due to the BOM. -- Leo On Sat, 3 Nov 2018 at 13:11, luigi scarso wrote: > > > On Fri, Nov 2, 2018 at 9:03 PM Leo Nikkilä wrote: > >> I tried PDF/A a while back and noticed the XMP header has an extra byte >> order mark which validators flagged as “??”. >> >> I’ve attached the patch I used to remove it, however I’m still on an old >> version of ConTeXt so this might not apply cleanly to yours. >> >> You might need to open the patch in a hex editor to see the difference in >> the two lines as most text editors will not show the BOM. >> >> -- >> Leo >> > Thank you for the patch. Which validator are you referring to? > > > > -- > luigi > > ___ > 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] Strange behavior with the command \inframed{}
Hi Aditya, Sorry but with this file, there are some problems, especially with the last item. Thanks. Fabrice Le mar. 23 oct. 2018 à 09:46, Fabrice Couvreur a écrit : > Hi Aditya, > Thanks. > Fabrice > > Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan a écrit : > >> On Mon, 22 Oct 2018, Fabrice Couvreur wrote: >> >> > Hi, >> > When I use the \inframed{} command twice, they are not on the same >> baseline. >> > Thank you. >> > Fabrice >> > >> > \starttext >> Add \dontleavehmode >> >\inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times >> A >> > \times X=A^{-1}\times B}} >> > \stoptext >> >> See >> >> https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode >> >> Aditya >> >> ___ >> 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 >> >> ___ > > \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=black, style=bold, distance=\zeropoint] \setupitemgroup [itemize:1] [option={n,packed,fit,intext}, command=\ItemCommand] \setupitemgroup [itemize:2] [lefttext=, righttext=, option={a,text}] \starttext \placerecipe{}{ \startxtable[align={lohi,middle},bodyfont=9pt,offset=0.5ex] \startxrow \startxcell[nx=5,frame=off,align={right}] Prénom : Marion \stopxcell \stopxrow \startxrow \startxcell \rotate[rotation=30,width=1.5cm]{\darkred Admise} \stopxcell \startxcell Anglais \stopxcell \startxcell Maths \stopxcell \startxcell[width=1.5cm] Culture générale \stopxcell \startxcell[width=2.25cm] Économie \stopxcell \stopxrow \startxrow \startxcell Note/20 \stopxcell \startxcell 12 \stopxcell \startxcell 14 \stopxcell \startxcell 8 \stopxcell \startxcell 11 \stopxcell \stopxrow \startxrow[frame=off] \startxcell \stopxcell \startxcell \stopxcell \startxcell \stopxcell \startxcell \stopxcell \startxcell[frame=on] \bf Moyenne 11,8 \stopxcell \stopxrow \startxrow \startxcell[nx=5,frame=off,align={right}] Prénom : Hichem \stopxcell \stopxrow \startxrow \startxcell \rotate[rotation=30,width=1.5cm]{\darkred Admis } \stopxcell \startxcell Anglais \stopxcell \startxcell Maths \stopxcell \startxcell Culture générale \stopxcell \startxcell[width=2cm] Économie \stopxcell \stopxrow \startxrow \startxcell Note/20 \stopxcell \startxcell 13 \stopxcell \startxcell 15 \stopxcell \startxcell 10 \stopxcell \startxcell 16 \stopxcell \stopxrow \startxrow[frame=off] \startxcell \stopxcell \startxcell \stopxcell \startxcell \stopxcell \startxcell \stopxcell \startxcell[frame=on] \bf Moyenne 14,5 \stopxcell \stopxrow \startxrow \startxcell[nx=5,frame=off,align={right}] Prénom : Lucas \stopxcell \stopxrow \startxrow \startxcell \rotate[rotation=30,width=1.5cm]{\darkred Refusé} \stopxcell \startxcell Anglais \stopxcell \startxcell Maths \stopxcell \startxcell Culture générale \stopxcell \startxcell[width=2cm] Économie \stopxcell \stopxrow \startxrow \startxcell Note/20 \stopxcell \startxcell 9 \stopxcell \startxcell 8 \stopxcell
Re: [NTG-context] Use \framedtext to write an algorithm (again)
Hi Fabrice, I’m sorry but I don’t understand the question. Can you explain what do you expect from the example but doesn’t work. Wolfgang Fabrice Couvreur schrieb am 17.10.18 um 21:58: Hi Wolfgang, You offered me the following code to write algorithms. It seems that this does not function very well because the withdrawal of the text no longer exists. Thank you Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startalgorithm Variables \math{I} et \math{J} entiers T tableau d'entiers Début Pour \math{I} allant de \math{1} à \math{3} Pour \math{J} allant de \math{1} à \math{3} Si \math{J>I} Alors \math{T[I, J]=J-I} Sinon \math{T[I, J]=0} Fin Si Fin Pour Fin \stopalgorithm \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 ___
Re: [NTG-context] what defines the font size?
On 10/18/2018 10:37 AM, Taco Hoekwater wrote: Hi Pablo, Let me go back an try to answer the original question: On 15 Oct 2018, at 21:21, Pablo Rodriguez wrote: Dear list, sorry for this basic question, but what defines the size in a font? The font designer decides on the ‘natural’ size of the font. There are two parts to this. First, what the ‘natural’ size indicates is the designer’s _intended use size_ for the font, such that when you plan to use the font “Times-Roman” without any special rescaling, it should in fact be equivalent to “Times-Roman at ’natural size’”. For most fonts, this ‘natural size’ is 10pt, but special display or footnote fonts may have a different intended use size, and the font designer may have made special glyph adjustments for that purpose. For example, the computer modern family has special fonts with a ‘natural’ size anywhere between 5pt and 17pt. The glyphs in the specific fonts with a smaller ‘natural’ size (like 8pt) are in fact a little bit bolder and wider than the same glyphs in the font designed to be used at 10pt. This makes sense when you consider that the 8pt font is likely be used along with the 10pt font for e.g. footnotes. The 10pt font used at 8pt size would look thinner and weaker than the actual font designed for 8pt. Second, a design size in points like ‘10pt’ is somewhat misleading, because what it actually is, is just a different way of saying “at the expected size for traditional main text”. The “10pt" is not necessarily a measure of _anything_ in the font. In fact, font designers sometimes do not use a “XXpt” design size at all.The Minion font family has fonts with names like "Minion Pro Caption" and "Minion Pro Display”, which is actually a better indication of the information the font designer wants to convey. That leaves the question of what the actual size is of a font used at “10pt”. As explained above, there are no hard rules. But usually for a modern font the “10pt" is the _vertical_ space needed to enclose all of the ascenders and descenders in the font when all the glyphs are overlaid on top of each other. Traditionally, this was also the with of an ‘em’, going back to the Roman era, where inscribed text fitted characters into a square. But these days that is no longer always the case, since some font families have condensed or extended members (and it really only applied to ‘upright’ fonts anyways). In short: If two fonts have the same size, I think there may be a dimension which has the same length in both. Which one is this? No, there is no such thing. "TeX Gyre Bonum and TeX Gyre Adventor at twelve point” really only means this: "TeX Gyre Bonum at a somewhat larger size than the TeX Gyre Bonum designer intended and TeX Gyre Adventor at a somewhat larger size than the TeX Gyre Adventor designer intended" Nothing more, nothing less. A nice explanation. In context one can actually scale in two more ways than standard tex but it's more a gimmick than useful: \starttext % at : fraction of design size % sa : fraction of current bodyfont size % ht : fraction of font ascender % cp : fraction of height of glyph X \starttexdefinition ShowThem #1#2#3 \startoverlay {\color[trace:r]{\definedfont[#1*default #3]This is a just a simple line.}} {\color[trace:g]{\definedfont[#2*default #3]This is a just a simple line.}} \stopoverlay \stoptexdefinition \ShowThem {dejavu-sans} {ibmplexsans-regular} {at 12pt} \ShowThem {dejavu-sans} {ibmplexsans-regular} {sa 1} \ShowThem {dejavu-sans} {ibmplexsans-regular} {ht 12pt} \ShowThem {dejavu-sans} {ibmplexsans-regular} {cp 12pt} \blank \ShowThem {dejavu-serif} {texgyrepagella-regular} {at 12pt} \ShowThem {dejavu-serif} {texgyrepagella-regular} {sa 1} \ShowThem {dejavu-serif} {texgyrepagella-regular} {ht 12pt} \ShowThem {dejavu-serif} {texgyrepagella-regular} {cp 12pt} \blank \ShowThem {lmroman12-regular} {lucidabrightot} {at 12pt} \ShowThem {lmroman12-regular} {lucidabrightot} {sa 1} \ShowThem {lmroman12-regular} {lucidabrightot} {ht 12pt} \ShowThem {lmroman12-regular} {lucidabrightot} {cp 12pt} \stoptext - 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] Use \framedtext to write an algorithm (again)
Hi Wolfgang, You offered me the following code to write algorithms. It seems that this does not function very well because the withdrawal of the text no longer exists. Thank you Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startalgorithm Variables \math{I} et \math{J} entiers T tableau d'entiers Début Pour \math{I} allant de \math{1} à \math{3} Pour \math{J} allant de \math{1} à \math{3} Si \math{J>I} Alors \math{T[I, J]=J-I} Sinon \math{T[I, J]=0} Fin Si Fin Pour Fin \stopalgorithm \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] insert natural table at the top left of some png
Thank you very much Hans ! One of my first thoughts today was using layers (did not think about it earlier, because I was too focused on plain TeX boxes), but I am quite new to this topic. Thanks to your code, I will have time to learn how to use them. Greetings, Damien Thiriet On Mon, Oct 15, 2018 at 11:15:00PM +0200, Hans Hagen wrote: > \definecolor[canaux][h=81b3e0] > > \startreusableMPgraphic{voies} > drawarrow > (0,0) -- (20,0) > withcolor black ; > \stopreusableMPgraphic > > \startreusableMPgraphic{canaux} > drawarrow > (0,0) -- (20,0) > withcolor \MPcolor{canaux} withpen pencircle scaled 2pt; > \stopreusableMPgraphic > > \startbuffer[legend] > \bTABLE[frame=off] > \bTR >\bTH 1) \eTH \bTH Le milieu \eTH \bTH 2) \eTH \bTH Les > activités \eTH > \eTR > \bTR > \bTD > \externalfigure[t:/sources/mill.png][height=12bp] > \eTD > \bTD > zones urbaines > \eTD > \eTR > \bTR > \bTD > \inframed[frame=off,offset=0pt]{\reuseMPgraphic{voies}} > \eTD > \bTD > infrastructures~: voies ferrées > \eTD > \eTR > \bTR >\bTD > \inframed[frame=off,offset=0pt]{\reuseMPgraphic{canaux}} > \eTD > \bTD > infrastructures~: canaux > \eTD > \eTR > \eTABLE > \stopbuffer > > \definelayer > [legend] > [width=\overlaywidth, >height=\overlayheight] > > \starttext > > % \setlayer > % [legend] > % {\getbuffer[legend]} > > \setlayerframed > [legend] > [background=color, >backgroundoffset=2pt, >backgroundcolor=red, >strut=no, >frame=off] > {\getbuffer[legend]} > > \externalfigure > [t:/sources/cow.pdf] > [background={foreground,legend}, >width=0.9\textwidth] > > \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] insert natural table at the top left of some png
On 10/15/2018 8:11 PM, Damien Thiriet wrote: Hello, I am still working on maps and facing some new issue. The program I used to design one map is not convenient for writing key to symbols, and what I have is a map.png file with big spare space on its upper left corner. So I have either to write on the png with ImageMagick or GIMP, or have a nicer output with ConTeXt. I wrote this legend file. \definecolor[canaux][h=81b3e0] \startreusableMPgraphic{voies} path p; p:= (0,0) -- (20,0) ; drawarrow p withcolor black ; \stopreusableMPgraphic \startreusableMPgraphic{canaux} path p; p:= (0,0) -- (20,0) ; drawarrow p withcolor \MPcolor{canaux} withpen pencircle scaled 2pt; \stopreusableMPgraphic \startbuffer \bTABLE[frame=off] \setupTABLE[column][1,3][align={middle,lohi}] \bTR \bTH 1) \eTH \bTH Le milieu \eTH \bTH 2) \eTH \bTH Les activités \eTH \eTR \bTR \bTD \externalfigure[illustrations/zone_urbaine][height=12bp] \eTD \bTD zones urbaines \eTD \eTR \bTR \bTD \leavevmode \reuseMPgraphic{voies} \eTD \bTD infrastructures~: voies ferrées \eTD \eTR \bTR \bTD \leavevmode \reuseMPgraphic{canaux} \eTD \bTD infrastructures~: canaux \eTD \eTR eTR \eTABLE \stopbuffer The idea was to make some \hbox{ \externalfigure[map][width=0.9 \textwidth] \vbox{\hfill -0.9 \textwidth \getbuffer } } to put the boxed legend at this upper left corner. Of course I couldn't succeed, since I do not understand so much boxes. ConTeXt complains with a missing number. How could I achieve such boxing ? \definecolor[canaux][h=81b3e0] \startreusableMPgraphic{voies} drawarrow (0,0) -- (20,0) withcolor black ; \stopreusableMPgraphic \startreusableMPgraphic{canaux} drawarrow (0,0) -- (20,0) withcolor \MPcolor{canaux} withpen pencircle scaled 2pt; \stopreusableMPgraphic \startbuffer[legend] \bTABLE[frame=off] \bTR \bTH 1) \eTH \bTH Le milieu \eTH \bTH 2) \eTH \bTH Les activités \eTH \eTR \bTR \bTD \externalfigure[t:/sources/mill.png][height=12bp] \eTD \bTD zones urbaines \eTD \eTR \bTR \bTD \inframed[frame=off,offset=0pt]{\reuseMPgraphic{voies}} \eTD \bTD infrastructures~: voies ferrées \eTD \eTR \bTR \bTD \inframed[frame=off,offset=0pt]{\reuseMPgraphic{canaux}} \eTD \bTD infrastructures~: canaux \eTD \eTR \eTABLE \stopbuffer \definelayer [legend] [width=\overlaywidth, height=\overlayheight] \starttext % \setlayer % [legend] % {\getbuffer[legend]} \setlayerframed [legend] [background=color, backgroundoffset=2pt, backgroundcolor=red, strut=no, frame=off] {\getbuffer[legend]} \externalfigure [t:/sources/cow.pdf] [background={foreground,legend}, width=0.9\textwidth] \stoptext - 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] Text around a table (xtables)
Hi Pablo, Thank you, I thought that indicating width = 1.7cm, the size of the cells would have been 1.7cm. Fabrice Le mer. 10 oct. 2018 à 19:46, Pablo Rodriguez a écrit : > On 10/10/18 7:26 PM, Fabrice Couvreur wrote: > > Hello, > > Why is the text wrapping around the board or far too far ? > > Hi Fabrice, > > replace the following command: > > \startxtable[align={middle,lohi}] > > It works now. It is rather weird that the total width for the table is > 1.7cm and one of its cells is 3.5cm. > > I hope it helps, > > Pablo > > > > Thank you. > > Fabrice > > > > \definefloat > > [recipe] > > [figure] > > > > \setupfloat > > [recipe] > > [default={right,none}] > > > > \starttext > > \placerecipe{}{% > > \startxtable[align={middle,lohi},width=1.7 > > cm] > > \startxrow[background=color,backgroundcolor=gray] > > \startxcell[width=3.5cm,frame=off,align={middle,right}, > > background=color,backgroundcolor=white] > > Consommation pour la production de 1 UM > > \hfill\startMPcode drawarrow > > (0,0)--(0,0.35cm)--(0.35cm,0.35cm)withpen pencircle scaled 1bp; > \stopMPcode > > \stopxcell > > \startxcell > > Ind. > > \stopxcell > > \startxcell > > Agri. > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell[background=color,backgroundcolor=gray] > > Ind. > > \stopxcell > > \startxcell > > 0,5 > > \stopxcell > > \startxcell > > 0,2 > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell[background=color,backgroundcolor=gray] > > Agri. > > \stopxcell > > \startxcell > > 0,2 > > \stopxcell > > \startxcell > > 0,6 > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell[nx=3,frame=off,align={right}] > >Lecture du tableau : pour la production d'un bien équivalent à 1 > > UM, l'industrie consomme l'équivalent de 0,5 UM de sa propre production > > et l'équivalent de 0,2 UM de la production de l'agriculture. > > \stopxcell > > \stopxrow > > \stopxtable > > } > > \dorecurse{10}{\input knuth} > > \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 > > > ___ > > > > > -- > 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 > > ___ ___ 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] Text around a table (xtables)
On 10/10/18 7:26 PM, Fabrice Couvreur wrote: > Hello, > Why is the text wrapping around the board or far too far ? Hi Fabrice, replace the following command: \startxtable[align={middle,lohi}] It works now. It is rather weird that the total width for the table is 1.7cm and one of its cells is 3.5cm. I hope it helps, Pablo > Thank you. > Fabrice > > \definefloat > [recipe] > [figure] > > \setupfloat > [recipe] > [default={right,none}] > > \starttext > \placerecipe{}{% > \startxtable[align={middle,lohi},width=1.7 > cm] > \startxrow[background=color,backgroundcolor=gray] > \startxcell[width=3.5cm,frame=off,align={middle,right}, > background=color,backgroundcolor=white] > Consommation pour la production de 1 UM > \hfill\startMPcode drawarrow > (0,0)--(0,0.35cm)--(0.35cm,0.35cm)withpen pencircle scaled 1bp; \stopMPcode > \stopxcell > \startxcell > Ind. > \stopxcell > \startxcell > Agri. > \stopxcell > \stopxrow > \startxrow > \startxcell[background=color,backgroundcolor=gray] > Ind. > \stopxcell > \startxcell > 0,5 > \stopxcell > \startxcell > 0,2 > \stopxcell > \stopxrow > \startxrow > \startxcell[background=color,backgroundcolor=gray] > Agri. > \stopxcell > \startxcell > 0,2 > \stopxcell > \startxcell > 0,6 > \stopxcell > \stopxrow > \startxrow > \startxcell[nx=3,frame=off,align={right}] > Lecture du tableau : pour la production d'un bien équivalent à 1 > UM, l'industrie consomme l'équivalent de 0,5 UM de sa propre production > et l'équivalent de 0,2 UM de la production de l'agriculture. > \stopxcell > \stopxrow > \stopxtable > } > \dorecurse{10}{\input knuth} > \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 > ___ > -- 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] Text around a table (xtables)
Hello, Why is the text wrapping around the board or far too far ? Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \placerecipe{}{% \startxtable[align={middle,lohi},width=1.7 cm] \startxrow[background=color,backgroundcolor=gray] \startxcell[width=3.5cm,frame=off,align={middle,right}, background=color,backgroundcolor=white] Consommation pour la production de 1 UM \hfill\startMPcode drawarrow (0,0)--(0,0.35cm)--(0.35cm,0.35cm)withpen pencircle scaled 1bp; \stopMPcode \stopxcell \startxcell Ind. \stopxcell \startxcell Agri. \stopxcell \stopxrow \startxrow \startxcell[background=color,backgroundcolor=gray] Ind. \stopxcell \startxcell 0,5 \stopxcell \startxcell 0,2 \stopxcell \stopxrow \startxrow \startxcell[background=color,backgroundcolor=gray] Agri. \stopxcell \startxcell 0,2 \stopxcell \startxcell 0,6 \stopxcell \stopxrow \startxrow \startxcell[nx=3,frame=off,align={right}] Lecture du tableau : pour la production d'un bien équivalent à 1 UM, l'industrie consomme l'équivalent de 0,5 UM de sa propre production et l'équivalent de 0,2 UM de la production de l'agriculture. \stopxcell \stopxrow \stopxtable } \dorecurse{10}{\input knuth} \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 ___
[NTG-context] style=underbar output in export
List, With recent betas, since a fix for tagged elements in tables, underbar processing seems to have changed (or perhaps I just noticed it after that fix). Previously, the following highlight definition worked for both pdf and export outputs: \definehighlight [Term][style={{\underbar}}] With the current betas (2018-10-02 and 2018-10-03) this no longer works for all output formats. I have tried a few variants, and the results are as follows: Using [style={{\underbar}}], the pdf output now shows no underlining, while the html export has the expected underlining. Using [style={\underbar}] or [style=\underbar] or [style=underbar], the pdf output shows the expected underlining, while the html export may show continuous underlining after the first use, and in any case eventually loses all formatting. In a large enough document, an error is generated in the html, but not in the log as far as I can tell: ...eXt/tex/texmf-context/tex/context/base/mkiv/lxml-tab.lua:1192: backtrack stack overflow (current limit is 1000) A test harness: xxx.css: highlight[detail="Term"], div.highlight.Term { display : inline ; font-style : inherit ; font-variant : inherit ; font-weight : inherit ; font-family : inherit ; color : inherit ; text-decoration : underline ; } xxx.tex: \setupbackend[export=yes] \setupexport[cssfile=xxx.css] \definehighlight[Term][style=underbar]% pdf ok, html bad %\definehighlight[Term][style={{\underbar}}]% pdf bad, html ok \starttext \dorecurse{200}{% \startparagraph \samplefile{ward} \Term{pollakis legomenon} \samplefile{bryson} \stopparagraph} \stoptext The html output of the above shows the text as a single long line and when displayed the last paragraph are run together with no formatting. For a larger recurse (250 does it for me) the error described above is triggered. As a work-around, I can enable one variant or the other based on the output mode, but clearly there is an issue here. -- Rik ___ 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] xtables with lua
Hi, Thank you Aditya for the link. I knew that with natural tables, but I hoped it could be done with xtables too. Fabrice Le lun. 1 oct. 2018 à 05:50, Aditya Mahajan a écrit : > On Mon, 1 Oct 2018, Jeong Dal wrote: > > > What do you mean “does not typeset correctly as expected”? > > As I said, I fixed the post. > > > I copied and tested the last example and got the result without error. > > One problem is that the vertical alignment is not centered as the > example of Aditya’s. > > Would you please tell me what I miss? > > The part in the beginning of the post: > > \setupTABLE[each][each][width=2em,height=2em,align={middle,middle}] > \setupTABLE[r][1][background=color,backgroundcolor=gray] > \setupTABLE[c][1][background=color,backgroundcolor=gray] > > > Aditya___ > 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] Which color model shall I use
On 01.10.18 10:11, Henning Hraban Ramm wrote: > If you can ensure all RGB colors are tagged with the same profiles then it > should work, as long as you only care about *same* colors and not > (CMYK-defined) *specific* colors... > > Do your SVGs declare their RGB color space? They start with: http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" viewBox="0 0 170.1 170.1" style="enable-background:new 0 0 170.1 170.1;" xml:space="preserve"> .st0{fill:#99BCDB;} .st1{fill:#FF;} .st2{fill:#DD4901;} .st3{fill:#327AB8;} .st4{fill:none;} .st5{clip-path:url(#SVGID_2_);} .st6{clip-path:url(#SVGID_4_);} .st7{clip-path:url(#SVGID_6_);} .st8{clip-path:url(#SVGID_8_);} When I pick the screen colors with GPick I see that the SVG always stay the same. Only my colors I define with \definecolor change in the screen representation of the PDF file (as I expect). > Color management *is* complicated. FullACK Thanks for your help. 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] Which color model shall I use
Am 2018-10-01 um 09:23 schrieb Jan U. Hasecke : > On 30.09.18 17:16, Henning Hraban Ramm wrote: > >> >> Hi juh, >> >> you can define colors in several color models at once; CMYK makes most sense >> for professional printing. >> >> e.g. \definecolor[CompanyBlue][r=0,g=0,b=1,c=1,m=1,y=0,k=0] >> >> and see https://wiki.contextgarden.net/Command/setupcolors >> (I would activate rgb or cmyk colors via modes, if you produce different >> media) > > I don't know how to enable this via modes. \startnotmode[print] \setupcolors[cmyk=no,rgb=yes] \stopnotmode \startmode[print] \setupcolors[cmyk=yes,rgb=no] \stopmode >> CMYK colors in SVG are difficult (I needed them in 2005, nowadays there’s a >> hardly supported standard for icc profile based colors). >> e.g. >> https://stackoverflow.com/questions/3405689/svg-image-with-cmyk-colours-is-it-possible >> https://www.w3.org/TR/SVGColor12/#icc-colors >> >> Something about color profile handling in ConTeXt: >> https://wiki.contextgarden.net/PDFX >> >> Now you must decide if you want to go the PDF/X-1a route (device dependent >> CYMK values) or PDF/X-3 (profiled colors). > > How can I test, what colors are used in the resulting PDF? Currently I > pick the colors with a tool in Gimp to see what colors come up. Can Gimp check the colors in the PDF? (I don’t think so.) I know no other tool for that than Acrobat Pro, but there probably are one or two others; don’t know if there are *free and usable* tools to check on colors/profiles in PDFs... > If I look at the colors this way the RGB values of the included svg are > always the original values defined by the file. All other values are not > the values I defined in the ConTeXt files. > > I think this is due to the cmyk conversion of my screen. > > \setupbackend[ > format=PDF/X-3, > intent=ISO Coated v2 (ECI), > ] > > I tried with this for example. > > Anyway. Wouldn't it be better to produce a RGB-PDF and let the ripper of > the print shop do the conversion? At least I can produce a RGB-PDF where > all colors are defined in the same manner. If you can ensure all RGB colors are tagged with the same profiles then it should work, as long as you only care about *same* colors and not (CMYK-defined) *specific* colors... Do your SVGs declare their RGB color space? Color management *is* complicated. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Which color model shall I use
On 10/1/2018 9:23 AM, Jan U. Hasecke wrote: On 30.09.18 17:16, Henning Hraban Ramm wrote: Hi juh, you can define colors in several color models at once; CMYK makes most sense for professional printing. e.g. \definecolor[CompanyBlue][r=0,g=0,b=1,c=1,m=1,y=0,k=0] and see https://wiki.contextgarden.net/Command/setupcolors (I would activate rgb or cmyk colors via modes, if you produce different media) I don't know how to enable this via modes. \setupcolors[cmyk=yes,rgb=no] etc CMYK colors in SVG are difficult (I needed them in 2005, nowadays there’s a hardly supported standard for icc profile based colors). e.g. https://stackoverflow.com/questions/3405689/svg-image-with-cmyk-colours-is-it-possible https://www.w3.org/TR/SVGColor12/#icc-colors Something about color profile handling in ConTeXt: https://wiki.contextgarden.net/PDFX Now you must decide if you want to go the PDF/X-1a route (device dependent CYMK values) or PDF/X-3 (profiled colors). How can I test, what colors are used in the resulting PDF? Currently I pick the colors with a tool in Gimp to see what colors come up. If I look at the colors this way the RGB values of the included svg are always the original values defined by the file. All other values are not the values I defined in the ConTeXt files. I think this is due to the cmyk conversion of my screen. \setupbackend[ format=PDF/X-3, intent=ISO Coated v2 (ECI), ] I tried with this for example. Anyway. Wouldn't it be better to produce a RGB-PDF and let the ripper of the print shop do the conversion? At least I can produce a RGB-PDF where all colors are defined in the same manner. it depends ... 4 channel cmyk doesn't map entirely on 3 channel rgb and vise versa 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] Which color model shall I use
On 30.09.18 17:16, Henning Hraban Ramm wrote: > > Hi juh, > > you can define colors in several color models at once; CMYK makes most sense > for professional printing. > > e.g. \definecolor[CompanyBlue][r=0,g=0,b=1,c=1,m=1,y=0,k=0] > > and see https://wiki.contextgarden.net/Command/setupcolors > (I would activate rgb or cmyk colors via modes, if you produce different > media) I don't know how to enable this via modes. > CMYK colors in SVG are difficult (I needed them in 2005, nowadays there’s a > hardly supported standard for icc profile based colors). > e.g. > https://stackoverflow.com/questions/3405689/svg-image-with-cmyk-colours-is-it-possible > https://www.w3.org/TR/SVGColor12/#icc-colors > > Something about color profile handling in ConTeXt: > https://wiki.contextgarden.net/PDFX > > Now you must decide if you want to go the PDF/X-1a route (device dependent > CYMK values) or PDF/X-3 (profiled colors). How can I test, what colors are used in the resulting PDF? Currently I pick the colors with a tool in Gimp to see what colors come up. If I look at the colors this way the RGB values of the included svg are always the original values defined by the file. All other values are not the values I defined in the ConTeXt files. I think this is due to the cmyk conversion of my screen. \setupbackend[ format=PDF/X-3, intent=ISO Coated v2 (ECI), ] I tried with this for example. Anyway. Wouldn't it be better to produce a RGB-PDF and let the ripper of the print shop do the conversion? At least I can produce a RGB-PDF where all colors are defined in the same manner. 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] xtables with lua
On Mon, 1 Oct 2018, Jeong Dal wrote: What do you mean “does not typeset correctly as expected”? As I said, I fixed the post. I copied and tested the last example and got the result without error. One problem is that the vertical alignment is not centered as the example of Aditya’s. Would you please tell me what I miss? The part in the beginning of the post: \setupTABLE[each][each][width=2em,height=2em,align={middle,middle}] \setupTABLE[r][1][background=color,backgroundcolor=gray] \setupTABLE[c][1][background=color,backgroundcolor=gray] Aditya___ 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] Which color model shall I use
On 9/30/2018 7:22 PM, Alan Braslau wrote: On Sun, 30 Sep 2018 19:07:24 +0200 Hans Hagen wrote: Luckily I never had to match corporate colors of different models in ConTeXt... the worst are colors specs with 4 decimals based on some design made in indesign where one has at most 256 values per channel and then some designer looking at his display claiming to see a difference in the 3rd decimal betweenm his sample and the one generated by tex I have 16bit grayscale images where the full dynamic range contains very useful information. Of course, no display really shows this and I doubt that any printer would faithfully reproduce it, yet the eye can discern the difference using the proper media. This is now called high dynamic range imaging in photography... but has been used in X-ray imaging for quite some time now. given that the average male can only see 16 shades of gray ... For reasons of quality or transparency, rather free dissemination of information, it would be useful to be able to distribute a PDF including these images with their whole 16bit dynamic range. Of course, any or most all PDF readers would only display 8bits, but one could in principal extract the underlying image for examination and analysis. c m y k in 16 bit would mean 4 * 8 bytes per pixel (ok, one day we migh twant to store raw images made by these multi-ccd (in high end) phone camera and do all these sharp and zoom corrections outside that device .. interesting techniques btw) 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] Which color model shall I use
On Sun, 30 Sep 2018 19:07:24 +0200 Hans Hagen wrote: > > Luckily I never had to match corporate colors of different models in > > ConTeXt... > the worst are colors specs with 4 decimals based on some design made in > indesign where one has at most 256 values per channel and then some > designer looking at his display claiming to see a difference in the 3rd > decimal betweenm his sample and the one generated by tex I have 16bit grayscale images where the full dynamic range contains very useful information. Of course, no display really shows this and I doubt that any printer would faithfully reproduce it, yet the eye can discern the difference using the proper media. This is now called high dynamic range imaging in photography... but has been used in X-ray imaging for quite some time now. For reasons of quality or transparency, rather free dissemination of information, it would be useful to be able to distribute a PDF including these images with their whole 16bit dynamic range. Of course, any or most all PDF readers would only display 8bits, but one could in principal extract the underlying image for examination and analysis. Just an idea. 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 ___
Re: [NTG-context] Which color model shall I use
On 9/30/2018 5:16 PM, Henning Hraban Ramm wrote: Luckily I never had to match corporate colors of different models in ConTeXt... the worst are colors specs with 4 decimals based on some design made in indesign where one has at most 256 values per channel and then some designer looking at his display claiming to see a difference in the 3rd decimal betweenm his sample and the one generated by tex - 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] Which color model shall I use
On 9/30/2018 3:46 PM, Jan U. Hasecke wrote: Hi, I would like to know, how to define colors to have a good printing quality. I am currently producing print materials for a company where all colors were defined for online usage first, so we started with defining RGB colors and then derived CMYK colors. What is the best approach for defining colors in print materials? What color model shall I use? RGB or CMYK? For the background. We have some SVG graphics we use on the website. They are defined in RGB color model. And we use them in the print materials as well. I tend to define RGB colors in my print documents so that the colors of the included SVG files match the defined colors I use elsewhere in the document. Eg. the Corporate-Blue of the Logo (SVG) will match the Blue of the headlines. I could as well define CMYK colors in the document but then I have two different color models in one document and I fear that the colors are printed in different hues. What would you do? rgb for screen and cmyk for print You can use rgb and in the print version enable cmyk and disable rgb in which case context will convert for you. For most color setups the result is ok (the end users often don't know what colors were meant anyway) as long as relative coloring is ok (the wierder the colors, the more sensitive for colro spaces). 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] Which color model shall I use
Am 2018-09-30 um 15:46 schrieb Jan U. Hasecke : > Hi, > > I would like to know, how to define colors to have a good printing quality. > > I am currently producing print materials for a company where all colors > were defined for online usage first, so we started with defining RGB > colors and then derived CMYK colors. > > What is the best approach for defining colors in print materials? What > color model shall I use? RGB or CMYK? > > For the background. We have some SVG graphics we use on the website. > They are defined in RGB color model. And we use them in the print > materials as well. > > I tend to define RGB colors in my print documents so that the colors of > the included SVG files match the defined colors I use elsewhere in the > document. Eg. the Corporate-Blue of the Logo (SVG) will match the Blue > of the headlines. > > I could as well define CMYK colors in the document but then I have two > different color models in one document and I fear that the colors are > printed in different hues. > > What would you do? Hi juh, you can define colors in several color models at once; CMYK makes most sense for professional printing. e.g. \definecolor[CompanyBlue][r=0,g=0,b=1,c=1,m=1,y=0,k=0] and see https://wiki.contextgarden.net/Command/setupcolors (I would activate rgb or cmyk colors via modes, if you produce different media) CMYK colors in SVG are difficult (I needed them in 2005, nowadays there’s a hardly supported standard for icc profile based colors). e.g. https://stackoverflow.com/questions/3405689/svg-image-with-cmyk-colours-is-it-possible https://www.w3.org/TR/SVGColor12/#icc-colors Something about color profile handling in ConTeXt: https://wiki.contextgarden.net/PDFX Now you must decide if you want to go the PDF/X-1a route (device dependent CYMK values) or PDF/X-3 (profiled colors). Luckily I never had to match corporate colors of different models in ConTeXt... Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Which color model shall I use
Hi, I would like to know, how to define colors to have a good printing quality. I am currently producing print materials for a company where all colors were defined for online usage first, so we started with defining RGB colors and then derived CMYK colors. What is the best approach for defining colors in print materials? What color model shall I use? RGB or CMYK? For the background. We have some SVG graphics we use on the website. They are defined in RGB color model. And we use them in the print materials as well. I tend to define RGB colors in my print documents so that the colors of the included SVG files match the defined colors I use elsewhere in the document. Eg. the Corporate-Blue of the Logo (SVG) will match the Blue of the headlines. I could as well define CMYK colors in the document but then I have two different color models in one document and I fear that the colors are printed in different hues. What would you do? 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] Creating flyers with ConTeXt
Hi Marco, On 21.09.18 16:56, Marco Patzer wrote: > A while ago I made a corporate flyer with context using the > TRYPTICHON method. Printing required 3mm bleed. Thanks a lot for this template. This is exactly what I need. I try to understand it in order to adapt it to the requirements of my print shop which only needs a bleed of 1mm. I hope that I understand it right: Page 1,2,3 and 6 are 100mm Page 4 and 5 are 97mm as these are the pages that are folded to the inside. The measure "shortfold" (3mm) reduces the 100mm page to 97mm. Right? The pageshift thing is beyond my horizon so I won't comment on this. You adjust the backspace of the pages with multiples of the measure "big". Right? As you can see in my example I use layers on page 2-4 to have bleeding images on the top of the page. This works more or less. But as you can see there are blank white spaces between the images of page 2-4. Maybe I can adjust this by using absolut measures like 100mm or 97mm in the layers. I have to adjust the layout of pages 2-4 so that the text starts below the images. An now here is my question. Is there a value I can simply change to have a pdf with only 1mm bleed? Only adjusting the papersize A4-flyer to 299mm/212mm does not work of course. TIA juh %% The page shift of page #6 needs to be adjusted if the value is changed, no %% clue why. %% A4-flyer pagesize needs to be adjusted as well \definemeasure [shortfold] [3mm] \definepapersize [A4-flyer] [width=303mm, height=216mm] \definepapersize [flyer-page] [width=100mm, height=210mm] \definepapersize [flyer-page-small] [width=\dimexpr100mm-\measure{shortfold}\relax, height=210mm] \setuppapersize [flyer-page] [A4-flyer] \setuparranging [TRYPTICHON] %% The page shift of page #6 needs to be adjusted if shortfold is adjusted, no %% clue why. \definepageshift [flyer] [horizontal] [\zeropoint, \measure{shortfold}, \measure{shortfold}, 3\measured{shortfold}, \measure{shortfold}, \zeropoint] \definepageshift [flyer] [vertical] [\measure{shortfold}] \setuppageshift [paper] [flyer] \definemeasure [small] [3mm] \definemeasure [big] [\measure{small}*2] \definelayout [first] [page] [page=flyer-page, topspace=2\measured{big}, backspace=2\measured{small}, width=\dimexpr\paperwidth-4\measured{small}\relax, height=\dimexpr\paperheight-4\measured{big}\relax] \definelayout [second] [first] [topspace=4\measured{big}, backspace=2\measured{big}, width=\dimexpr\paperwidth-3\measured{big}\relax, height=\dimexpr\paperheight-4\measured{big}-2\measured{big}\relax] \definelayout [thirdandfourth] [second] [backspace=\measure{big}, width=\dimexpr\paperwidth-2\measured{big}\relax] \definelayout [fifthandsixth] [first] [backspace=\measure{big}, width=\dimexpr\paperwidth-2\measured{big}\relax] \definelayout [1] [first] \definelayout [2] [second] \definelayout [3] [thirdandfourth] \definelayout [4] [thirdandfourth] \definelayout [5] [fifthandsixth] \definelayout [6] [fifthandsixth] \setuphead[title][header=none,footer=none] \definecolor [hs-logoblau] [c=1.0,m=0.46,y=0.0,k=0.42] \definecolor [hs-dunkelblau] [c=0.65,m=0.36,y=0.0,k=0.26] \definecolor [hs-mittelblau] [c=0.72,m=0.33,y=0.0,k=0.28] \definecolor [hs-hellblau] [c=0.30,m=0.14,y=0.0,k=0.14] \definecolor [hs-orange] [c=0.0,m=0.67,y=1.0,k=0.13] \definefontfamily [mainface] [rm] [Tex Gyre Heros] \setupmakeup [doublesided=no] \setupinterlinespace[line=3ex] \setuphead [title] [textcolor=hs-dunkelblau,textstyle=\bfc, align=right] \setupbodyfont [mainface,10pt] \setuptolerance [verytolerant] \mainlanguage [de] \setbreakpoints[compound] \definelayer[Hintergrund] [x=0, y=0, width=\paperwidth, height=\paperwidth] \setlayer[Hintergrund] [x=1.2cm, y=1cm] {\externalfigure[../bilder/logo.pdf][width=7cm]} \definelayer[topic1] [x=-3mm, y=-3mm, width=\paperwidth, height=\paperheight] \setlayer[topic1] [x=-3mm, y=-3mm] {\externalfigure[../bilder/topic1.png][width=102mm]} \definelayer[topic2] [x=0, y=-3mm, width=\paperwidth, height=\paperheight] \setlayer[topic2] [x=0cm, y=-3mm] {\externalfigure[../bilder/topic2.png][width=99mm,height=58mm]} \definelayer[topic3] [x=0, y=0, width=\paperwidth, height=\paperwidth] \setlayer[topic3] [x=0cm, y=-3mm] {\externalfigure[../bilder/topic3.png][width=102mm]} \definelayer[blau] [x=0, y=-3mm, width=\paperwidth, height=\paperheight] \setlayer[blau] [x=0mm,y=-3mm] {\framed[frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}} \showframe \starttext \setupbackgrounds[page][background=blau] \startstandardmakeup \externalfigure [../bilder/example.png] [width=\textwidth] \blank[5*big] \externalfigure [../bilder/logo.svg] [width=\textwidth] \stopstandardmakeup \starttitle[title={PAGE 2},marking{}] \setupbackgrounds[page][background=topic1] \input lorem \stoptitle \starttitle[title={PAGE 3},marking{ }] \setupbackgrounds[page][backgr
[NTG-context] vim \page highlight
Hello list, Do you know what should I add to my ftplugin/context.vim to have \page highlighted when using ViM ? I tried to understand context.vim color syntax but this is magic to me (mapping is ok, but offtopic). Thanks, Damien Thiriet ___ 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] Tabulate backgroundcolors
On 9/10/2018 12:45 PM, Henri Menke wrote: bump already fixed but no upload yet (maybe later today) On 09/07/2018 09:58 AM, Henri Menke wrote: Dear list, I'm trying to color the background of “p” cells in tabulate. The MWE below will fail with the error “Undefined control sequence \IMPOSSIBLE” but when I enter scrollmode to finish the run, I get a PDF which looks exactly as intended. Looks like it's not \IMPOSSIBLE after all but there is actually just a definition missing. Can you please fix this? Cheers, Henri --- \starttext \starttabulate[|CM{black}l|CM{gray}p|][distance=none] \HL \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR \HL \VL \VL \bf Description: \VL\NR \HL \VL \VL \startitemize \dorecurse{60}{\item Item \recurselevel} \stopitemize \VL\NR \HL \stoptabulate \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 ___ -- - 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] Tabulate backgroundcolors
bump On 09/07/2018 09:58 AM, Henri Menke wrote: > Dear list, > > I'm trying to color the background of “p” cells in tabulate. The MWE > below will fail with the error “Undefined control sequence \IMPOSSIBLE” > but when I enter scrollmode to finish the run, I get a PDF which looks > exactly as intended. Looks like it's not \IMPOSSIBLE after all but > there is actually just a definition missing. Can you please fix this? > > Cheers, Henri > > --- > > \starttext > \starttabulate[|CM{black}l|CM{gray}p|][distance=none] > \HL > \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR > \HL > \VL \VL \bf Description: \VL\NR > \HL > \VL \VL > \startitemize > \dorecurse{60}{\item Item \recurselevel} > \stopitemize > \VL\NR > \HL > \stoptabulate > \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 ___
[NTG-context] Tabulate backgroundcolors
Dear list, I'm trying to color the background of “p” cells in tabulate. The MWE below will fail with the error “Undefined control sequence \IMPOSSIBLE” but when I enter scrollmode to finish the run, I get a PDF which looks exactly as intended. Looks like it's not \IMPOSSIBLE after all but there is actually just a definition missing. Can you please fix this? Cheers, Henri --- \starttext \starttabulate[|CM{black}l|CM{gray}p|][distance=none] \HL \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR \HL \VL \VL \bf Description: \VL\NR \HL \VL \VL \startitemize \dorecurse{60}{\item Item \recurselevel} \stopitemize \VL\NR \HL \stoptabulate \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] xtables multipage horizontally
On Tue, Sep 4, 2018 at 10:26 AM luigi scarso wrote: > > > On Tue, Sep 4, 2018 at 10:23 AM be ba wrote: > >> The wiki says I should ask again one week later if I did not get an >> answer. >> Could someone please help me with my problem. Thanks. >> >> meeting time, quite busy, but > today at 15:45 we have a "Brainstorming session" on tables > > In tabl-xtb.mkvi (xtables) % todo: % % - yes or no: foregroundstyle/color <- style/color % - template alignment % - maybe split horizontal (a la linetables) % - before/after and wrapping (linecorrection) % - maybe also some before/after commands % - maybe correction when non float usage % - tagging needs to be checked % - maybe only tag the box % - scale to fit % % - buffers permit verbatim but are not always handy -- luigi ___ 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] Emacs + latest beta
t; > 6731, banner: this is luatex, version 1.08.0 (tex live 2018) > > mkiv lua stats > control sequences: 46536 of 65536 + 10 > > mkiv lua stats > lua properties: engine: lua 5.3, used memory: 81 MB > (ctx: > > 81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) > > mkiv lua stats > runtime: 0.562 seconds, 1 processed pages, 1 shipped > > pages, 1.779 pages/second > > mtx-context | run 3: luatex > > > --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" > > --jobname="vladimir" > > > --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" > > --no-parse-first-line --c:currentrun=3 --c:fulljobname="./vladimir" > > --c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall > > "cont-yes.mkiv" > > > > This is LuaTeX, Version 1.08.0 (TeX Live 2018) > > system commands enabled. > > > > resolvers > trees > analyzing 'home:texmf' > > open source > level 1, order 1, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > > system > > > system > ConTeXt ver: 2018.08.25 10:04 MKIV beta fmt: > 2018.8.25 > > int: english/english > > system > > > system > 'cont-new.mkiv' loaded > > open source > level 2, order 2, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' > > system > beware: some patches loaded from cont-new.mkiv > > close source> level 2, order 2, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' > > system > files > jobname 'vladimir', input './vladimir', result > > 'vladimir' > > fonts > latin modern fonts are not preloaded > > languages > language 'en' is active > > open source > level 2, order 3, name '/home/aragorn/vladimir.tex' > > system > synctex functionality is enabled, expect 5-10 pct > runtime > > overhead! > > fonts > preloading latin modern fonts (second stage) > > fonts > 'fallback modern-designsize rm 12pt' is loaded > > structure > sectioning > chapter @ level 2 : 0.1 -> First chapter > > metapost> initializing instance 'metafun:1' using format > 'metafun' > > and method 'default' > > metapost> loading 'metafun' as > > > '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' > > using method 'default' > > metapost> initializing number mode 'scaled' > > open source > level 3, order 4, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex' > > close source> level 3, order 4, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex' > > backend > xmp > using file > > > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' > > pages > flushing realpage 1, userpage 1, subpage 1 > > close source> level 2, order 4, name '/home/aragorn/vladimir.tex' > > close source> level 1, order 4, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > > > > mkiv lua stats > used config file: > selfautoparent:/texmf/web2c/texmfcnf.lua > > mkiv lua stats > used cache path: > > > /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e > > mkiv lua stats > resource resolver: loadtime 0.007 seconds, 1 scans with > > scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths: > > /home/aragorn/texmf > > mkiv lua stats > stored bytecode data: 437 modules (0.217 sec), 93 > tables > > (0.015 sec), 530 chunks (0.232 sec) > > mkiv lua stats > traced context: maxstack: 1328, freed: 5, unreachable: > > 1323 > > mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455 > > mkiv lua stats > node memory usage: 2 glue, 2 kern, 2 penalty, 14 > > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined > > mkiv lua stats > node list callback tasks: 8 unique task lists, 6 > > instances (re)created, 55 calls > > mkiv lua stats > synctex tracing: 2 referenced files, 5 files ignored, 3 > > objects flushed, logfile: vladimir.synctex > > mkiv lua stats > used backend: p
Re: [NTG-context] Emacs + latest beta
orn/vladimir.tex' > system > synctex functionality is enabled, expect 5-10 pct runtime > overhead! > fonts > preloading latin modern fonts (second stage) > fonts > 'fallback modern-designsize rm 12pt' is loaded > structure > sectioning > chapter @ level 2 : 0.1 -> First chapter > metapost> initializing instance 'metafun:1' using format 'metafun' > and method 'default' > metapost> loading 'metafun' as > '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' > using method 'default' > metapost> initializing number mode 'scaled' > open source > level 3, order 4, name > '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex' > close source> level 3, order 4, name > '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex' > backend > xmp > using file > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1, subpage 1 > close source> level 2, order 4, name '/home/aragorn/vladimir.tex' > close source> level 1, order 4, name > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua > mkiv lua stats > used cache path: > /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e > mkiv lua stats > resource resolver: loadtime 0.007 seconds, 1 scans with > scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths: > /home/aragorn/texmf > mkiv lua stats > stored bytecode data: 437 modules (0.217 sec), 93 tables > (0.015 sec), 530 chunks (0.232 sec) > mkiv lua stats > traced context: maxstack: 1328, freed: 5, unreachable: > 1323 > mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455 > mkiv lua stats > node memory usage: 2 glue, 2 kern, 2 penalty, 14 > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined > mkiv lua stats > node list callback tasks: 8 unique task lists, 6 > instances (re)created, 55 calls > mkiv lua stats > synctex tracing: 2 referenced files, 5 files ignored, 3 > objects flushed, logfile: vladimir.synctex > mkiv lua stats > used backend: pdf (backend for directly generating pdf > output) > mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading > mkiv lua stats > callbacks: internal: 177, file: 180, direct: 2, late: 2, > function 534, total: 895 > mkiv lua stats > randomizer: resumed with value 0.55005725985393 > mkiv lua stats > loaded patterns: en::2, load time: 0.000 > mkiv lua stats > result saved in file: vladimir.pdf, compresslevel 3, > objectcompresslevel 3 > mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf, > lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf > mkiv lua stats > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 > instances, 3 shared in backend, 3 common vectors, 0 common hashes, load > time 0.221 seconds > mkiv lua stats > metapost: 0.001 seconds, loading: 0.018, execution: > 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M > mkiv lua stats > used platform: linux-64, type: unix, binary subtree: > texmf-linux-64 > mkiv lua stats > used engine: luatex version 1.08 with functionality level > 6731, banner: this is luatex, version 1.08.0 (tex live 2018) > mkiv lua stats > control sequences: 46536 of 65536 + 10 > mkiv lua stats > lua properties: engine: lua 5.3, used memory: 86 MB (ctx: > 85 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) > mkiv lua stats > runtime: 0.536 seconds, 1 processed pages, 1 shipped > pages, 1.866 pages/second > mtx-context | purged files: vladimir.log, vladimir.tuc > system | total runtime: 2.525 seconds > > > TeX Output finished at Wed Aug 29 11:54:03 So no error this time, how about the resulted PDF file? >> Could you show in full your ~/.emacs file? Do you use AUCTeX or bare >> Emacs ? > I use AUCTEX but I d not know bare Emacs I assumed that you installed auctex package, like $ sudo pacman -S auctex and do (load "auctex") in your ~/.emacs file. If you do not use auctex or not load it the Emacs will use it's own (builtin) support for LaTeX and ConTeXt file (a limited one). > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(ConTeXt-Mark-version "IV"
Re: [NTG-context] Emacs + latest beta
xt: maxstack: 1328, freed: 5, unreachable: 1323 mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455 mkiv lua stats > node memory usage: 2 glue, 2 kern, 2 penalty, 14 attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined mkiv lua stats > node list callback tasks: 8 unique task lists, 6 instances (re)created, 55 calls mkiv lua stats > synctex tracing: 2 referenced files, 5 files ignored, 3 objects flushed, logfile: vladimir.synctex mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: internal: 177, file: 180, direct: 2, late: 2, function 534, total: 895 mkiv lua stats > randomizer: resumed with value 0.55005725985393 mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > result saved in file: vladimir.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.221 seconds mkiv lua stats > metapost: 0.001 seconds, loading: 0.018, execution: 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > used engine: luatex version 1.08 with functionality level 6731, banner: this is luatex, version 1.08.0 (tex live 2018) mkiv lua stats > control sequences: 46536 of 65536 + 10 mkiv lua stats > lua properties: engine: lua 5.3, used memory: 86 MB (ctx: 85 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.536 seconds, 1 processed pages, 1 shipped pages, 1.866 pages/second mtx-context | purged files: vladimir.log, vladimir.tuc system | total runtime: 2.525 seconds TeX Output finished at Wed Aug 29 11:54:03 Could you show in full your ~/.emacs file? Do you use AUCTeX or bare > Emacs > ? > I use AUCTEX but I d not know bare Emacs (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(ConTeXt-Mark-version "IV") '(ConTeXt-engine "luatex") '(TeX-command-extra-options "-shell-escape") '(ansi-color-faces-vector [default default default italic underline success warning error]) '(ansi-color-names-vector ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#66" "#ccaa8f" "#f6f3e8"]) '(custom-enabled-themes (quote (leuven))) '(package-selected-packages (quote (yasnippet-snippets auto-complete-auctex context-coloring nova-theme auctex))) '(tab-width 4)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; SERVER Download (MELPA): (when (>= emacs-major-version 24) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/;) t)) (eval-after-load "context" '(setq TeX-command-list (cons '("ConTeXt" "PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s" TeX-run-command nil t :help "Run context (MarkIV)") TeX-command-list)) ) ;;(add-hook 'ConTeXt-mode-hook ;;(lambda() ;; (setq TeX-command-default "ConTeXt Full"))) (setq-default cursor-type 'bar) (set-cursor-color "#ff") (setq TeX-view-program-list '(("Evince" "evince %o")) TeX-view-program-selection '((output-pdf "Evince"))) (setq make-backup-files nil) ; stop creating backup~ files (setq auto-save-default nil) ; stop creating #autosave# files ;; auto close bracket insertion. New in emacs 24 (electric-pair-mode 1) ;; turn on highlight matching brackets when cursor is on one (show-paren-mode 1) (setq inhibit-startup-screen t) (add-to-list 'load-path "/home/aragorn/texlive/2018/texmf-dist/asymptote") (autoload 'asy-mode "asy-mode.el" "Asymptote major mode." t) (autoload 'lasy-mode "asy-mode.el" "hybrid Asymptote/Latex major mode." t) (autoload 'asy-insinuate-latex "asy-mode.el" "Asymptote insinuate LaTeX." t) (add-to-list 'auto-mode-alist '("\\.asy$" . asy-mode)) (setq column-number-mode t) (setq line-number-mode t) (setq py-install-directory "~/.emacs.d/site-lisp/python-mode
Re: [NTG-context] Textadept with ConTeXt
Hello, Thanks for your help ! First, only edit the init.lua in your USER folder, on Win it's > C:\Users\NAME\.textadept\init.lua. Don't edit the init.lua within TA's main > folder. In fact, there is no reason to enter TA's main folder after > extraction unless you want to read other config files like the ConTeXt > lexer (see below). > Of course ! > Second, I am using Win10x64 with SumatraPDF as viewer, it's fast and you > don't need to close documents to recompile. The biggest disadvantage is, > that you can't use scripts with SumatraPDF (for forms etc.). > Furthermore the following line I wrote into my init.lua: > > textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script > context --autopdf --purge "%f"' > > When I compile the PDF like this, Sumatra opens up as expected. On > recompile it reloads the PDF. Maybe the spaces within your command are the > reason: > synctex = -1 ->synctex=-1 > Here is the content of my init.lua : textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script context --autopdf --purge "%f"' textadept.file_types.extensions.tex = 'context' buffer:set_theme('dark', {font = 'Monospace', fontsize = 14}) When I compile a file test.tex (Maj + Ctrl + R), I get the expected file test.pdf in my home directory; file that I open with Evince. What I would like, if possible, is an automatic opening of this file after compilation. Here's what I get in the messages tab : mtx-context | pdfview methods: auto default okular pdfxcview sumatra, current method: sumatra (directives_pdfview_method) pdfview | command: wine "sumatrapdf.exe" -reuse-instance -bg-color 0xCC "wolfgang-1.pdf" 1> / dev / null 2> / dev / null & system | total runtime: 1.624 seconds If I compile a second time, still no automatic output from the file test.pdf. On the other hand, if I do Crtl + R test.tex, the file test.pdf opens with xdg-open : > exit status: 0 > xdg-open "wolfgang-1.pdf" File name empty! The specified Application package is not valid. / usr / bin / xdg-open: line 881: x-www-browser: command not found > exit status: 0 Thanks Fabrice Le mar. 21 août 2018 à 02:00, Lars a écrit : > Hi there, thanks for your interest in Textadept. It's a great editor and I > am sure that you won't regret testing it and using it in the future. Just > have some patience. > > I suggest you take a look at my User talk at the wiki, there I explain a > lot about TA and how to use it with ConTeXt. It's more detailed than the > Textadept site on the wiki. > > http://wiki.contextgarden.net/User_talk:Koenich > I have to say though that I wrote it with Windows in mind. But TA's config > files are all written in Lua so the OS should not be a problem. > > > Am 21/08/2018 um 00:55 schrieb Fabrice Couvreur: > > Hello, > In order to use another editor than Emacs and after testing Scite, I > installed Textadept and modified the init.lua file as follows : > > textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script > context --autopdf --purge --synctex = -1 "% f"' > > > First, only edit the init.lua in your USER folder, on Win it's > C:\Users\NAME\.textadept\init.lua. Don't edit the init.lua within TA's main > folder. In fact, there is no reason to enter TA's main folder after > extraction unless you want to read other config files like the ConTeXt > lexer (see below). > > Second, I am using Win10x64 with SumatraPDF as viewer, it's fast and you > don't need to close documents to recompile. The biggest disadvantage is, > that you can't use scripts with SumatraPDF (for forms etc.). > Furthermore the following line I wrote into my init.lua: > > textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script > context --autopdf --purge "%f"' > > When I compile the PDF like this, Sumatra opens up as expected. On > recompile it reloads the PDF. Maybe the spaces within your command are the > reason: > synctex = -1 ->synctex=-1 > > Third, is your ConTeXt folder within Search Path (I better ask)? > > *Fourth, did you bind extensions to the context.lua lexer?* In the > init.lua it should look like this: > > textadept.file_types.extensions.tex = 'context' > % If you're using LaTeX too, you should choose another extension. > textadept.file_types.extensions.mkii = 'context' > textadept.file_types.extensions.mkiv = 'context' > > *Fifth, is your context lexer loaded when you compile the file?* Check > the status bar in the lower right corner. If it doesn't say "context" but > "latex" or "text" or anything like that, then choose the context lexer via > "Buffer" -> "Select lexer...". > > Si
Re: [NTG-context] Text wrapped with an ornement
Hi Hans, It's great and with alternative =serried, that's exactly what I'm trying to do ! Thanks. Fabrice PS : @Pablo Thanks for your help. Le dim. 19 août 2018 à 12:40, Hans Hagen a écrit : > On 8/19/2018 11:47 AM, Pablo Rodriguez wrote: > > On 08/18/2018 11:51 PM, Fabrice Couvreur wrote: > >> Hi Palbo, > >> In fact I want the text '' Coming back ... '' to start on the same > >> baseline as the title of the ornament as in the photo. > > > > Hi Fabrice, > > > > I’m afraid I don’t know how to do that (if that is possible with frames). > \definecolor[MyColorA][s=0.8784] > \definecolor[MyColorB][m=0.27,y=1] > > \defineframed >[FrameTitle] >[frame=off, > foregroundstyle=\bfx\ss, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > location=depth] > > \defineframedtext >[FramedText] >[offset=0.6em, > style=\ss, > toffset=.25\lineheight, > background=color, > backgroundcolor=MyColorA, > oregroundstyle={\switchtobodyfont[10pt]}, > align={right, broad}, > frame=off, > corner=round, > radius=1.5em, > width=10cm] > > \definedescription >[Info] >[before=, > after=, > text=Info, > title=no, > width=fit, > distance=1em, > headcommand=\FrameTitle, > alternative=hanging] > > \showframe > > \starttext > \startFramedText >\startInfo > \input zapf >\stopInfo > \stopFramedText > \stoptext > > > - >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 > > ___ ___ 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] Text wrapped with an ornement
On 8/19/2018 11:47 AM, Pablo Rodriguez wrote: On 08/18/2018 11:51 PM, Fabrice Couvreur wrote: Hi Palbo, In fact I want the text '' Coming back ... '' to start on the same baseline as the title of the ornament as in the photo. Hi Fabrice, I’m afraid I don’t know how to do that (if that is possible with frames). \definecolor[MyColorA][s=0.8784] \definecolor[MyColorB][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, location=depth] \defineframedtext [FramedText] [offset=0.6em, style=\ss, toffset=.25\lineheight, background=color, backgroundcolor=MyColorA, oregroundstyle={\switchtobodyfont[10pt]}, align={right, broad}, frame=off, corner=round, radius=1.5em, width=10cm] \definedescription [Info] [before=, after=, text=Info, title=no, width=fit, distance=1em, headcommand=\FrameTitle, alternative=hanging] \showframe \starttext \startFramedText \startInfo \input zapf \stopInfo \stopFramedText \stoptext - 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] Text wrapped with an ornement
Hi Palbo, In fact I want the text '' Coming back ... '' to start on the same baseline as the title of the ornament as in the photo. Thanks. Fabrice Info Coming back ... blablablablabla Le sam. 18 août 2018 à 13:26, Pablo Rodriguez a écrit : > On 08/18/2018 11:11 AM, Fabrice Couvreur wrote: > > Hi Pablo, > > These options are to be added to \defineframedtext [] [] ? > > Without success at home ! > > Hi Fabrice, > > your sample should read: > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament > [FrameTitle] > [preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx\ss, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > style=\ss, > toffset=\lineheight, > background=color, > backgroundcolor=MyColorA, > foregroundstyle={\switchtobodyfont[10pt]}, > align={right, broad}, > frame=off, > corner=round, > radius=1.5em, > width=10cm, > ] > > \showframe > > \starttext > >\FrameTitle{Info}{% >\startFramedText% > \input zapf > \stopFramedText} > > \stoptext > > The width option works now, because I didn’t realize that your sample > had it right after the "\startFramedText" command. > > I hope it helps now. If anything is not working as you expect, please > explain what should be different. > > 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 > > ___ ___ 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] Text wrapped with an ornement
On 08/18/2018 11:11 AM, Fabrice Couvreur wrote: > Hi Pablo, > These options are to be added to \defineframedtext [] [] ? > Without success at home ! Hi Fabrice, your sample should read: \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, style=\ss, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align={right, broad}, frame=off, corner=round, radius=1.5em, width=10cm, ] \showframe \starttext \FrameTitle{Info}{% \startFramedText% \input zapf \stopFramedText} \stoptext The width option works now, because I didn’t realize that your sample had it right after the "\startFramedText" command. I hope it helps now. If anything is not working as you expect, please explain what should be different. 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] Text wrapped with an ornement
Neither framedtext nor framed have a alternative key. You can check this very easy by looking into setup-en.pdf. Wolfgang Fabrice Couvreur schrieb am 17.08.18 um 11:24: Hello, Aditya offered me the following code to insert comments with an ornament. I notice that the option alternative= serried does not seem to work. Thank you. Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=round, ] \showframe \starttext \FrameTitle{Info}{\startFramedText[width=\textwidth] \dorecurse{100}{blabla} \stopFramedText} \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 ___
[NTG-context] Text wrapped with an ornement
Hello, Aditya offered me the following code to insert comments with an ornament. I notice that the option alternative= serried does not seem to work. Thank you. Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=round, ] \showframe \starttext \FrameTitle{Info}{\startFramedText[width=\textwidth] \dorecurse{100}{blabla} \stopFramedText} \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] \definetextbackground does not fill tables within
On Tue, 14 Aug 2018 09:49:05 +0200 Hans Hagen ha escrit: > On 8/13/2018 11:37 PM, dxpubl...@posteo.net wrote: > > Hi, > > > > I have simple document which I define my \definetextbackground: > > \startteoria and \stopteoria (see below). When I use it and put table > > within, the table does not get filled with color. Any solution? > \setupfloats[table][freeregion=no] > Thanks a lot, Hans. It works. Does it have any collateral effects? ___ 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] \definetextbackground does not fill tables within
On Tue, 14 Aug 2018 09:49:05 +0200 Hans Hagen wrote: > > I have simple document which I define my \definetextbackground: > > \startteoria and \stopteoria (see below). When I use it and put table > > within, the table does not get filled with color. Any solution? > \setupfloats[table][freeregion=no] I see that this is even referenced in i-context.pdf (We should recognize that great job made by Wolfgang in assembling the interface xml files.) 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 ___
Re: [NTG-context] \definetextbackground does not fill tables within
On 8/13/2018 11:37 PM, dxpubl...@posteo.net wrote: Hi, I have simple document which I define my \definetextbackground: \startteoria and \stopteoria (see below). When I use it and put table within, the table does not get filled with color. Any solution? \setupfloats[table][freeregion=no] - 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] \definetextbackground does not fill tables within
Floating objects (\placetable, \placefigure, ... and footnotes, etc.) do not inherit the text background, for indeed, imagine that it floats to another location. Here, you use location=force, so one might expect it to use the text background... In fact, side floats, location=left and location=right, do get the text background color, so there is a *kludge* possible there: \startplacetable [location=right] ... \stopplacetable \flushsidefloats ... (incomplete example) Alan P.S. Hans: maybe location=force ought to work similarly with respect to text backgrounds as location=left or location=right. On Mon, 13 Aug 2018 21:37:45 + dxpubl...@posteo.net wrote: > Hi, > > I have simple document which I define my \definetextbackground: > \startteoria and \stopteoria (see below). When I use it and put table > within, the table does not get filled with color. Any solution? > > Thanks in advance, > Xavier > > \definecolor[teoriacolor][lightgray] > > \definetextbackground[bteoria][ > frame=off, > location=paragraph, > background=color, > backgroundcolor=teoriacolor, % fins aquí provat: > http://www.mail-archive.com/ntg-context%40ntg.nl/msg78014.html > %width=broad, > %corner=round, > %radius=5ex, > leftoffset=10pt,rightoffset=10pt, > topoffset=10pt,bottomoffset=10pt > %offset=-5pt > ] > > \definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}] > > > \starttext > > \startteoria > \input tufte > > \placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes > fonamentals}{ > \starttable[|l|p(.6\textwidth)|] > \NC Població: \NC Són {\em tots} els elements que són objecte d'estudi > \NC \FR > \HL > \NC Mostra: \NC La {\em part} de la població de la qual recopilem les > dades i estudiam. > > Poques vegades coincideix amb la població. Una bona mostra necessita ser > suficientment heterogènia per a poder representar la població. > > Es pot determinar el tamany mínim necessari per a què una mostra tengui > la representativitat necessària amb un marge d'error. \NC \MR > \HL > \NC Grandària: \NC {\em Nombre} d'elements de la població o de la > mostra. \NC \MR > \HL > \NC Variable estadística: \NC Cadascuna de les {\em propietats} o > característiques que volem estudiar d'un conjunt de dades. \NC \LR > \stoptable} > > Existeixen dues branques de l'estadística: > > \startitemize > \item L'{\em estadística descriptiva}, que simplement descriu i > interpreta les característiques del grup d'estudi, tal com és. Fa un > {\em retrat} de la població. > \item L'{\em estadística inferencial} que intenta fer prediccions i > justificar que la mostra s'adeqüa a la població, de manera que les > característiques de la mostra siguin les mateixes que les > característiques de la població. > \stopitemize > > > \stopteoria > > \stoptext > > > > > Result (see pdf file) ___ 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] \definetextbackground does not fill tables within
Hi, I have simple document which I define my \definetextbackground: \startteoria and \stopteoria (see below). When I use it and put table within, the table does not get filled with color. Any solution? Thanks in advance, Xavier \definecolor[teoriacolor][lightgray] \definetextbackground[bteoria][ frame=off, location=paragraph, background=color, backgroundcolor=teoriacolor, % fins aquí provat: http://www.mail-archive.com/ntg-context%40ntg.nl/msg78014.html %width=broad, %corner=round, %radius=5ex, leftoffset=10pt,rightoffset=10pt, topoffset=10pt,bottomoffset=10pt %offset=-5pt ] \definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}] \starttext \startteoria \input tufte \placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes fonamentals}{ \starttable[|l|p(.6\textwidth)|] \NC Població: \NC Són {\em tots} els elements que són objecte d'estudi \NC \FR \HL \NC Mostra: \NC La {\em part} de la població de la qual recopilem les dades i estudiam. Poques vegades coincideix amb la població. Una bona mostra necessita ser suficientment heterogènia per a poder representar la població. Es pot determinar el tamany mínim necessari per a què una mostra tengui la representativitat necessària amb un marge d'error. \NC \MR \HL \NC Grandària: \NC {\em Nombre} d'elements de la població o de la mostra. \NC \MR \HL \NC Variable estadística: \NC Cadascuna de les {\em propietats} o característiques que volem estudiar d'un conjunt de dades. \NC \LR \stoptable} Existeixen dues branques de l'estadística: \startitemize \item L'{\em estadística descriptiva}, que simplement descriu i interpreta les característiques del grup d'estudi, tal com és. Fa un {\em retrat} de la població. \item L'{\em estadística inferencial} que intenta fer prediccions i justificar que la mostra s'adeqüa a la població, de manera que les característiques de la mostra siguin les mateixes que les característiques de la població. \stopitemize \stopteoria \stoptext Result (see pdf file) prova.pdf Description: Adobe PDF document ___ 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] How can I remove a blank leading line from a buffer
On 8/13/2018 10:28, Rik Kabel wrote: On 8/13/2018 03:01, Hans Hagen wrote: On 8/13/2018 5:18 AM, Rik Kabel wrote: \startparagraph % \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] % \ (first: \First, arg: \Arg) \margintext{\Mark} \setupparagraphintro[first][(first: \First, arg: \Arg)] %\setupparagraphintro[next][(first: \First, arg: \Arg)] \getbuffer[TestBuffer] \stopparagraph Hans, That works for the over-simplified case here, but fails in practice. For a \startnarrower[left] paragraph, the mark is still in the main margin, not the 'margin' of the narrowed paragraph. Also, the placement of the text in the margin is wrong and not easily controlled as with \llap and \rlap. The code started out more like: \define\Mark{\color[middlegray]{\hskip.6cm\itb¿\ }} \setwidthof{\Mark}\to\MarkWidth ... \starttexdefinition stopBufTest \startluacode buffers.prepend("TestBuffer","\\dontleavehmode\\llap{\\Mark}") \stopluacode \setupnarrower[left=\MarkWidth] \startnarrower[left,right] \startparagraph \inlinebuffer[TestBuffer] \stopparagraph \stopnarrower \egroup \stoptexdefinition So I am still looking for a way to do this. Meanwhile I am trying to understand Aditya's examples. Turns out another answer was hidden in Hans's reply. The following seems to meet my needs, but it may complicate other use of \setupparagraphintro (which I don't recall seeing before), so it may not be a generic solution. An empty string works fine instead of the llaped marking shown here. This is a less dangerous hack than redefining \par, but still may fail in more complex documents when \setupparagraphintro is used elsewhere. \starttexdefinition stopBufTest \startnarrower[left,right] \startparagraph \setupparagraphintro[first][\llap{\Mark}] \inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg) \stopparagraph \stopnarrower \egroup \stoptexdefinition Thank you, Hans. (For a non-hack generic solution that does not interfere with other use of \setupparagraphintro, surely there must be an easy way to apply string.strip to the buffer.) -- Rik ___ 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] How can I remove a blank leading line from a buffer
Rik Kabel schrieb am 13.08.18 um 16:28: Hans, That works for the over-simplified case here, but fails in practice. For a \startnarrower[left] paragraph, the mark is still in the main margin, not the 'margin' of the narrowed paragraph. Also, the placement of the text in the margin is wrong and not easily controlled as with \llap and \rlap. The code started out more like: \define\Mark{\color[middlegray]{\hskip.6cm\itb¿\ }} \setwidthof{\Mark}\to\MarkWidth ... \starttexdefinition stopBufTest \startluacode buffers.prepend("TestBuffer","\\dontleavehmode\\llap{\\Mark}") \stopluacode \setupnarrower[left=\MarkWidth] \startnarrower[left,right] \startparagraph \inlinebuffer[TestBuffer] \stopparagraph \stopnarrower \egroup \stoptexdefinition Hi Rik, what do you want to achieve and why do you need a buffer for it? 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] How can I remove a blank leading line from a buffer
On 8/13/2018 03:01, Hans Hagen wrote: On 8/13/2018 5:18 AM, Rik Kabel wrote: %% How can one remove blank lines at the start of a buffer so that %% commands that grab a buffer can be used in the same way as, for %% example, \startparagraph...\stopparagraph, which allow blank %% lines around the content? %% %% The problem appears when an optional argument is allowed but none %% is provided. Adding \relax does not help; adding empty brackets %% does. I see no way to distinguish between a buffer without %% leading blank lines and a buffer that was created when brackets %% are provided. %% %% \inlinebuffer handles the leading blank lines when there is %% nothing prepended, but I need to prepend. (It also handles the %% unwanted trailing line, but that is not an issue here). %% %% How can I unpack the buffer, apply the equivalent functions of %% ignorespaspaces and removeunwantedspaces to it, and repack it? %% The buffer may contain internal blank lines and macros, and %% those should be retained. Or, is there already a function to %% strip a buffer in the manner that string.strip does a string? \setupwhitespace[none] \setupindenting[none] \define\Mark{\color[middlegray]{\itb¿\ }} \define\First{nothing yet} \define\Arg{nothing yet} \setuplanguage[en][spacing=packed] \starttexdefinition unexpanded startBufTest \bgroup \dosingleempty\dostartBufTest \stoptexdefinition \starttexdefinition dostartBufTest [#SETUPS] \doifsomethingelse{#{SETUPS}} {\define\Arg{yes}} {\define\Arg{no}} \iffirstargument \define\First{yes} \else \define\First{no} \fi \relax \getrawparameters[BufTest][xx=yy,#SETUPS] \grabbufferdata[TestBuffer][startBufTest][stopBufTest] \stoptexdefinition \starttexdefinition stopBufTest \startparagraph \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg) \stopparagraph \egroup \stoptexdefinition \starttext \startparagraph A starting paragraph. \stopparagraph \startBufTest Buffer without blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest Buffer with blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest\relax Buffer with \tex{relax}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[] Buffer with \type{[]}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[key=value] Buffer with \type{[key=value]}. \stopBufTest \startparagraph A closing paragraph. \stopparagraph \stoptext \startparagraph % \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] % \ (first: \First, arg: \Arg) \margintext{\Mark} \setupparagraphintro[first][(first: \First, arg: \Arg)] %\setupparagraphintro[next][(first: \First, arg: \Arg)] \getbuffer[TestBuffer] \stopparagraph Hans, That works for the over-simplified case here, but fails in practice. For a \startnarrower[left] paragraph, the mark is still in the main margin, not the 'margin' of the narrowed paragraph. Also, the placement of the text in the margin is wrong and not easily controlled as with \llap and \rlap. The code started out more like: \define\Mark{\color[middlegray]{\hskip.6cm\itb¿\ }} \setwidthof{\Mark}\to\MarkWidth ... \starttexdefinition stopBufTest \startluacode buffers.prepend("TestBuffer","\\dontleavehmode\\llap{\\Mark}") \stopluacode \setupnarrower[left=\MarkWidth] \startnarrower[left,right] \startparagraph \inlinebuffer[TestBuffer] \stopparagraph \stopnarrower \egroup \stoptexdefinition So I am still looking for a way to do this. Meanwhile I am trying to understand Aditya's examples. -- Rik ___ 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] How can I remove a blank leading line from a buffer
On 8/13/2018 5:18 AM, Rik Kabel wrote: %% How can one remove blank lines at the start of a buffer so that %% commands that grab a buffer can be used in the same way as, for %% example, \startparagraph...\stopparagraph, which allow blank %% lines around the content? %% %% The problem appears when an optional argument is allowed but none %% is provided. Adding \relax does not help; adding empty brackets %% does. I see no way to distinguish between a buffer without %% leading blank lines and a buffer that was created when brackets %% are provided. %% %% \inlinebuffer handles the leading blank lines when there is %% nothing prepended, but I need to prepend. (It also handles the %% unwanted trailing line, but that is not an issue here). %% %% How can I unpack the buffer, apply the equivalent functions of %% ignorespaspaces and removeunwantedspaces to it, and repack it? %% The buffer may contain internal blank lines and macros, and %% those should be retained. Or, is there already a function to %% strip a buffer in the manner that string.strip does a string? \setupwhitespace[none] \setupindenting[none] \define\Mark{\color[middlegray]{\itb¿\ }} \define\First{nothing yet} \define\Arg{nothing yet} \setuplanguage[en][spacing=packed] \starttexdefinition unexpanded startBufTest \bgroup \dosingleempty\dostartBufTest \stoptexdefinition \starttexdefinition dostartBufTest [#SETUPS] \doifsomethingelse{#{SETUPS}} {\define\Arg{yes}} {\define\Arg{no}} \iffirstargument \define\First{yes} \else \define\First{no} \fi \relax \getrawparameters[BufTest][xx=yy,#SETUPS] \grabbufferdata[TestBuffer][startBufTest][stopBufTest] \stoptexdefinition \starttexdefinition stopBufTest \startparagraph \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg) \stopparagraph \egroup \stoptexdefinition \starttext \startparagraph A starting paragraph. \stopparagraph \startBufTest Buffer without blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest Buffer with blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest\relax Buffer with \tex{relax}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[] Buffer with \type{[]}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[key=value] Buffer with \type{[key=value]}. \stopBufTest \startparagraph A closing paragraph. \stopparagraph \stoptext \startparagraph % \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] % \ (first: \First, arg: \Arg) \margintext{\Mark} \setupparagraphintro[first][(first: \First, arg: \Arg)] %\setupparagraphintro[next][(first: \First, arg: \Arg)] \getbuffer[TestBuffer] \stopparagraph - 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] How can I remove a blank leading line from a buffer
On 13/08/18 15:18, Rik Kabel wrote: %% How can one remove blank lines at the start of a buffer so that %% commands that grab a buffer can be used in the same way as, for %% example, \startparagraph...\stopparagraph, which allow blank %% lines around the content? %% %% The problem appears when an optional argument is allowed but none %% is provided. Adding \relax does not help; adding empty brackets %% does. I see no way to distinguish between a buffer without %% leading blank lines and a buffer that was created when brackets %% are provided. %% %% \inlinebuffer handles the leading blank lines when there is %% nothing prepended, but I need to prepend. (It also handles the %% unwanted trailing line, but that is not an issue here). %% %% How can I unpack the buffer, apply the equivalent functions of %% ignorespaspaces and removeunwantedspaces to it, and repack it? %% The buffer may contain internal blank lines and macros, and %% those should be retained. Or, is there already a function to %% strip a buffer in the manner that string.strip does a string? \setupwhitespace[none] \setupindenting[none] \define\Mark{\color[middlegray]{\itb¿\ }} \define\First{nothing yet} \define\Arg{nothing yet} \setuplanguage[en][spacing=packed] \starttexdefinition unexpanded startBufTest \bgroup \dosingleempty\dostartBufTest \stoptexdefinition \starttexdefinition dostartBufTest [#SETUPS] \doifsomethingelse{#{SETUPS}} {\define\Arg{yes}} {\define\Arg{no}} \iffirstargument \define\First{yes} \else \define\First{no} \fi \relax \getrawparameters[BufTest][xx=yy,#SETUPS] \grabbufferdata[TestBuffer][startBufTest][stopBufTest] \stoptexdefinition \starttexdefinition stopBufTest \startparagraph % Ignore first \par \def\par{\let\par\normalpar} \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg) \stopparagraph \egroup \stoptexdefinition \starttext \startparagraph A starting paragraph. \stopparagraph \startBufTest Buffer without blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest Buffer with blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest\relax Buffer with \tex{relax}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[] Buffer with \type{[]}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[key=value] Buffer with \type{[key=value]}. \stopBufTest \startparagraph A closing paragraph. \stopparagraph \stoptext \stopmode %% -- %% Rik Kabel ___ 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] How can I remove a blank leading line from a buffer
On Sun, 12 Aug 2018, Rik Kabel wrote: %% How can one remove blank lines at the start of a buffer so that %% commands that grab a buffer can be used in the same way as, for %% example, \startparagraph...\stopparagraph, which allow blank %% lines around the content? %% %% The problem appears when an optional argument is allowed but none %% is provided. Adding \relax does not help; adding empty brackets %% does. I see no way to distinguish between a buffer without %% leading blank lines and a buffer that was created when brackets %% are provided. %% %% \inlinebuffer handles the leading blank lines when there is %% nothing prepended, but I need to prepend. (It also handles the %% unwanted trailing line, but that is not an issue here). %% %% How can I unpack the buffer, apply the equivalent functions of %% ignorespaspaces and removeunwantedspaces to it, and repack it? %% The buffer may contain internal blank lines and macros, and %% those should be retained. Or, is there already a function to %% strip a buffer in the manner that string.strip does a string? \setupwhitespace[none] \setupindenting[none] \define\Mark{\color[middlegray]{\itb¿\ }} \define\First{nothing yet} \define\Arg{nothing yet} \setuplanguage[en][spacing=packed] \starttexdefinition unexpanded startBufTest \bgroup \dosingleempty\dostartBufTest \stoptexdefinition \starttexdefinition dostartBufTest [#SETUPS] \doifsomethingelse{#{SETUPS}} {\define\Arg{yes}} {\define\Arg{no}} \iffirstargument \define\First{yes} \else \define\First{no} \fi \relax \getrawparameters[BufTest][xx=yy,#SETUPS] \grabbufferdata[TestBuffer][startBufTest][stopBufTest] \stoptexdefinition \starttexdefinition stopBufTest \startparagraph \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg) \stopparagraph \egroup \stoptexdefinition \starttext \startparagraph A starting paragraph. \stopparagraph \startBufTest Buffer without blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest Buffer with blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest\relax Buffer with \tex{relax}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[] Buffer with \type{[]}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[key=value] Buffer with \type{[key=value]}. \stopBufTest \startparagraph A closing paragraph. \stopparagraph \stoptext \stopmode Perhaps \ignorespaces might work, but I often find that the conceptually simplest solution is to post-process the buffer at the lua end. See http://wiki.contextgarden.net/Programming_in_LuaTeX#Manipulating_verbatim_text for an example. Aditya___ 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] How can I remove a blank leading line from a buffer
%% How can one remove blank lines at the start of a buffer so that %% commands that grab a buffer can be used in the same way as, for %% example, \startparagraph...\stopparagraph, which allow blank %% lines around the content? %% %% The problem appears when an optional argument is allowed but none %% is provided. Adding \relax does not help; adding empty brackets %% does. I see no way to distinguish between a buffer without %% leading blank lines and a buffer that was created when brackets %% are provided. %% %% \inlinebuffer handles the leading blank lines when there is %% nothing prepended, but I need to prepend. (It also handles the %% unwanted trailing line, but that is not an issue here). %% %% How can I unpack the buffer, apply the equivalent functions of %% ignorespaspaces and removeunwantedspaces to it, and repack it? %% The buffer may contain internal blank lines and macros, and %% those should be retained. Or, is there already a function to %% strip a buffer in the manner that string.strip does a string? \setupwhitespace[none] \setupindenting[none] \define\Mark{\color[middlegray]{\itb¿\ }} \define\First{nothing yet} \define\Arg{nothing yet} \setuplanguage[en][spacing=packed] \starttexdefinition unexpanded startBufTest \bgroup \dosingleempty\dostartBufTest \stoptexdefinition \starttexdefinition dostartBufTest [#SETUPS] \doifsomethingelse{#{SETUPS}} {\define\Arg{yes}} {\define\Arg{no}} \iffirstargument \define\First{yes} \else \define\First{no} \fi \relax \getrawparameters[BufTest][xx=yy,#SETUPS] \grabbufferdata[TestBuffer][startBufTest][stopBufTest] \stoptexdefinition \starttexdefinition stopBufTest \startparagraph \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg) \stopparagraph \egroup \stoptexdefinition \starttext \startparagraph A starting paragraph. \stopparagraph \startBufTest Buffer without blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest Buffer with blank lines. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest\relax Buffer with \tex{relax}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[] Buffer with \type{[]}. \stopBufTest \startparagraph An intervening paragraph. \stopparagraph \startBufTest[key=value] Buffer with \type{[key=value]}. \stopBufTest \startparagraph A closing paragraph. \stopparagraph \stoptext \stopmode %% -- %% Rik Kabel ___ 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] general suggestion for ConTeXt documentation
On Wed, 8 Aug 2018 17:54:34 +0200 Hans Hagen wrote: > On 8/8/2018 3:30 PM, Robert Zydenbos wrote: > > > profile = NAME > > empty = yes no > > … > > > > and similar questions arise: “what kind of profile?”, “what is empty or > > not?” etc. > > it's pretty safe to ignore keys like 'profile' (if you grep the > documentation tree it's just an example of a potential optimization > of the rendering which in practice no one will use because in the end it > makes no sense more fun feature i guess) The philosophy has been to use keys that are generally pretty self-explanatory, such as title=, color=, style=, etc. Secondly, the commands try to use existing key names if they are relevant rather than adding new keys, and this sometimes leads to key names that at first sight might seem slightly awkward (where a synonym or close synonym might be slightly better). Also, sometimes the context requires a new key, such as foregroundcolor= and backgroundcolor=, when color= for example would be ambiguous. Thirdly, many keys are inherited and passed-on to an included command. Finally, unknown or unused keys are simply ignored. This has the advantage that often, just trying the obvious simply works. To quote Poincaré: \startquotation Mathematics is the art of giving the same name to different things. It is enough that these things, though differing in matter, should be similar in form, to permit their being, so to speak, cast in the same mould. When the language has been carefully chosen, one is surprised to discover that all proofs developed for a given object, can be immediately applied to many new objects; there is nothing to be changed, not even the words, since all the names have become the same. \stopquotation 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 ___
Re: [NTG-context] How to control the space between the bottom of the frame and the text?
The offset value changes the margins on all four sides, the increase only the distance for bottom frame you can use the boffset key. Wolfgang Alan Braslau schrieb am 07.08.18 um 17:02: offset= On Tue, 7 Aug 2018 11:55:29 +0200 Fabrice Couvreur wrote: Hello, I find that the text is near the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text={Exercice}, headstyle={\bf\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, stopper={.}, alternative=serried] \defineprocessor[ACPROCESSOR][color=red] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \setupbodyfont[pagella] \starttext \startexercice \input ward \stopexercice \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 ___
Re: [NTG-context] How to control the space between the bottom of the frame and the text?
offset= On Tue, 7 Aug 2018 11:55:29 +0200 Fabrice Couvreur wrote: > Hello, > I find that the text is near the bottom line of the frame, how to add > a little space ? > Thanks > Fabrice > > \defineframed > [ACFRAME] > [frame=on, >width=fit, >align=flushleft, > location=low, >background=color, >backgroundcolor=lightgray] > > \defineenumeration > [exercice] > [text={Exercice}, >headstyle={\bf\feature[+][f:smallcaps]}, >headcommand=\ACFRAME, >numberconversionset=ACCONVERSION, >width=fit, >stopper={.}, >alternative=serried] > > \defineprocessor[ACPROCESSOR][color=red] > > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > > \setupbodyfont[pagella] > > \starttext > \startexercice > \input ward > \stopexercice > \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 ___
[NTG-context] How to control the space between the bottom of the frame and the text?
Hello, I find that the text is near the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text={Exercice}, headstyle={\bf\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, stopper={.}, alternative=serried] \defineprocessor[ACPROCESSOR][color=red] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \setupbodyfont[pagella] \starttext \startexercice \input ward \stopexercice \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 ___
[NTG-context] Fwd: Problem of compiling a file with Emacs
level 4 : 0.1.0.2 -> > Événements > > pages > flushing realpage 2, userpage 2 > > close source> level 2, order 3, name '/home/aragorn/Test.tex' > > close source> level 1, order 3, name > > '/home/aragorn/context/tex/texmf-context/tex/context/base/ > mkiv/cont-yes.mkiv' > > > > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/te > xmfcnf.lua > > mkiv lua stats > used cache path: > > /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5 > fe67e0bfe781ce0dde776fb1556f32e > > mkiv lua stats > resource resolver: loadtime 0.007 seconds, 1 scans > > with scantime 0.000 seconds, 0 shared scans, 29 found files, scanned > > paths: /home/aragorn/texmf > > mkiv lua stats > stored bytecode data: 429 modules (0.228 sec), 93 > > tables (0.014 sec), 522 chunks (0.242 sec) > > mkiv lua stats > traced context: maxstack: 1325, freed: 4, unreachable: > > 1321 > > mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455 > > mkiv lua stats > node memory usage: 2 glue, 2 kern, 3 penalty, 14 > > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined > > mkiv lua stats > node list callback tasks: 8 unique task lists, 6 > > instances (re)created, 114 calls > > mkiv lua stats > used backend: pdf (backend for directly generating pdf > > output)mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 > > seconds loading > > mkiv lua stats > callbacks: internal: 332, file: 200, direct: 2, late: > > 4, function 577, total: 1115 (1115 per page) > > mkiv lua stats > loaded patterns: en::2, load time: 0.000 > > mkiv lua stats > result saved in file: Test.pdf, compresslevel 3, > > objectcompresslevel 3 > > mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, > > lmroman10-regular.otf, lmroman12-regular.otf > > mkiv lua stats > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 > > instances, 4 shared in backend, 3 common vectors, 1 common hashes, load > > time 0.307 seconds > > mkiv lua stats > metapost: 0.001 seconds, loading: 0.101, execution: > > 0.000, n: 1, average: 0.102, instances: 1, luacalls: 4, memory: 2.602 M > > mkiv lua stats > used platform: linux-64, type: unix, binary subtree: > > texmf-linux-64 > > mkiv lua stats > used engine: luatex version 1.08 with functionality > > level 6731, banner: this is luatex, version 1.08.0 (tex live 2018) > > mkiv lua stats > control sequences: 46515 of 65536 + 10 > > mkiv lua stats > lua properties: engine: lua 5.3, used memory: 96 MB > > (ctx: 96 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf > (τεχ) > > mkiv lua stats > runtime: 0.81 seconds, 2 processed pages, 2 shipped > > pages, 2.469 pages/second > > system | total runtime: 1.166 seconds > > > > > > TeX Output finished at Tue Jul 31 23:45:34 > > > > > > Fabrice > > > > 2018-07-31 19:04 GMT+02:00 Lizardo M. Reyna Bowen > <mailto:far...@disroot.org>>: > > > > I tested the file and conTeXt works well from emacs. The problem > > seems to be related with your conTeXt standalone installation. when > > the file is compiled, emacs create a log buffer *... output*. You > > could post that information to look the possible error. > > > > Have you tried reinstalling conTeXt? > > > > attached test.pdf > > > > > > On 07/31/2018 04:43 AM, Fabrice Couvreur wrote: > >> With (setenv "PATH" > >> "/home/aragorn/texlive/2018/bin/x86_64-linux/context:$PATH" t) It > >> works properly with C-c C-c > >> > >> > >> With (setenv "PATH" > >> "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) It does > >> not work with C-c C-c > >> > >> The compilation is however correct by using a terminal without > >> Emacs from the standalone version > >> Fabrice > >> > >> 2018-07-31 10:18 GMT+02:00 Fabrice Couvreur > >> mailto:fabrice1.couvr...@gmail.com>>: > >> > >> Hello, > >> I did the same thing as you, but nothing changes. Have you > >> tested the file? The expected result is to have the title of > >> the chapter with the chapter number in large and light gray > >> color. All compiles except the macro that allows to have the > >> chapter number; I get a small rectangle instead. > >> Fabrice
Re: [NTG-context] Problem with an enumeration
Hi Wolfgang, Thank you very much ! Fabrice 2018-08-01 21:21 GMT+02:00 Wolfgang Schuster < wolfgang.schuster.li...@gmail.com>: > Hi Fabrice, > > I found the following example in my mail archive. > > %% > \define\ItemCommand > {\hskip\zeropoint\relax\autoinsertnextspace} > > \setupitemgroup > [itemize] > [color=darkred, >distance=0pt] > > \setupitemgroup > [itemize:1] > [option={n,packed,fit,intext}, >command=\ItemCommand] > > \setupitemgroup > [itemize:2] > [lefttext=, >righttext=, >option={a,text}] > > \starttext > > \startitemize > > \item We thrive in \unknown > > \item \startitemize > \item \input tufte\par > \item \input tufte > \stopitemize > > \stopitemize > > \stoptext > %% > > PS. If you want an answer from me you should add me to cc because I have > problems getting mails from the list. > > Wolfgang > > > Fabrice Couvreur schrieb am 31.07.18 um 23:58: > > Hi Pablo, > That's not what I'm looking for but rather this: > > *1.a.* blablablabla > blablablabla > *b.* blablablabla > blablablabla > *c.* blablablabla > blablablabla > > Which explains the use of the key intext > Fabrice > > 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez : > >> On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: >> > Hello, >> > Wolfgang helped me to get this: >> > >> > 1.a. >> > b. >> > c. >> > 2.a >> > b. >> > c. >> > >> > I have unfortunately lost the code he had proposed to me. I get this: >> > >> > 1.a. >> > 1b >> > 1 C >> > 2.a >> > 2.b >> > 2.c >> >> Hi Fabrice, >> >> I don’t get your output. I had to remove the "intext" option and I guess >> I got what you intend: >> >> \setupitemgroup >>[itemize][1] >>[color=darkred, >> distance=\spaceamount, >> option={packed,fit,n}] >> >> \setupitemgroup >>[itemize][2] >>[color=darkred, >> distance=\spaceamount, >> option={packed,fit,a}] >> >> \starttext >> \startitemize >> \item \startitemize >> \item \input zapf >> >> \item \input knuth >> >> \item \input montgomery >> \stopitemize >> \item \startitemize >> \item \input zapf >> >> \item \input knuth >> >> \item \input montgomery >> \stopitemize >> \stopitemize >> \stoptext >> >> I hope it helps, >> >> 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/list >> info/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 ___
Re: [NTG-context] Problem with an enumeration
Hi Fabrice, I found the following example in my mail archive. %% \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=darkred, distance=0pt] \setupitemgroup [itemize:1] [option={n,packed,fit,intext}, command=\ItemCommand] \setupitemgroup [itemize:2] [lefttext=, righttext=, option={a,text}] \starttext \startitemize \item We thrive in \unknown \item \startitemize \item \input tufte\par \item \input tufte \stopitemize \stopitemize \stoptext %% PS. If you want an answer from me you should add me to cc because I have problems getting mails from the list. Wolfgang Fabrice Couvreur schrieb am 31.07.18 um 23:58: Hi Pablo, That's not what I'm looking for but rather this: *1.a.* blablablabla blablablabla *b.* blablablabla blablablabla *c.* blablablabla blablablabla Which explains the use of the key intext Fabrice 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez <mailto:oi...@gmx.es>>: On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: > Hello, > Wolfgang helped me to get this: > > 1.a. > b. > c. > 2.a > b. > c. > > I have unfortunately lost the code he had proposed to me. I get this: > > 1.a. > 1b > 1 C > 2.a > 2.b > 2.c Hi Fabrice, I don’t get your output. I had to remove the "intext" option and I guess I got what you intend: \setupitemgroup [itemize][1] [color=darkred, distance=\spaceamount, option={packed,fit,n}] \setupitemgroup [itemize][2] [color=darkred, distance=\spaceamount, option={packed,fit,a}] \starttext \startitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \stopitemize \stoptext I hope it helps, 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 <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <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/ <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 ___
Re: [NTG-context] Problem of compiling a file with Emacs
pdf (backend for directly generating pdf > output)mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 > seconds loading > mkiv lua stats > callbacks: internal: 332, file: 200, direct: 2, late: > 4, function 577, total: 1115 (1115 per page) > mkiv lua stats > loaded patterns: en::2, load time: 0.000 > mkiv lua stats > result saved in file: Test.pdf, compresslevel 3, > objectcompresslevel 3 > mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, > lmroman10-regular.otf, lmroman12-regular.otf > mkiv lua stats > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 > instances, 4 shared in backend, 3 common vectors, 1 common hashes, load > time 0.307 seconds > mkiv lua stats > metapost: 0.001 seconds, loading: 0.101, execution: > 0.000, n: 1, average: 0.102, instances: 1, luacalls: 4, memory: 2.602 M > mkiv lua stats > used platform: linux-64, type: unix, binary subtree: > texmf-linux-64 > mkiv lua stats > used engine: luatex version 1.08 with functionality > level 6731, banner: this is luatex, version 1.08.0 (tex live 2018) > mkiv lua stats > control sequences: 46515 of 65536 + 10 > mkiv lua stats > lua properties: engine: lua 5.3, used memory: 96 MB > (ctx: 96 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) > mkiv lua stats > runtime: 0.81 seconds, 2 processed pages, 2 shipped > pages, 2.469 pages/second > system | total runtime: 1.166 seconds > > > TeX Output finished at Tue Jul 31 23:45:34 > > > Fabrice > > 2018-07-31 19:04 GMT+02:00 Lizardo M. Reyna Bowen <mailto:far...@disroot.org>>: > > I tested the file and conTeXt works well from emacs. The problem > seems to be related with your conTeXt standalone installation. when > the file is compiled, emacs create a log buffer *... output*. You > could post that information to look the possible error. > > Have you tried reinstalling conTeXt? > > attached test.pdf > > > On 07/31/2018 04:43 AM, Fabrice Couvreur wrote: >> With (setenv "PATH" >> "/home/aragorn/texlive/2018/bin/x86_64-linux/context:$PATH" t) It >> works properly with C-c C-c >> >> >> With (setenv "PATH" >> "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) It does >> not work with C-c C-c >> >> The compilation is however correct by using a terminal without >> Emacs from the standalone version >> Fabrice >> >> 2018-07-31 10:18 GMT+02:00 Fabrice Couvreur >> mailto:fabrice1.couvr...@gmail.com>>: >> >> Hello, >> I did the same thing as you, but nothing changes. Have you >> tested the file? The expected result is to have the title of >> the chapter with the chapter number in large and light gray >> color. All compiles except the macro that allows to have the >> chapter number; I get a small rectangle instead. >> Fabrice >> >> 2018-07-30 16:02 GMT+02:00 Lizardo Reyna > <mailto:far...@disroot.org>>: >> >> >> I had a similar issue in emacs few months ago. I use an >> Ubuntu based >> GNU/Linux distribution. >> >> My solution was start a new terminal to execute the >> commands in .bashrc >> file. When it works, a message will appear in the top of >> the terminal. >> "Setting "/home/farliz/context/tex" as ConTeXt root." >> >> Then execute emacs from that terminal typing $ emacs &. >> This was the >> only way I got run conTeXt from emacs. >> >> I'm not advanced GNU/Linux user, but there are three >> configuration >> files when login; .bashrc, .bash_profile, and .profile. I >> don't know why >> this files were not execute automatically when I login, so >> the path to >> conTeXt bin is not added and setuptex file is not execute. >> For this >> reason it was necessary to start a new terminal. >> >> I have my system upgraded and now I don't have problem >> with that. >> >> Regards >> >> >> On 30/07/18 05:45, Fabrice Couvreur wrote: >> > Hi, >> > I made the changes that you recommend, but it does not work >> > >> > ./emacs >>
Re: [NTG-context] Problem with an enumeration
On 07/31/2018 11:58 PM, Fabrice Couvreur wrote: > Hi Pablo, > That's not what I'm looking for but rather this: > > *1.a.* blablablabla > blablablabla > *b.* blablablabla > blablablabla > *c.* blablablabla > blablablabla > > Which explains the use of the key intext Hi Fabrice, this is the best I get: \setupitemgroup [itemize][1] [color=darkred, option={packed,fit,paragraph,n}] \setupitemgroup [itemize][2] [color=darkred, distance=\spaceamount, option={packed,fit,intext,a}] Otherwise, deploying the option "intext" seems to handle the width of first itemization level as zero. Just in case it helps, 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] Problem with an enumeration
Hi Pablo, That's not what I'm looking for but rather this: *1.a.* blablablabla blablablabla *b.* blablablabla blablablabla *c.* blablablabla blablablabla Which explains the use of the key intext Fabrice 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez : > On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: > > Hello, > > Wolfgang helped me to get this: > > > > 1.a. > > b. > > c. > > 2.a > > b. > > c. > > > > I have unfortunately lost the code he had proposed to me. I get this: > > > > 1.a. > > 1b > > 1 C > > 2.a > > 2.b > > 2.c > > Hi Fabrice, > > I don’t get your output. I had to remove the "intext" option and I guess > I got what you intend: > > \setupitemgroup >[itemize][1] > [color=darkred, > distance=\spaceamount, > option={packed,fit,n}] > > \setupitemgroup >[itemize][2] >[color=darkred, > distance=\spaceamount, > option={packed,fit,a}] > > \starttext > \startitemize > \item \startitemize > \item \input zapf > > \item \input knuth > > \item \input montgomery > \stopitemize > \item \startitemize > \item \input zapf > > \item \input knuth > > \item \input montgomery > \stopitemize > \stopitemize > \stoptext > > I hope it helps, > > 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 > > ___ ___ 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 of compiling a file with Emacs
I tested the file and conTeXt works well from emacs. The problem seems to be related with your conTeXt standalone installation. when the file is compiled, emacs create a log buffer *... output*. You could post that information to look the possible error. Have you tried reinstalling conTeXt? attached test.pdf On 07/31/2018 04:43 AM, Fabrice Couvreur wrote: > With (setenv "PATH" > "/home/aragorn/texlive/2018/bin/x86_64-linux/context:$PATH" t) It > works properly with C-c C-c > > > With (setenv "PATH" > "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) It does not > work with C-c C-c > > The compilation is however correct by using a terminal without Emacs > from the standalone version > Fabrice > > 2018-07-31 10:18 GMT+02:00 Fabrice Couvreur > mailto:fabrice1.couvr...@gmail.com>>: > > Hello, > I did the same thing as you, but nothing changes. Have you tested > the file? The expected result is to have the title of the chapter > with the chapter number in large and light gray color. All > compiles except the macro that allows to have the chapter number; > I get a small rectangle instead. > Fabrice > > 2018-07-30 16:02 GMT+02:00 Lizardo Reyna <mailto:far...@disroot.org>>: > > > I had a similar issue in emacs few months ago. I use an Ubuntu > based > GNU/Linux distribution. > > My solution was start a new terminal to execute the commands > in .bashrc > file. When it works, a message will appear in the top of the > terminal. > "Setting "/home/farliz/context/tex" as ConTeXt root." > > Then execute emacs from that terminal typing $ emacs &. This > was the > only way I got run conTeXt from emacs. > > I'm not advanced GNU/Linux user, but there are three > configuration > files when login; .bashrc, .bash_profile, and .profile. I > don't know why > this files were not execute automatically when I login, so the > path to > conTeXt bin is not added and setuptex file is not execute. For > this > reason it was necessary to start a new terminal. > > I have my system upgraded and now I don't have problem with that. > > Regards > > > On 30/07/18 05:45, Fabrice Couvreur wrote: > > Hi, > > I made the changes that you recommend, but it does not work > > > > ./emacs > > > > > > (custom-set-variables > > ;; custom-set-variables was added by Custom. > > ;; If you edit it by hand, you could mess it up, so be careful. > > ;; Your init file should contain only one such instance. > > ;; If there is more than one, they won't work right. > > '(ConTeXt-Mark-version "IV") > > '(ConTeXt-engine "luatex") > > '(custom-enabled-themes (quote (leuven))) > > '(package-selected-packages (quote (nova-theme auctex > > (custom-set-faces > > ;; custom-set-faces was added by Custom. > > ;; If you edit it by hand, you could mess it up, so be careful. > > ;; Your init file should contain only one such instance. > > ;; If there is more than one, they won't work right. > > ) > > > > ;; SERVER Download (MELPA): > > (when (>= emacs-major-version 24) > > (require 'package) > > (add-to-list > > 'package-archives > > '("melpa" . "http://melpa.org/packages/;) > > t) > > (package-initialize)) > > > > ;;(setenv "PATH" > "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t) > > > > > > (setq ConTeXt-mode-hook > > (lambda () (setq TeX-command-extra-options "--purgeall"))) > > > > (setq-default cursor-type 'bar) > > > > (set-cursor-color "#ff") > > > > > > (setq TeX-view-program-list '(("Evince" "evince %o")) > > TeX-view-program-selection '((output-pdf "Evince"))) > > > > (setq make-backup-files nil) ; stop creating backup~ files > > (setq auto-save-default nil) ; stop creating #autosave# files > > > > ;; auto close bracket insertion. New in emac
Re: [NTG-context] Problem with an enumeration
On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: > Hello, > Wolfgang helped me to get this: > > 1.a. > b. > c. > 2.a > b. > c. > > I have unfortunately lost the code he had proposed to me. I get this: > > 1.a. > 1b > 1 C > 2.a > 2.b > 2.c Hi Fabrice, I don’t get your output. I had to remove the "intext" option and I guess I got what you intend: \setupitemgroup [itemize][1] [color=darkred, distance=\spaceamount, option={packed,fit,n}] \setupitemgroup [itemize][2] [color=darkred, distance=\spaceamount, option={packed,fit,a}] \starttext \startitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \stopitemize \stoptext I hope it helps, 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] Problem with an enumeration
Hello, Wolfgang helped me to get this: 1.a. b. c. 2.a b. c. I have unfortunately lost the code he had proposed to me. I get this: 1.a. 1b 1 C 2.a 2.b 2.c Thanks Fabrice \setupitemgroup [itemize][1] [color=darkred, distance=\spaceamount, option={packed,fit,intext,n}] \setupitemgroup [itemize][2] [color=darkred, distance=\spaceamount, option={packed,fit,intext,a}] ___ 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] TABLE setups
here is an example of mine \startsetups table:width \setupTABLE[align={hyphenated,normal}] \setupTABLE[column][1][width=0.3\textwidth] \setupTABLE[column][2][width=0.4\textwidth] \setupTABLE[column][3][width=0.3\textwidth] \stopsetups % table des patients \startsetups table:style \setupTABLE[frame=off] \setupTABLE[r][1][style=\ss] \setupTABLE[r][2][style=\tfa\bf] \setupTABLE[r][3][style=\ss] \setupTABLE[c][3][align=left] \setupTABLE[c][2][align=center] \setupTABLE[r][4][style=\bf] % how to override the \tt in the second column? \stopsetups %protocole du stress \startsetups table:protocole \setupTABLE[frame=off,option=stretch] \setupTABLE[row][odd][background=color, backgroundcolor=lightgreen] \setupTABLE[row][1][style={\ss\bf}, background=color, backgroundcolor=cyan, foregroundcolor=white] \setupTABLE[column][1][style={\ssx\bf}] \setupTABLE[column][5][align=right] \setupTABLE[column][3][align=center] \stopsetups \starttext . {\bTABLE[setups={table:style, table:width}] \bTR \bTD nom \& prénoms \eTD \bTD date de naissance \eTD \bTD Adresse \eTD \eTR \bTR \bTD patient.name \eTD \bTD patient.birth \eTD \bTD patient.adresse \eTD \eTR \bTR \bTD motif d'admission \eTD \bTD médecin correspondant\eTD \bTD assurance \eTD \eTR \bTR \bTD sortie.motif \eTD \bTD patient.correspondant\eTD \bTD CNAS \eTD \eTR \eTABLE} \stoptext On Sat, Jul 28, 2018 at 2:36 AM Henri Menke wrote: > On 07/28/2018 07:38 AM, Henning Hraban Ramm wrote: > > Ahoi, > > > > I need a few different table styles and don’t think it makes sense to > setup them every single time. > > > > Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ? > > > > Or can I go via setups like \bTABLE[setups=mystyle] ? > > \startsetups mystyle > \setupTABLE[frame=off] > \setupTABLE[row][first][topframe=on,bottomframe=on,style=bold] > \setupTABLE[row][last] [bottomframe=on] > \stopsetups > \starttext > > \bTABLE[setups=mystyle] > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \bTR > \bTD Hello \eTD \bTD Hraban \eTD > \eTR > \eTABLE > > \stoptext > > > > > > > Greetlings, Hraban > > --- > > https://www.fiee.net > > http://wiki.contextgarden.net > > https://www.dreiviertelhaus.de > > GPG Key ID 1C9B22FD > > > > > ___ > > 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 > > ___ -- Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA. ___ 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] Questions to PDF/A compliant documents: missing ICC files? -- II.
Fri, Jul 20, 2018 ve 09:24:23PM +0200 Hans Hagen napsal(a): # On 7/20/2018 5:05 PM, Tomas Hala wrote: # >Hi all, # > # >I would like to open the PDF/A topic once more. # # maybe discuss it at the upcoming ctx meeting ... Good idea, indeed. # ... you can prepare a # summative talk about it (including the demands for following some # standard) I guess I can collect only some (unordered) pieces of information about this but I really do not feel up to prepare a talk covering the topic systematically... If it does not matter... Tomáš # >First, I would like to thank Alan, Luigi, Pablo and Henri for their pieces # >of help and information. # > # > # >Summary: # > # > # >(a) where I can find the set of original default*.icc files, # > # ># Alan: /usr/local/share/color/icc/ghostscript # > # >This must be dependent on the version of operating system or on something # >else because on computers I have permission to work on no this subtree is present. # > # ># Luigi: tex/texmf-context/colors/icc # > # >In standalone versions I tried during March and April and Pablo in June, there is really this special directory # >but we found there only one of the files -- default_gray.icc. Other default*.icc files # >(default_cmyk.icc, default_rgb.icc) which are mentioned at http://wiki.contextgarden.net/PDF/A # >were not present. Similarly at http://www.eci.org/en/downloads. # > # ># Henri: http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip # > # >Good deal -- here one can really find all three default*.icc files mentioned at # >http://wiki.contextgarden.net/PDF/A, but with no visible link to the # >mentioned zipfile from this page. # > # > # > # >(b) what is the reason why these files are not included in the TeXlive and garden installations, # >(c) if it is possible to add it there for future, and # > # ># Luigi: They are not included in texlive for some copyright issues. # > # >What is the difference between texlive copyright approach and context standalone copyright approach? # > # >I read a few documents about licences for icc files and it seemed to me that the redistribution is possible, # >for non-commercial use without restrictions, the redistributor is obliged only to add the corresponding # >licence document to the software containing the icc file(s) and must not change the name of the file(s). # > # >So, is possible to add the missing two default*.icc files to the context standalone version? # > # > # > # >(d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is # >PDF/a compliant when these icc files are not present and the whole content # >of the document is only in black (i.e. no grayscale, no colours). # > # ># No reaction. :-) # > # >This question is important only if the default*.icc files are not (will not be) present and used when the PDF file is generated. # >Has somebody got any idea whether the PDF/A without icc files is accepted as PDF/A or not? # > # > # > # >The best, # > # >Tomáš # > # >--- # > # >Tue, Jun 19, 2018 ve 09:38:55AM +1200 Henri Menke napsal(a): # ># # ># # ># On 19/06/18 03:20, Tomas Hala wrote: # ># >Hi all, # ># > # ># >at http://wiki.contextgarden.net/PDF/A I found the following: # ># > # ># >""""" # ># >In ConTeXt mkiv, in order to create such a compliant PDF/A file, one can do as follows: first install (or check that they are present) the following color profiles files # ># > # ># >default_cmyk.icc # ># >default_gray.icc # ># >default_rgb.icc # ># >ISOcoated_v2_300_eci.icc # ># > # ># >into tex/texmf-context/colors/icc/profiles of your Context standalone directory. The default_*.icc files are part of ghostscript... # ># >""""" # ># > # ># >So I checked that they are present (CentOS 6.6, GPL Ghostscript 8.70) and # ># >I discovered that these files are not present at any ConTeXt (or TeX) installation from TeXlive # ># >neither as separate files, nor at file context/colors/icc/context/colorprofiles.xml. # ># > # ># >Only default_gray.icc is present as a part of ConTeXt installations from our garden. # ># > # ># >Therefore, I would like to ask # ># >(a) where I can find the set of original default*.icc files, # ># >(b) what is the reason why these files are not included in the TeXlive and garden installations, # ># >(c) if it is possible to add it there for future, and # ># >(d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is PDF/a compliant when these # ># >i
Re: [NTG-context] Questions to PDF/A compliant documents: missing ICC files? -- II.
On 7/20/2018 5:05 PM, Tomas Hala wrote: Hi all, I would like to open the PDF/A topic once more. maybe discuss it at the upcoming ctx meeting ... you can prepare a summative talk about it (including the demands for following some standard) First, I would like to thank Alan, Luigi, Pablo and Henri for their pieces of help and information. Summary: (a) where I can find the set of original default*.icc files, # Alan: /usr/local/share/color/icc/ghostscript This must be dependent on the version of operating system or on something else because on computers I have permission to work on no this subtree is present. # Luigi: tex/texmf-context/colors/icc In standalone versions I tried during March and April and Pablo in June, there is really this special directory but we found there only one of the files -- default_gray.icc. Other default*.icc files (default_cmyk.icc, default_rgb.icc) which are mentioned at http://wiki.contextgarden.net/PDF/A were not present. Similarly at http://www.eci.org/en/downloads. # Henri: http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip Good deal -- here one can really find all three default*.icc files mentioned at http://wiki.contextgarden.net/PDF/A, but with no visible link to the mentioned zipfile from this page. (b) what is the reason why these files are not included in the TeXlive and garden installations, (c) if it is possible to add it there for future, and # Luigi: They are not included in texlive for some copyright issues. What is the difference between texlive copyright approach and context standalone copyright approach? I read a few documents about licences for icc files and it seemed to me that the redistribution is possible, for non-commercial use without restrictions, the redistributor is obliged only to add the corresponding licence document to the software containing the icc file(s) and must not change the name of the file(s). So, is possible to add the missing two default*.icc files to the context standalone version? (d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is PDF/a compliant when these icc files are not present and the whole content of the document is only in black (i.e. no grayscale, no colours). # No reaction. :-) This question is important only if the default*.icc files are not (will not be) present and used when the PDF file is generated. Has somebody got any idea whether the PDF/A without icc files is accepted as PDF/A or not? The best, Tomáš --- Tue, Jun 19, 2018 ve 09:38:55AM +1200 Henri Menke napsal(a): # # # On 19/06/18 03:20, Tomas Hala wrote: # >Hi all, # > # >at http://wiki.contextgarden.net/PDF/A I found the following: # > # >""""" # >In ConTeXt mkiv, in order to create such a compliant PDF/A file, one can do as follows: first install (or check that they are present) the following color profiles files # > # >default_cmyk.icc # >default_gray.icc # >default_rgb.icc # >ISOcoated_v2_300_eci.icc # > # >into tex/texmf-context/colors/icc/profiles of your Context standalone directory. The default_*.icc files are part of ghostscript... # >""""" # > # >So I checked that they are present (CentOS 6.6, GPL Ghostscript 8.70) and # >I discovered that these files are not present at any ConTeXt (or TeX) installation from TeXlive # >neither as separate files, nor at file context/colors/icc/context/colorprofiles.xml. # > # >Only default_gray.icc is present as a part of ConTeXt installations from our garden. # > # >Therefore, I would like to ask # >(a) where I can find the set of original default*.icc files, # >(b) what is the reason why these files are not included in the TeXlive and garden installations, # >(c) if it is possible to add it there for future, and # >(d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is PDF/a compliant when these # >icc files are not present and the whole content of the document is only in black (i.e. no grayscale, no colours). # # wget http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip # unzip complete_ICC_profiles.zip -d /opt/context/tex/texmf-local # # > # >Our university decided to be "PDF/a compliant", that is the reason why I am asking. # > # >Best wishes, # > # >Tomáš # > # >___ # >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] Questions to PDF/A compliant documents: missing ICC files? -- II.
Hi all, I would like to open the PDF/A topic once more. First, I would like to thank Alan, Luigi, Pablo and Henri for their pieces of help and information. Summary: (a) where I can find the set of original default*.icc files, # Alan: /usr/local/share/color/icc/ghostscript This must be dependent on the version of operating system or on something else because on computers I have permission to work on no this subtree is present. # Luigi: tex/texmf-context/colors/icc In standalone versions I tried during March and April and Pablo in June, there is really this special directory but we found there only one of the files -- default_gray.icc. Other default*.icc files (default_cmyk.icc, default_rgb.icc) which are mentioned at http://wiki.contextgarden.net/PDF/A were not present. Similarly at http://www.eci.org/en/downloads. # Henri: http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip Good deal -- here one can really find all three default*.icc files mentioned at http://wiki.contextgarden.net/PDF/A, but with no visible link to the mentioned zipfile from this page. (b) what is the reason why these files are not included in the TeXlive and garden installations, (c) if it is possible to add it there for future, and # Luigi: They are not included in texlive for some copyright issues. What is the difference between texlive copyright approach and context standalone copyright approach? I read a few documents about licences for icc files and it seemed to me that the redistribution is possible, for non-commercial use without restrictions, the redistributor is obliged only to add the corresponding licence document to the software containing the icc file(s) and must not change the name of the file(s). So, is possible to add the missing two default*.icc files to the context standalone version? (d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is PDF/a compliant when these icc files are not present and the whole content of the document is only in black (i.e. no grayscale, no colours). # No reaction. :-) This question is important only if the default*.icc files are not (will not be) present and used when the PDF file is generated. Has somebody got any idea whether the PDF/A without icc files is accepted as PDF/A or not? The best, Tomáš --- Tue, Jun 19, 2018 ve 09:38:55AM +1200 Henri Menke napsal(a): # # # On 19/06/18 03:20, Tomas Hala wrote: # >Hi all, # > # >at http://wiki.contextgarden.net/PDF/A I found the following: # > # >""""" # >In ConTeXt mkiv, in order to create such a compliant PDF/A file, one can do as follows: first install (or check that they are present) the following color profiles files # > # >default_cmyk.icc # >default_gray.icc # >default_rgb.icc # >ISOcoated_v2_300_eci.icc # > # >into tex/texmf-context/colors/icc/profiles of your Context standalone directory. The default_*.icc files are part of ghostscript... # >""""" # > # >So I checked that they are present (CentOS 6.6, GPL Ghostscript 8.70) and # >I discovered that these files are not present at any ConTeXt (or TeX) installation from TeXlive # >neither as separate files, nor at file context/colors/icc/context/colorprofiles.xml. # > # >Only default_gray.icc is present as a part of ConTeXt installations from our garden. # > # >Therefore, I would like to ask # >(a) where I can find the set of original default*.icc files, # >(b) what is the reason why these files are not included in the TeXlive and garden installations, # >(c) if it is possible to add it there for future, and # >(d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is PDF/a compliant when these # >icc files are not present and the whole content of the document is only in black (i.e. no grayscale, no colours). # # wget http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip # unzip complete_ICC_profiles.zip -d /opt/context/tex/texmf-local # # > # >Our university decided to be "PDF/a compliant", that is the reason why I am asking. # > # >Best wishes, # > # >Tomáš # > # >___ # >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, plea
Re: [NTG-context] Strange behavior with font pagella
Hi Fabrice, I don't know whether this is related to the problem you observe, but in your setups you have forgroundstyle=bold which should be foregroundstyle=bold Best regards: Otared K. > On 16 Jul 2018, at 10:13, Fabrice Couvreur > wrote: > > Hi Otared, > If I change the font using modern, it works but the text remains bold if I > use most other fonts, it's really strange ! > Fabrice > > 2018-07-16 9:57 GMT+02:00 Otared Kavian <mailto:ota...@gmail.com>>: > Hi Fabrice, > > When typesetting your example here I get the correct behaviour: the text is > not in bold face. > > Best regards: OK > >> On 15 Jul 2018, at 23:39, Fabrice Couvreur > <mailto:fabrice1.couvr...@gmail.com>> wrote: >> >> Good evening, >> In the code below, why is the text in bold ? >> Thank you >> Fabrice >> >> \setupbodyfont[pagella,11pt] >> >> \defineframed >>[ACFRAME] >>[frame=off, >> offset=0pt, >> location=low, >> width=\struttotal, >> background=color, >> backgroundcolor=black, >> foregroundcolor=white, >> forgroundstyle=bold] >> >> >> \defineprocessor[ACPROCESSOR][command=\ACFRAME] >> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] >> >> \defineenumeration >>[ex] >>[text=, >> distance=0.3em, >> width=fit, >> numberconversionset=ACCONVERSION, >> alternative=serried] >> >> \starttext >> >> \dorecurse{5} >>{\startex >> \input knuth >> \stopex} >> >> \stoptext >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> <http://www.ntg.nl/mailman/listinfo/ntg-context> >> webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / >> http://context.aanhet.net <http://context.aanhet.net/> >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> <https://bitbucket.org/phg/context-mirror/commits/> >> wiki : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / > http://context.aanhet.net <http://context.aanhet.net/> > archive : https://bitbucket.org/phg/context-mirror/commits/ > <https://bitbucket.org/phg/context-mirror/commits/> > wiki : http://contextgarden.net <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 ___
Re: [NTG-context] Strange behavior with font pagella
Hi Otared, If I change the font using modern, it works but the text remains bold if I use most other fonts, it's really strange ! Fabrice 2018-07-16 9:57 GMT+02:00 Otared Kavian : > Hi Fabrice, > > When typesetting your example here I get the correct behaviour: the text > is not in bold face. > > Best regards: OK > > On 15 Jul 2018, at 23:39, Fabrice Couvreur > wrote: > > Good evening, > In the code below, why is the text in bold ? > Thank you > Fabrice > > \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=bold] > > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration >[ex] >[text=, > distance=0.3em, > width=fit, > numberconversionset=ACCONVERSION, > alternative=serried] > > \starttext > > \dorecurse{5} >{\startex > \input knuth > \stopex} > > \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 ___
Re: [NTG-context] Strange behavior with font pagella
Hi Fabrice, When typesetting your example here I get the correct behaviour: the text is not in bold face. Best regards: OK > On 15 Jul 2018, at 23:39, Fabrice Couvreur > wrote: > > Good evening, > In the code below, why is the text in bold ? > Thank you > Fabrice > > \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=bold] > > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration >[ex] >[text=, > distance=0.3em, > width=fit, > numberconversionset=ACCONVERSION, > alternative=serried] > > \starttext > > \dorecurse{5} >{\startex > \input knuth > \stopex} > > \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 ___
Re: [NTG-context] Strange behavior with font pagella
On 7/15/2018 17:39, Fabrice Couvreur wrote: \setupbodyfont[pagella,11pt] \defineframed [ACFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, distance=0.3em, width=fit, numberconversionset=ACCONVERSION, alternative=serried] \starttext \dorecurse{5} {\startex \input knuth \stopex} \stoptext Looks like a font issue -- it does not happen with LM or ebgaramond. -- Rik ___ 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 ___