On 3/19/2014 3:57 PM, Thomas A. Schmitz wrote:
Hi,

apologies for the slightly silly example, but I hope it shows my
problem: from processing an xml file, I have material which is best
typeset in some sort of table environment (I think). It also has some
sort of sectioning mechanism which is displayed as margindata. If you
typeset the example, you can see that these margindata are aligned to
the bottom line of the table. Is there any way to make them align to the
top? Bonus points if they are aligned with the content of the first
table row (and not with the top border of the table).

Thanks and all best

Thomas

\setuppapersize [A5]

\setupbodyfont [times,12pt]

\definemargindata [SYM]      [left] [hoffset=1.5em,style=bold]

method=top

\starttext

\SYM{1} test

\blank[line]

\SYM{2} \dontleavehmode \startxtable
     \startxrow
         \startxcell
             Hello
         \stopxcell
         \startxcell
             I want to make this line slightly longer to see what
happens if it exceeds the width of the paper.
         \stopxcell
     \stopxrow
     \startxrow
         \startxcell
             World
         \stopxcell
         \startxcell
             this line can be shorter.
         \stopxcell
     \stopxrow
\stopxtable

\blank[line]

\SYM{3} \dontleavehmode \bTABLE
     \bTR
         \bTD
             Hello
         \eTD
         \bTD
             I want to make this line slightly longer to see what
happens if it exceeds the width of the paper.
         \eTD
     \eTR
     \bTR
         \bTD
             World
         \eTD
         \bTD
             this line can be shorter.
         \eTD
     \eTR
\eTABLE

\blank[line]

\SYM{4} \dontleavehmode \starttabulate[|lw(2cm)|p|]
\NC Hello \NC I want to make this line slightly longer to see what
happens if it exceeds the width of the paper. \NC \NR
\NC World \NC this line can be shorter. \NC\NR
\stoptabulate

\stoptext
___________________________________________________________________________________

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
___________________________________________________________________________________



--

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

Reply via email to