Re: [NTG-context] Space between heading and paragraph in a description

2020-02-18 Thread Aditya Mahajan

On Tue, 18 Feb 2020, Kevin Kenan wrote:




On Feb 18, 2020, at 11:50 AM, Wolfgang Schuster 
 wrote:

You can always try the list archive, e.g. the same problems was asked last year.

https://mailman.ntg.nl/pipermail/ntg-context/2019/094735.html 




I had tried searching the archive using a few variations of "heading 
paragraph description” but was unsuccessful in finding the previous 
answer.


I’m still new to ConTeXt so hopefully I will get better at figuring out 
what the key terms should be when searching.


Add what you discovered to the wiki!

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Space between heading and paragraph in a description

2020-02-18 Thread Kevin Kenan

> On Feb 18, 2020, at 11:50 AM, Wolfgang Schuster 
>  wrote:
> 
> You can always try the list archive, e.g. the same problems was asked last 
> year.
> 
> https://mailman.ntg.nl/pipermail/ntg-context/2019/094735.html 
> 


I had tried searching the archive using a few variations of "heading paragraph 
description” but was unsuccessful in finding the previous answer.

I’m still new to ConTeXt so hopefully I will get better at figuring out what 
the key terms should be when searching.

Thanks again.

-kk



___
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] Space between heading and paragraph in a description

2020-02-18 Thread Wolfgang Schuster
On Tue, 18 Feb 2020 11:39:24 -0800
Kevin Kenan  wrote:

> Perfect. Thank you, Wolfgang.
> 
> Is there a way I could have discovered this answer without bothering folks on 
> the list?

You can always try the list archive, e.g. the same problems was asked last year.

https://mailman.ntg.nl/pipermail/ntg-context/2019/094735.html

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] Space between heading and paragraph in a description

2020-02-18 Thread Kevin Kenan
Perfect. Thank you, Wolfgang.

Is there a way I could have discovered this answer without bothering folks on 
the list?

-kk


> On Feb 18, 2020, at 11:26 AM, Wolfgang Schuster 
>  wrote:
> 
> On Tue, 18 Feb 2020 11:16:58 -0800
> Kevin Kenan  wrote:
> 
>> How can I keep the space between the heading text and the paragraph from 
>> stretching/shrinking in a description? 
>> 
>> MWE that exhibits variable space between the heading (the defined word) and 
>> the paragraph text:
>> 
>> 
>>\definedescription
>>  [definition]
>>  [headstyle=italic,
>>   indenting=1em,
>>   alternative=hanging,
>>   margin=2em,
>>   distance=1.5em,
> 
> stretch=0,
> shrink=0,
> 
>>   width=fit,]
> 
> 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
> ___

___
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] Space between heading and paragraph in a description

2020-02-18 Thread Wolfgang Schuster
On Tue, 18 Feb 2020 11:16:58 -0800
Kevin Kenan  wrote:

> How can I keep the space between the heading text and the paragraph from 
> stretching/shrinking in a description? 
> 
> MWE that exhibits variable space between the heading (the defined word) and 
> the paragraph text:
> 
> 
> \definedescription
>   [definition]
>   [headstyle=italic,
>indenting=1em,
>alternative=hanging,
>margin=2em,
>distance=1.5em,

stretch=0,
shrink=0,

>width=fit,]

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
___


[NTG-context] Space between heading and paragraph in a description

2020-02-18 Thread Kevin Kenan
How can I keep the space between the heading text and the paragraph from 
stretching/shrinking in a description? 

MWE that exhibits variable space between the heading (the defined word) and the 
paragraph text:


\definedescription
  [definition]
  [headstyle=italic,
   indenting=1em,
   alternative=hanging,
   margin=2em,
   distance=1.5em,
   width=fit,]

\starttext

\definition{thelongheader} introducing bigwords mid-1990s, humans have taken
an unprecedented step in Earthly annals by introducing not just exotic

\definition{thelongheader} but actually inserting strange and exotic genes
into the base operating systems of individual plants and animals, where
they’re intended to do exactly the same thing: copy themselves, over and 
over.

\definition{thelongheader} Since the late to mid-1990s, humans have taken a
rare step in Earthly annals by introducing not just exotic flora or fauna 
from
one

\stoptext


Thanks,
-kk
___
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] simplefonts directory

2020-02-18 Thread Yves Cloutier
Thanks for the quick reply.

I added the line to my .bashrc file then from the command did source
~/.bashrc

I will try with quotes when i get home.

On Tue, Feb 18, 2020, 9:08 AM Vladimir Lomov,  wrote:

> Hello,
> ** Yves Cloutier  [2020-02-18 08:49:37 -0500]:
>
> > Hello,
>
> > I'm on linux and trying to add my fonts directories using
>
> > export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts
>
> > however when I do, I get the following message:
>
> > bash: /home/drifter/.fonts: Is a directory
>
> > I'm not what I'm doing wrong or why it's not liking this. Any pointers
> > would be appreciated.
>
> Use double quotes:
> export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"
>
> P.S. You may be interested to read bash scripting guide, but in short the
> semicolon is used in shell (bash, zsh) to separate two or more commands in
> a
> row, so your line was interpreted by a shell (I assume that it is bash)
> like
> 1 command: export OSFONTDIR=/usr/share/fonts
> 2 command: $HOME/.fonts
> so indeed the $HOME/.fonts is a directory.
>
> ---
> WBR, Vladimir Lomov
>
> --
> If all else fails, lower your standards.
>
> ___
> 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] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 19:17 schrieb mf:
> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>
>>> \setupcolors[rgb=no]
>>> \startMPcode
>>>  draw lmt_svg [ filename = "sample.svg" ] ;
>>> \stopMPcode
>> I get this error.
>>
>> ! Not implemented: (unknown numeric)=(string).
>> 
>> ]
>> <*> ... ; p := lmt_svg [ filename = "sample.svg" ]
>>
> That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should
> stand for "luametatex").

Yes, with lmtx it works but there is no image in the resulting file.

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] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf

Il 18/02/20 19:07, Jan U. Hasecke ha scritto:

Am 18.02.20 um 14:53 schrieb Hans Hagen:


\setupcolors[rgb=no]
\startMPcode
     draw lmt_svg [ filename = "sample.svg" ] ;
\stopMPcode

I get this error.

! Not implemented: (unknown numeric)=(string).

]
<*> ... ; p := lmt_svg [ filename = "sample.svg" ]

That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should 
stand for "luametatex").


You find documentation about that in LMTX docs, luametafun.pdf, chapter 
"SVG".


Best wishes,

Massi

___
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] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 14:53 schrieb Hans Hagen:

> 
> \setupcolors[rgb=no]
> \startMPcode
>     draw lmt_svg [ filename = "sample.svg" ] ;
> \stopMPcode

I get this error.

! Not implemented: (unknown numeric)=(string).

]
<*> ... ; p := lmt_svg [ filename = "sample.svg" ]


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] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Mojca Miklavec
On Tue, 18 Feb 2020 at 13:28, Tomas Hala wrote:
>
> Hi all,
>
> when one (eg. student) decides for customizing the Windows installation from 
> TeXlive,
> 24 items will appear in the group of packages list.
>
> Because I have no experience with W. installations, I would like to ask
> which of them are relevant or possible to use with ConTeXt MkIV (on W.).
> (The aim is not to install unusable stuff.)

Pick the ConTeXt scheme.

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] simplefonts directory

2020-02-18 Thread Vladimir Lomov
Hello,
** Yves Cloutier  [2020-02-18 08:49:37 -0500]:

> Hello,

> I'm on linux and trying to add my fonts directories using

> export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts

> however when I do, I get the following message:

> bash: /home/drifter/.fonts: Is a directory

> I'm not what I'm doing wrong or why it's not liking this. Any pointers
> would be appreciated.

Use double quotes:
export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"

P.S. You may be interested to read bash scripting guide, but in short the
semicolon is used in shell (bash, zsh) to separate two or more commands in a
row, so your line was interpreted by a shell (I assume that it is bash) like
1 command: export OSFONTDIR=/usr/share/fonts
2 command: $HOME/.fonts
so indeed the $HOME/.fonts is a directory.

---
WBR, Vladimir Lomov

-- 
If all else fails, lower your standards.


signature.asc
Description: PGP signature
___
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] simplefonts directory

2020-02-18 Thread Tomas Hala
Tue, Feb 18, 2020 ve 08:49:37AM -0500 Yves Cloutier napsal(a):
#Hello,
#I'm on linux and trying to add my fonts directories using
# 
#  export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts

export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"

Tomáš



# 
#however when I do, I get the following message:
# 
#  bash: /home/drifter/.fonts: Is a directory
# 
#I'm not what I'm doing wrong or why it's not liking this. Any pointers
#would be appreciated.

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


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Hans Hagen

On 2/18/2020 1:28 PM, Tomas Hala wrote:

Hi all,

when one (eg. student) decides for customizing the Windows installation from 
TeXlive,
24 items will appear in the group of packages list.

Because I have no experience with W. installations, I would like to ask
which of them are relevant or possible to use with ConTeXt MkIV (on W.).
(The aim is not to install unusable stuff.)

Legend:
%=I guess no   +=I guess yes   ?=I am not sure

[translated from the Czech version of the Installer]

+ Additional fonts
+ ConTeXt etc.
+ LuaTeX
+ MetaPost and Metafont


probably not as we have mplib buil tin


+ Recommended Fonts
+ TeXWorks


probably not unless you use it


+ Auxillary programmes for W.


mkiv ... i guess nothing additional makes sense


% Additional for LaTeX
% Art Fields
% Basic LaTeX
% Basic (La)TeX
% Publishing styles
% Recommended LaTeX
% Typesetting Games



? Additional formats


no


? Auxillary programmes for TeX


no


? Graphics, images, diagrams


probably no


? Math, nat. sci., comp. sci.


no, context stuff comes with context already


? Music


unlikely


? Necessary programmes and files


what is that


? PSTricks


only if used


? Additional for BibTeX


no


? SW for graphics and fonts


no


? XeTeX etc.


not for mkiv

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] metapost: remapping colors of an SVG picture

2020-02-18 Thread Hans Hagen

On 2/18/2020 12:18 PM, mf wrote:

Hello list,
I tried this:

\starttext
\startMPcode
picture p ; p := lmt_svg [ filename = "sample.svg" ] ;
draw p ;
color black_rgb ; black_rgb := ( 0, 0, 0 ) ;
color red_rgb   ; red_rgb   := ( 1, 0, 0 ) ;
remapcolor( black_rgb, red_rgb ) ;
recolor p ;
draw p shifted ( bbwidth(p) + 5mm, 0) ;
\stopMPcode
\stoptext


\setupcolors[rgb=no]
\startMPcode
draw lmt_svg [ filename = "sample.svg" ] ;
\stopMPcode



but recolor gives an error:
metapost log    > >> picture
metapost log    > ! Wrong picture color model: redpart of grey object.
metapost log    >  _f_:=(redpart(EXPR0),
metapost log    > greenpart(EXPR0),bluepart(EXPR0));if.bou...
metapost log    >
metapost log    > repathed->...fi;fi;else:addto._p_.also.i;fi;endfor
metapost log    > ;setbounds._p_.to._b_;_p_
metapost log    > 
metapost log    >    ;
metapost log    > <*> ...apcolor( black_rgb, red_rgb ) ; recolor p ;
metapost log    > draw grayed p shifted ( b...
metapost log    >

My goal is to remap colors of an SVG image, like this:

\starttext
\startMPcode
picture p ; p := lmt_svg [ filename = "sample.svg" ] ;
draw p ;
color black_rgb  ; black_rgb  := ( 0, 0, 0 ) ;
cmykcolor black_cmyk ; black_cmyk := ( 0, 0, 0, 1 ) ;
remapcolor( black_rgb, black_cmyk ) ;
recolor p ;
draw p shifted ( bbwidth(p) + 5mm, 0) ;
\stopMPcode
\stoptext

It relates to a recent thread in the mailing list about color management.
It's an attempt to use inkscape-made SVG graphics inside a CMYK 
workflow, without using color management.


Naturally it would work under some constraints, but there's a lot of 
graphics you can do with Inkscape that falls inside these:
- the number of colors in the input SVG should be limited, so that every 
color gets converted

- no embedded bitmaps, only vector graphics
- perhaps some other constraints on gradients, transparency, etc.

A good alternative would be a remapper based on a custom lua function 
like this:


function rgb2cmyk( r, g, b )
   ...
   return c, m, y, k
end

Massi

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




--

-
  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] simplefonts directory

2020-02-18 Thread Yves Cloutier
Hello,

I'm on linux and trying to add my fonts directories using

export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts
>

however when I do, I get the following message:

bash: /home/drifter/.fonts: Is a directory
>

I'm not what I'm doing wrong or why it's not liking this. Any pointers
would be appreciated.
___
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] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Tomas Hala
Hi all,

when one (eg. student) decides for customizing the Windows installation from 
TeXlive, 
24 items will appear in the group of packages list. 

Because I have no experience with W. installations, I would like to ask
which of them are relevant or possible to use with ConTeXt MkIV (on W.).
(The aim is not to install unusable stuff.)

Legend:
%=I guess no   +=I guess yes   ?=I am not sure

[translated from the Czech version of the Installer]

+ Additional fonts
+ ConTeXt etc.
+ LuaTeX
+ MetaPost and Metafont
+ Recommended Fonts
+ TeXWorks
+ Auxillary programmes for W.

% Additional for LaTeX
% Art Fields
% Basic LaTeX 
% Basic (La)TeX 
% Publishing styles
% Recommended LaTeX
% Typesetting Games

? Additional formats
? Auxillary programmes for TeX
? Graphics, images, diagrams
? Math, nat. sci., comp. sci. 
? Music
? Necessary programmes and files
? PSTricks
? Additional for BibTeX
? SW for graphics and fonts
? XeTeX etc.

Thanks in advance. 
(After completion I can put it on the wiki.)

Best wishes,

Tomáš
___
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] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf

Hello list,
I tried this:

\starttext
\startMPcode
picture p ; p := lmt_svg [ filename = "sample.svg" ] ;
draw p ;
color black_rgb ; black_rgb := ( 0, 0, 0 ) ;
color red_rgb   ; red_rgb   := ( 1, 0, 0 ) ;
remapcolor( black_rgb, red_rgb ) ;
recolor p ;
draw p shifted ( bbwidth(p) + 5mm, 0) ;
\stopMPcode
\stoptext

but recolor gives an error:
metapost log> >> picture
metapost log> ! Wrong picture color model: redpart of grey object.
metapost log>  _f_:=(redpart(EXPR0),
metapost log> 
greenpart(EXPR0),bluepart(EXPR0));if.bou...

metapost log>
metapost log> repathed->...fi;fi;else:addto._p_.also.i;fi;endfor
metapost log> 
;setbounds._p_.to._b_;_p_

metapost log> 
metapost log>;
metapost log> <*> ...apcolor( black_rgb, red_rgb ) ; recolor p ;
metapost log> 
draw grayed p shifted ( b...

metapost log>

My goal is to remap colors of an SVG image, like this:

\starttext
\startMPcode
picture p ; p := lmt_svg [ filename = "sample.svg" ] ;
draw p ;
color black_rgb  ; black_rgb  := ( 0, 0, 0 ) ;
cmykcolor black_cmyk ; black_cmyk := ( 0, 0, 0, 1 ) ;
remapcolor( black_rgb, black_cmyk ) ;
recolor p ;
draw p shifted ( bbwidth(p) + 5mm, 0) ;
\stopMPcode
\stoptext

It relates to a recent thread in the mailing list about color management.
It's an attempt to use inkscape-made SVG graphics inside a CMYK 
workflow, without using color management.


Naturally it would work under some constraints, but there's a lot of 
graphics you can do with Inkscape that falls inside these:
- the number of colors in the input SVG should be limited, so that every 
color gets converted

- no embedded bitmaps, only vector graphics
- perhaps some other constraints on gradients, transparency, etc.

A good alternative would be a remapper based on a custom lua function 
like this:


function rgb2cmyk( r, g, b )
  ...
  return c, m, y, k
end

Massi
___
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] body text invades space for notes

2020-02-18 Thread Philipp A.
For me it’s even worse (in mkiv), a paragraph of body text completely
overlaps my footnote.

Where are the bottom notes placed? In the footer? Or how does it work? How
to debug it?

Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez :

> Dear list,
>
> I’m afraid to admit that ConTeXt notes are increasily problematic for
> me. I don’t think this is special to me and I hope we can discuss the
> general issue.
>
> Bottom notes are somewhat tricky in ConTeXt. The user expects that these
> notes (either footnotes, or linenotes) aren’t moved to the next page. I
> mean, no reader expects to find a full footnote in the next page from
> the one that calls it. (At least, I have never seen that in any book
> read or paged through.)
>
> There may be good reasons for that, but ConTeXt doesn’t enable this by
> default. Both options "split=verystrict" and "scope=text" have to be
> used in "\setupnote".
>
> This translated in wrong space before notes when paragraph form was
> used. I was very interested to use these (line)notes for critical
> editions, but sometimes the text run into the notes. I’m afraid that
> left linenotes extremely problematic to be used.
>
> With the arrival of LMTX, space before footnotes is more problematic
> than before. No paragraph notes, see the attached sample (wrong-6.png).
> In other cases, ConTeXt seems to ignore totally that the page bottom
> contains footnotes.
>
> I cannot provide minimal samples. Consider that if it were so easy to
> reproduce, problably the issue would have been gone long ago.
>
> Even when one avoids the problematic bottom partition (which I did in
> that case by removing the "before" option from "\setupnote[footnote]"),
> there is clearly an issue with the footnote having its space before
> remaining blank from the body text (wrong-2.png).
>
> My first question is why the bottom notes have problems to preserve the
> space before them (and simultaneously remain in the same page where they
> come from). This applies also for paragraph notes.
>
> My second question is what can be improved to achieve what may be
> considered as a basic typographic feature.
>
> Sorry for not providing more than output samples. Bear with me. I may
> not be an expert user, but I think I’m a frequent ConTeXt user. And I
> don’t think it is totally wrong to consider this a basic feature that
> needs to be improved.
>
> Many thanks for your help in advance,
>
> 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
>
> ___
>
___
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
___