ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* alignment in TABLE
@ 2010-06-15 12:30 Peter Münster
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Münster @ 2010-06-15 12:30 UTC (permalink / raw)
  To: ConTeXt list

Hello,

Here is an alignment problem due to the rulethickness.
Is there a cleaner and more elegant solution?

\starttext
\section{First line shifted to the right by a bit less
  than 2pt}
\setupTABLE[offset=0pt, frame=off]
\setupTABLE[r][1][bottomframe=on, rulethickness=2pt]
\bTABLE
\bTR\bTD bla \eTD \eTR
\bTR\bTD bla \eTD \eTR
\eTABLE

\section{Workaround}
\setupTABLE[offset=0pt, frame=off, rulethickness=0pt]
\setupTABLE[r][1][bottomframe=on, rulethickness=2pt, loffset=-2pt]
\bTABLE
\bTR\bTD bla \eTD \eTR
\bTR\bTD bla \eTD \eTR
\eTABLE
\stoptext

TIA for any help!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___________________________________________________________________________________
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: alignment in TABLE
  2012-07-24 21:49 ` Rogers, Michael K
@ 2012-07-25  5:54   ` luigi scarso
  0 siblings, 0 replies; 5+ messages in thread
From: luigi scarso @ 2012-07-25  5:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Tue, Jul 24, 2012 at 11:49 PM, Rogers, Michael K <mroge02@emory.edu>wrote:

>
> On Jul 24, 2012, at 5:45 PM, Peter Münster wrote:
>
> > Hi,
> >
> > How could I please align vertically the 2 table cells in the following
> > example:
> >
> > --8<---------------cut here---------------start------------->8---
> > \starttext
> > \bTABLE
> > \bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
> > \eTABLE
> > \stoptext
> > --8<---------------cut here---------------end--------------->8---
> >
> > I've tried various combination with offset=0pt/overlay, strut=yes/no,
> > rulethickness=0pt, but without success...
> >
> > TIA for any help!
> > --
> >           Peter
>
> Try \inframed instead of \framed.  See
>
> http://wiki.contextgarden.net/Framed#Inline_Frames
>
> Michael
>
>
>

\starttext
\bTABLE
\bTR[offset=1ex] \bTD 1 \eTD \bTD \inframed{1 Über} \eTD \eTR
\eTABLE
\stoptext


\starttext
\bTABLE
\bTR \bTD \framed[frame=off]{1} \eTD \bTD \framed{1 Über} \eTD \eTR
\eTABLE
\stoptext


-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1730 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: alignment in TABLE
  2012-07-24 21:45 Peter Münster
  2012-07-24 21:49 ` Rogers, Michael K
@ 2012-07-24 23:25 ` Aditya Mahajan
  1 sibling, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2012-07-24 23:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

On Tue, 24 Jul 2012, Peter Münster wrote:

> Hi,
>
> How could I please align vertically the 2 table cells in the following
> example:
>
> --8<---------------cut here---------------start------------->8---
> \starttext
> \bTABLE
> \bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
> \eTABLE
> \stoptext
> --8<---------------cut here---------------end--------------->8---

Each cell of a TABLE is already a \frame, so you don't need to add a 
\framed inside a cell.

You can use location=(bottom|low|lohi|high|top) (as part of \setupTABLE) 
to vertically align frames.

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] 5+ messages in thread

* Re: alignment in TABLE
  2012-07-24 21:45 Peter Münster
@ 2012-07-24 21:49 ` Rogers, Michael K
  2012-07-25  5:54   ` luigi scarso
  2012-07-24 23:25 ` Aditya Mahajan
  1 sibling, 1 reply; 5+ messages in thread
From: Rogers, Michael K @ 2012-07-24 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Jul 24, 2012, at 5:45 PM, Peter Münster wrote:

> Hi,
>
> How could I please align vertically the 2 table cells in the following
> example:
>
> --8<---------------cut here---------------start------------->8---
> \starttext
> \bTABLE
> \bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
> \eTABLE
> \stoptext
> --8<---------------cut here---------------end--------------->8---
>
> I've tried various combination with offset=0pt/overlay, strut=yes/no,
> rulethickness=0pt, but without success...
>
> TIA for any help!
> --
>           Peter

Try \inframed instead of \framed.  See

http://wiki.contextgarden.net/Framed#Inline_Frames

Michael


________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___________________________________________________________________________________
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

* alignment in TABLE
@ 2012-07-24 21:45 Peter Münster
  2012-07-24 21:49 ` Rogers, Michael K
  2012-07-24 23:25 ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Münster @ 2012-07-24 21:45 UTC (permalink / raw)
  To: ConTeXt users

Hi,

How could I please align vertically the 2 table cells in the following
example:

--8<---------------cut here---------------start------------->8---
\starttext
\bTABLE
\bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
\eTABLE
\stoptext
--8<---------------cut here---------------end--------------->8---

I've tried various combination with offset=0pt/overlay, strut=yes/no,
rulethickness=0pt, but without success...

TIA for any help!
-- 
           Peter
___________________________________________________________________________________
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:[~2012-07-25  5:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-15 12:30 alignment in TABLE Peter Münster
2012-07-24 21:45 Peter Münster
2012-07-24 21:49 ` Rogers, Michael K
2012-07-25  5:54   ` luigi scarso
2012-07-24 23:25 ` Aditya Mahajan

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