Re: [NTG-context] margintext and floats in the margin

2020-01-31 Thread Jan Willem Flamma
Dear Otared,

Please have a look at:

https://www.mail-archive.com/ntg-context@ntg.nl/msg63579.html 
<https://www.mail-archive.com/ntg-context@ntg.nl/msg63579.html>

Kind regards,
Jan Willem Flamma


> On 29 Jan 2020, at 09:30, Otared Kavian  wrote:
> 
> Hi,
> 
> Is it possible to put some short notes in the margin, together with a float?
> Below is an example, which puts the float on top of the text in the margin.
> The option « stack=yes » works fine for the margintext when there is no 
> float, but it does not seems to be an option which puts the figure and 
> margintext in a sort of stack.
> 
> Thanks for any advice: Otared K.
> 
> % begin margintext-float.tex
> \setuppapersize[A4][A4]
> \setuplayout[
>   width=120mm,
>   leftmargin=25mm,rightmargin=50mm]
>   
> \setupmargindata[margintext]
>   [align=raggedright,
>   stack=yes,
>   location=outer,
>   style={\rm}]
> 
> \showframe
> \startbuffer[sine]
>   numeric u ; u = 5mm ;
>   draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
>   withcolor transparent(1,.5,darkblue) 
>   withpen pencircle scaled 2pt ;
> \stopbuffer
> 
> \starttext
> 
> This is some text.\margintext{This is a remark in the margin.}
> This is some more text.\margintext{This text is also in the margin.}
> \startplacefigure[location=outermargin,number=no]
> \scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
> \stopplacefigure
> 
> \stoptext
> % end margintext-float.tex
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] margintext and floats in the margin

2020-01-29 Thread Otared Kavian
Hi,

Is it possible to put some short notes in the margin, together with a float?
Below is an example, which puts the float on top of the text in the margin.
The option « stack=yes » works fine for the margintext when there is no float, 
but it does not seems to be an option which puts the figure and margintext in a 
sort of stack.

Thanks for any advice: Otared K.

% begin margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
width=120mm,
leftmargin=25mm,rightmargin=50mm]

\setupmargindata[margintext]
[align=raggedright,
stack=yes,
location=outer,
style={\rm}]

\showframe
\startbuffer[sine]
numeric u ; u = 5mm ;
draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
withcolor transparent(1,.5,darkblue) 
withpen pencircle scaled 2pt ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the margin.}
This is some more text.\margintext{This text is also in the margin.}
\startplacefigure[location=outermargin,number=no]
\scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
\stopplacefigure

\stoptext
% end margintext-float.tex

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] margintext and floats in the margin

2020-01-26 Thread Otared Kavian
Hi,

Is it possible to put some short notes in the margin, together with a float?
Below is an example, which puts the float on top of the text in the margin.
The option « stack=yes » works fine for the margintext when there is no float, 
but it does not seems to be an option which puts the figure and margintext in a 
sort of stack.

Thanks for any advice: Otared K.

% begin margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
width=120mm,
leftmargin=25mm,rightmargin=50mm]

\setupmargindata[margintext]
[align=raggedright,
stack=yes,
location=outer,
style={\rm}]

\showframe
\startbuffer[sine]
numeric u ; u = 5mm ;
draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
withcolor transparent(1,.5,darkblue) 
withpen pencircle scaled 2pt ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the margin.}
This is some more text.\margintext{This text is also in the margin.}
\startplacefigure[location=outermargin,number=no]
\scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
\stopplacefigure

\stoptext
% end margintext-float.tex

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Empty \margintext causes Lua error

2019-03-06 Thread Henri Menke
Dear list,

MWE:

\starttext
\margintext{}
\stoptext

Error:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:736: table index is 
nil

Please fix.
Cheers, Henri

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with heads using margintext alternative

2017-07-30 Thread Hans Hagen

On 7/30/2017 9:30 AM, Pablo Rodriguez wrote:

On 07/29/2017 11:44 PM, Hans Hagen wrote:

On 7/29/2017 7:34 PM, Rik wrote:

Indeed, the extra line before the text occurs only when inter-paragraph
whitespace is set and start/stop is used. This does indeed appear to be
something that can be repaired.

to some extend ... i added some hack in the upcoming beta btu keep in
mind that a section head carries some information so there's always
something (invisible) there that can generate whitespace


Many thanks for this fix and the one with itlc and ligatures, Hans.

I’m afraid I’m not able to align text in margin data:

 \setuphead
 [chapter]
 [style=\tfxx,
  number=no,
  alternative=margintext,
  align=middle]
 \setupmargindata
 [inmargin]
 [style=\tfxx,
  align=middle]
 \starttext
 \chapter{Chapter}
 \input jojomayer
 \blank
 \inmargin{marginal\\data\blank}\input jojomayer
 \stoptext

Is this a bug or am I missing something?

\setuplayout
  [backspace=4cm,
   margin=3cm,
   margindistance=5mm,
   width=middle]

\showframe

\setuphead
[chapter]
[style=\tfxx,
 number=no,
 alternative=margintext,
 align=middle]

\setupmargindata
[inmargin]
[width=3cm,
 style=\tfxx,
 margin=normal, % makes distance work
 distance=1cm]

\setupmarginframed
[inmargin]
[width=2cm,
 frame=on,
 align=middle]

\starttext
\chapter{Chapter}
\input jojomayer
\blank
\inmargin{marginal\\data\blank}\input jojomayer

\inleft{L}test
\inright{R}test

\definemargindata[Xinleft] [width=3cm,location=left, align=flushleft]
\definemargindata[Xinright][width=3cm,location=right,align=flushright]

\Xinleft {L}test
\Xinright{R}test

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-30 Thread Pablo Rodriguez
On 07/29/2017 11:44 PM, Hans Hagen wrote:
> On 7/29/2017 7:34 PM, Rik wrote:
>> Indeed, the extra line before the text occurs only when inter-paragraph 
>> whitespace is set and start/stop is used. This does indeed appear to be 
>> something that can be repaired.
> to some extend ... i added some hack in the upcoming beta btu keep in 
> mind that a section head carries some information so there's always 
> something (invisible) there that can generate whitespace

Many thanks for this fix and the one with itlc and ligatures, Hans.

I’m afraid I’m not able to align text in margin data:

\setuphead
[chapter]
[style=\tfxx,
 number=no,
 alternative=margintext,
 align=middle]
\setupmargindata
[inmargin]
[style=\tfxx,
 align=middle]
\starttext
\chapter{Chapter}
\input jojomayer
\blank
\inmargin{marginal\\data\blank}\input jojomayer
\stoptext

Is this a bug or am I missing something?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Hans Hagen

On 7/29/2017 7:34 PM, Rik wrote:

Willi, Pablo, and list,

Willi,

I understand that the overprint of the margin can be managed by changing 
the default layout. The left margin box displayed by \showframe using 
the default layout clearly shows the margin extending past the edge of 
the page.


I would think that the default layout should be usable as is, which for 
this purpose means that the defined text areas are contained within the 
page boundary. If the default layout is not intended to be usable, it 
should be so documented. I will gladly update the wiki if this is the 
case, but first I would like authoritative confirmation that this is the 
case.


it's all on purpose (and explained several times in mail irr)

Indeed, the extra line before the text occurs only when inter-paragraph 
whitespace is set and start/stop is used. This does indeed appear to be 
something that can be repaired.
to some extend ... i added some hack in the upcoming beta btu keep in 
mind that a section head carries some information so there's always 
something (invisible) there that can generate whitespace


(of course one can always jump back)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Rik Kabel

On 2017-07-29 14:18, Pablo Rodriguez wrote:

On 07/29/2017 07:34 PM, Rik wrote:

Pablo,

The \inmargin commands do suffer from the same problem; you need simply
change marg  to marg marg marg to see it.

I simply meant that both margin and paragraph start at the same page
height. This is different from \chapter.

Pablo


Ahh, yes. That is correct.

--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Pablo Rodriguez
On 07/29/2017 07:34 PM, Rik wrote:
> Pablo,
> 
> The \inmargin commands do suffer from the same problem; you need simply 
> change marg  to marg marg marg to see it.

I simply meant that both margin and paragraph start at the same page
height. This is different from \chapter.

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Rik

Willi, Pablo, and list,

Willi,

I understand that the overprint of the margin can be managed by changing 
the default layout. The left margin box displayed by \showframe using 
the default layout clearly shows the margin extending past the edge of 
the page.


I would think that the default layout should be usable as is, which for 
this purpose means that the defined text areas are contained within the 
page boundary. If the default layout is not intended to be usable, it 
should be so documented. I will gladly update the wiki if this is the 
case, but first I would like authoritative confirmation that this is the 
case.


Indeed, the extra line before the text occurs only when inter-paragraph 
whitespace is set and start/stop is used. This does indeed appear to be 
something that can be repaired.


Pablo,

The \inmargin commands do suffer from the same problem; you need simply 
change marg  to marg marg marg to see it. The problem is not that text 
is set outside the margin. It is all set in the margin. The problem is 
that the left margin is laid out over the page edge, and text set in the 
part of the margin that is off the page is lost.


--
Rik

On 2017-07-29 13:10, Pablo Rodriguez wrote:

On 07/23/2017 09:48 PM, Rik Kabel wrote:

The following example demonstrates two problems with
alternative=margintext in \setuphead:

  1. When used with start/stop sectioning, text following the title may
 be set on the wrong line.

Hi Rik,

the issue comes with \startparagraph and sectioning commands (other
margindata are fine):

 \setuphead
 [chapter]
 [alternative=margintext]
 \starttext
 \chapter{Chapter}
 \startparagraph\input jojomayer\stopparagraph
 \blank
 \inleft{marg}\startparagraph\input jojomayer\stopparagraph
 \blank
 \inright{marg}\startparagraph\input jojomayer\stopparagraph
 \blank
 \inouter{marg}\startparagraph\input jojomayer\stopparagraph
 \ininner{marg}\startparagraph\input jojomayer\stopparagraph
 \blank
 \inmargin{marg}\startparagraph\input jojomayer\stopparagraph
 \blank
 \inother{marg}\startparagraph\input jojomayer\stopparagraph
 \stoptext

But \inmargin has no problem with margin

  2. Without regard to the type of sectioning, margintext titles may
 spill over the left edge of the margin and beyond the page frame.

I cannot align them either. I don’t know what we may be missing here.

Pablo



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with heads using margintext alternative

2017-07-29 Thread Pablo Rodriguez
On 07/23/2017 09:48 PM, Rik Kabel wrote:
> The following example demonstrates two problems with
> alternative=margintext in \setuphead:
> 
>  1. When used with start/stop sectioning, text following the title may
> be set on the wrong line.

Hi Rik,

the issue comes with \startparagraph and sectioning commands (other
margindata are fine):

\setuphead
[chapter]
    [alternative=margintext]
\starttext
\chapter{Chapter}
\startparagraph\input jojomayer\stopparagraph
\blank
\inleft{marg}\startparagraph\input jojomayer\stopparagraph
\blank
\inright{marg}\startparagraph\input jojomayer\stopparagraph
\blank
\inouter{marg}\startparagraph\input jojomayer\stopparagraph
\ininner{marg}\startparagraph\input jojomayer\stopparagraph
\blank
\inmargin{marg}\startparagraph\input jojomayer\stopparagraph
\blank
\inother{marg}\startparagraph\input jojomayer\stopparagraph
\stoptext

But \inmargin has no problem with margin
>  2. Without regard to the type of sectioning, margintext titles may
> spill over the left edge of the margin and beyond the page frame.

I cannot align them either. I don’t know what we may be missing here.

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with headers using margintext alternative

2017-07-29 Thread Willi Egger
Hi,

I am not a guru, but I think that you should setup your pagesize properly. For 
the calculation of the paper-width margin widths are not used. The elements for 
calculations are the backspace and makeupwidth and the rest to sum up to the 
paperwidth as given in the definition of the papersize. Margins are kind of 
virtual. If text spills out of the margin then the backspace and the margin 
have to be adjusted.

e.g. 
\setuplayout
[location=middle,
 topspace=1.5cm,
 backspace=2cm,
 margin=18mm,
 width=middle]

Location=middle tells only, that the lettersized paper should placed centered 
onto the lettersized paper, oversized.

When I comment the line with insidesection= I get a consistent result i.e. that 
the text of the sections with start\stop in the text body starts one line to 
low compared to the traditional way of coding. 
Otherwise with this insidesection={\blank[-line]}  it appears, that the text 
next uneven section numbers is typeset at the expected place, where text next 
to even section numbers is not. — This might indeed be something which Hans 
should look at.


Best

Will
> On 29 Jul 2017, at 16:52, Rik <r...@panix.com> wrote:
> 
> Bump.
> 
> The problem persists two updates later.
> 
> In the picture below, the green line represents the edge of the page.
> 
> 
> 
> Does anyone else get the same result? 
> -- 
> Rik
> 
> On 2017-07-23 15:48, Rik Kabel wrote:
>> The following example demonstrates two problems with alternative=margintext 
>> in \setuphead:
>>  • When used with start/stop sectioning, text following the title may be 
>> set on the wrong line.
>>  • Without regard to the type of sectioning, margintext titles may spill 
>> over the left edge of the margin and beyond the page frame.
>> \setuppapersize
>> [letter]
>> [letter,oversized]
>> \setuplayout
>> [location={middle,middle}]
>> \showframe
>> \setuphead
>> [chapter]
>> [number=no,
>>  alternative=inmargin]
>> \setuphead
>> [section]
>> [
>>  alternative=margintext,
>>  insidesection={\blank[-line]},
>> ]
>> \starttext
>>   \starttitle
>>   [title={Problem description}]
>>   \bgroup
>>   \setupwhitespace[medium]
>>   \startparagraph
>>   This demonstrates two problems with
>>   \type{alternative=margintext} in \tex{setuphead}:
>>   \startitemize[packed,n]
>>   \startitem
>> When used with start/stop sectioning, text following the
>> title may be set on the wrong line.
>>   \stopitem
>>   \startitem
>> Without regard to the type of sectioning, \type{margintext}
>> titles may spill over the left edge of the margin and beyond
>> the page frame. (Oddly, \tex{paperwidth} is less than the
>> sum of \tex{makeupwidth} and the margin widths and
>> distances for both letter and A4 paper.)
>>   \stopitem
>>   \stopitemize
>>   \stopparagraph
>>   \startparagraph
>>   With start/stop sectioning, the text following the section
>>   title may begin one line below the start of the title. That
>>   can be remedied if there is no whitespace between paragraphs
>>   with \type{insidesection={\blank[-line]}}, but the remedy
>>   fails when there is whitespace, and increasing the correction
>>   has no effect. With traditional sectioning, the text appears
>>   baseline|-|aligned with the heading, as expected. The
>>   the correction has no effect in any case with traditional
>>   sectioning.
>>   \stopparagraph
>>   \startparagraph
>>   It makes no difference in any test how the paragraphs are
>>   delimited—blank lines, \tex{bpar}/\tex{epar},
>>   \tex{startparagraph}/\tex{stopparagraph}, or \tex{par}.
>>   \stopparagraph
>>   \startparagraph
>>   Tested with standalone beta 2017.07.17 00:20.
>>   \stopparagraph
>>   \egroup
>>   \page
>>   \startchapter
>>   [title={Start/stop sectioning}]
>>   \startsection[title={Mis\-cel\-la\-neous quo\-ta\-tions}]
>>   \startparagraph
>>   \input jojomayer
>>   \stopparagraph
>>   \startparagraph
>>   \input carrol \wordright{No indent no whitespace.}
>>   \stopparagraph
>>   \stopsection
>>   \bgroup
>>   \setupwhitespace[medium]
>>   \startsection[title={Miscellaneous quotations}]
>>   \startparagraph
>>   \input jojomayer
>>   \stopparagraph
>>   \startparagraph
>>   \input carrol \wordright{No indent medium whitespac

Re: [NTG-context] Problems with headers using margintext alternative

2017-07-29 Thread Rik

Bump.

The problem persists two updates later.

In the picture below, the green line represents the edge of the page.



Does anyone else get the same result?
--
Rik

On 2017-07-23 15:48, Rik Kabel wrote:


The following example demonstrates two problems with 
alternative=margintext in \setuphead:


 1. When used with start/stop sectioning, text following the title may
be set on the wrong line.
 2. Without regard to the type of sectioning, margintext titles may
spill over the left edge of the margin and beyond the page frame.

\setuppapersize
[letter]
[letter,oversized]
\setuplayout
[location={middle,middle}]
\showframe
\setuphead
[chapter]
[number=no,
 alternative=inmargin]
\setuphead
[section]
[
 alternative=margintext,
 insidesection={\blank[-line]},
]
\starttext
  \starttitle
  [title={Problem description}]
  \bgroup
  \setupwhitespace[medium]
  \startparagraph
  This demonstrates two problems with
  \type{alternative=margintext} in \tex{setuphead}:
  \startitemize[packed,n]
  \startitem
When used with start/stop sectioning, text following the
title may be set on the wrong line.
  \stopitem
  \startitem
Without regard to the type of sectioning, \type{margintext}
titles may spill over the left edge of the margin and beyond
the page frame. (Oddly, \tex{paperwidth} is less than the
sum of \tex{makeupwidth} and the margin widths and
distances for both letter and A4 paper.)
  \stopitem
  \stopitemize
  \stopparagraph
  \startparagraph
  With start/stop sectioning, the text following the section
  title may begin one line below the start of the title. That
  can be remedied if there is no whitespace between paragraphs
  with \type{insidesection={\blank[-line]}}, but the remedy
  fails when there is whitespace, and increasing the correction
  has no effect. With traditional sectioning, the text appears
  baseline|-|aligned with the heading, as expected. The
  the correction has no effect in any case with traditional
  sectioning.
  \stopparagraph
  \startparagraph
  It makes no difference in any test how the paragraphs are
  delimited—blank lines, \tex{bpar}/\tex{epar},
  \tex{startparagraph}/\tex{stopparagraph}, or \tex{par}.
  \stopparagraph
  \startparagraph
  Tested with standalone beta 2017.07.17 00:20.
  \stopparagraph
  \egroup
  \page
  \startchapter
  [title={Start/stop sectioning}]
  \startsection[title={Mis\-cel\-la\-neous quo\-ta\-tions}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{No indent no whitespace.}
  \stopparagraph
  \stopsection
  \bgroup
  \setupwhitespace[medium]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{No indent medium whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \bgroup
  \setupindenting[yes,small]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{Small indent no whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \bgroup
  \setupwhitespace[medium]
  \setupindenting[yes,small]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{Small indent medium whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \stopchapter
  \chapter{Traditional sectioning}
  \section{Mis\-cel\-la\-neous quo\-ta\-tions}
  \input jojomayer \par
  \input carrol  \wordright{No indent no whitespace.} \par
  No indent no whitespace. \par
  \bgroup
  \setupwhitespace[medium]
  \section{Miscellaneous quotations}
  \input jojomayer \par
  \input carrol \wordright{No indent medium whitespace.} \par
  \egroup
  \bgroup
  \setupindenting[yes,small]
  \section{Miscellaneous quotations}
  \input jojomayer \par
  \input carrol \wordright{Small indent no whitespace.} \par
  \egroup
  \bgroup
  \setupwhitespace[medium]
  \setupindenting[yes,small]
  \section{Miscellaneous quotations}
  \input jojomayer \par
  \input carrol \wordright{Small indent medium whitespace.} \par
  \egroup
\showlayout
\stoptext


--
Rik

[NTG-context] Problems with headers using margintext alternative

2017-07-23 Thread Rik Kabel
The following example demonstrates two problems with 
alternative=margintext in \setuphead:


1. When used with start/stop sectioning, text following the title may
   be set on the wrong line.
2. Without regard to the type of sectioning, margintext titles may
   spill over the left edge of the margin and beyond the page frame.

   \setuppapersize
[letter]
[letter,oversized]
   \setuplayout
[location={middle,middle}]
   \showframe
   \setuphead
[chapter]
[number=no,
 alternative=inmargin]
   \setuphead
[section]
[
 alternative=margintext,
 insidesection={\blank[-line]},
]
   \starttext
  \starttitle
  [title={Problem description}]
  \bgroup
  \setupwhitespace[medium]
  \startparagraph
  This demonstrates two problems with
  \type{alternative=margintext} in \tex{setuphead}:
  \startitemize[packed,n]
  \startitem
When used with start/stop sectioning, text following the
title may be set on the wrong line.
  \stopitem
  \startitem
Without regard to the type of sectioning, \type{margintext}
titles may spill over the left edge of the margin and beyond
the page frame. (Oddly, \tex{paperwidth} is less than the
sum of \tex{makeupwidth} and the margin widths and
distances for both letter and A4 paper.)
  \stopitem
  \stopitemize
  \stopparagraph
  \startparagraph
  With start/stop sectioning, the text following the section
  title may begin one line below the start of the title. That
  can be remedied if there is no whitespace between paragraphs
  with \type{insidesection={\blank[-line]}}, but the remedy
  fails when there is whitespace, and increasing the correction
  has no effect. With traditional sectioning, the text appears
  baseline|-|aligned with the heading, as expected. The
  the correction has no effect in any case with traditional
  sectioning.
  \stopparagraph
  \startparagraph
  It makes no difference in any test how the paragraphs are
  delimited—blank lines, \tex{bpar}/\tex{epar},
  \tex{startparagraph}/\tex{stopparagraph}, or \tex{par}.
  \stopparagraph
  \startparagraph
  Tested with standalone beta 2017.07.17 00:20.
  \stopparagraph
  \egroup
  \page
  \startchapter
  [title={Start/stop sectioning}]
  \startsection[title={Mis\-cel\-la\-neous quo\-ta\-tions}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{No indent no whitespace.}
  \stopparagraph
  \stopsection
  \bgroup
  \setupwhitespace[medium]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{No indent medium whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \bgroup
  \setupindenting[yes,small]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{Small indent no whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \bgroup
  \setupwhitespace[medium]
  \setupindenting[yes,small]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
  \input jojomayer
  \stopparagraph
  \startparagraph
  \input carrol \wordright{Small indent medium whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \stopchapter
  \chapter{Traditional sectioning}
  \section{Mis\-cel\-la\-neous quo\-ta\-tions}
  \input jojomayer \par
  \input carrol  \wordright{No indent no whitespace.} \par
  No indent no whitespace. \par
  \bgroup
  \setupwhitespace[medium]
  \section{Miscellaneous quotations}
  \input jojomayer \par
  \input carrol \wordright{No indent medium whitespace.} \par
  \egroup
  \bgroup
  \setupindenting[yes,small]
  \section{Miscellaneous quotations}
  \input jojomayer \par
  \input carrol \wordright{Small indent no whitespace.} \par
  \egroup
  \bgroup
  \setupwhitespace[medium]
  \setupindenting[yes,small]
  \section{Miscellaneous quotations}
  \input jojomayer \par
  \input carrol \wordright{Small indent medium whitespace.} \par
  \egroup
   \showlayout
   \stoptext


--
Rik
___
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

[NTG-context] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Philipp A.
example:

\enableregime[utf-8]
\mainlanguage[de]

\starttext

\subject{Works}

1
\margintext{a}

\subject{Doesn’t work}

\margintext{b}

\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
___

Re: [NTG-context] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Hans Hagen

On 3/19/2015 11:39 AM, Philipp A. wrote:

|\enableregime[utf-8]


^^^ no need for that


\mainlanguage[de]

\starttext

\subject{Works}

1
\margintext{a}

\subject{Doesn’t work}

\margintext{b}


\margintext{c} \strut


\stoptext|


margintexts need to bind to something

--

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

Re: [NTG-context] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Philipp A.
thank you!

what’s \strut? can’t find it in the wiki…

Hans Hagen pra...@wxs.nl schrieb am Do., 19. März 2015 um 11:52 Uhr:

 On 3/19/2015 11:39 AM, Philipp A. wrote:
  |\enableregime[utf-8]

 ^^^ no need for that

  \mainlanguage[de]
 
  \starttext
 
  \subject{Works}
 
  1
  \margintext{a}
 
  \subject{Doesn’t work}
 
  \margintext{b}

 \margintext{c} \strut

  \stoptext|

 margintexts need to bind to something

 --

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

Re: [NTG-context] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Hans Hagen

On 3/19/2015 1:55 PM, Philipp A. wrote:

thank you!

what’s \strut? can’t find it in the wiki…


add \showstruts at the top of your document and you'll see them

(add \showmakup and you will be even more enlightened about tex's 
whatabouts)



Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl schrieb am Do., 19.
März 2015 um 11:52 Uhr:

On 3/19/2015 11:39 AM, Philipp A. wrote:
  |\enableregime[utf-8]

^^^ no need for that

  \mainlanguage[de]
 
  \starttext
 
  \subject{Works}
 
  1
  \margintext{a}
 
  \subject{Doesn’t work}
 
  \margintext{b}

\margintext{c} \strut

  \stoptext|

margintexts need to bind to something

--

--__--__-
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
http://www.pragma-ade.com
   | www.pragma-pod.nl
http://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 mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/__listinfo/ntg-context
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/
http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net

___



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

[NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Devendra Ghate
If \thinrule is used in \margintext, context gives error. \hairline 
works fine.



*Details:* ConTeXt  ver: 2013.01.10 01:04 MKIV  fmt: 2013.1.13

*Error Message:*
! Undefined control sequence.

system   tex  error on line 2 in file a.tex: Undefined control 
sequence ...


1 \starttext
2   \margintext{\thinrule A margintext with thinrule.}
3 %\margintext{\hairline A margintext with hairline.}
4 \stoptext
5


\thinrule -\strut \bgroup \edef \p_height
{\directthinrulesparameter \c!hei...
argument \thinrule
 A margintext with thinrule.
\doifelsenothing #1-\edef \m_syst_string_one {#1
 }\ifx 
\m_syst_string_one \e...

\typo_margins_data_yes_indeed ...felsenothing {#3}
  \donefalse \donetrue 
\ifdo...

l.2 ...text{\thinrule A margintext with thinrule.}


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\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
___

Re: [NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen

On 1/24/2013 10:26 AM, Devendra Ghate wrote:

If \thinrule is used in \margintext, context gives error. \hairline
works fine.


You can add an \unexpanded in pack-mrl.mkiv and remake the format:

\unexpanded\def\thinrule

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


Re: [NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen

On 1/24/2013 10:26 AM, Devendra Ghate wrote:


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\stoptext


btw, after fixing it this becomes a MNWE as a \margintext without 
anything following it will never show up.


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


[NTG-context] \margintext overflows in bottom margin

2013-01-17 Thread Devendra Ghate

I am using*\margintext* for comments in the margin. When a comment falls on
the last line of a page, I have to manually add 
*\setupmargintext[voffset=-2em]

*everytime to stop it from flowing into bottom margin.
Is there a way to automatically offset margin text to stop it from 
flowing into bottom margin.
I took a look at *typo-mar.mkiv* to see if an option exists to correct 
this without any success.


*MWE*

\setuplayout[height=6cm,width=5cm,rightmargin=5cm]
\unprotect
% setup the side notes
\setupmargindata
[margintext]
[location=outer,
 width=4.5cm,
 align=flushleft,
 stack=yes]

\starttext
  \showframe
  A \crlf A\crlf A\crlf
 %\setupmargindata[margintext][voffset=-2em]
  A\margintext{A margin text.A margin text.A margin text.A margin text.}
\stoptext

Devendra
___
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] margintext and placefigure

2012-11-11 Thread Andy Thomas
Dear all.

I am having some trouble with figure placement in the margin. If you use the 
following code, please try to comment out first one and then both '\input 
knuth'. Somehow, the figure is not placed in the margin, but the center of the 
page, if a page breaks occurs close by. Is there a way to avoid that and have 
the figure always placed in the margin?

Thanks,
Andy

-- code starts ---

\useMPlibrary[dum] % To get dummy figures

\definepapersize[wissenschaft][width=170mm, height=240mm]
\setuppapersize [wissenschaft]

\setuplayout[topspace=40pt,
 header=0pt,
 headerdistance=0pt,
 height=560pt,
 footer=0pt,
 %
 backspace=42pt,
 leftmargin=0pt,
 width=280pt,
 rightmargindistance=20pt,
 rightmargin=100pt]

\setupmargindata
[margintext]
[location=outer,
 width=100pt,
 stack=continue]
 
\starttext
%
\chapter{One}
\input tufte

\input knuth

\input knuth

\section{Figures}
%
\margintext
{\startplacefigure[ title={A small rectangle put in the margin.}]
  \externalfigure[dummy]
\stopplacefigure}

\input tufte

\stoptext

-- code ends ---


background: I started working on my module (caesar) again, since the ipad is 
supposed to render mathml now. That means, I could try the context epub output 
with formulas on an actual device (cp. http://support.apple.com/kb/HT5321)
___
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
___


Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Marco Patzer
2012-11-11 Andy Thomas:

 Is there a way to avoid that and have the figure always placed in
 the margin?

\startplacefigure [title=Foo, location=margin]
\stopplacefigure


Marco

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


Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Andy Thomas
That was my first choice as well. But it does not play nice with margintext. 
Try putting \margintext{bla} directly after the chapter. stack=continue is 
somehow ignored. Also, the figure is moved all the way up, which is strange.

On Nov 11, 2012, at 8:52 PM, Marco Patzer wrote:

 2012-11-11 Andy Thomas:
 
 Is there a way to avoid that and have the figure always placed in
 the margin?
 
 \startplacefigure [title=Foo, location=margin]
 \stopplacefigure
 
 
 Marco
 
 ___
 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
 ___

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


Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Marco Patzer
2012-11-11 Andy Thomas:

 That was my first choice as well. But it does not play nice with
 margintext.

The both use two different mechanisms AFAIK, and there's no or not
much communication between them. Mixing both leads to overprinted
content.

 Also, the figure is moved all the way up, which is strange.

That's intended. The margin texts stack up from the top to the
bottom. For figures this usually does makes sense since the figures
are referred to by number anyway.


Marco

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


Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Andy Thomas

On Nov 11, 2012, at 9:23 PM, Marco Patzer wrote:

 2012-11-11 Andy Thomas:
 
 That was my first choice as well. But it does not play nice with
 margintext.
 
 The both use two different mechanisms AFAIK, and there's no or not
 much communication between them. Mixing both leads to overprinted
 content.

So, can I modify the original code to work as intended?

 
 Also, the figure is moved all the way up, which is strange.
 
 That's intended. The margin texts stack up from the top to the
 bottom. For figures this usually does makes sense since the figures
 are referred to by number anyway.

That would even be preferred, if all marginals stack from the top down 
(http://archive.contextgarden.net/message/20120529.093731.5306286a.en.html)

Andy

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


Re: [NTG-context] pushing margintext up

2012-05-29 Thread Andy Thomas
On 28.05.2012, at 19:02, Hans Hagen wrote:

 On 28-5-2012 18:44, Philipp Gesang wrote:
 Hi Andy,
 
 On 2012-05-27 17:57, Andy Thomas wrote:
 Hello,
 
 could someone point out to me, where in the standalone
 installation the 'margin float placement' algorithm lives.
 
 it depends:
   Floats: strc-flt.mkvi
   Side floats: page-sid.mkiv
   Margin data (as in your example): typo-mar.mkiv
 
 and their respective .lua companions. I suspect you will be
 interested in the function „inject()“ (part of the finalizer) in
 typo-mar.lua.
 
 keep in mind that this is not finished yet i.e. there is no api at the lua 
 end yet
 
 is there a way for margintext to 'respect' the lower border
 of the page and push the margintext up, pushing other margintexts
 upwards while doing so?
 
 +1, I’m curious too whether this can be done.
 
 maybe some day when I'm looking into the page builder code
 
 Hans

Is it possible, as a workaround for now, to make every \margintext call to 
virtually occur at the first line of the page? Then, they are stacked in 
sequence in the margin from the top of the page down, but on the page they 
occur. 

Thank you for help,
Andy 


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

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


Re: [NTG-context] pushing margintext up

2012-05-29 Thread Hans Hagen

On 29-5-2012 11:37, Andy Thomas wrote:

On 28.05.2012, at 19:02, Hans Hagen wrote:


On 28-5-2012 18:44, Philipp Gesang wrote:

Hi Andy,

On 2012-05-27 17:57, Andy Thomas wrote:

Hello,

could someone point out to me, where in the standalone
installation the 'margin float placement' algorithm lives.


it depends:
   Floats: strc-flt.mkvi
   Side floats: page-sid.mkiv
   Margin data (as in your example): typo-mar.mkiv

and their respective .lua companions. I suspect you will be
interested in the function „inject()“ (part of the finalizer) in
typo-mar.lua.


keep in mind that this is not finished yet i.e. there is no api at the lua end 
yet


is there a way for margintext to 'respect' the lower border
of the page and push the margintext up, pushing other margintexts
upwards while doing so?


+1, I’m curious too whether this can be done.


maybe some day when I'm looking into the page builder code

Hans


Is it possible, as a workaround for now, to make every \margintext call to 
virtually occur at the first line of the page? Then, they are stacked in 
sequence in the margin from the top of the page down, but on the page they 
occur.


not in the next few weeks as we don't change anything fundamental while 
in tex live code freeze / going current .. only fixes now


Hans


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


Re: [NTG-context] pushing margintext up

2012-05-29 Thread Philipp Gesang
On 2012-05-29 11:37, Andy Thomas wrote:
 On 28.05.2012, at 19:02, Hans Hagen wrote:
 
  On 28-5-2012 18:44, Philipp Gesang wrote:
  Hi Andy,
  
  On 2012-05-27 17:57, Andy Thomas wrote:
  Hello,
  
  could someone point out to me, where in the standalone
  installation the 'margin float placement' algorithm lives.
  
  it depends:
Floats: strc-flt.mkvi
Side floats: page-sid.mkiv
Margin data (as in your example): typo-mar.mkiv
  
  and their respective .lua companions. I suspect you will be
  interested in the function „inject()“ (part of the finalizer) in
  typo-mar.lua.
  
  keep in mind that this is not finished yet i.e. there is no api at the lua 
  end yet
  
  is there a way for margintext to 'respect' the lower border
  of the page and push the margintext up, pushing other margintexts
  upwards while doing so?
  
  +1, I’m curious too whether this can be done.
  
  maybe some day when I'm looking into the page builder code
  
  Hans
 
 Is it possible, as a workaround for now, to make every
 \margintext call to virtually occur at the first line of the
 page? Then, they are stacked in sequence in the margin from the
 top of the page down, but on the page they occur.

Don’t marginblocks behave like that?

···8···
\definepapersize[wissenschaft][width=170mm,height=240mm]
\setuppapersize [wissenschaft]

\setuplayout
[topspace=40pt,
 header=0pt,
 headerdistance=0pt,
 backspace=42pt,
 leftmargin=0pt,
 width=280pt,
 height=560pt,
 rightmargindistance=20pt,
 rightmargin=100pt,
 footer=0pt]

\setuppagenumbering[alternative=doublesided]

%% Margin block setup.
\setupmarginblock[
  style=bold,
  align=outer,
]

\startbuffer [mblock_demo]
  This is too low, if there are many words in this note.
\stopbuffer

\starttext \showframe

\input tufte
\input tufte %% first one’s at top of first page
\input tufte\startmarginblock\getbuffer[mblock_demo]\stopmarginblock

\page %% next one at top of second, third one immediately below
\input tufte\startmarginblock\getbuffer[mblock_demo]\stopmarginblock
\input tufte\startmarginblock\getbuffer[mblock_demo]\stopmarginblock
\input tufte

\stoptext
···8···

Regards,
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp61UXngPQ8T.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] pushing margintext up

2012-05-28 Thread Philipp Gesang
Hi Andy,

On 2012-05-27 17:57, Andy Thomas wrote:
 Hello,
 
 could someone point out to me, where in the standalone
 installation the 'margin float placement' algorithm lives.

it depends:
  Floats: strc-flt.mkvi
  Side floats: page-sid.mkiv
  Margin data (as in your example): typo-mar.mkiv

and their respective .lua companions. I suspect you will be
interested in the function „inject()“ (part of the finalizer) in
typo-mar.lua.

  is there a way for margintext to 'respect' the lower border
  of the page and push the margintext up, pushing other margintexts
  upwards while doing so?

+1, I’m curious too whether this can be done.

Regards
Philipp


  
  example:
  
  \definepapersize[wissenschaft][width=170mm,height=240mm]
  \setuppapersize [wissenschaft]
  
  \setuplayout
  [topspace=40pt,
   header=0pt,
   headerdistance=0pt,
   backspace=42pt,
   leftmargin=0pt,
   width=280pt,
   height=560pt,
   rightmargindistance=20pt,
   rightmargin=100pt,
   footer=0pt]
  
  \setuppagenumbering[alternative=doublesided]
  
  \setupmargindata [margintext]
 [location=outer,
 width=100pt,
 align=flushouter]
  
  \starttext \showframe
  
  \input tufte
  \input tufte
  \input tufte\margintext{This is too low, if there are many words in this 
  note.}
  
  \stoptext
  
  Kind of hard to explain, I hope the example makes everything clear. 
  
  Andy
  
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpJCKWzSwsBv.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] pushing margintext up

2012-05-28 Thread Hans Hagen

On 28-5-2012 18:44, Philipp Gesang wrote:

Hi Andy,

On 2012-05-27 17:57, Andy Thomas wrote:

Hello,

could someone point out to me, where in the standalone
installation the 'margin float placement' algorithm lives.


it depends:
   Floats: strc-flt.mkvi
   Side floats: page-sid.mkiv
   Margin data (as in your example): typo-mar.mkiv

and their respective .lua companions. I suspect you will be
interested in the function „inject()“ (part of the finalizer) in
typo-mar.lua.


keep in mind that this is not finished yet i.e. there is no api at the 
lua end yet



is there a way for margintext to 'respect' the lower border
of the page and push the margintext up, pushing other margintexts
upwards while doing so?


+1, I’m curious too whether this can be done.


maybe some day when I'm looking into the page builder code

Hans

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


Re: [NTG-context] pushing margintext up

2012-05-27 Thread Andy Thomas
Hello,

could someone point out to me, where in the standalone installation the 'margin 
float placement' algorithm lives.

Thanks,
Andy

On May 23, 2012, at 4:34 PM, Andy Thomas wrote:

 Hello all,
 
 is there a way for margintext to 'respect' the lower border of the page and 
 push the margintext up, pushing other margintexts upwards while doing so?
 
 example:
 
 \definepapersize[wissenschaft][width=170mm,height=240mm]
 \setuppapersize [wissenschaft]
 
 \setuplayout
 [topspace=40pt,
  header=0pt,
  headerdistance=0pt,
  backspace=42pt,
  leftmargin=0pt,
  width=280pt,
  height=560pt,
  rightmargindistance=20pt,
  rightmargin=100pt,
  footer=0pt]
 
 \setuppagenumbering[alternative=doublesided]
 
 \setupmargindata [margintext]
[location=outer,
width=100pt,
align=flushouter]
 
 \starttext \showframe
 
 \input tufte
 \input tufte
 \input tufte\margintext{This is too low, if there are many words in this 
 note.}
 
 \stoptext
 
 Kind of hard to explain, I hope the example makes everything clear. 
 
 Andy
 
 ___
 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
 ___

___
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] pushing margintext up

2012-05-23 Thread Andy Thomas
Hello all,

is there a way for margintext to 'respect' the lower border of the page and 
push the margintext up, pushing other margintexts upwards while doing so?

example:

\definepapersize[wissenschaft][width=170mm,height=240mm]
\setuppapersize [wissenschaft]

\setuplayout
 [topspace=40pt,
  header=0pt,
  headerdistance=0pt,
  backspace=42pt,
  leftmargin=0pt,
  width=280pt,
  height=560pt,
  rightmargindistance=20pt,
  rightmargin=100pt,
  footer=0pt]

\setuppagenumbering[alternative=doublesided]

\setupmargindata [margintext]
[location=outer,
width=100pt,
align=flushouter]

\starttext \showframe

\input tufte
\input tufte
\input tufte\margintext{This is too low, if there are many words in this note.}

\stoptext

Kind of hard to explain, I hope the example makes everything clear. 

Andy

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


Re: [NTG-context] margintext writes text out of range

2010-12-07 Thread Wolfgang Schuster

Am 07.12.2010 um 05:52 schrieb Jonas Stein:

 example here:
 http://wiki.contextgarden.net/Reference/en/margintext
 
 is is cut of.
 I saw the same in the documentation of the fixme module. [1]
 
 probably because the margin is larger than the backspace
 
 How should this be fixed in the wikipages?
 
 ...and how in own documents?

\setuplayout[margin=2cm]

or

\setuplayout[leftmargin=2cm]

or

\setuplayout
  [backspace=4cm,
   margin=3cm,
   ...]

The important part is to have a leftmargin which is narrower
than the backspace, you can do this by increasing the backspace
or decreasing the left margin.

Wolfgang

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


Re: [NTG-context] margintext writes text out of range

2010-12-07 Thread Jonas Stein
 example here:
 http://wiki.contextgarden.net/Reference/en/margintext
 
 is is cut of.
 I saw the same in the documentation of the fixme module. [1]
 
 probably because the margin is larger than the backspace
 
 How should this be fixed in the wikipages?
 
 ...and how in own documents?

 \setuplayout[margin=2cm]

 or

 \setuplayout[leftmargin=2cm]

 or

 \setuplayout
   [backspace=4cm,
margin=3cm,
...]

 The important part is to have a leftmargin which is narrower
 than the backspace, you can do this by increasing the backspace
 or decreasing the left margin.

 Wolfgang

Thank you. It works well now.
I have put your knowledge to the wiki too.


-- 
Jonas Stein n...@jonasstein.de

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


Re: [NTG-context] margintext writes text out of range

2010-12-06 Thread Hans Hagen

On 5-12-2010 3:55, Jonas Stein wrote:

example here:
http://wiki.contextgarden.net/Reference/en/margintext

is is cut of.
I saw the same in the documentation of the fixme module. [1]


probably because the margin is larger than the backspace

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


Re: [NTG-context] margintext writes text out of range

2010-12-06 Thread Jonas Stein
 example here:
 http://wiki.contextgarden.net/Reference/en/margintext

 is is cut of.
 I saw the same in the documentation of the fixme module. [1]

 probably because the margin is larger than the backspace

How should this be fixed in the wikipages?

...and how in own documents?

-- 
Jonas Stein n...@jonasstein.de

___
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] margintext writes text out of range

2010-12-04 Thread Jonas Stein
example here:
http://wiki.contextgarden.net/Reference/en/margintext

is is cut of. 
I saw the same in the documentation of the fixme module. [1]

[1] http://modules.contextgarden.net/fixme fixme.pdf page 3

-- 
Jonas Stein n...@jonasstein.de

___
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] \margintext

2010-11-07 Thread Herbert Voss
I have two questions to \margintext

\setupinmargin[left][separator=:,width=2cm,line=2]
\starttext
%foo
\margintext[left]{margin text}
\input knuth
\stoptext

this works fine, but when I uncomment the line with
%foo, then the marginal note is placed in
second line of the following paragraph. Why?
Must \margintext always be the first statement in a
paragraph?

I do not understand the meaning of the optional argument
separator?

TeXLive2010 with tlcontrib

Herbert
___
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
___


Re: [NTG-context] margintext in mkii and mkiv

2010-11-06 Thread Vladimir Lomov
** Hans Hagen [2010-11-05 13:54:06 +0100]:

 On 5-11-2010 5:51, Vladimir Lomov wrote:
Hi.

Consider the attached example. When compiled with mkii (texexec) I get
text in margin while if I compile the file with mkiv (context) I get
only text with nothing in margin.

I'm using context minimal:
$ context --version | grep version
MTXrun | current version: 2010.11.03 19:42

Did I miss something?
 
 put this in cont-new.mkiv
 
 \def\doflushmargincontents
   {\ifconditional\margintextcollected
  \expandafter\flushmargincontentsindeed
\fi}
Thanks Hans. (If I add them into cont-new.mkiv the file would be
overwritten next time when I run update procedure, is it right?)

 (when cleaning up status variables something got lost)
That's Ok.

I hope that these lines will in proper place in next beta, it's not
hurry.

-- 
If I am elected, the concrete barriers around the WHITE HOUSE will be
replaced by tasteful foam replicas of ANN MARGARET!
___
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] \margintext

2010-11-06 Thread Herbert Voss
The documentation says, that this should work, but it didn't:

\starttext
\margintext{foo}bar baz
\stoptext

However, in the documentation the example also didn't show the
margin text (p 64).

Herbert
___
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
___


Re: [NTG-context] \margintext

2010-11-06 Thread Aditya Mahajan

On Sat, 6 Nov 2010, Herbert Voss wrote:


The documentation says, that this should work, but it didn't:

\starttext
\margintext{foo}bar baz
\stoptext

However, in the documentation the example also didn't show the
margin text (p 64).


There was an email about it yesterday with a fix. Did you see that?

Aditya
___
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
___


Re: [NTG-context] \margintext

2010-11-06 Thread Herbert Voss
Am 06.11.2010 22:28, schrieb Aditya Mahajan:
 On Sat, 6 Nov 2010, Herbert Voss wrote:
 
 The documentation says, that this should work, but it didn't:

 \starttext
 \margintext{foo}bar baz
 \stoptext

 However, in the documentation the example also didn't show the
 margin text (p 64).
 
 There was an email about it yesterday with a fix. Did you see that?

yes, but forget it ...

thanks
Herbert
___
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
___


Re: [NTG-context] margintext in mkii and mkiv

2010-11-05 Thread Hans Hagen

On 5-11-2010 5:51, Vladimir Lomov wrote:

Hi.

Consider the attached example. When compiled with mkii (texexec) I get
text in margin while if I compile the file with mkiv (context) I get
only text with nothing in margin.

I'm using context minimal:
$ context --version | grep version
MTXrun | current version: 2010.11.03 19:42

Did I miss something?


put this in cont-new.mkiv

\def\doflushmargincontents
  {\ifconditional\margintextcollected
 \expandafter\flushmargincontentsindeed
   \fi}

(when cleaning up status variables something got lost)


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


[NTG-context] margintext in mkii and mkiv

2010-11-04 Thread Vladimir Lomov
Hi.

Consider the attached example. When compiled with mkii (texexec) I get
text in margin while if I compile the file with mkiv (context) I get
only text with nothing in margin.

I'm using context minimal:
$ context --version | grep version
MTXrun | current version: 2010.11.03 19:42

Did I miss something?

---
WBR, Vladimir Lomov


ex1.tex
Description: TeX 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
___


Re: [NTG-context] margintext style and more

2006-09-12 Thread Hans Hagen
Peter Rolf wrote:

 
 I don't think that there is any bookkeeping of the inmargin stuff. But
 maybe I'm wrong.
   
\repositionmarginboxtrue

experimental for a few years now -) 

Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] margintext style and more

2006-09-11 Thread batela
Dear Sirs

I have two questions for you:

1. How i can changing the margintext style?

2. In some cases  I found a overlapping between to consecutive 
margintext notes and between a sequence of a inmargin and margintext 
notes. How I can fix this?

Thanks in advance


Em 10/09/2006, às 9:16, batela escreveu:

 For changing inmargin style I  make

 \setupinmargin
[right]
[style=\MarginStyle]

 Are there a similar solution for \margintext?

 thanks


 Em 10/09/2006, às 3:48, batela escreveu:

 Dear Sirs

 Is there any way to format margintext notes. I want to justify and
 apply this  format to my margin notes:

 \def\MarginStyle{%
\switchtobodyfont[7pt]\setupinterlinespace[line=9pt]%
\setuphz\setupprot\emergencystretch=.5em
\setuptolerance[{horizontal,verytolerant}]%
 }

 Thanks in advance

 Jorge

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


 Um Abraço,

 Jorge Magalhães

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


Abraços,

Jorge Manuel de Almeida Magalhães

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] margintext style and more

2006-09-11 Thread Peter Rolf
batela wrote:
 Dear Sirs
 
 I have two questions for you:
 
 1. How i can changing the margintext style?

As I understand it, you also use \setupinmargin for this (see context
manual, top of page 63).

 2. In some cases  I found a overlapping between to consecutive 
 margintext notes and between a sequence of a inmargin and margintext 
 notes. How I can fix this?

I don't think that there is any bookkeeping of the inmargin stuff. But
maybe I'm wrong.

Greetings, Peter

 Thanks in advance
 
 
 Em 10/09/2006, às 9:16, batela escreveu:
 
 For changing inmargin style I  make

 \setupinmargin
[right]
[style=\MarginStyle]

 Are there a similar solution for \margintext?

 thanks


 Em 10/09/2006, às 3:48, batela escreveu:

 Dear Sirs

 Is there any way to format margintext notes. I want to justify and
 apply this  format to my margin notes:

 \def\MarginStyle{%
\switchtobodyfont[7pt]\setupinterlinespace[line=9pt]%
\setuphz\setupprot\emergencystretch=.5em
\setuptolerance[{horizontal,verytolerant}]%
 }

 Thanks in advance

 Jorge

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


 Um Abraço,

 Jorge Magalhães

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


 Abraços,
 
 Jorge Manuel de Almeida Magalhães
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] margintext style

2006-09-10 Thread batela
Dear Sirs

Is there any way to format margintext notes. I want to justify and 
apply this  format to my margin notes:

\def\MarginStyle{%
   \switchtobodyfont[7pt]\setupinterlinespace[line=9pt]%
   \setuphz\setupprot\emergencystretch=.5em
   \setuptolerance[{horizontal,verytolerant}]%
}

Thanks in advance

Jorge

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] margintext style

2006-09-10 Thread batela
For changing inmargin style I  make

\setupinmargin
   [right]
   [style=\MarginStyle]

Are there a similar solution for \margintext?

thanks


Em 10/09/2006, às 3:48, batela escreveu:

 Dear Sirs

 Is there any way to format margintext notes. I want to justify and
 apply this  format to my margin notes:

 \def\MarginStyle{%
\switchtobodyfont[7pt]\setupinterlinespace[line=9pt]%
\setuphz\setupprot\emergencystretch=.5em
\setuptolerance[{horizontal,verytolerant}]%
 }

 Thanks in advance

 Jorge

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


Um Abraço,

Jorge Magalhães

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] margintext drifting down the page

2003-11-05 Thread Duncan Hothersall
Hello all.

I have an odd behaviour which I think I just about understand but can't fix.

I use \margintext{Note that ...} to place little notes into the margin 
next to things in the running text. It has worked beautifully for all my 
content up till now, but I now find myself wanting to put a note next to 
a \bTABLE...\eTABLE and the margin text now drifts down so that it is 
beside the content that follows the table, rather than next to the table 
itself.

So,

\margintext{This works well}
Normal running text takes a margintext without problems...
but

\margintext{This drifts down below the table}
\bTABLE
\bTR ...
...
\eTABLE
The margintext appears next to this normal running text...
I'm using the latest stable release.

I'd be happy with a workaround that enables me to have this appearance. 
I have tried putting a \strut in front of the table but this only shifts 
the margintext up a little bit. Is there something else I can do? (I 
tried wrapping the table in a \vtop, and in an \hbox, and in an 
invisible \frame, but no luck.)

Thanks for any help.

Duncan

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context