ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: vertical alignment of margindata
Date: Wed, 19 Mar 2014 15:57:57 +0100	[thread overview]
Message-ID: <5329B075.7070805@uni-bonn.de> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2014-03-19 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-19 14:57 Thomas A. Schmitz [this message]
2014-03-19 15:50 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5329B075.7070805@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).