[NTG-context] how to keep inmargin texts above the base of the page

2011-02-27 Thread Dinh Tran
Hello.

If I have a lot of inmargin or margintext, they will extend into the base of
the page (defined by bottomspace).  Is there a way to remedy this by some
setup?  This was compiled with xetex option b/c inmargin stack doesn't fully
work in mkiv.

Thanks,
Dinh

--
\setuppapersize[letter][letter]

% margins etc.
\setuplayout[location=middle,
  topspace=1.87cm,
  header=0cm,
  width=middle,
  cutspace=3.1cm, %From right edge of paper to right of text area
  height=fit,
  backspace=6.1cm, %from left edge of paper to left of text area
  rightmargin=1.5cm,
  leftmargin=3.7cm,
  leftmargindistance=1cm, %from right of leftmargin to left of textbody
  bottomspace=1.62cm,
  footer=1.49cm,
%  grid=yes, % to align text on a grid.  If this is on, setupwhitespace and
setupinterlinespace doesn't work.
  setup=strict]

\showframe

\setupinmargin[stack=yes]

\starttext

\dorecurse{25}{This is some text in the page.\margintext{This is text in the
margin.} \par}

\stoptext


sample-inmargin_exceed_boundary.pdf
Description: Adobe PDF document


sample-margintext_exceed_boundary.pdf
Description: Adobe PDF document
___
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
___


[NTG-context] inmargin problem in mkiv with luatex when specified with stack

2011-02-24 Thread Dinh Tran
Hello,

Running the following context code doesn't seem to work with context
--luatex.  Works with context --xetex however.

--
\setuplayout[backspace=5cm,margin=3cm,margindistance=.5cm,width=middle]
\setupinmargin[stack=yes]

\starttext

A\margintext{A} B\margintext{B}.

C\inmargin{C} D\inmargin{D}.

\stoptext

-
I get the following error:

11   C\inmargin{C} D\inmargin{D}.
12
13 \stoptext
14


\ctxcommand ...\directlua \zerocount {commands.#1}

\@@ar@@1 ...se \currentposition \previousposition
  {\scratchskip \dimexpr
\MP...
\redoloop -\expandrecursecontent
  \endofloop
to be read again
   {
inserted text
2
\dodoloop ...mexpr \recurselevel +\plusone \relax
  }
...
l.11 C
  \inmargin{C} D\inmargin{D}.

%Dinh


stack_inmargin-xetex.pdf
Description: Adobe PDF document


stack_inmargin-luatex.pdf
Description: Adobe PDF document
___
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
___