Re: [NTG-context] two issues with xtables

2016-02-17 Thread Pablo Rodriguez
On 02/17/2016 03:22 PM, Pablo Rodriguez wrote:
> [...]
> I wonder whether a common \installframerenderer would make sense here.
> It would simplify code writing. Or at least I think it may be useful.

Excuse my nonsense. I have just realized that lines must be different
for top/bottom and left/right.

Sorry for the noise,


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two issues with xtables

2016-02-17 Thread Pablo Rodriguez
On 02/17/2016 03:08 PM, Aditya Mahajan wrote:
> On Wed, 17 Feb 2016, Pablo Rodriguez wrote:
>> [..]
>> I’m afraid that only leftframe seems to work with latest beta:
>>
>>\installleftframerenderer{big}{\blackrule[height=\overlayheight,
>>width=3\linewidth]}
> 
> You need to add \installrightframerenderer, \installtopframerenderer, and 
> \installbottomframerenderer.

Many thanks for your help, Aditya.

Of course, you’re right. I totally overlooked it. I misread
\installframerenderer.

I wonder whether a common \installframerenderer would make sense here.
It would simplify code writing. Or at least I think it may be useful.

Many thanks for your help (and sorry for still being asleep  :-)),

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two issues with xtables

2016-02-17 Thread Aditya Mahajan

On Wed, 17 Feb 2016, Pablo Rodriguez wrote:


On 02/16/2016 09:07 PM, Wolfgang Schuster wrote:

Pablo Rodriguez 16. Februar 2016 um 20:59
[...]
MetaPost is unknown to me. How would it be with this minimal sample?


There is a second method which let you create your own argument for the
leftframe,
rightframe etc. keys.


Many thanks for your reply, Wolfgang.

I’m afraid that only leftframe seems to work with latest beta:

   \installleftframerenderer{big}{\blackrule[height=\overlayheight,
   width=3\linewidth]}


You need to add \installrightframerenderer, \installtopframerenderer, and 
\installbottomframerenderer.


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
___

Re: [NTG-context] two issues with xtables

2016-02-17 Thread Pablo Rodriguez
On 02/16/2016 09:07 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Februar 2016 um 20:59
>> [...]
>> MetaPost is unknown to me. How would it be with this minimal sample?
> 
> There is a second method which let you create your own argument for the
> leftframe,
> rightframe etc. keys.

Many thanks for your reply, Wolfgang.

I’m afraid that only leftframe seems to work with latest beta:

\installleftframerenderer{big}{\blackrule[height=\overlayheight,
width=3\linewidth]}

\starttext

\framed{Text}

\framed[leftframe=big]{Text}

\framed[bottomframe=big]{Text}

\framed[rightframe=big]{Text}

\framed[topframe=big]{Text}

\stoptext

I have no idea about what I may be doing wrong.

Many thanks for your help,


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two issues with xtables

2016-02-16 Thread Wolfgang Schuster

Pablo Rodriguez 
16. Februar 2016 um 20:59
On 02/16/2016 08:22 PM, Wolfgang Schuster wrote:

Pablo Rodriguez 16. Februar 2016 um 20:11
[...]
Well, I thought location would center the table. Before and after (with
\startalign) crash compilation. Aligning the whole table doesn’t seem to
make any difference. Sorry, but how can I center the table and not its
contents?

Use

\startlinealignment[middle]
or
\startplacetable[location={force,none}]


Many thanks for your reply, Wolfgang.

Only the second option works with the real table. The first one crashes
compilation.


The second issue is about rulethickness: would it be possible to specify
different dimensions for each frame (top, bottom, left, right)?

Disable the normal frame and use a metapost background with
different values for all borders.


MetaPost is unknown to me. How would it be with this minimal sample?
There is a second method which let you create your own argument for the 
leftframe,

rightframe etc. keys.

\installleftframerenderer 
{small}{\blackrule[height=\overlayheight,width=1\linewidth]}

\installleftframerenderer{medium}{\blackrule[height=\overlayheight,width=2\linewidth]}
\installleftframerenderer   
{big}{\blackrule[height=\overlayheight,width=3\linewidth]}


\starttext

\framed{Text}

\framed[leftframe=small]{Text}

\framed[leftframe=medium]{Text}

\framed[leftframe=big]{Text}

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two issues with xtables

2016-02-16 Thread Pablo Rodriguez
On 02/16/2016 08:22 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Februar 2016 um 20:11
>> [...]
>> Well, I thought location would center the table. Before and after (with
>> \startalign) crash compilation. Aligning the whole table doesn’t seem to
>> make any difference. Sorry, but how can I center the table and not its
>> contents?
> 
> Use
> 
> \startlinealignment[middle]
> or
> \startplacetable[location={force,none}]

Many thanks for your reply, Wolfgang.

Only the second option works with the real table. The first one crashes
compilation.

>> The second issue is about rulethickness: would it be possible to specify
>> different dimensions for each frame (top, bottom, left, right)?
> Disable the normal frame and use a metapost background with
> different values for all borders.

MetaPost is unknown to me. How would it be with this minimal sample?

\starttext
\startxtable[bottomframe=on, topframe=on, rulethickness=2em]
\startxrow
\startxcell test \stopxcell
\stopxrow
\stopxtable
\stoptext

Many thanks for your help,


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] two issues with xtables

2016-02-16 Thread Wolfgang Schuster

Pablo Rodriguez 
16. Februar 2016 um 20:11
Dear list,

I have the following table:

\starttext
\startalign[center]
\startxtable[location=middle, frame=off, bottomframe=on,
topframe=on, rulethickness=2em,
%~ before={\startalign[center]}, after={\stopalign}
]
\startxrow
\startxcell test \stopxcell
\stopxrow
\stopxtable
\stopalign
\stoptext

Well, I thought location would center the table. Before and after (with
\startalign) crash compilation. Aligning the whole table doesn’t seem to
make any difference. Sorry, but how can I center the table and not its
contents?

Use

\startlinealignment[middle]
   \startxtable
...
\stopxtable
\stoplinealignment

or

\startplacetable[location={force,none}]
   \startxtable
...
\stopxtable
\stopplacetable

The second issue is about rulethickness: would it be possible to specify
different dimensions for each frame (top, bottom, left, right)?

Disable the normal frame and use a metapost background with
different values for all borders.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___