Re: [NTG-context] TextMate ConTeXt bundle

2018-11-14 Thread Pablo Rodriguez
On 11/14/18 1:55 PM, Manuel Blanco wrote:
>>> [...]
>>> Any updated documentation that takes you from beginner to intermediate
>>> would be apreciated too.
>>
>> For ConTeXt or for the TextMate bundle?
> 
> ConTeXt, but I don't think there's an _updated_ structured
> introduction. For instance regarding fonts I read here
> https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-context-mkiv-documentation/448813#448813
> that the latest documentation is
> http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf

Hi Manuel,

maybe the problem with ConTeXt is that the newcomers that complain about
the lack of introductions never write them (even when they learn how to
use ConTeXt).

> But going there it goes to much depth and I don't know if I need
> simplefonts, definefontfamily, setupbodyfont, starttypescript, etc.
> and even seeing that may be those can coexist, I don't know what's the
> use case for each one.

The simplefonts module is deprecated.

I use \definefontfamily and \setupbodyfont, such as in:

\definefontfamily[mainface][rm][EB Garamond 12]
\setupbodyfont[mainface, 14pt]

> I remember when I started with LaTeX there was a huge number of
> beginner-intermediate documents (many of which I now wouldn't
> recommend even to my worst enemies, but at least there were many to
> read), but here there are much less, and those that seem complete you
> see they are from early 2000s (and with how much it changes in ConTeXt
> you don't know what to believe).

ConTeXt is not LaTeX and their development roads are rather diverse.

> I know TeX core enough to know how it works, LaTeX enough to know how
> it's expected to work (and if I don't know something, I know where to
> look), but ConTeXt I don't know where to find introductory updated
> material, and also some text about the whole way context organises
> everything (how files are organised, project structure, how setups
> work, etc., kind of a whole idea to know where to look when there's
> doubt about certain area).

You can always read the source
(http://pragma-ade.com/context/beta/cont-tmf.zip ), if you are in the
mood.

> Also there's this list, but one does not feel like spamming this list
> sharing newbie questions with those of people that actually work with
> this system. And that while showing zero ability to be
> self-sufficient.

Sorry, but you forgot the wiki (https://wiki.contextgarden.net/). If you
ever find that something might be missing there, updating the document
is always a great idea.

If you are a newcomer, sharing questions might be an approach, but
asking them is usually a more efficient one .

There is nothing wrong about asking in this mailing list, as long as you
don’t expect ultra-fast (or even fast ) answers. Some of your
questions may go unnoticed, but others may get replies.

BTW, if you are subscribed to the ES-TEX mailing list, you may also
raise your questions about ConTeXt there (as long as you prepend
"(ConTeXt)" to the subject of your message).

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
___

Re: [NTG-context] Issues with RGB to CMYK conversion with color profiles

2018-11-14 Thread Wolfgang Schuster

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)

2018-11-14 Thread Jan U. Hasecke
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)

2018-11-14 Thread Peter Rolf
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 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)

2018-11-14 Thread 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?

> 
> (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
>> ___
>>
> 
> ___
> 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)

2018-11-14 Thread 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.


(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] TextMate ConTeXt bundle

2018-11-14 Thread Manuel Blanco
Thanks Mojca,

El mié., 14 nov. 2018 a las 13:13, Mojca Miklavec
() escribió:
>
> Dear Manuel,
>
> > ...
> >
> > 
> > $PATH:/opt/local/bin:/usr/local/bin:/usr/texbin:/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix
>
> This path is wrong.
>
> First of all, you might run into some troubles if you accidentally
> install some TeX binaries via MacPorts (then you might get mixed
> binaries from one and the other, leading to troubles), so I would
> strongly suggest you to put the MacTeX path *in front of*
> /opt/local/bin.
>
> Second, /usr/texbin probably no longer works on High Sierra (it worked
> earlier, but no longer does after Apple decided to prohibit creating
> paths in some of the top level folders, unless you manually switch the
> protection off, reboot, make the change, etc.).
>
> I assume that your binaries are now in
> /Library/TeX/texbin
> which is ultimately a symlink to
> /usr/local/texlive/2018/bin/x86_64-darwin
> (which you could also use if needed).

Done, and it now compiles. Great! Thank you.

>
> > ...
> >
> > Also, the bundle was last updated in 2010, may be there are new
> > things? Where could we learn what things to add?
>
> It is. Patrick who wrote the bundle in no longer active in the ConTeXt
> community, but I keep using his bundle and it works fine. It would
> certainly be nice if someone took the work over and revised it. If you
> want to volunteer, that would be awesome :)
>

I wasn't offering as a volunteer, because I don't know about
programming and not about TextMate bundles (nor about ConTeXt). The
most I can do is edit or duplicate things (like snippets for example)
to my liking. But for instance, I would like to change the command so
that it behaves like the LaTeX bundle (compiling, calling Skim,
autorefreshing when compiled again) and also copying the "watch
document" from that bundle, but that's out of my reach.

But I agree it would be awesome.

>
> You would probably need to start reading documentation about TextMate
> bundles. One thing that might be straightforward to add are more known
> commands (such a list could be autogenerated).
>
> I never compile from within TextMate, so I don't know if that area
> needs some changes (not sure if Patrick last modified the bundle
> before or after MKIV was considered "the version you should use").

I've never had a “workflow” with ConTeXt, so how do you work? May be
that could work for me. You edit in TextMate, go to terminal, compile,
then go to the pdf viewer (which one)?

>
> > ...
> > Any updated documentation that takes you from beginner to intermediate
> > would be apreciated too.
>
> For ConTeXt or for the TextMate bundle?

ConTeXt, but I don't think there's an _updated_ structured
introduction. For instance regarding fonts I read here
https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-context-mkiv-documentation/448813#448813
that the latest documentation is
http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf

But going there it goes to much depth and I don't know if I need
simplefonts, definefontfamily, setupbodyfont, starttypescript, etc.
and even seeing that may be those can coexist, I don't know what's the
use case for each one.

I remember when I started with LaTeX there was a huge number of
beginner-intermediate documents (many of which I now wouldn't
recommend even to my worst enemies, but at least there were many to
read), but here there are much less, and those that seem complete you
see they are from early 2000s (and with how much it changes in ConTeXt
you don't know what to believe).

I know TeX core enough to know how it works, LaTeX enough to know how
it's expected to work (and if I don't know something, I know where to
look), but ConTeXt I don't know where to find introductory updated
material, and also some text about the whole way context organises
everything (how files are organised, project structure, how setups
work, etc., kind of a whole idea to know where to look when there's
doubt about certain area).

Also there's this list, but one does not feel like spamming this list
sharing newbie questions with those of people that actually work with
this system. And that while showing zero ability to be
self-sufficient.

Thanks for the solution, now TextMate compiles ;)
Manuel
___
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] TextMate ConTeXt bundle

2018-11-14 Thread Mojca Miklavec
Dear Manuel,

On Wed, 14 Nov 2018 at 11:12, Manuel Blanco  wrote:
>
> Hi all,
>
> After some years with LaTeX and let's say three or four times trying
> to start with ConTeXt, I decided to try again. Difficult, there are
> many manuals and a lot of contradicting ideas (at least for those of
> us that do not know) in them, but still, I want to try to see if once
> and for all I can manage to dominate it.
>
> I have installed MacTeX 2018. I use TextMate, and the ConTeXt bundle
> is not working in Mac OS High Sierra. After installing it, when I
> tried to compile it said something along the lines "your PATH is ...
> you should have 'context' in your path", so I searched in my computer
> and changed TextMate PATH to:
>
> 
> $PATH:/opt/local/bin:/usr/local/bin:/usr/texbin:/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix

This path is wrong.

First of all, you might run into some troubles if you accidentally
install some TeX binaries via MacPorts (then you might get mixed
binaries from one and the other, leading to troubles), so I would
strongly suggest you to put the MacTeX path *in front of*
/opt/local/bin.

Second, /usr/texbin probably no longer works on High Sierra (it worked
earlier, but no longer does after Apple decided to prohibit creating
paths in some of the top level folders, unless you manually switch the
protection off, reboot, make the change, etc.).

I assume that your binaries are now in
/Library/TeX/texbin
which is ultimately a symlink to
/usr/local/texlive/2018/bin/x86_64-darwin
(which you could also use if needed).

> And this last part is where I think the context binary seems to be
> /usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix
>
> But now when I run it it says
>
> env: texlua: No such file or directory
>
> What could be happening? What do I do?
>
> Also, the bundle was last updated in 2010, may be there are new
> things? Where could we learn what things to add?

It is. Patrick who wrote the bundle in no longer active in the ConTeXt
community, but I keep using his bundle and it works fine. It would
certainly be nice if someone took the work over and revised it. If you
want to volunteer, that would be awesome :)

You would probably need to start reading documentation about TextMate
bundles. One thing that might be straightforward to add are more known
commands (such a list could be autogenerated).

I never compile from within TextMate, so I don't know if that area
needs some changes (not sure if Patrick last modified the bundle
before or after MKIV was considered "the version you should use").

> https://github.com/pgundlach/context.tmbundle
>
> Any updated documentation that takes you from beginner to intermediate
> would be apreciated too.

For ConTeXt or for the TextMate bundle?

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
___

Re: [NTG-context] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)

2018-11-14 Thread Jan U. Hasecke
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)

2018-11-14 Thread 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
___

[NTG-context] TextMate ConTeXt bundle

2018-11-14 Thread Manuel Blanco
Hi all,

After some years with LaTeX and let's say three or four times trying
to start with ConTeXt, I decided to try again. Difficult, there are
many manuals and a lot of contradicting ideas (at least for those of
us that do not know) in them, but still, I want to try to see if once
and for all I can manage to dominate it.

I have installed MacTeX 2018. I use TextMate, and the ConTeXt bundle
is not working in Mac OS High Sierra. After installing it, when I
tried to compile it said something along the lines "your PATH is ...
you should have 'context' in your path", so I searched in my computer
and changed TextMate PATH to:


$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin:/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix

And this last part is where I think the context binary seems to be
/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix

But now when I run it it says

env: texlua: No such file or directory

What could be happening? What do I do?

Also, the bundle was last updated in 2010, may be there are new
things? Where could we learn what things to add?

https://github.com/pgundlach/context.tmbundle

Any updated documentation that takes you from beginner to intermediate
would be apreciated too.

Thanks,
Manuel
___
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] Server upgrade planned for Nov 26.

2018-11-14 Thread Taco Hoekwater
Hi all,

We plan to update the software installation on the zapf.ntg.nl server on Monday 
Nov 26. 

As a consequence, various tex-related sites including www.ntg.nl, 
wiki.contextgarden.net 
and www.luatex.org, as well as the mailman lists @ntg.nl, will be down for some 
as-of-yet 
undetermined amount of time. 

We’ll try to be fast, but one never knows with these things...

Best wishes,
Taco




___
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] Two questions on bibliography

2018-11-14 Thread Joshua Moerman
Dear Alan,

>> Q1: Shouldn't the order of multiple citations (using a single \cite 
>> command) be the same as the order in the publications list? In the 
>> example below, the orders are different.
>
> In the APA specification, the order of the bibliography list as well as
> the order of the citations within a pair of parenthesis is to be
> alphabetical then year ("authoryear"). You can set a different sort order
> if you do not want to follow the APA specification.

Both the list and the citation are sorted on "authoryear". But the orders in
the pdf are different. Is this a bug in ConTeXT?

>> Q2: Is there a way to capitalise the first letter of a last name in 
>> \cite[...]? For example, this may be necessary when starting a new
sentence.
>> But it is also generally preferred in Dutch when the last name starts 
>> with 'van' (or something similar).
>
> You are referring to a "van" or "particle" element of a name. These
> have specific rules (and all is not straight yet, for these rules depend
> on the language and are not clear).

Yes indeed. I do not need a general solution (as that would be way too
complicated). But is there a nice way to fine-tune the rendering on the
spot? (In this case, I only need to have the first character capitalised, in
a few occasions.)

Thank you for your reply,

All the best,
Joshua Moerman

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