[NTG-context] color question
I have a very basic question about color use that someone will be able to answer easily. The background to the question is that (i) I am completely new to this scene of commercially[offset] print-ready material as distinct from what is required on screen (ii) I am using Mk IV (iii) I need spot colors set up for cmyk, and for now I need shades between black and white (e.g. light gray) for a simple design feature. My question is this: is the use of color keywords sufficient? Or in other words, have predefined color names like lighgray already been defined in, say cmyk terms behind the scenes, or must I instead \definecolor[lightgray][c=10,m=7,y=5,k=0], (or perhaps \definespotcolor with those dimensions, or do I need both)? Julian ___ 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] Fonts out of ConTeXt manual
There is also a typo in section 8.4.14 Contexts, in the lua code: name = "ytest", should be: name = "ctest", Regards, Marcus Vinicius On Sun, Aug 23, 2020 at 10:28 AM Marcus Vinicius Mesquita < marcusvinicius.mesqu...@gmail.com> wrote: > Dear list, > > In the fonts-mkiv.pdf file, section 8.14.3 Examples, the table at the top > of page 178 has all entries in the third column equal, when they shouldn't. > Please, fix when possible. > > Regards, > > Marcus Vinicius > -- > Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o > corpo nem seus membros, por ser descanso da alma, primavera do coração, > distração do aflito, entretenimento do solitário, e viático do viajante. > > Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) > -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Color specific cells in a table
Hello, This table will be used to illustrate Pascal's triangle. I manage to color the cell (2,0) but I would also like to color the cells (2,1) and (3,1). Is it possible ? Thank you Fabrice \usecolors[X11] \starttext \startluacode local background_one = { align = "middle", style = "type", background = "color", backgroundcolor = "thistle2", foregroundcolor = "white", } local background_two = { align = "middle", style = "type", background = "color", backgroundcolor = "peachpuff", foregroundcolor = "white", } context.startxtable({"align={middle,lohi}, width=1cm,offset=0.8ex,bodyfont=9pt,framecolor=cyan"}) context.startxrow() context.startxcell({"background=color,backgroundcolor=thistle2"}) context("") context.stopxcell() for j = 0, 7 do context.startxcell({"foregroundstyle=bold,background=color,backgroundcolor=thistle2"}) context(j) context.stopxcell() end context.startxcell({"foregroundstyle=bold,background=color,backgroundcolor=thistle2"}) context("\\dots") context.stopxcell() context.stopxrow() for i = 0, 7 do context.startxrow() context.startxcell({"foregroundstyle=bold,background=color,backgroundcolor=thistle2"}) context(i) context.stopxcell() for j = 0, 8 do context.startxcell(j>i and background_one or i == 2 and j == 0 and background_two) context("") context.stopxcell() end context.stopxrow() end context.startxrow() context.startxcell({"background=color,backgroundcolor=thistle2"}) context("\\dots") context.stopxcell() for i = 0, 8 do context.startxcell() context("") context.stopxcell() end context.stopxrow() context.stopxtable() \stopluacode \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] Label to delete in the table of contents
Hello, For the title of the chapters I use the following command. \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, width=fit, align=flushleft] {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}} \blank#1\blank#2} When I compile my project, I have the label "Chapitre" above the word "Sommaire" in the table of contents : how to delete it ? Thanks for your help Fabrice ___ 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] Fonts out of ConTeXt manual
Dear list, In the fonts-mkiv.pdf file, section 8.14.3 Examples, the table at the top of page 178 has all entries in the third column equal, when they shouldn't. Please, fix when possible. Regards, Marcus Vinicius -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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] vertical align in tabulate paragraphs
Here’s another problem that I can’t reproduce in a MWE: In a tabulation that is set up like the example, in some cases the right column cell doesn’t top-align with the left one (see screenshot). In most cases it works. There’s no \setuptabulate in my environment; don’t know what else could influence this behaviour. Doesn’t seem to be grid or font related. Any hint where I could look? Hraban \usemodule[visual] \starttext \starttabulate[|p(0.33\textwidth)|p|] \dorecurse{100}{\NC:\fakewords{1}{15}–\NC–\fakewords{1}{20}.\NC\NR} \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] Overriding the number on a float
I think there was a question on this very recently but I don;t think it got an answer and I can't find it to reply to, so apologies for the extra noise. I have a large text with floats numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2. It's not a combination - they are separate figures on different pages. I've experimented with the options I can see, but it's not obvious if there is a facility to override the numbering of two figures in a stream of normally numbered figures like this. I was thinking of the equivalent of the old \sym{symbol} command that used to work as a way to override a single item in an otherwise sequential list. I guess there's a brute force method of setting up a new type of figure with the label "Figure 27.1" and having them numbered as lowercase alpha, but if there's an easier way that would be great. Thanks. Duncan ___ 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 ___