[NTG-context] presets for setlayerframed

2015-04-05 Thread Aditya Mahajan

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?


Thanks,
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
___

Re: [NTG-context] RAL colours

2015-04-05 Thread Henning Hraban Ramm
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.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] \placefootnotes bug?

2015-04-05 Thread Pablo Rodriguez
On 04/05/2015 09:09 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
 Dear gang,
 
 In the attached files, watch the behavior of the second footnote: The  
 footnote numeral and accompanying note are out of alignment. Toggle this  
 line:
 
 \setupnotation[footnote]  
 [before={\setupwhitespace[none]},indenting={yes,big},after={\blank[small]}]
 
 On, we get a misalignment. Off, no misalignment. Is this a bug or am I  
 missing something? Thanks in advance for any advice and

Hi Idris,

I’m afraid it may be a bug.

The issue doesn’t show with stable version from 2014.01.03 00:40.

It seems to be triggered when either after or before contain \blank in
\setupnotation.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] alphabetically ordered notes

2015-04-05 Thread Pablo Rodriguez
Hans,

as you told me to remind you latter, here you have the proposal for
alphabetically ordered footnotes:

\setuplanguage[en][patterns={en,agr}]
\setuppapersize[A7]
\setupbodyfont[dejavu, 12pt]
\definenote[dict]
\setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em]
\setupnotation[dict][width=broad, number=no]
\starttext
Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα,
-ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb},
ἔπειτα τί ἐστιν
ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation}
καὶ κατάφασις\dict{κατάφασις, εως, ἡ:
affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις,
-εως, ἡ: statement} καὶ λόγος.

Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ
ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό:
affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ
γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ.
\page
\title{Vocabulary}
\placenotes[dict]
\stoptext

BTW, it would be extremely useful to be able to place this kind of notes
on each page and also with a \placenotes command.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \placefootnotes bug?

2015-04-05 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

In the attached files, watch the behavior of the second footnote: The  
footnote numeral and accompanying note are out of alignment. Toggle this  
line:


\setupnotation[footnote]  
[before={\setupwhitespace[none]},indenting={yes,big},after={\blank[small]}]


On, we get a misalignment. Off, no misalignment. Is this a bug or am I  
missing something? Thanks in advance for any advice and


Best wishes
Idris

===
\setupdelimitedtext[blockquote][indenting=no,spacebefore=medium,spaceafter=medium]

\setupnotation[footnote]  
[before={\setupwhitespace[none]},indenting={yes,big},after={\blank[small]}]


\setupfootnotes[location=text]

\starttext
\startsection[title=Section 1]
\startparagraph
\input ward
\startfootnote
\input ward 
\startparagraph
\input ward
\stopparagraph
\stopfootnote{}
\stopparagraph

\startparagraph
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopparagraph

\startparagraph
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopparagraph

\stopsection

\startsubject[title=Endnotes]
\placefootnotes
\stopsubject
\stoptext
===

--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

test-footnote-on.pdf
Description: Adobe PDF document


test-footnote-off.pdf
Description: Adobe PDF document


test-footnote.tex
Description: TeX 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Unexpected results...

2015-04-05 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

On Fri, 03 Apr 2015 11:24:19 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:


The \starthead command takes the head text as argument, e.g.  
\starthead{Head A}


Suggestion: Related to another thread

http://www.ntg.nl/pipermail/ntg-context/2015/081591.html

Would it not make more sense to have something like

\starthead[title=Head A]

This gives us consistency with \start-stopsection, and also gives us  
better x(ht)ml export control without having to add another start-stop.


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___