Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
Hi Hraban,

Thanks for the hint… indeed I did see that \ColWidth command but didn't think 
about its definition… Sorry!

Now with \ColWidth defined, your code works fine and it has the advantage that 
the text of the sidenote begins in the margin at the level where the \footnote 
command appears. However, it cannot control the overflow of a sidenote to the 
next page, whereas the code given by Hans can do that. I admit that this does 
not happen very often since a well designed text should not have too many long 
sidenotes…

In case other users would like to use your code, I put the whole example below.

Best regards: Otared
%%% sidenotes, or footnotes in the margin
%%% example given by Hraban:
%%% here the tweaking of the width of the sidenote is turned off
%%% remove the comment where there is \ColWidth
%%% in order to adapt to your layout
\showframe
\setuplayout
[cutspace=7cm,
width=middle,
margin=5cm,
margindistance=7mm]

%\def\ColWidth{57mm}
\setupmargindata[inmargin]
[location=right,
stack=continue,
align=flushright,
]

\setupmargindata[inouter]
[location=right,
stack=continue,
align=flushright,
]

\def\FNVOffset{0} % Negative vertical offset of footnotes in lines
% Manual tweaking was necessary for a while, when stacking didn’t work reliably.

\def\MarginNote#1{%
\inmargin[
voffset=\dimexpr-\FNVOffset\lineheight\relax,
%   width=\ColWidth,
align=flushleft,
]{%
\inframed[
%   width=\ColWidth,
align=right,
frame=off,
offset=overlay,
strut=yes,
]{#1}%
}%
}

\define\PlaceFootnote{%
\inmargin[
voffset=\dimexpr-\FNVOffset\lineheight\relax,
%   width=\ColWidth,
]{%
\vtop{\placelocalnotes[footnote][before=,after=]}}%
}



\def\FNo#1{{#1~}}
% I never managed to get number and text in consecutive lines without indented 
text
% or at least a constant whitespace after the number.


\setupnote[footnote]
[location=text,
bodyfont=,
indenting=no,
before={\noindentation},
next=\PlaceFootnote,
]

\setupnotation[footnote]
[way=bychapter,
align=flushleft,
indenting=no,
location=serried,
alternative=serried,
width=broad,
numbercommand=\FNo,
] % footnote text

\setuptexttexts[margin][]
[%
{\framed[
align={flushright,bottom},
frame=off,
height=\textheight,
%   width=\ColWidth,
]{%
\strut\vfill\placenotes[footnote]}}%
]

\starttext
 \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
\recurselevel}} }
test
\dorecurse{10}{
test \footnote{\input ward }\input tufte.tex \par
test \footnote{This is a note about Ward, who says: \par \input 
ward.tex} \input ward.tex \par
test \footnote{This is a note about Donald Knuth.} \input knuth.tex \par
}
This is a last note. \footnote{This last note is here to see what happens in 
the next page\dots\par \input knuth.tex}
\par 
\dorecurse{3}{\input knuth.tex }

\stoptext

> On 1 Aug 2020, at 23:01, Henning Hraban Ramm  wrote:
> 
> 
>> Am 01.08.2020 um 22:36 schrieb Otared Kavian :
>> 
>> Hi Hraban,
>> 
>> Thank you for taking the time to send your code for sidenotes.
>> Unfortunately when I add
>> 
>> \starttext
>> test\footnote{A footnote in the margin.}
>> \stoptext
>> 
>> to your code, I get an error and unfortunately with recent versions of LMTX 
>> the error message 
>> !  Undefined control sequence
>> is not helpful to find the error… (LMTX considers \footnote as an undefined 
>> control sequence…).
>> 
> 
> Of course it’s not \footnote that is undefined but something else from my 
> code – I didn’t take the time to strip it of all the references to other 
> setups in the same environment, probably \ColWidth that was just a shortcut 
> for the column width:
> \def\ColWidth{57mm}
> 
> Hraban
> 
> ___
> 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 / 

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Henning Hraban Ramm

> Am 01.08.2020 um 22:36 schrieb Otared Kavian :
> 
> Hi Hraban,
> 
> Thank you for taking the time to send your code for sidenotes.
> Unfortunately when I add
> 
> \starttext
> test\footnote{A footnote in the margin.}
> \stoptext
> 
> to your code, I get an error and unfortunately with recent versions of LMTX 
> the error message 
> !  Undefined control sequence
> is not helpful to find the error… (LMTX considers \footnote as an undefined 
> control sequence…).
> 

Of course it’s not \footnote that is undefined but something else from my code 
– I didn’t take the time to strip it of all the references to other setups in 
the same environment, probably \ColWidth that was just a shortcut for the 
column width:
\def\ColWidth{57mm}

Hraban

___
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] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
Hi Hraban,

Thank you for taking the time to send your code for sidenotes.
Unfortunately when I add

\starttext
test\footnote{A footnote in the margin.}
\stoptext

to your code, I get an error and unfortunately with recent versions of LMTX the 
error message 
!  Undefined control sequence
is not helpful to find the error… (LMTX considers \footnote as an undefined 
control sequence…).

Best regards: Otared

> On 1 Aug 2020, at 19:19, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 01.08.2020 um 18:57 schrieb Otared Kavian :
>> 
>> Hi Hraban,
>> 
>> Thank you for reminding me of the solution cooked up by Wolfgang for you a 
>> few years ago. That solution works fine when the notes are short enough, but 
>> in some cases the notes in the margin bump into each other (indeed it is not 
>> a good habit to have long notes, but in some cases one cannot avoid them).
> 
> One essential bit is missing in the wiki example:
> 
> \setupmargindata[inmargin][
>  location=right,
>  stack=continue, % !!
>  align=flushright,
> ]
> 
> The code I’m actually using for our German literature magazine “Kritische 
> Ausgabe” is much more elaborated, but also cluttered with obsolete stuff – I 
> need to sort that out some time...
> (I only deleted some styling.)
> 
> %%% Footnotes / Marginals
> 
> \setupmargindata[inmargin][
>  location=right,
>  stack=continue,
>  align=flushright,
> ]
> \setupmargindata[inouter][
>  location=right,
>  stack=continue,
>  align=flushright,
> ]
> 
> \def\FNVOffset{0} % Negative vertical offset of footnotes in lines
> % Manual tweaking was necessary for a while, when stacking didn’t work 
> reliably.
> 
> \def\MarginNote#1{%
> \inmargin[
>  voffset=\dimexpr-\FNVOffset\lineheight\relax,
>  width=\ColWidth,
>  align=flushleft,
> ]{%
>  \inframed[
>width=\ColWidth,
>align=right,
>frame=off,
>offset=overlay,
>strut=yes,
>]{#1}%
>  }%
> }
> 
> \define\PlaceFootnote{%
> \inmargin[
>  voffset=\dimexpr-\FNVOffset\lineheight\relax,
>  width=\ColWidth,
> ]{%
>  \vtop{\placelocalnotes[footnote][before=,after=]}}%
> }
> 
> \def\FNo#1{{#1~}}
> % I never managed to get number and text in consecutive lines without 
> indented text
> % or at least a constant whitespace after the number.
> 
> \setupnote[footnote][
>  location=text,
>  bodyfont=,
>  indenting=no,
>  before={\noindentation},
>  next=\PlaceFootnote,
> ]
> 
> \setupnotation[footnote][
>   way=bychapter,
>   align=flushleft,
>  indenting=no,
>  location=serried,
>  alternative=serried,
>  width=broad,
>  numbercommand=\FNo,
> ] % footnote text
> 
> \setuptexttexts[margin][][%
>  {\framed[
>align={flushright,bottom},
>frame=off,
>height=\textheight,
>width=\ColWidth,
>  ]{%
>\strut\vfill\placenotes[footnote]}}%
> ]
> 
> 
> Best, Hraban
> 
> ___
> 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
___


Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Henning Hraban Ramm


> Am 01.08.2020 um 18:57 schrieb Otared Kavian :
> 
> Hi Hraban,
> 
> Thank you for reminding me of the solution cooked up by Wolfgang for you a 
> few years ago. That solution works fine when the notes are short enough, but 
> in some cases the notes in the margin bump into each other (indeed it is not 
> a good habit to have long notes, but in some cases one cannot avoid them).

One essential bit is missing in the wiki example:

\setupmargindata[inmargin][
  location=right,
  stack=continue, % !!
  align=flushright,
]

The code I’m actually using for our German literature magazine “Kritische 
Ausgabe” is much more elaborated, but also cluttered with obsolete stuff – I 
need to sort that out some time...
(I only deleted some styling.)

%%% Footnotes / Marginals

\setupmargindata[inmargin][
  location=right,
  stack=continue,
  align=flushright,
]
\setupmargindata[inouter][
  location=right,
  stack=continue,
  align=flushright,
]

\def\FNVOffset{0} % Negative vertical offset of footnotes in lines
% Manual tweaking was necessary for a while, when stacking didn’t work reliably.

\def\MarginNote#1{%
\inmargin[
  voffset=\dimexpr-\FNVOffset\lineheight\relax,
  width=\ColWidth,
  align=flushleft,
]{%
  \inframed[
width=\ColWidth,
align=right,
frame=off,
offset=overlay,
strut=yes,
]{#1}%
  }%
}

\define\PlaceFootnote{%
\inmargin[
  voffset=\dimexpr-\FNVOffset\lineheight\relax,
  width=\ColWidth,
]{%
  \vtop{\placelocalnotes[footnote][before=,after=]}}%
}

\def\FNo#1{{#1~}}
% I never managed to get number and text in consecutive lines without indented 
text
% or at least a constant whitespace after the number.

\setupnote[footnote][
  location=text,
  bodyfont=,
  indenting=no,
  before={\noindentation},
  next=\PlaceFootnote,
]

\setupnotation[footnote][
way=bychapter,
align=flushleft,
  indenting=no,
  location=serried,
  alternative=serried,
  width=broad,
  numbercommand=\FNo,
] % footnote text

\setuptexttexts[margin][][%
  {\framed[
align={flushright,bottom},
frame=off,
height=\textheight,
width=\ColWidth,
  ]{%
\strut\vfill\placenotes[footnote]}}%
]


Best, Hraban

___
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] Margin notes

2014-03-04 Thread Wolfgang Schuster

Am 04.03.2014 um 01:31 schrieb S Barmeier severinbarme...@googlemail.com:

 I am trying to compile a 2-year-old mkiv document with the latest beta
 and am getting an error on the line
 
 \inleft[style=bold,stack=continue]
 
 Two years ago, stacking of margin notes was still experimental, so I'm
 guessing something has changed since then. What is the correct way these
 days to typeset margin notes?


You have to make a minimal example because I can’t see a problem with \inleft.

\starttext
Text\inleft[style=bold,stack=continue]{Note 1} 
text\inleft[style=bold,stack=continue]{Note 2} text
\stoptext

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
___


[NTG-context] Margin notes

2014-03-03 Thread S Barmeier
I am trying to compile a 2-year-old mkiv document with the latest beta
and am getting an error on the line

\inleft[style=bold,stack=continue]

Two years ago, stacking of margin notes was still experimental, so I'm
guessing something has changed since then. What is the correct way these
days to typeset margin notes?

Thank you,
Severin
___
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] margin notes in MKIV (doublesided pages)

2013-02-09 Thread Alan Bowen
Thanks, Devendra. That is very helpful.

\*setupmargindata*[margintext][location=outer,align=inner]

gives me exactly the placement that I need.


Best, Alan

On Sat, Feb 9, 2013 at 1:25 AM, Devendra Ghate devendra.gh...@gmail.comwrote:


 On 02/09/2013 06:51 AM, Alan Bowen wrote:

 I need margin notes in a doublesided page environment in MKIV.

  The following:

  \setuppagenumbering[alternative=doublesided]
   \setupinmargin[location=both]
   \starttext
   \inmargin{n1}\input knuth\inmargin{note 1}
   \page
   \inmargin{n2}\input knuth\inmargin{note 2}
   \page
   \inmargin{n3}\input knuth\inmargin{note 4}
   \stoptext


  works in MKII. In MKIV, however, all the margin notes are on the left.
 So how can I get this right in MKIV?

  Alan

  Probably, \setupmargin[location=outer] should do the trick (*not tested*).

 I have been using

 \setupmargintext[margintext][location=outer]

 \margintext{Note 1}

 without a problem.

 Regards,
 Devendra

 PS: sidenotes style [http://wiki.contextgarden.net/Sidenotes_style] by
 Andy thomas uses this setup.



 ___
 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

 ___

___
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] margin notes in MKIV (doublesided pages)

2013-02-08 Thread Alan Bowen
I need margin notes in a doublesided page environment in MKIV.

The following:

\setuppagenumbering[alternative=doublesided]
\setupinmargin[location=both]
\starttext
\inmargin{n1}\input knuth\inmargin{note 1}
\page
\inmargin{n2}\input knuth\inmargin{note 2}
\page
\inmargin{n3}\input knuth\inmargin{note 4}
\stoptext


works in MKII. In MKIV, however, all the margin notes are on the left. So
how can I get this right in MKIV?

Alan
___
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] margin notes in MKIV (doublesided pages)

2013-02-08 Thread Devendra Ghate


On 02/09/2013 06:51 AM, Alan Bowen wrote:

I need margin notes in a doublesided page environment in MKIV.

The following:

\setuppagenumbering[alternative=doublesided]
\setupinmargin[location=both]
\starttext
\inmargin{n1}\input knuth\inmargin{note 1}
\page
\inmargin{n2}\input knuth\inmargin{note 2}
\page
\inmargin{n3}\input knuth\inmargin{note 4}
\stoptext


works in MKII. In MKIV, however, all the margin notes are on the left. 
So how can I get this right in MKIV?


Alan


Probably, \setupmargin[location=outer] should do the trick (*not tested*).

I have been using

\setupmargintext[margintext][location=outer]

\margintext{Note 1}

without a problem.

Regards,
Devendra

PS: sidenotes style [http://wiki.contextgarden.net/Sidenotes_style] by 
Andy thomas uses this setup.





___
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] margin notes at page breaks

2011-11-14 Thread Hans Hagen

On 13-11-2011 12:12, Stefan Müller wrote:


It still looks the same. Does the stacking only influence the behaviour
of (the breaking between) multiple margin notes?


each margin data blob is seen as a whole .. no breaking inside that .. 
depending on the content (only text) it should be possible to break 
notes but it's not provided 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] margin notes at page breaks

2011-11-14 Thread Stefan Müller



On 14.11.2011 09:32, Hans Hagen wrote:

On 13-11-2011 12:12, Stefan Müller wrote:


It still looks the same. Does the stacking only influence the behaviour
of (the breaking between) multiple margin notes?


I was not very clear here, I think.


each margin data blob is seen as a whole .. no breaking inside that ..
depending on the content (only text) it should be possible to break
notes but it's not provided now


Thanks, okay, I understand that.  But I don't understand why in your 
first example the three margin notes go to the next page, together with 
the paragraph while in my example the single note does not go to the 
next page (the complete note, I don't want the margin note itself to 
break).  I would choose some extra blank lines at the end of the page 
over a margin note that is in the bottom margin...


Kind regards,
Stefan
___
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] margin notes at page breaks

2011-11-13 Thread Stefan Müller

Hi Hans,

sorry to bother you again with this.  I just had a look again on this 
issue with 2012 12:34 MkIV.  In the first part of your example, I 
see the three stacked footnotes and the first lines of the paragraph 
moved to the next page.  In your second example I get the three notes 
stacked on the first page, one being in the bottom margin, and the 
paragraph properly wrapped, with two lines on the first page.  This 
seems to be correct.


Unfortunately I don't understand how this should help me with my (now 
updated) previous example:


\starttext
\dorecurse{4}{\input knuth} \blank[2*line]

\inmargin[stack=yes]{This note ends up in the bottom margin}
\input tufte
\stoptext

It still looks the same.  Does the stacking only influence the behaviour 
of (the breaking between) multiple margin notes?


Thank you for looking into this.  Best regards,
Stefan

On 02.11.2011 17:34, Hans Hagen wrote:

On 31-10-2011 13:57, Stefan Müller wrote:

Hi list!

In my document I have some margin notes that appear right before a page
break and so end up in the bottom margin, see the following example.

\starttext
\dorecurse{4}{\input knuth}
\blank[2*line]

\inmargin{This note ends up in the bottom margin}
%\margintext{This note ends up in the bottom margin}
\input tufte
\stoptext

Is it possible to automatically move the margin note in those cases to
the next page? I had a look at the manual where the issue is addressed.
As I understood it \margintext{...} should be able to handle this, but
it did not change anything in my example. In the garden I found
\setupinmargin[stack=yes] but this didn't help either.

This seems not to hard, but I can't find a way to fix it...


it's not supported in the current code but the next beta will have :

starttext

\dorecurse{4}{\input knuth} \blank[2*line]

\dorecurse{3}{\inmargin[stack=yes]{note}} \input tufte

\page

\dorecurse{4}{\input knuth} \blank[2*line]

\dorecurse{3}{\inmargin[stack=yes,bottomspace=10cm]{note}} \input tufte

\stoptext

with bottomspace one can set the threshold

Hans

___
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] margin notes at page breaks

2011-11-02 Thread Hans Hagen

On 31-10-2011 13:57, Stefan Müller wrote:

Hi list!

In my document I have some margin notes that appear right before a page
break and so end up in the bottom margin, see the following example.

\starttext
\dorecurse{4}{\input knuth}
\blank[2*line]

\inmargin{This note ends up in the bottom margin}
%\margintext{This note ends up in the bottom margin}
\input tufte
\stoptext

Is it possible to automatically move the margin note in those cases to
the next page? I had a look at the manual where the issue is addressed.
As I understood it \margintext{...} should be able to handle this, but
it did not change anything in my example. In the garden I found
\setupinmargin[stack=yes] but this didn't help either.

This seems not to hard, but I can't find a way to fix it...


it's not supported in the current code but the next beta will have :

starttext

\dorecurse{4}{\input knuth} \blank[2*line]

\dorecurse{3}{\inmargin[stack=yes]{note}} \input tufte

\page

\dorecurse{4}{\input knuth} \blank[2*line]

\dorecurse{3}{\inmargin[stack=yes,bottomspace=10cm]{note}} \input tufte

\stoptext

with bottomspace one can set the threshold

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
___


[NTG-context] margin notes at page breaks

2011-10-31 Thread Stefan Müller

Hi list!

In my document I have some margin notes that appear right before a page 
break and so end up in the bottom margin, see the following example.


\starttext
\dorecurse{4}{\input knuth}
\blank[2*line]

\inmargin{This note ends up in the bottom margin}
%\margintext{This note ends up in the bottom margin}
\input tufte
\stoptext

Is it possible to automatically move the margin note in those cases to 
the next page?  I had a look at the manual where the issue is addressed. 
 As I understood it \margintext{...} should be able to handle this, 
but it did not change anything in my example.  In the garden I found 
\setupinmargin[stack=yes] but this didn't help either.


This seems not to hard, but I can't find a way to fix it...

Thanks in advance for any hints!
Stefan
___
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] margin notes

2011-10-11 Thread Meer, H. van der
It seems that margin notes when called from inside 
\startcombination..\stopcombination do not reach the margin of the paper. 
Instead they use a margin inside the combination.
Is that as intended or unavoidable?
It was my objective to have them at the edge of the paper.
See minimal example below.

% Testing margin notes from inside combinations.
% Margin notes do not leave the combinations box.
\setuppapersize[A6][A6]
\starttext
\setupcombinations[location=middle]
test\crlf
\startcombination[2*1]
{abcdefg\inright{m1}}{l1}
{abcdefg\inright{m2}}{l2}
\stopcombination
\crlf
\stoptext



combinations.pdf
Description: combinations.pdf


___
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] margin notes

2011-10-11 Thread Hans Hagen

On 11-10-2011 10:03, Meer, H. van der wrote:

It seems that margin notes when called from inside 
\startcombination..\stopcombination do not reach the margin of the paper. 
Instead they use a margin inside the combination.
Is that as intended or unavoidable?
It was my objective to have them at the edge of the paper.
See minimal example below.

% Testing margin notes from inside combinations.
% Margin notes do not leave the combinations box.
\setuppapersize[A6][A6]
\starttext
\setupcombinations[location=middle]
test\crlf
\startcombination[2*1]
{abcdefg\inright{m1}}{l1}
{abcdefg\inright{m2}}{l2}
\stopcombination
\crlf
\stoptext


quite tricky, such notes in an alignment

the next beta will have an experimental fix

\startlinecorrection
\startcombination[2*2]
{abcdefg\inleft[scope=global,stack=yes]{TEST 7}hijklm} {test 7}
{abcdefg\inleft[scope=global,stack=yes]{TEST 8}hijklm} {test 8}
\stopcombination
\stoplinecorrection

seems to work

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
___


[NTG-context] margin notes from inside combination

2011-10-08 Thread Meer, H. van der
It seems that margin notes when called from inside 
\startcombination..\stopcombination do not reach the margin of the paper. 
Instead they use a margin inside the combination.
Is that as intended or unavoidable?
It was my objective to have them at the edge of the paper.
See minimal example below.

% Testing margin notes from inside combinations.
% Margin notes do not leave the combinations box.
\setuppapersize[A6][A6]
\starttext
\setupcombinations[location=middle]
test\crlf
\startcombination[2*1]
{abcdefg\inright{m1}}{l1}
{abcdefg\inright{m2}}{l2}
\stopcombination
\crlf
\stoptext



combinations.pdf
Description: combinations.pdf


___
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] margin notes

2010-05-28 Thread Yury G. Kudryashov
Hi!

I try to use \inmargin{some text} in context Mk IV, and the resulting margin 
notes overlap. Is there any way to emulate LaTeX's marginpars (they're 
considered floats, hence can be moved to avoid overlaps)?

Minimal example:
\starttext
\inmargin{first}
\inmargin{second}
\stoptext
-- 
Yury G. Kudryashov


___
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] margin notes

2010-05-28 Thread Wolfgang Schuster

Am 28.05.10 19:02, schrieb Yury G. Kudryashov:

Hi!

I try to use \inmargin{some text} in context Mk IV, and the resulting margin
notes overlap. Is there any way to emulate LaTeX's marginpars (they're
considered floats, hence can be moved to avoid overlaps)?

Minimal example:
\starttext
\inmargin{first}
\inmargin{second}
\stoptext


\setupinmargin[stack=yes]

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] margin notes

2010-05-28 Thread Yury G. Kudryashov
Wolfgang Schuster wrote:

 Am 28.05.10 19:02, schrieb Yury G. Kudryashov:
 Hi!

 I try to use \inmargin{some text} in context Mk IV, and the resulting
 margin notes overlap. Is there any way to emulate LaTeX's marginpars
 (they're considered floats, hence can be moved to avoid overlaps)?
 \setupinmargin[stack=yes]
Thanks, it works!

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