Re: [NTG-context] presets for setlayerframed
Am 06.04.2015 um 01:29 schrieb Aditya Mahajan adit...@umich.edu: Hi, Is it possible to set 'presets' for the framed settings of \setlayerframed? For example: \definelayer[text] \definelayer[annotate] \setupbackgrounds[text][background={text,foreground,annotate}] \starttext Testing layers: \setlayerframed[annotate][x=1cm,y=1cm][frame=off, align=middle] {\input ward \par} \setlayerframed[annotate][x=1cm,y=4cm][frame=off, align=middle] {\input tufte \par} \stoptext I don't want to repeat the `frame=off, align=middle` setting everytime (in may actual usecase, these are much more complicated settings). How can I do that? Use \setlayer and create your own \framed command. \definelayer[text] \definelayer[annotate] \setupbackgrounds[text][background={text,foreground,annotate}] \defineframed[LayerFrame][frame=off,align=middle] \starttext Testing layers: \setlayer[annotate][x=1cm,y=1cm] {\LayerFrame{\input ward \par}} \setlayer[annotate][x=1cm,y=4cm] {\LayerFrame{\input tufte \par}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] RAL colours
On Mon, Apr 6, 2015 at 6:11 AM, Henning Hraban Ramm te...@fiee.net wrote: Am 2015-04-04 um 22:00 schrieb Pavneet Arora pavneet_ar...@waroc.com: This is great insight into the printing world. Of course, Pantone has a dominant position on this continent at least, but as you stated, its proprietary nature keeps the palette from being distributed easily. The same is probably true for RAL. Be aware that RAL is no color system, but just an arbitrary and historically grown collection. In this regard it’s even worse than X11 colors. There’s also RAL design system, that would be better, but it’s still copyrighted and not suitable for CMYK or RGB devices. See e.g. http://en.wikipedia.org/wiki/RAL_colour_standard http://de.wikipedia.org/wiki/RAL-Farbe Conversions of RAL colors (that are defined in CIE L*a*b) are just approximations for one special RGB color space, most probably sRGB, and can’t cover everything, since every color space is rather limited. Conversions of L*a*b or any RGB colors into CMYK depend on several parameters (rendering intent, GCR/UCR), because CMYK color spaces are generally quite small, and you can hit the same color spot with different mixtures of CMYK inks. So the question remains: if the X11 colourspace is found inadequate, is there another one that we might look for inspiration to create decent spot colours for document processing? Even if RAL colours are used for varnish, does that mitigate the use of their RGB values for other paints? Note, that I am not seeking exact calibration of colours, say for branding across different media; just a more expressive palette for print applications. Unfortunately, I don't have access to the Adobe products that you mention, and in any case would just want a convenient set of colours inside ConTeXt to create documents on the fly. For this type of work, are there any other open source palettes that we might look towards? Spot colors for printing rely on manufacturers that produce those inks/paints. The existing palettes are defined by (or in cooperation with) manufacturers. There exists nothing like open source paint recipes, AFAIK, so it would make no sense to define an open source (i.e. freely licensed) palette/system of spot colors. Of course it’s possible to define a system of (anyhow) matching colors. But that’s so much a matter of taste and application that I wouldn’t start with such an enterprise. There are some good online tools that help you finding matching design colors, at least for (s)RGB, e.g. Adobe Kuler or paletton.com. If you need spot colors for printing, you need a (digital or physical) palette from the manufacturers. Interesting topic. I just add for the record http://wiki.scribus.net/canvas/How_to_legally_obtain_spot_colour_palettes_for_use_in_Scribus_1.3.3.x_and_later_versions http://www.selapa.net/swatchbooker/ -- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] RAL colours
Again, thank you for educating me on these principles. This really is great stuff! Just the type of insight that I need. I am sure that many of us struggle with production issues and it would be good to develop design patterns on how to overcome them. In response to Luigi's follow up post, let me describe what I have done, and ask your opinions (and indulgence) as to its usefulness. Let me preface all this by pointing you to an old video from ATT archives, now to be found on YouTube where Brian Kernighan describes some of the distinctions of Unix. Although the entire video is worthwhile even at 27m+ long if you just want to skip to his part, that starts at the 4m09s mark. It is a nostalgic (but still valid) look at the elegance of pipes and redirection. Okay, what I have done is create two 'bash' scripts which rely heavily on 'sed' to massage the text data retrieved using 'w3m' to create suitable colo-imp-ral.mkiv (RAL Classic colours; 223 colours) and colo-imp-pantone.mkiv (Pantone Coated colours; 1341 colours) files on demand using the values found on Carlos Cabo's rgb.to website. The generated file for the RAL colours includes both the RAL number and the *English* name of the colour; one can easily modify the script to use a different language version of the name if so desired. So, for example: \definecolor[ral1000] [h=cdba88] \definecolor[greenbeige][h=cdba88] The script for the Pantone colours will only use the published name, whether it have a name or number or both. So Pantone Coated Orange 021 C will be found in the file as: \definecolor[pantoneorange-021-c] [h=fe5000] and Pantone Coated 801 C \definecolor[pantone801-c] [h=009ace] I won't, for the time being at least, publish the colour files in case there is any issue about the proprietary nature of colours, but offer up these two shell scripts. With these scripts one can generate the colour files as needed for personal use. If Hans feels that these scripts are appropriate to be published on the list, then I am happy to do so. I will wait to hear back. Best wishes. PS: I can already see some inconsistency in the sed processing as there is no dash prefix before 801...*sigh*. Will have to work on that ;). On 06Apr15, Henning Hraban Ramm wrote: Spot colors for printing rely on manufacturers that produce those inks/paints. The existing palettes are defined by (or in cooperation with) manufacturers. There exists nothing like open source paint recipes, AFAIK, so it would make no sense to define an open source (i.e. freely licensed) palette/system of spot colors. Of course it’s possible to define a system of (anyhow) matching colors. But that’s so much a matter of taste and application that I wouldn’t start with such an enterprise. There are some good online tools that help you finding matching design colors, at least for (s)RGB, e.g. Adobe Kuler or paletton.com. If you need spot colors for printing, you need a (digital or physical) palette from the manufacturers. Greetlings, Hraban -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] SyncTeX and mkiv
Otared Kavian schrieb: Using TeXShop on a Mac (with Mac OS X 10.2) I noticed that some of my documents typeset with mkiv do not respond correctly regarding SyncTeX: when I do « Command-Click » on a specific part of the resulting PDF there is no reaction at all, that is I do not get to the corresponding part of the source TeX file. Nevertheless when I click in the source TeX file, SyncTeX shows the corresponding highlighted part of the PDF file. So my question is the following: is there some change in mkiv, or in the way TeXShop has to be tuned? I noticed something similar since about one or two years. Using SumatraPDF on Windows (together with Sublime or Notepad++) a sync from the editor to SumatraPDF results in the right higlighted section. However a sync the other way 'round is slightly off. It's more off the farther down I'm in the document. Best regards, Andreas ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] RAL colours
I just realized that I didn't include the link to the Unix video. Here it is: www.youtube.com/watch?v=tc4ROCJYbm0 -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] presets for setlayerframed
On Mon, 6 Apr 2015, Wolfgang Schuster wrote: Am 06.04.2015 um 01:29 schrieb Aditya Mahajan adit...@umich.edu: Hi, Is it possible to set 'presets' for the framed settings of \setlayerframed? For example: \definelayer[text] \definelayer[annotate] \setupbackgrounds[text][background={text,foreground,annotate}] \starttext Testing layers: \setlayerframed[annotate][x=1cm,y=1cm][frame=off, align=middle] {\input ward \par} \setlayerframed[annotate][x=1cm,y=4cm][frame=off, align=middle] {\input tufte \par} \stoptext I don't want to repeat the `frame=off, align=middle` setting everytime (in may actual usecase, these are much more complicated settings). How can I do that? Use \setlayer and create your own \framed command. \definelayer[text] \definelayer[annotate] \setupbackgrounds[text][background={text,foreground,annotate}] \defineframed[LayerFrame][frame=off,align=middle] \starttext Testing layers: \setlayer[annotate][x=1cm,y=1cm] {\LayerFrame{\input ward \par}} \setlayer[annotate][x=1cm,y=4cm] {\LayerFrame{\input tufte \par}} \stoptext Thanks for this simple solution. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___