ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Thick border of one side of TR/TD
@ 2016-05-17 12:47 Procházka Lukáš Ing.
  2016-05-17 21:09 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. @ 2016-05-17 12:47 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 720 bytes --]

Hello,

what is the easiest way to border table row along ONE side?

In my example - first row bottom and last row top?

All being typeset as TABLE (i.e. \bTABLE ... \bTR ... \bTD ...).

I played a bit with rulethickness for TD and/or TR but in all attempts the WHOLE border thickness is affected.

I guess that the bordering style of the table attached is often needed;
I would be nice to have something like \bTR[bottomrulethickness=thick] or something...

How to achieve this?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

[-- Attachment #2: Clipboard01.jpg --]
[-- Type: image/jpeg, Size: 3313 bytes --]

[-- Attachment #3: 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] 5+ messages in thread

* Re: Thick border of one side of TR/TD
  2016-05-17 12:47 Thick border of one side of TR/TD Procházka Lukáš Ing.
@ 2016-05-17 21:09 ` Wolfgang Schuster
  2016-05-17 22:17   ` Alan BRASLAU
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-05-17 21:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Procházka Lukáš Ing. <mailto:LPr@pontex.cz>
> 17. Mai 2016 um 14:47
> Hello,
>
> what is the easiest way to border table row along ONE side?
>
> In my example - first row bottom and last row top?
>
> All being typeset as TABLE (i.e. \bTABLE ... \bTR ... \bTD ...).
>
> I played a bit with rulethickness for TD and/or TR but in all attempts 
> the WHOLE border thickness is affected.
>
> I guess that the bordering style of the table attached is often needed;
> I would be nice to have something like \bTR[bottomrulethickness=thick] 
> or something...
>
> How to achieve this?
https://mailman.ntg.nl/pipermail/ntg-context/2016/084481.html

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1778 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] 5+ messages in thread

* Re: Thick border of one side of TR/TD
  2016-05-17 21:09 ` Wolfgang Schuster
@ 2016-05-17 22:17   ` Alan BRASLAU
  2016-05-17 22:25     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Alan BRASLAU @ 2016-05-17 22:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 17 May 2016 23:09:16 +0200
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> How to achieve this? 
> https://mailman.ntg.nl/pipermail/ntg-context/2016/084481.html

In case Wolfgang's answer was not clear: use "extreme" tables
(\startxtable) rather than "natural" tables (\bTABLE). This mechanism
uses 'framed' and is more flexible.

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
___________________________________________________________________________________

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

* Re: Thick border of one side of TR/TD
  2016-05-17 22:17   ` Alan BRASLAU
@ 2016-05-17 22:25     ` Wolfgang Schuster
  2016-05-22 11:42       ` Lukáš Procházka
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-05-17 22:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Alan BRASLAU <mailto:alan.braslau@cea.fr>
> 18. Mai 2016 um 00:17
> On Tue, 17 May 2016 23:09:16 +0200
>
> In case Wolfgang's answer was not clear: use "extreme" tables
> (\startxtable) rather than "natural" tables (\bTABLE). This mechanism
> uses 'framed' and is more flexible.
There is no need to switch from natural to extreme tables because both
tables uses framed for the cells. What is necessary to create individual
borders for a cell is either a metapost background where you can solid,
dashed etc. lines or custom frame types which can be defined with
the \install(left|right|top|bottom)framerenderer command.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1639 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] 5+ messages in thread

* Re: Thick border of one side of TR/TD
  2016-05-17 22:25     ` Wolfgang Schuster
@ 2016-05-22 11:42       ` Lukáš Procházka
  0 siblings, 0 replies; 5+ messages in thread
From: Lukáš Procházka @ 2016-05-22 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

Hello,

thanks for the answers.

So my solution now is:

----
\startuseMPgraphic{MP:ThickBtm}
   draw bottomboundary OverlayBox withpen pensquare scaled 1mm withcolor black;
   clip currentpicture to OverlayBox;
\stopuseMPgraphic

\installbottomframerenderer{Thick}{\useMPgraphic{MP:ThickBtm}}

\starttext
   \bTABLE[width=.4\textwidth,frame=on,align={middle,lohi}]
     \bTR[bottomframe=Thick]
       \bTD a \eTD\bTD b \eTD
     \eTR
     \bTR
       \bTD A \eTD\bTD B \eTD
     \eTR
   \eTABLE
\stoptext
----

Best regards,

Lukas


On Wed, 18 May 2016 00:25:26 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

>> Alan BRASLAU <mailto:alan.braslau@cea.fr>
>> 18. Mai 2016 um 00:17
>> On Tue, 17 May 2016 23:09:16 +0200
>>
>> In case Wolfgang's answer was not clear: use "extreme" tables
>> (\startxtable) rather than "natural" tables (\bTABLE). This mechanism
>> uses 'framed' and is more flexible.
> There is no need to switch from natural to extreme tables because both
> tables uses framed for the cells. What is necessary to create individual
> borders for a cell is either a metapost background where you can solid,
> dashed etc. lines or custom frame types which can be defined with
> the \install(left|right|top|bottom)framerenderer command.
>
> Wolfgang
>


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

[-- Attachment #2: TabThick2.mkiv --]
[-- Type: application/octet-stream, Size: 451 bytes --]

\startuseMPgraphic{MP:ThickBtm}
  draw bottomboundary OverlayBox withpen pensquare scaled 1mm withcolor black;
  clip currentpicture to OverlayBox;
\stopuseMPgraphic

\installbottomframerenderer{Thick}{\useMPgraphic{MP:ThickBtm}}

\starttext
  \bTABLE[width=.4\textwidth,frame=on,align={middle,lohi}]
    \bTR[bottomframe=Thick]
      \bTD a \eTD\bTD b \eTD
    \eTR
    \bTR
      \bTD A \eTD\bTD B \eTD
    \eTR
  \eTABLE
\stoptext

[-- Attachment #3: TabThick2.pdf --]
[-- Type: application/pdf, Size: 5421 bytes --]

[-- Attachment #4: 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] 5+ messages in thread

end of thread, other threads:[~2016-05-22 11:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 12:47 Thick border of one side of TR/TD Procházka Lukáš Ing.
2016-05-17 21:09 ` Wolfgang Schuster
2016-05-17 22:17   ` Alan BRASLAU
2016-05-17 22:25     ` Wolfgang Schuster
2016-05-22 11:42       ` Lukáš Procházka

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).