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
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).
On Tue, Jul 24, 2012 at 11:49 PM, Rogers, Michael K
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
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
On Wed, Jul 25 2012, Aditya Mahajan wrote:
Each cell of a TABLE is already a \frame, so you don't need to add a \framed inside a cell.
Indeed, but at some point during my experimentation, I found differences with or without inner frame... I think, I've found, what had bothered me: strut=yes has no effect when offset=overlay. A strut has to be added manually. This is what I have now, and it finally works: \starttext \framed[height=5cm, offset=overlay]{% \bTABLE[offset=overlay] \bTR \bTD \strut 1~ \eTD \bTD[height=max, align=flushleft] \strut 1 Über\crlf 1 and 1 are aligned! \vfill \rightaligned{bla} \eTD \eTR \eTABLE} \stoptext -- Peter
On 25-7-2012 12:31, Peter Münster wrote:
On Wed, Jul 25 2012, Aditya Mahajan wrote:
Each cell of a TABLE is already a \frame, so you don't need to add a \framed inside a cell.
Indeed, but at some point during my experimentation, I found differences with or without inner frame...
I think, I've found, what had bothered me: strut=yes has no effect when offset=overlay. A strut has to be added manually. This is what I have now, and it finally works:
\starttext \framed[height=5cm, offset=overlay]{% \bTABLE[offset=overlay] \bTR \bTD \strut 1~ \eTD \bTD[height=max, align=flushleft] \strut 1 Über\crlf 1 and 1 are aligned! \vfill \rightaligned{bla} \eTD \eTR \eTABLE} \stoptext
in that case \begstrut ... \endstrut (you can also play with overlay=0pt or none) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Am 25.07.2012 um 12:31 schrieb Peter Münster:
On Wed, Jul 25 2012, Aditya Mahajan wrote:
Each cell of a TABLE is already a \frame, so you don't need to add a \framed inside a cell.
Indeed, but at some point during my experimentation, I found differences with or without inner frame...
I think, I've found, what had bothered me: strut=yes has no effect when offset=overlay. A strut has to be added manually. This is what I have now, and it finally works:
The strut option is disabled when you use offset=overlay, you want offset=none or offset=0pt. Wolfgang
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
luigi scarso
-
Peter Münster
-
Rogers, Michael K
-
Wolfgang Schuster