Re: [NTG-context] next beta

2018-04-18 Thread Otared Kavian
Hi Hans,

Thanks for the new feature for row backgrounds, which I tested: it works 
(though see below) and it is another great feature!
I wanted to add the information on the wiki, but thought it would be better to 
explain the meanings of \ND and \NL: is the following correct:

\NC = New Column
\NR = New Row
\NL = New Line ?
\ND = ??

Also it seems that when one encloses the tabulated lines into a 
\startplacetable...\stopplacetable pair, the coloring of the background does 
not work. Please see below an example.

Best regards: OK

%%% begin row-background.tex
\setuptabulate[backgroundcolor=lightgray]

\starttext

\starttabulate[|||]
   \ND First name \NC Family name\NC \NR
   \NC Hans \NC Hagen \NC \NR
   \NL[darkgray] Wolfgang \NC Schuster \NC \NR
   \NC Aditya \NC Mahajan \NC \NR
   \ND Pablo \NC Rodriguez \NC \NR
\stoptabulate

\startplacetable[title=A nice table, but where are the colors?]
\starttabulate[|||]
   \ND First name \NC Family name\NC \NR
   \NC Hans \NC Hagen \NC \NR
   \NL[darkgray] Wolfgang \NC Schuster \NC \NR
   \NC Aditya \NC Mahajan \NC \NR
   \ND Pablo \NC Rodriguez \NC \NR
\stoptabulate
\stopplacetable

\stoptext
%%% end row-background.tex


> On 14 Apr 2018, at 18:51, Hans Hagen  wrote:
> 
> Hi,
> 
> The next beta will have:
> 
> % row backgrounds:
> 
> \setuptabulate[backgroundcolor=darkred]
> 
> \starttext
> 
> \starttabulate[|||]
>\NC foo \NC bar \NC \NR
>\ND foo \NC bar \NC \NR
>\NC foo \NC bar \NC \NR
>\NC foo \NC bar \NC \NR
>\ND foo \NC bar \NC \NR
> \stoptabulate
> 
> \starttabulate[|||]
>\NC  foo \NC bar \NC \NR
>\NL[magenta] foo \NC bar \NC \NR
>\NL[yellow]  foo \NC bar \NC \NR
>\NL[cyan]foo \NC bar \NC \NR
>\NL[gray]foo \NC bar \NC \NR
> \stoptabulate
> 
> \starttabulate
>\NL[red] foo \NC bar \NC \NR
>\NL[green]   foo \NC bar \NC \NR
>\NC  foo \NC bar \NC \NR
>\NL[blue]foo \NC \input tufte  \NC \NR
>\NL[gray]foo \NC bar \NC \NR
>\NL[yellow]  foo \NC bar \NC \NR
> \stoptabulate
> 
> \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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] next beta

2018-04-14 Thread Hans Hagen

Hi,

The next beta will have:

% row backgrounds:

\setuptabulate[backgroundcolor=darkred]

\starttext

\starttabulate[|||]
\NC foo \NC bar \NC \NR
\ND foo \NC bar \NC \NR
\NC foo \NC bar \NC \NR
\NC foo \NC bar \NC \NR
\ND foo \NC bar \NC \NR
\stoptabulate

\starttabulate[|||]
\NC  foo \NC bar \NC \NR
\NL[magenta] foo \NC bar \NC \NR
\NL[yellow]  foo \NC bar \NC \NR
\NL[cyan]foo \NC bar \NC \NR
\NL[gray]foo \NC bar \NC \NR
\stoptabulate

\starttabulate
\NL[red] foo \NC bar \NC \NR
\NL[green]   foo \NC bar \NC \NR
\NC  foo \NC bar \NC \NR
\NL[blue]foo \NC \input tufte  \NC \NR
\NL[gray]foo \NC bar \NC \NR
\NL[yellow]  foo \NC bar \NC \NR
\stoptabulate

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

Re: [NTG-context] next beta

2017-06-19 Thread Aditya Mahajan

On Mon, 19 Jun 2017, Hans Hagen wrote:


\setupformulas[split=yes,align=flushleft] % already there


While you are tweaking formulas, would it make sense to add a key-value 
interface for \startformula, so that the following also works:


\startformula[split=yes, align=flushleft]
...
\stopformula

We can remain backward compatible by check if the argument to formulas is 
an assignment or not.


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] next beta

2017-06-19 Thread Hans Hagen

On 6/19/2017 12:56 AM, Henri Menke wrote:


Let me quote the TeXbook (page 195):

»Although formulas within a paragraph always break after binary operations and 
relations, displayed
formulas always break before binary operations and relations.«


given that one uses alignments


On the other hand, right above this paragraph, it says:

»It's quite an art to decide how to break long displayed formulas into several 
lines; TeX never
attempts to break them, because no set of rules is really adequate.«


right, so we're stuck .. anyhow, some future mkiv beta / luatex 
combination will provide


\setupformulas[split=yes,align=flushleft] % already there
\setupmathematics[setups=math:spacing:split]  % needs new engine

so that you split differently (one can then prevent an unwanted split 
with a large penalty)


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] next beta

2017-06-18 Thread Henri Menke
On Sun, 2017-06-18 at 13:00 +0200, Hans Hagen wrote:
> On 6/17/2017 3:48 PM, Jeong Dal wrote:
> > 
> > Dear Hans,
> > 
> > I updated ConTeXt beta today and run your sample for long formula.
> > It works nice and it is the feature what many math people want I think.
> > Thank you for your concern.
> > 
> > One thing that I’d like say is that a new line in the splitted long formula 
> > usually starts with
> > operations in many math books.
> > But, in the ourput  of your example, every line ends with ‘+’ sign and 
> > begin a new line with a
> > ‘number’.
> > 
> > Would you please check it once more?
> this is how tex works: just look at inline math

Let me quote the TeXbook (page 195):

»Although formulas within a paragraph always break after binary operations and 
relations, displayed
formulas always break before binary operations and relations.«

On the other hand, right above this paragraph, it says:

»It's quite an art to decide how to break long displayed formulas into several 
lines; TeX never
attempts to break them, because no set of rules is really adequate.«

> i played with it a bit but had to adapt the engine for a bit more 
> control (stepwise the matyh machinery is opened up i.e. hard coded steps 
> become configureable)
> 
> anyway, the question is not implementing but control: it's not default 
> tex behaviour so it has to be turned on (and then after a while we 
> forget that it can be turned on i guess)
> 
> (no clue what keyword to use for controling it)
> 
> 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
> ___
___
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] next beta

2017-06-18 Thread Jeong Dal
Dear Hans,


> 2017. 6. 18. 오후 8:00, Hans Hagen  작성:
> 
> this is how tex works: just look at inline math
> 

Yes, you are right. 
To start a new line with a sign may be a preference  of me and some others.
I found a document which illustrates the different displays of a long equations 
in LaTeX.

https://www.andy-roberts.net/res/writing/latex/longeqns.pdf 


I think that I ask you too much. 
You may leave it to user to choose.

Thank you for the example that I just saw. It looks good to me.

Best regards,

Dalyoung


> i played with it a bit but had to adapt the engine for a bit more control 
> (stepwise the matyh machinery is opened up i.e. hard coded steps become 
> configureable)
> 
> anyway, the question is not implementing but control: it's not default tex 
> behaviour so it has to be turned on (and then after a while we forget that it 
> can be turned on i guess)
> 
> (no clue what keyword to use for controling it)
> 
> 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] next beta

2017-06-18 Thread Hans Hagen

On 6/17/2017 3:48 PM, Jeong Dal wrote:

Dear Hans,

I updated ConTeXt beta today and run your sample for long formula.
It works nice and it is the feature what many math people want I think.
Thank you for your concern.

One thing that I’d like say is that a new line in the splitted long formula 
usually starts with operations in many math books.
But, in the ourput  of your example, every line ends with ‘+’ sign and begin a 
new line with a ‘number’.

Would you please check it once more?

this is how tex works: just look at inline math

i played with it a bit but had to adapt the engine for a bit more 
control (stepwise the matyh machinery is opened up i.e. hard coded steps 
become configureable)


anyway, the question is not implementing but control: it's not default 
tex behaviour so it has to be turned on (and then after a while we 
forget that it can be turned on i guess)


(no clue what keyword to use for controling it)

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] next beta

2017-06-17 Thread Jeong Dal
Dear Hans,

I updated ConTeXt beta today and run your sample for long formula.
It works nice and it is the feature what many math people want I think.
Thank you for your concern.

One thing that I’d like say is that a new line in the splitted long formula 
usually starts with operations in many math books.
But, in the ourput  of your example, every line ends with ‘+’ sign and begin a 
new line with a ‘number’.

Would you please check it once more?

Thank you again for your work, and have a nice weekend.

Best regards,

Dalyoung
___
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] next beta

2017-06-14 Thread Hans Hagen

On 6/14/2017 11:33 AM, Mathias Schickel wrote:


Am 13.06.2017 um 16:46 schrieb Hans Hagen >:


On 6/13/2017 1:18 PM, Mathias Schickel wrote:
Am 12.06.2017 um 18:17 schrieb Hans Hagen >:


On 6/12/2017 5:56 PM, Mathias Schickel wrote:

Hi Hans,
if I get it right this means that you provide a mechanism that 
brakes formulas automatically across several lines? I appreciate 
this very much! Thank you for including this into the next beta!
Would it be possible to do something like that for breaking long 
formulas across pages (or is that maybe included in the new mechanism)?

that's more complex and interferes with other aspects so maybe later
Okay, that would be really great. Maybe a semi-automatic breaking 
across pages could be doable. The AMS package for LaTeX implements 
something like that. If you write \allowbreak (I am not absolutely 
sure if this is the true command, but it is something like that) at a 
line of an equation with multiple lines the typesetting algorithm 
knows that the formula can be broken across pages at that point.
If something like that could be done in ConTeXt it would be really 
great. At present it is somewhat complicated to handle equations with 
many lines since you have to typeset the text and check if everything 
fits. If you could mark certain lines of an equation to be allowed to 
be broken at the end of a page, working with multiple line equations 
would be much easier and faster.
attached what will be provided ... experimental for a while (not in 
the mood now for harder stuff)


That looks really good! Will it be possible to combine that with 
\startmathalignment? And if not can you pass several \alignhere commands 
and force breaking at user defined places?
(I tried out to test it myself but the new feature is not yet uploaded 
to the garden version.)

i didn't test with alignments

only one \alignhere per formula

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] next beta

2017-06-14 Thread Mathias Schickel

> Am 13.06.2017 um 16:46 schrieb Hans Hagen :
> 
> On 6/13/2017 1:18 PM, Mathias Schickel wrote:
>>> Am 12.06.2017 um 18:17 schrieb Hans Hagen :
>>> 
>>> On 6/12/2017 5:56 PM, Mathias Schickel wrote:
 Hi Hans,
 if I get it right this means that you provide a mechanism that brakes 
 formulas automatically across several lines? I appreciate this very much! 
 Thank you for including this into the next beta!
 Would it be possible to do something like that for breaking long formulas 
 across pages (or is that maybe included in the new mechanism)?
>>> that's more complex and interferes with other aspects so maybe later
>> Okay, that would be really great. Maybe a semi-automatic breaking across 
>> pages could be doable. The AMS package for LaTeX implements something like 
>> that. If you write \allowbreak (I am not absolutely sure if this is the true 
>> command, but it is something like that) at a line of an equation with 
>> multiple lines the typesetting algorithm knows that the formula can be 
>> broken across pages at that point.
>> If something like that could be done in ConTeXt it would be really great. At 
>> present it is somewhat complicated to handle equations with many lines since 
>> you have to typeset the text and check if everything fits. If you could mark 
>> certain lines of an equation to be allowed to be broken at the end of a 
>> page, working with multiple line equations would be much easier and faster.
> attached what will be provided ... experimental for a while (not in the mood 
> now for harder stuff)

That looks really good! Will it be possible to combine that with 
\startmathalignment? And if not can you pass several \alignhere commands and 
force breaking at user defined places?
(I tried out to test it myself but the new feature is not yet uploaded to the 
garden version.)

> 
> 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] next beta

2017-06-13 Thread Aditya Mahajan

On Tue, 13 Jun 2017, Hans Hagen wrote:

attached what will be provided ... experimental for a while (not in the mood 
now for harder stuff)


Thanks. I'll play around with it.

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] next beta

2017-06-13 Thread Mohammad Hossein Bateni
this looks really cool and useful!  thanks a lot, Hans!

On Tue, Jun 13, 2017 at 10:46 AM, Hans Hagen  wrote:

> On 6/13/2017 1:18 PM, Mathias Schickel wrote:
>
>>
>> Am 12.06.2017 um 18:17 schrieb Hans Hagen :
>>>
>>> On 6/12/2017 5:56 PM, Mathias Schickel wrote:
>>>
 Hi Hans,
 if I get it right this means that you provide a mechanism that brakes
 formulas automatically across several lines? I appreciate this very much!
 Thank you for including this into the next beta!
 Would it be possible to do something like that for breaking long
 formulas across pages (or is that maybe included in the new mechanism)?

>>> that's more complex and interferes with other aspects so maybe later
>>>
>>
>> Okay, that would be really great. Maybe a semi-automatic breaking across
>> pages could be doable. The AMS package for LaTeX implements something like
>> that. If you write \allowbreak (I am not absolutely sure if this is the
>> true command, but it is something like that) at a line of an equation with
>> multiple lines the typesetting algorithm knows that the formula can be
>> broken across pages at that point.
>> If something like that could be done in ConTeXt it would be really great.
>> At present it is somewhat complicated to handle equations with many lines
>> since you have to typeset the text and check if everything fits. If you
>> could mark certain lines of an equation to be allowed to be broken at the
>> end of a page, working with multiple line equations would be much easier
>> and faster.
>>
> attached what will be provided ... experimental for a while (not in the
> mood now for harder stuff)
>
> 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
> 
> ___
>
___
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] next beta

2017-06-13 Thread Hans Hagen

On 6/13/2017 1:18 PM, Mathias Schickel wrote:



Am 12.06.2017 um 18:17 schrieb Hans Hagen :

On 6/12/2017 5:56 PM, Mathias Schickel wrote:

Hi Hans,
if I get it right this means that you provide a mechanism that brakes formulas 
automatically across several lines? I appreciate this very much! Thank you for 
including this into the next beta!
Would it be possible to do something like that for breaking long formulas 
across pages (or is that maybe included in the new mechanism)?

that's more complex and interferes with other aspects so maybe later


Okay, that would be really great. Maybe a semi-automatic breaking across pages 
could be doable. The AMS package for LaTeX implements something like that. If 
you write \allowbreak (I am not absolutely sure if this is the true command, 
but it is something like that) at a line of an equation with multiple lines the 
typesetting algorithm knows that the formula can be broken across pages at that 
point.
If something like that could be done in ConTeXt it would be really great. At 
present it is somewhat complicated to handle equations with many lines since 
you have to typeset the text and check if everything fits. If you could mark 
certain lines of an equation to be allowed to be broken at the end of a page, 
working with multiple line equations would be much easier and faster.
attached what will be provided ... experimental for a while (not in the 
mood now for harder stuff)


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
-


align-002.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] next beta

2017-06-13 Thread Hans Åberg

> On 12 Jun 2017, at 17:25, Hans Hagen  wrote:
> 
> Hi,
> 
> experimental in next beta:

There is a TeX Live updating utility, at least on the MacOS distribution, that 
allows for server synchronizations between the yearly updates. Is ConTeXt 
updated there?


___
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] next beta

2017-06-13 Thread Mathias Schickel

> Am 12.06.2017 um 18:17 schrieb Hans Hagen :
> 
> On 6/12/2017 5:56 PM, Mathias Schickel wrote:
>> Hi Hans,
>> if I get it right this means that you provide a mechanism that brakes 
>> formulas automatically across several lines? I appreciate this very much! 
>> Thank you for including this into the next beta!
>> Would it be possible to do something like that for breaking long formulas 
>> across pages (or is that maybe included in the new mechanism)?
> that's more complex and interferes with other aspects so maybe later

Okay, that would be really great. Maybe a semi-automatic breaking across pages 
could be doable. The AMS package for LaTeX implements something like that. If 
you write \allowbreak (I am not absolutely sure if this is the true command, 
but it is something like that) at a line of an equation with multiple lines the 
typesetting algorithm knows that the formula can be broken across pages at that 
point.
If something like that could be done in ConTeXt it would be really great. At 
present it is somewhat complicated to handle equations with many lines since 
you have to typeset the text and check if everything fits. If you could mark 
certain lines of an equation to be allowed to be broken at the end of a page, 
working with multiple line equations would be much easier and faster.

> 
> -
>  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] next beta

2017-06-13 Thread Hans Hagen

On 6/13/2017 8:06 AM, Aditya Mahajan wrote:

On Mon, 12 Jun 2017, Hans Hagen wrote:


i.e. (poor mans) multiline display math


Interesting. An important reference for automatic breaking of multiline 
display are the notes of Michael J Downes included in the documentation 
of breqn: see section 14 (page 16) of 
http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/breqn/breqn.pdf 


I remember a talk by giuseppe about nath (or so) that did something nice 
but anyway, the main question with that kind of trickery is if one is 
willing to add structure info or not .. anything semi-clever will be 
limited.


(Ignore the implementation details, which were a series of hacks to make 
things work in pdftex, but section 14 explains the different display 
math layouts and a strategy to choose between them. It will be really 
nice to have something comparable in ConTeXt.
You mean these boxed lines? I'm not a math expert so the subtle details 
are lost to me. I'd rather start from reasonable demands (after all very 
complex stuff often is best done manually anyway).


For instance

foo = bar + bar + bar
  gnu + gnu

is doable without much trouble if one is willing to enter

foo = \alignhere bar + bar + bar
  gnu + gnu

and such.

-
  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] next beta

2017-06-13 Thread Aditya Mahajan

On Mon, 12 Jun 2017, Hans Hagen wrote:


i.e. (poor mans) multiline display math


Interesting. An important reference for automatic breaking of multiline 
display are the notes of Michael J Downes included in the documentation of 
breqn: see section 14 (page 16) of 
http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/breqn/breqn.pdf


(Ignore the implementation details, which were a series of hacks to make 
things work in pdftex, but section 14 explains the different display math 
layouts and a strategy to choose between them. It will be really nice to 
have something comparable in ConTeXt.


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] next beta

2017-06-12 Thread Hans Hagen

On 6/12/2017 5:56 PM, Mathias Schickel wrote:

Hi Hans,

if I get it right this means that you provide a mechanism that brakes formulas 
automatically across several lines? I appreciate this very much! Thank you for 
including this into the next beta!
Would it be possible to do something like that for breaking long formulas 
across pages (or is that maybe included in the new mechanism)?

that's more complex and interferes with other aspects so maybe later

-
  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] next beta

2017-06-12 Thread Mathias Schickel
Hi Hans,

if I get it right this means that you provide a mechanism that brakes formulas 
automatically across several lines? I appreciate this very much! Thank you for 
including this into the next beta!
Would it be possible to do something like that for breaking long formulas 
across pages (or is that maybe included in the new mechanism)?

Best
Mathias


> Am 12.06.2017 um 17:25 schrieb Hans Hagen :
> 
> Hi,
> 
> experimental in next beta:
> 
> \starttext
> 
> test
> 
> \startbuffer
> \placeformula
> \startformula
>x\dorecurse{100}{+#1x^{#1x}}=10
> \stopformula
> 
> test
> 
> \startformula
>x\dorecurse{100}{+#1x^{#1x}}=10
> \stopformula
> 
> test
> \stopbuffer
> 
> \par \setupformula[split=no]  \getbuffer \par
> \par \setupformula[split=yes] \getbuffer \par
> 
> \stoptext
> 
> i.e. (poor mans) multiline display math
> 
> 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
> ___

___
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] next beta

2017-06-12 Thread Hans Hagen

Hi,

experimental in next beta:

\starttext

test

\startbuffer
\placeformula
\startformula
x\dorecurse{100}{+#1x^{#1x}}=10
\stopformula

test

\startformula
x\dorecurse{100}{+#1x^{#1x}}=10
\stopformula

test
\stopbuffer

\par \setupformula[split=no]  \getbuffer \par
\par \setupformula[split=yes] \getbuffer \par

\stoptext

i.e. (poor mans) multiline display math

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] next beta

2017-01-17 Thread Hans Hagen

On 1/17/2017 8:27 PM, Henri Menke wrote:

On 01/17/2017 08:23 PM, Hans Hagen wrote:

On 1/17/2017 8:13 PM, Henri Menke wrote:

On 01/15/2017 05:19 PM, Hans Hagen wrote:

Hi,

the next beta has additional keywords for texdefinitions:

\starttext

% [spaces|nospaces] [global] [unexpanded] [expanded] [..argument] csname

\starttexdefinition unexpanded doubleempty whatever [#1][#2]#3


Is only the outer level \unexpanded or also the inner level?


by the outer being unexpanded the inner is also unexpanded (currently it is but 
i'll remove that as after all the inner one is hidden)


For the hackers among us, what will the name of the inner one will be? (to 
avoid clashes)

I guess something like \do_whatever or \do_whatever_indeed


\_do_whatever

but i can always decide to make it less accessible


this is (#1) (#2) it#3

\stoptexdefinition

*\whatever[a]{!}*

\stoptext

(no beta yet as i'm in the middle of some cleanup)

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
___


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




--

-
  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] next beta

2017-01-17 Thread Henri Menke
On 01/17/2017 08:23 PM, Hans Hagen wrote:
> On 1/17/2017 8:13 PM, Henri Menke wrote:
>> On 01/15/2017 05:19 PM, Hans Hagen wrote:
>>> Hi,
>>>
>>> the next beta has additional keywords for texdefinitions:
>>>
>>> \starttext
>>>
>>> % [spaces|nospaces] [global] [unexpanded] [expanded] [..argument] csname
>>>
>>> \starttexdefinition unexpanded doubleempty whatever [#1][#2]#3
>>
>> Is only the outer level \unexpanded or also the inner level?
> 
> by the outer being unexpanded the inner is also unexpanded (currently it is 
> but i'll remove that as after all the inner one is hidden)

For the hackers among us, what will the name of the inner one will be? (to 
avoid clashes)

I guess something like \do_whatever or \do_whatever_indeed
 
>>> this is (#1) (#2) it#3
>>>
>>> \stoptexdefinition
>>>
>>> *\whatever[a]{!}*
>>>
>>> \stoptext
>>>
>>> (no beta yet as i'm in the middle of some cleanup)
>>>
>>> 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
>>> ___
>>
>> ___
>> 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] next beta

2017-01-17 Thread Hans Hagen

On 1/17/2017 8:13 PM, Henri Menke wrote:

On 01/15/2017 05:19 PM, Hans Hagen wrote:

Hi,

the next beta has additional keywords for texdefinitions:

\starttext

% [spaces|nospaces] [global] [unexpanded] [expanded] [..argument] csname

\starttexdefinition unexpanded doubleempty whatever [#1][#2]#3


Is only the outer level \unexpanded or also the inner level?


by the outer being unexpanded the inner is also unexpanded (currently it 
is but i'll remove that as after all the inner one is hidden)



this is (#1) (#2) it#3

\stoptexdefinition

*\whatever[a]{!}*

\stoptext

(no beta yet as i'm in the middle of some cleanup)

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
___


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

Re: [NTG-context] next beta

2017-01-17 Thread Henri Menke
On 01/15/2017 05:19 PM, Hans Hagen wrote:
> Hi,
> 
> the next beta has additional keywords for texdefinitions:
> 
> \starttext
> 
> % [spaces|nospaces] [global] [unexpanded] [expanded] [..argument] csname
> 
> \starttexdefinition unexpanded doubleempty whatever [#1][#2]#3

Is only the outer level \unexpanded or also the inner level?

> this is (#1) (#2) it#3
> 
> \stoptexdefinition
> 
> *\whatever[a]{!}*
> 
> \stoptext
> 
> (no beta yet as i'm in the middle of some cleanup)
> 
> 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
> ___

___
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] next beta

2017-01-15 Thread Hans Hagen

Hi,

the next beta has additional keywords for texdefinitions:

\starttext

% [spaces|nospaces] [global] [unexpanded] [expanded] [..argument] csname

\starttexdefinition unexpanded doubleempty whatever [#1][#2]#3

this is (#1) (#2) it#3

\stoptexdefinition

*\whatever[a]{!}*

\stoptext

(no beta yet as i'm in the middle of some cleanup)

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] next beta

2016-06-27 Thread Meer, Hans van der

> On 27 Jun 2016, at 10:38, Hans Hagen  wrote:
> 
> The next beta will support this (for mp lovers)
> 
> \definecolor[maincolor]   [r=.5]
> \startMPpage
>fill fullcircle scaled 10cm withcolor "maincolor" ;
>...

> \stopMPpage
> 
> So, in many cases you can use strings instead of \MPcolor{...}.

Thanks. A change making the code imho much more 'attractive' to the eye.

Hans van der Meer

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

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

[NTG-context] next beta

2016-06-27 Thread Hans Hagen

Hi,

The next beta will support this (for mp lovers)

\definecolor[maincolor]   [r=.5]
\definecolor[extracolor]  [g=.5]
\definecolor[anothercolor][b=.5]
\definecolor[morecolor]   [s=.8]

\startMPpage
fill fullcircle scaled 10cm withcolor "maincolor" ;
fill fullcircle scaled  9cm withcolor "extracolor" ;
fill fullcircle scaled  8cm withcolor complementary "anothercolor" ;
fill fullcircle scaled  7cm withcolor complemented "anothercolor" ;
fill fullcircle scaled  6cm withcolor "morecolor" randomized 1 ;
fill fullcircle scaled  5cm withcolor "morecolor" randomized 1 ;
addbackground withcolor 
.5[resolvedcolor("morecolor"),resolvedcolor("extracolor")] ;

\stopMPpage

So, in many cases you can use strings instead of \MPcolor{...}.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] next beta

2016-02-25 Thread Hans Hagen

Hi,

The next beta will have a more efficient metafun filldraw option named 
'fillup' (flaw and drill were rejected as operator names):


\starttext
\startMPpage
fill   fullsquare scaled 4cm withpen pencircle scaled 1cm;
draw   fullsquare scaled 4cm withpen pencircle scaled 1cm;
\stopMPpage
\startMPpage
fillup fullsquare scaled 4cm withpen pencircle scaled 1cm;
\stopMPpage
\stoptext

The second page will have more efficient pdf code.

The beta also has some new arrow trickery that Alan will reveal at the 
next context meeting.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] next beta

2015-04-16 Thread Hans Hagen

On 4/15/2015 7:08 PM, Aditya Mahajan wrote:

On Tue, 19 Mar 2013, Hans Hagen wrote:


\starttext

   \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||]
   \NC first \NC   left  \NC middle \NC right  \NC
last \NC \NR
   \NC first \NC \color[white]{left} \NC middle \NC
\color[white]{right} \NC last \NC \NR
   \NC first \NC   left  \NC middle \NC right  \NC
last \NC \NR
   \stoptabulate

\stoptext

i.e. we already had CL CM and CR, so CT is new .. should be wikified.


I am using a two-week old beta (2015.04.03). CL has the same alignment
as r and CR has the same aligned as l.

I understand the historic reason for the difference between left and
flushleft, but shouldn't the alignment keys within the same mechanism
have the same meaning? (Or was this a bug that has been corrected in the
current beta).


this doesn't look that unnatural does it?

\starttext

   \starttabulate[|l|lCL{darkred}|CM{darkgreen}CT{white}|rCR{darkblue}|r|]
   \NC first 1  \NC   left 1   \NC middle \NC 
 right 1   \NC last 1   \NC \NR
   \NC first 22 \NC \color[white]{left 22} \NC middle \NC 
\color[white]{right 22} \NC last 22  \NC \NR
   \NC first 333\NC   left 333 \NC middle \NC 
 right 333 \NC last 333 \NC \NR

   \stoptabulate

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] next beta

2015-04-15 Thread Aditya Mahajan

On Tue, 19 Mar 2013, Hans Hagen wrote:


\starttext

   \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||]
   \NC first \NC   left  \NC middle \NC right  \NC last \NC 
\NR
   \NC first \NC \color[white]{left} \NC middle \NC \color[white]{right} 
\NC last \NC \NR
   \NC first \NC   left  \NC middle \NC right  \NC last \NC 
\NR

   \stoptabulate

\stoptext

i.e. we already had CL CM and CR, so CT is new .. should be wikified.


I am using a two-week old beta (2015.04.03). CL has the same alignment as 
r and CR has the same aligned as l.


I understand the historic reason for the difference between left and 
flushleft, but shouldn't the alignment keys within the same mechanism have 
the same meaning? (Or was this a bug that has been corrected in the 
current beta).


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

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

[NTG-context] next beta

2015-04-15 Thread Hans Hagen

in next beta

\starttext
\pushpath[foo]
\pushpath[foo/bar]
\input test % . wins over /foo wins over foo/bar
\poppath
\poppath
\stoptext
--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] next beta

2013-05-28 Thread Hans Hagen

Hi,

New key A in next beta:

\setupbodyfont[tt]

\starttext

\starttabulate[|l|pA{nothyphenated,flushleft,stretch,verytolerant}|]
\NC tufte \NC \input tufte \NC \NR
\stoptabulate

\stoptext

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] next beta

2013-03-20 Thread Keith J. Schultz
Hi Hans, All,

I find this nomenclature confusing and a little confusing from a design 
standpoint!

1)  Color of the text background should be separate from the rest
  of the cell background

2) the names should reflect to what they apply

That said we should have:
CTBGC == Cell text background color
CTC  == Cell text color

CBGC == Cell background color 
  or
 CC  == Cell color

CBGCR   == Cell background color in the space right of text
CBGCM  == Cell background color in space middle of cell( above below 
text)
CBGCL   == Cell background color in the space right of text

True, these are a lot of options/parameters, yet it offers the most flexibility 
and
a cleaner interface. Furthermore, one can understand the names of the 
parameters.

Another, advantage is that one could and at a later point a feature for 
inverting the
color of the text according cell color and/or text background color.

regards
Keith.

Am 19.03.2013 um 23:46 schrieb Sietse Brouwer sbbrou...@gmail.com:

 i.e. we already had CL CM and CR, so CT is new .. should be wikified.
 
 The wiki [1] describes these \C* commands:
 
 \CRcolor is applied to the background of the text and the remaining
 space on the right;
 \CCcolor is applied to the background of the text only;
 \CMcolor is applied to the background of the text and the remaining
 space on both sides;
 \CLcolor is applied to the background of the text and the remaining
 space on the left.
 
 [1] http://wiki.contextgarden.net/Tabulate
 
 What does CT do differently than CC? It's not quite clear from the example.
 
 Cheers,
 

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

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


Re: [NTG-context] next beta (tabulate)

2013-03-20 Thread Alan BRASLAU
On Tue, 19 Mar 2013 23:46:35 +0100
Sietse Brouwer sbbrou...@gmail.com wrote:

 [1] http://wiki.contextgarden.net/Tabulate

There is \starttabulate and \starttable.
I understand that they use different mechanisms, even though their
syntax are parallel. The wiki page [1] warns against the use of macros
in tabulate, but this seems a bit obscure. Also, Tables_Overview
recommends tabulate for simple tables and flags both table and tables as
depreciated. I hesitate to add this information at the top of the wiki
pages: Tabulate, Table and Tables as I am not clear about the status
of these three mechanisms...

One question: is it possible to span columns using tabulate as in
table: \Use{n}[format]{data}?

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

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


Re: [NTG-context] next beta

2013-03-20 Thread Hans Hagen

On 3/20/2013 8:14 AM, Keith J. Schultz wrote:

Hi Hans, All,

I find this nomenclature confusing and a little confusing from a design 
standpoint!

1)  Color of the text background should be separate from the rest
   of the cell background

2) the names should reflect to what they apply

That said we should have:
CTBGC == Cell text background color
CTC  == Cell text color

CBGC == Cell background color
   or
  CC  == Cell color

CBGCR   == Cell background color in the space right of text
CBGCM  == Cell background color in space middle of cell( above below 
text)
CBGCL   == Cell background color in the space right of text

True, these are a lot of options/parameters, yet it offers the most flexibility 
and
a cleaner interface. Furthermore, one can understand the names of the 
parameters.


preamble scanning is already quite tricky and there was already CR CM CL 
so adding CT was a few lines of extra code


(i will probably make a key/val based variant some day but that is no 
fun either ... 10 lines of setup per table instead of a one line preeamble)


(and i'm forbidden to fundamentally change an important mechanism like 
tabulate right now as for sure it will break some things)



Another, advantage is that one could and at a later point a feature for 
inverting the
color of the text according cell color and/or text background color.

regards
Keith.

Am 19.03.2013 um 23:46 schrieb Sietse Brouwer sbbrou...@gmail.com:


i.e. we already had CL CM and CR, so CT is new .. should be wikified.


The wiki [1] describes these \C* commands:

\CR  color is applied to the background of the text and the remaining
space on the right;
\CC  color is applied to the background of the text only;
\CM  color is applied to the background of the text and the remaining
space on both sides;
\CL  color is applied to the background of the text and the remaining
space on the left.

[1] http://wiki.contextgarden.net/Tabulate

What does CT do differently than CC? It's not quite clear from the example.

Cheers,



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

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] next beta (tabulate)

2013-03-20 Thread Hans Hagen

On 3/20/2013 8:24 AM, Alan BRASLAU wrote:

On Tue, 19 Mar 2013 23:46:35 +0100
Sietse Brouwer sbbrou...@gmail.com wrote:


[1] http://wiki.contextgarden.net/Tabulate


There is \starttabulate and \starttable.
I understand that they use different mechanisms, even though their
syntax are parallel. The wiki page [1] warns against the use of macros
in tabulate, but this seems a bit obscure. Also, Tables_Overview
recommends tabulate for simple tables and flags both table and tables as
depreciated. I hesitate to add this information at the top of the wiki
pages: Tabulate, Table and Tables as I am not clear about the status
of these three mechanisms...


The obscurity comes from the fact that a tabulate is typeset multipass 
so macro definitions might have changed between first and last columns / 
rows. This is probably less of an issu ein mkiv.



One question: is it possible to span columns using tabulate as in
table: \Use{n}[format]{data}?


no. okay, I sometimes cheat: \rlap{data} works out well

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] next beta

2013-03-20 Thread Jonathan Barchi
On Wed, Mar 20, 2013 at 4:43 AM, Hans Hagen pra...@wxs.nl wrote:
 On 3/20/2013 8:14 AM, Keith J. Schultz wrote:

 Hi Hans, All,

 I find this nomenclature confusing and a little confusing from a design
 standpoint!

 1)  Color of the text background should be separate from the rest
of the cell background

 2) the names should reflect to what they apply

 That said we should have:
 CTBGC == Cell text background color
 CTC  == Cell text color

 CBGC == Cell background color
or
   CC  == Cell color

 CBGCR   == Cell background color in the space right of text
 CBGCM  == Cell background color in space middle of cell( above
 below text)
 CBGCL   == Cell background color in the space right of text

 True, these are a lot of options/parameters, yet it offers the most
 flexibility and
 a cleaner interface. Furthermore, one can understand the names of the
 parameters.


 preamble scanning is already quite tricky and there was already CR CM CL so
 adding CT was a few lines of extra code

 (i will probably make a key/val based variant some day but that is no fun
 either ... 10 lines of setup per table instead of a one line preeamble)

 (and i'm forbidden to fundamentally change an important mechanism like
 tabulate right now as for sure it will break some things)

Further, the declaration of a tabulate environment already tends to be pretty
tight on space, so IMO a little bit of obscurity in these parameters - provided
they stay documented - is an acceptable price to pay for keeping the keys to
two letters (three would probably be OK too, esp. for less frequently used
ones).

 Another, advantage is that one could and at a later point a feature for
 inverting the
 color of the text according cell color and/or text background color.

 regards
 Keith.

 Am 19.03.2013 um 23:46 schrieb Sietse Brouwer sbbrou...@gmail.com:

 i.e. we already had CL CM and CR, so CT is new .. should be wikified.

I've added this to the wiki.

Just to be clear: CT provides an alternate method to colorize the
text, instead of
using the standard \color[foo]{bar} - right? There is already a
section on using
the \color command to colorize the text, so I want to make sure I'm adding this
correctly as a complementary mechanism, or fix it if I misunderstood.

- Jon

 The wiki [1] describes these \C* commands:

 \CR  color is applied to the background of the text and the remaining
 space on the right;
 \CC  color is applied to the background of the text only;
 \CM  color is applied to the background of the text and the remaining
 space on both sides;
 \CL  color is applied to the background of the text and the remaining
 space on the left.

 [1] http://wiki.contextgarden.net/Tabulate

 What does CT do differently than CC? It's not quite clear from the
 example.

 Cheers,



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

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

 ___



 --

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] next beta

2013-03-20 Thread Hans Hagen

On 3/20/2013 5:36 PM, Jonathan Barchi wrote:


Just to be clear: CT provides an alternate method to colorize the
text, instead of
using the standard \color[foo]{bar} - right? There is already a
section on using
the \color command to colorize the text, so I want to make sure I'm adding this
correctly as a complementary mechanism, or fix it if I misunderstood.


indeed, a quick way to color a whole column

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] next beta

2013-03-19 Thread Hans Hagen

Hi

The next beta will have this (I needed it for a manual):

\starttext

\starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||]
\NC first \NC   left  \NC middle \NC 
right  \NC last \NC \NR
\NC first \NC \color[white]{left} \NC middle \NC 
\color[white]{right} \NC last \NC \NR
\NC first \NC   left  \NC middle \NC 
right  \NC last \NC \NR

\stoptabulate

\stoptext

i.e. we already had CL CM and CR, so CT is new .. should be wikified.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] next beta

2013-03-19 Thread Sietse Brouwer
 i.e. we already had CL CM and CR, so CT is new .. should be wikified.

The wiki [1] describes these \C* commands:

\CR  color is applied to the background of the text and the remaining
space on the right;
\CC  color is applied to the background of the text only;
\CM  color is applied to the background of the text and the remaining
space on both sides;
\CL  color is applied to the background of the text and the remaining
space on the left.

[1] http://wiki.contextgarden.net/Tabulate

What does CT do differently than CC? It's not quite clear from the example.

Cheers,

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

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


Re: [NTG-context] next beta

2013-03-19 Thread Hans Hagen

On 3/19/2013 11:46 PM, Sietse Brouwer wrote:

i.e. we already had CL CM and CR, so CT is new .. should be wikified.


The wiki [1] describes these \C* commands:

\CR  color is applied to the background of the text and the remaining
space on the right;
\CC  color is applied to the background of the text only;
\CM  color is applied to the background of the text and the remaining
space on both sides;
\CL  color is applied to the background of the text and the remaining
space on the left.

[1] http://wiki.contextgarden.net/Tabulate

What does CT do differently than CC? It's not quite clear from the example.


CT is the text color (foreground so to say)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___