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
___