ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* two issues with xtables
@ 2016-02-16 19:11 Pablo Rodriguez
  2016-02-16 19:22 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2016-02-16 19:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

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

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-16 19:11 two issues with xtables Pablo Rodriguez
@ 2016-02-16 19:22 ` Wolfgang Schuster
  2016-02-16 19:59   ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-02-16 19:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1121 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2514 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-16 19:22 ` Wolfgang Schuster
@ 2016-02-16 19:59   ` Pablo Rodriguez
  2016-02-16 20:07     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2016-02-16 19:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-16 19:59   ` Pablo Rodriguez
@ 2016-02-16 20:07     ` Wolfgang Schuster
  2016-02-17 14:04       ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-02-16 20:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1524 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2781 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-16 20:07     ` Wolfgang Schuster
@ 2016-02-17 14:04       ` Pablo Rodriguez
  2016-02-17 14:08         ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2016-02-17 14:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-17 14:04       ` Pablo Rodriguez
@ 2016-02-17 14:08         ` Aditya Mahajan
  2016-02-17 14:22           ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2016-02-17 14:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 684 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-17 14:08         ` Aditya Mahajan
@ 2016-02-17 14:22           ` Pablo Rodriguez
  2016-02-17 14:34             ` Pablo Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2016-02-17 14:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: two issues with xtables
  2016-02-17 14:22           ` Pablo Rodriguez
@ 2016-02-17 14:34             ` Pablo Rodriguez
  0 siblings, 0 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2016-02-17 14:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-17 14:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-16 19:11 two issues with xtables Pablo Rodriguez
2016-02-16 19:22 ` Wolfgang Schuster
2016-02-16 19:59   ` Pablo Rodriguez
2016-02-16 20:07     ` Wolfgang Schuster
2016-02-17 14:04       ` Pablo Rodriguez
2016-02-17 14:08         ` Aditya Mahajan
2016-02-17 14:22           ` Pablo Rodriguez
2016-02-17 14:34             ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).