Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Wolfgang Schuster



Henning Hraban Ramm 
23. Februar 2018 um 14:38
I tried to add the example to the garden, but at least there it 
doesn’t work:

http://wiki.contextgarden.net/Columns

As soon as I use \setupcolors, I get only a single column or the 
example doesn’t compile at all. Strange.


The garden uses MkIV where \color expects a argument (i.e. 
\color[]{}).



Below is a example how you can add a colored rule to \startcolumns but 
the better solution
is to switch to MkIV and and use mixedcolumns environment which has a 
option to change

the color of the rule between the columns.


\enableregime[utf-8]
\mainlanguage[fr]

\setupcolors[state=start]

% \unexpanded\def\ColumnsRule
%   {\bgroup
%\hskip\dimexpr(1.5\bodyfontsize+\linewidth)/2\relax
%\color[red]{\vrule width\linewidth}%
%\hskip\dimexpr(1.5\bodyfontsize+\linewidth)/2\relax
%\egroup}

\definemeasure[columndistance][2em]

\setupcolumns[distance=\measure{columndistance}]

\unexpanded\def\ColumnsRule
  {\bgroup
   \hskip\dimexpr(\measure{columndistance}+\linewidth)/2\relax
   \color[red]{\vrule width\linewidth}%
   \hskip\dimexpr(\measure{columndistance}+\linewidth)/2\relax
   \egroup}

\setupcolumns[rule=\ColumnsRule]

\starttext

\startcolumns
\input tufte
\stopcolumns

\stoptext


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

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

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Henning Hraban Ramm
I tried to add the example to the garden, but at least there it doesn’t work:
http://wiki.contextgarden.net/Columns

As soon as I use \setupcolors, I get only a single column or the example 
doesn’t compile at all. Strange.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

Am 2018-02-23 um 13:50 schrieb Gerard :

> Thanks Thomas,
> 
> I use Texworks with Context (pdftex)...
> 
> With the code below, I get the text in blue and separator in red. See the 
> command \setupcolors[textcolor=red] and \color[blue] before \startcolumns.
> 
> Gérard
> 
> 
> --- exemple basique-
> \enableregime[utf-8]
> \mainlanguage[fr]
> \setupcolors[state=start,textcolor=blue]
> 
> \setupcolumns[n=2,rule=on,rulecolor=red]
> \starttext
> \setupcolors[textcolor=red]
> \color[blue]
> \startcolumns
> \input tufte 
> \stopcolumns
> \stoptext
> 
> 
> Le 23/02/2018 à 13:23, Schmitz Thomas A. a écrit :
>>> On 23. Feb 2018, at 12:04, Gerard 
>>>  wrote:
>>> 
>>> Why does not work "rulecolor" in my example below ? it keeps the color of 
>>> textcolor...
>>> 
>>> The other options of setcolumns (background...) work well but I fail on 
>>> that one. Have I understood everything?
>>> 
>>> 
>> If you look into the source (page-mul.mkiv), there is no key “rulecolor” for 
>> \setupcolumns. I don’t think that the color can be set separately?
>> 
>> Thomas
>> ___
>> 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
> ___

___
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] rulecolor in columns

2018-02-23 Thread Gerard

Thanks Thomas,

I use Texworks with Context (pdftex)...

With the code below, I get the text in blue and separator in red. See 
the command \setupcolors[textcolor=red] and \color[blue] before 
\startcolumns.


Gérard

--- exemple basique-

\enableregime[utf-8]

\mainlanguage[fr]

\setupcolors[state=start,textcolor=blue]


\setupcolumns[n=2,rule=on,rulecolor=red]

\starttext

\setupcolors[textcolor=red]

\color[blue]

\startcolumns

\input tufte

\stopcolumns

\stoptext



Le 23/02/2018 à 13:23, Schmitz Thomas A. a écrit :



On 23. Feb 2018, at 12:04, Gerard  wrote:

Why does not work "rulecolor" in my example below ? it keeps the color of 
textcolor...

The other options of setcolumns (background...) work well but I fail on that 
one. Have I understood everything?


If you look into the source (page-mul.mkiv), there is no key “rulecolor” for 
\setupcolumns. I don’t think that the color can be set separately?

Thomas
___
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] rulecolor in columns

2018-02-23 Thread Schmitz Thomas A.


> On 23. Feb 2018, at 12:04, Gerard  wrote:
> 
> Why does not work "rulecolor" in my example below ? it keeps the color of 
> textcolor...
> 
> The other options of setcolumns (background...) work well but I fail on that 
> one. Have I understood everything?
> 

If you look into the source (page-mul.mkiv), there is no key “rulecolor” for 
\setupcolumns. I don’t think that the color can be set separately?

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