* vertical alignment of margindata
@ 2014-03-19 14:57 Thomas A. Schmitz
2014-03-19 15:50 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Thomas A. Schmitz @ 2014-03-19 14:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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]
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: vertical alignment of margindata
2014-03-19 14:57 vertical alignment of margindata Thomas A. Schmitz
@ 2014-03-19 15:50 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-03-19 15:50 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-19 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 14:57 vertical alignment of margindata Thomas A. Schmitz
2014-03-19 15:50 ` Hans Hagen
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).