Re: [NTG-context] Border matrix

2017-08-28 Thread Fabrice L
Thanks so much !
I’ll will add an entry to the wiki.
Fabrice.


Le 28 août 2017 à 13:29:55, Hans Hagen (pra...@wxs.nl) a écrit:

On 8/28/2017 6:33 PM, Fabrice L wrote:
> Hi,
>
> I’have a lot of courses notes in MKII. I’m trying to move to MKIV. I
> have a problem that I’m not able to resolve, to make a border matrix
> with brackets. In MKII, I was using a macro, found somewhere, which
> works great, but no longer works; here is the macro:
>
> % Border matrix: first line and column are label
> \catcode`\@=11\relax
> \newdimen\p@renwd
> \font\tenex=cmex10 \setbox0=\hbox{\tenex B} \p@renwd=\wd0
> \def\bbordermatrix#1{\begingroup \m@th
> \setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}%
> \ialign{$##$\hfil\kern2\p@\kern\p@renwd&\thinspace\hfil$##$\hfil
>   &&\quad\hfil$##$\hfil\crcr
>   \omit\strut\hfil\crcr\noalign{\kern-\baselineskip}%
>   #1\crcr\omit\strut\cr}}%
>   \setbox\tw@\vbox{\unvcopy\z@\global\setbox\@ne\lastbox}%
>   \setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@ne\lastbox}%
>   \setbox\tw@\hbox{$\kern\wd\@ne\kern-\p@renwd\left[\kern-\wd\@ne
> \global\setbox\@ne\vbox{\box\@ne\kern2\p@}%
> \vcenter{\kern-\ht\@ne\unvbox\z@\kern-\baselineskip}\,\right]$}%
>   \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}
> \catcode`\@=12\relax

Such a plain macro needs to be made bodyfotn size aware and such.

> but MKIV gives me the error:
>
> \bbordermatrix #1->\begingroup \m@th
>
>  \setbox \z@ \vbox {\def \cr {\crcr
> \noa...
>
> l.26i & j & k & l \cr}
>
>
> 16   \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}
>
> 17 \catcode`\@=12\relax
>
>
> I look for solutions on the list, but did not find anything.Here is a
> minimal example:
>
> \starttext
> A border matrix:
> \startformula
> \bbordermatrix{
>a & b & c & d \cr
>e & f & G & h \cr
>i & j & k & l \cr}
> \stopformula
> \stoptext
>
> As I have in my notes hundreds of such matrix, it is really difficult to
> change the input format.
>
> Do you know, or can you point me, to a solution ? I’m in a dead end..
> Thanks a lot.
I'll add this:

\unprotect

\unexpanded\def\math_border_matrix#1#2#3% adapted plain
{\begingroup
%
\pushmacro\cr
%
\setbox\scratchbox\hbox\bgroup
\mr B%
\egroup
\scratchdimenone\wd\scratchbox
%
\scratchdimentwo.2\bodyfontsize
%
\mathsurround\zeropoint
%
\setbox\scratchboxone\vbox\bgroup
\def\cr{%
\crcr
\noalign\bgroup
\kern\scratchdimentwo
\global\let\cr\endline
\egroup
}%
\ialign{%
\startimath\alignmark\alignmark\stopimath
\hfil
\kern\dimexpr\scratchdimentwo+\scratchdimenone\relax
\aligntab
\thinspace
\hfil
\startimath\alignmark\alignmark\stopimath
\hfil
\aligntab
\aligntab
\quad
\hfil
\startimath\alignmark\alignmark\stopimath
\hfil
\crcr
\omit
\strut
\hfil
\crcr
\noalign{\kern-\baselineskip}%
#3\crcr
\omit
\strut
\cr
}%
\egroup
\setbox\scratchboxtwo\vbox\bgroup
\unvcopy\scratchboxone
\global\setbox\globalscratchbox\lastbox
\egroup
\setbox\scratchboxtwo\hbox\bgroup
\unhbox\globalscratchbox
\unskip
\global\setbox\globalscratchbox\lastbox
\egroup
\setbox\scratchboxtwo\hbox\bgroup
\startimath
\kern\dimexpr\wd\globalscratchbox-\scratchdimenone\relax
\left#1\relax
\kern-\wd\globalscratchbox
\global\setbox\globalscratchbox\vbox\bgroup
\box\globalscratchbox
\kern\scratchdimentwo
\egroup
\vcenter\bgroup
\kern-\ht\globalscratchbox
\unvbox\scratchboxone
\kern-\baselineskip
\egroup
\thinspace
\right#2\relax
\stopimath
\egroup
\null
\thickspace
\vbox\bgroup
\kern\ht\globalscratchbox
\box\scratchboxtwo
\egroup
%
\popmacro\cr
%
\endgroup}

\unexpanded\def\bordermatrix {\math_border_matrix()}
\unexpanded\def\bbordermatrix{\math_border_matrix[]}

\protect

\starttext

A plain border matrix:

\startformula
\bordermatrix{
a & b & c & d \cr
e & f & G & h \cr
i & j & k & l \cr}
\stopformula

\startformula
\bbordermatrix{
a & b & c & d \cr
e & f & G & h \cr
i & j & k & l \cr}
\stopformula

\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  : 

Re: [NTG-context] Border matrix

2017-08-28 Thread Hans Hagen

On 8/28/2017 6:33 PM, Fabrice L wrote:

Hi,

I’have a lot of courses notes in MKII. I’m trying to move to MKIV. I 
have a problem that I’m not able to resolve, to make a border matrix 
with brackets. In MKII, I was using a macro, found somewhere, which 
works great, but no longer works; here is the macro:


% Border matrix: first line and column are label
\catcode`\@=11\relax
\newdimen\p@renwd
\font\tenex=cmex10 \setbox0=\hbox{\tenex B} \p@renwd=\wd0
\def\bbordermatrix#1{\begingroup \m@th
\setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}%
     \ialign{$##$\hfil\kern2\p@\kern\p@renwd&\thinspace\hfil$##$\hfil
       &&\quad\hfil$##$\hfil\crcr
       \omit\strut\hfil\crcr\noalign{\kern-\baselineskip}%
       #1\crcr\omit\strut\cr}}%
   \setbox\tw@\vbox{\unvcopy\z@\global\setbox\@ne\lastbox}%
   \setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@ne\lastbox}%
   \setbox\tw@\hbox{$\kern\wd\@ne\kern-\p@renwd\left[\kern-\wd\@ne
     \global\setbox\@ne\vbox{\box\@ne\kern2\p@}%
     \vcenter{\kern-\ht\@ne\unvbox\z@\kern-\baselineskip}\,\right]$}%
   \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}
\catcode`\@=12\relax


Such a plain macro needs to be made bodyfotn size aware and such.


but MKIV gives me the error:

\bbordermatrix #1->\begingroup \m@th

                                      \setbox \z@ \vbox {\def \cr {\crcr 
\noa...


l.26    i & j & k & l \cr}


16       \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}

17     \catcode`\@=12\relax


I look for solutions on the list, but did not find anything.Here is a 
minimal example:


\starttext
A border matrix:
\startformula
\bbordermatrix{
    a & b & c & d \cr
    e & f & G & h \cr
    i & j & k & l \cr}
\stopformula
\stoptext

As I have in my notes hundreds of such matrix, it is really difficult to 
change the input format.


Do you know, or can you point me, to a solution ? I’m in a dead end..  
Thanks a lot.

I'll add this:

\unprotect

\unexpanded\def\math_border_matrix#1#2#3% adapted plain
  {\begingroup
   %
   \pushmacro\cr
   %
   \setbox\scratchbox\hbox\bgroup
 \mr B%
   \egroup
   \scratchdimenone\wd\scratchbox
   %
   \scratchdimentwo.2\bodyfontsize
   %
   \mathsurround\zeropoint
   %
   \setbox\scratchboxone\vbox\bgroup
 \def\cr{%
   \crcr
   \noalign\bgroup
 \kern\scratchdimentwo
 \global\let\cr\endline
   \egroup
 }%
 \ialign{%
   \startimath\alignmark\alignmark\stopimath
   \hfil
   \kern\dimexpr\scratchdimentwo+\scratchdimenone\relax
   \aligntab
   \thinspace
   \hfil
   \startimath\alignmark\alignmark\stopimath
   \hfil
   \aligntab
   \aligntab
   \quad
   \hfil
   \startimath\alignmark\alignmark\stopimath
   \hfil
   \crcr
   \omit
   \strut
   \hfil
   \crcr
   \noalign{\kern-\baselineskip}%
   #3\crcr
   \omit
   \strut
   \cr
 }%
   \egroup
   \setbox\scratchboxtwo\vbox\bgroup
 \unvcopy\scratchboxone
 \global\setbox\globalscratchbox\lastbox
   \egroup
   \setbox\scratchboxtwo\hbox\bgroup
 \unhbox\globalscratchbox
 \unskip
 \global\setbox\globalscratchbox\lastbox
   \egroup
   \setbox\scratchboxtwo\hbox\bgroup
 \startimath
 \kern\dimexpr\wd\globalscratchbox-\scratchdimenone\relax
 \left#1\relax
 \kern-\wd\globalscratchbox
 \global\setbox\globalscratchbox\vbox\bgroup
   \box\globalscratchbox
   \kern\scratchdimentwo
 \egroup
 \vcenter\bgroup
   \kern-\ht\globalscratchbox
   \unvbox\scratchboxone
   \kern-\baselineskip
 \egroup
 \thinspace
 \right#2\relax
 \stopimath
   \egroup
   \null
   \thickspace
   \vbox\bgroup
 \kern\ht\globalscratchbox
 \box\scratchboxtwo
   \egroup
   %
   \popmacro\cr
   %
   \endgroup}

\unexpanded\def\bordermatrix {\math_border_matrix()}
\unexpanded\def\bbordermatrix{\math_border_matrix[]}

\protect

\starttext

A plain border matrix:

\startformula
\bordermatrix{
   a & b & c & d \cr
   e & f & G & h \cr
   i & j & k & l \cr}
\stopformula

\startformula
\bbordermatrix{
   a & b & c & d \cr
   e & f & G & h \cr
   i & j & k & l \cr}
\stopformula

\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] Border matrix

2017-08-28 Thread Fabrice L
Hi,

I’have a lot of courses notes in MKII. I’m trying to move to MKIV. I have a
problem that I’m not able to resolve, to make a border matrix with
brackets. In MKII, I was using a macro, found somewhere, which works great,
but no longer works; here is the macro:

% Border matrix: first line and column are label
\catcode`\@=11\relax
\newdimen\p@renwd
\font\tenex=cmex10 \setbox0=\hbox{\tenex B} \p@renwd=\wd0
\def\bbordermatrix#1{\begingroup \m@th
\setbox\z@\vbox{\def\cr{\crcr\noalign{\kern2\p@\global\let\cr\endline}}%
\ialign{$##$\hfil\kern2\p@\kern\p@renwd&\thinspace\hfil$##$\hfil
  &&\quad\hfil$##$\hfil\crcr
  \omit\strut\hfil\crcr\noalign{\kern-\baselineskip}%
  #1\crcr\omit\strut\cr}}%
  \setbox\tw@\vbox{\unvcopy\z@\global\setbox\@ne\lastbox}%
  \setbox\tw@\hbox{\unhbox\@ne\unskip\global\setbox\@ne\lastbox}%
  \setbox\tw@\hbox{$\kern\wd\@ne\kern-\p@renwd\left[\kern-\wd\@ne
\global\setbox\@ne\vbox{\box\@ne\kern2\p@}%
\vcenter{\kern-\ht\@ne\unvbox\z@\kern-\baselineskip}\,\right]$}%
  \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}
\catcode`\@=12\relax

but MKIV gives me the error:

\bbordermatrix #1->\begingroup \m@th

 \setbox \z@ \vbox {\def \cr {\crcr
\noa...

l.26i & j & k & l \cr}




16   \null\;\vbox{\kern\ht\@ne\box\tw@}\endgroup}

17 \catcode`\@=12\relax

I look for solutions on the list, but did not find anything.Here is a
minimal example:

\starttext
A border matrix:
\startformula
\bbordermatrix{
   a & b & c & d \cr
   e & f & G & h \cr
   i & j & k & l \cr}
\stopformula
\stoptext

As I have in my notes hundreds of such matrix, it is really difficult to
change the input format.

Do you know, or can you point me, to a solution ? I’m in a dead end..
Thanks a lot.
F.
___
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] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Pablo Rodriguez
On 08/28/2017 02:53 PM, Henning Hraban Ramm wrote:
> Am 2017-08-28 um 10:37 schrieb luigi scarso :
> 
>> One of the reason to not include a color profile in the standard distribution
>> is that it's an advanced topic, a field for an advanced user.
>> It's quite easy to make pdf that looks ok, but are not ok for printing
>> (wrong profile for the medium)
>> or are invalid (it can happen if the pdf has an output intent with a
>> profile A, and the document has  a color with different profile B,
>> perhaps in an image).
>> On average the casual user will complain saying "ConTeXt makes wrong
>> pdf", perhaps  showing the result from a bugged validator
>> (all already happen, in several situations).
>>
>> The context meeting is the best place to talk of all these issues.
> 
> Ok, I’ll reserve a timeslot for PDF/(X/A/UA) discussion.

Unfortunately, I cannot attend the meeting.

I’m not especially interesting in doing the thing myself, but I want to
be able to use it.

BTW, Luigi, not including the profiles doesn’t prevent people messing
things, since they aren’t included and complaints had taken place.

Of course, I would be very interested in the results from the
discussions in the next meeting.

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 setup for fonts

2017-08-28 Thread Pablo Rodriguez
On 08/28/2017 10:53 AM, Robert Blackstone wrote:
> [...]
> Hi Pablo,
> This works, thank you very much. 
> I had tried several fonts mentioned on the ConTeX-wiki in the
> chapter "Using Math fonts in MkIV" but TeX Gyre Termes Math is not
> mentioned there. But actually it is [mm] that does the trick and I
> had not realized that.
> Even then several of the Math fonts mentioned did not work.

Hi Robert,

I don’t do math myself. I only knew from defining it for \setupitemize
(as kindly explained by Wolfgang and Hans).

The only thing is that your serif typeface won’t match its math
counterpart. But this is a cosmetic question.

Glad to read it helped,

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] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Henning Hraban Ramm
Am 2017-08-28 um 10:37 schrieb luigi scarso :

> One of the reason to not include a color profile in the standard distribution
> is that it's an advanced topic, a field for an advanced user.
> It's quite easy to make pdf that looks ok, but are not ok for printing
> (wrong profile for the medium)
> or are invalid (it can happen if the pdf has an output intent with a
> profile A, and the document has  a color with different profile B,
> perhaps in an image).
> On average the casual user will complain saying "ConTeXt makes wrong
> pdf", perhaps  showing the result from a bugged validator
> (all already happen, in several situations).
> 
> The context meeting is the best place to talk of all these issues.

Ok, I’ll reserve a timeslot for PDF/(X/A/UA) discussion.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
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] Currency - space delimiting thousands

2017-08-28 Thread Hans Hagen

On 8/27/2017 9:15 PM, Procházka Lukáš Ing. wrote:

Hello,

is there a built-in (Lua-?)numeric format to produce big numbers with 
spaces delimiting thousands (widely used for currencies)?


E.g.:


\cldcontext{string.format("%[separate-thousands].0f", 1234567.0)} % To 
give: "1 234 567.00"
there is some code deep down but it's in a module ... i'll move that to 
the converters namespace


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] Problem with setup for fonts

2017-08-28 Thread Robert Blackstone

On 27 Aug 2017, at 23:27 , : Pablo Rodriguez  wrote
> 
> On 08/27/2017 08:46 PM, Robert Blackstone wrote:
>> Hi Hans,
>> Thanks for your reaction. Unfortunately it has not helped me for I have
>> no idea how to set the parameter \Umathquad\textstyle. Just loading the
>> fonts, as I believed you suggest in your mail, does not change anything:
>> the compilation with a 2017 mkiv still stops at  “
>> 7~$\xrightarrow[none]$~6 progression ”.
> 
> Hi Robert,
> 
> this works with latest beta from 2017.08.24 19:46:
> 
>\definefontfamily[mainface][rm][Verdana]
>\definefontfamily[mainface][tt][Courier]
>\definefontfamily[mainface][mm][TeX Gyre Termes Math]
>\setupbodyfont[mainface
>\starttext
> 7~$\xrightarrow[none]$~6 progression
>\stoptext

Hi Pablo,
This works, thank you very much. 
I had tried several fonts mentioned on the ConTeX-wiki in the chapter "Using 
Math fonts in MkIV" but TeX Gyre Termes Math is not mentioned there. But 
actually it is [mm] that does the trick and I had not realized that. 
Even then several of the Math fonts mentioned did not work.

Thanks again. 

Best regards,

Robert
___
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] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread luigi scarso
On Mon, Aug 28, 2017 at 10:03 AM, Henning Hraban Ramm  wrote:
> Hi,
> just wanted to say THANK YOU for finally tackling that issue!
> I want PDF/X etc. myself but always postponed it...

One of the reason to not include a color profile in the standard distribution
is that it's an advanced topic, a field for an advanced user.
It's quite easy to make pdf that looks ok, but are not ok for printing
(wrong profile for the medium)
or are invalid (it can happen if the pdf has an output intent with a
profile A, and the document has  a color with different profile B,
perhaps in an image).
On average the casual user will complain saying "ConTeXt makes wrong
pdf", perhaps  showing the result from a bugged validator
(all already happen, in several situations).

The context meeting is the best place to talk of all these issues.

-- 
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] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Henning Hraban Ramm
Hi,
just wanted to say THANK YOU for finally tackling that issue!
I want PDF/X etc. myself but always postponed it...

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
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] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Hans Hagen

On 8/27/2017 11:26 PM, Peter Rolf wrote:

Am 27.08.2017 um 21:49 schrieb Pablo Rodriguez:

On 08/27/2017 08:23 PM, Peter Rolf wrote:

Am 27.08.2017 um 19:24 schrieb Pablo Rodriguez:

[...]
Since we have ICC profiles in the ConTeXt Garden
(http://wiki.contextgarden.net/PDFX#ICC_profiles,
http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip),
I wonder why they aren’t part of the ConTeXt Suite.


Because they are hardly used (simply judging from feedback). Not enough
to justify a file size increase of 26.2 MByte.


Hi Peter,

how about limiting the number of profiles to the basic ones? Or how
about an option in first-setup.sh named --icc-profiles?



Different locations need different profiles. That's why there are also
the region related archives (Europe, India, Japan and USA).
You can't divide it any further than that.


We had it but it (a new var) was not accepted in tex live so we dropped 
it and context can find the files anyway.



In theory you can use the environment variable $OSCOLORDIR, but it was
dropped years ago. There were no complains or error reports about that,
so no changes were made.


Either I don’t get your point, or $OSCOLORDIR won’t work in practice.


Exactly, it doesn't work. It's still mentioned in the partly outdated
information on the garden, but there is no 'OSCOLORDIR' string anywhere
in the context tree.


And context would fallback on whatever location anyway.


Would still be the cleanest solution though. Copy the icc files once in
the corresponding directory of your OS (so that all apps can make use of
them), set the environment variable manually, and done.


I would have to do that with thirty computers. And probably I would have
to ask for permissions to copy the profiles (and set system-wide
environment variables). When a computer would have a full OS reinstall
(something far beyond my control), I would have to do that again for
that computer.

As far as I maintain ConTeXt in a common server and we use it for very
specific tasks, we only have the ConTeXt Suite installed once.

Sorry, but this isn’t practical for me (we’d only use the profiles with
ConTeXt).

I see. Still no love for 'OSCOLORDIR'. R.I.P. :D 

Many thanks for your help,


No problem, you are welcome. Looks to me like you are solving the
problem by yourself. I guess a module is a good idea.
FWIW, in colorprofiles.xml one can find the places where one can find 
the files. We could of course put copies in the garden someplace.


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] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Mojca Miklavec
On 28 August 2017 at 07:53, Pablo Rodriguez wrote:
> On 08/27/2017 10:30 PM, Mojca Miklavec wrote:
>> Dear Pablo,
>>
>> On 27 August 2017 at 22:23, Pablo Rodriguez wrote:
>>> how can I add the *.icc files into
>>> tex/texmf-context/colors/icc/? Is this allowed for a module?
>>
>> They would end up in $wherever/texmf-modules rather than in
>> $wherever/texmf-context, but that should not matter.
>
> Sorry for asking the most basic questions, Mojca. I never made a module
> in ConTeXt and the task isn’t obvious to me.
>
> I have to include the profiles in $context/tex/texmf-modules/colors/icc
> and documentation in
> $context/tex/texmf-modules/doc/context/third/icc-profiles/.

No. In case you want the mentioned paths you would probably use
colors/icc/
doc/context/third/t-

> Is there any documentation on how to create a module?
>
> I read something in the wiki, but it was all about namespaces and I
> think they aren’t required here.

I leave that to others.

>> If you prepare the module, you might want to include some simple docs
>> about using the profiles :)
>
> With the documentation, I may write a simple README.md file and include
> a directory with examples (from the wiki ;-)).

It's often helpful to have a tex document with the generated pdf, so
that users can also see the effect (picture is worth thousand words)
and have a working tex source they can modify, but a plain text (or
markdown) should be acceptable.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___