ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* vertically aligned side margin footnotes
@ 2011-09-06 16:25 Alexandre Leray
  2011-09-06 20:27 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Leray @ 2011-09-06 16:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi again,

is there a way to typeset footnotes in the margin, but placed at the 
same vertical distance as the text they refer to?

Thanks,

Alex
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vertically aligned side margin footnotes
  2011-09-06 16:25 vertically aligned side margin footnotes Alexandre Leray
@ 2011-09-06 20:27 ` Wolfgang Schuster
  2011-10-06 20:25   ` Alexandre Leray
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-09-06 20:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.09.2011 um 18:25 schrieb Alexandre Leray:

> Hi again,
> 
> is there a way to typeset footnotes in the margin, but placed at the same vertical distance as the text they refer to?

No, but you can combine \inmargin and a counter:

\usemodule[annotation]

\define[2]\SidenoteCommand
  {\rawnumber[sidenote]%
   \inright{#1: #2}}

\defineannotation
  [sidenote]
  [alternative=command,
   command=\SidenoteCommand,
   number=yes]

\starttext

text text\sidenote{this is a note} text text

\input knuth

text text\sidenote{this is a note} text 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vertically aligned side margin footnotes
  2011-09-06 20:27 ` Wolfgang Schuster
@ 2011-10-06 20:25   ` Alexandre Leray
  2011-10-07  8:02     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Leray @ 2011-10-06 20:25 UTC (permalink / raw)
  To: ntg-context

Hi and thanks for your help.

it works except that when the sidenote is too long it overflows the 
page. Is there a way to make the note continuing on the next page if it 
doesn't fit?

Thanks again,

Alex

On 06/09/2011 22:27, Wolfgang Schuster wrote:
>
> Am 06.09.2011 um 18:25 schrieb Alexandre Leray:
>
>> Hi again,
>>
>> is there a way to typeset footnotes in the margin, but placed at the same vertical distance as the text they refer to?
>
> No, but you can combine \inmargin and a counter:
>
> \usemodule[annotation]
>
> \define[2]\SidenoteCommand
>    {\rawnumber[sidenote]%
>     \inright{#1: #2}}
>
> \defineannotation
>    [sidenote]
>    [alternative=command,
>     command=\SidenoteCommand,
>     number=yes]
>
> \starttext
>
> text text\sidenote{this is a note} text text
>
> \input knuth
>
> text text\sidenote{this is a note} text 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
> ___________________________________________________________________________________
>

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vertically aligned side margin footnotes
  2011-10-06 20:25   ` Alexandre Leray
@ 2011-10-07  8:02     ` Wolfgang Schuster
  2011-10-07  8:37       ` Alexandre Leray
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-10-07  8:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.10.2011 um 22:25 schrieb Alexandre Leray:

> Hi and thanks for your help.
> 
> it works except that when the sidenote is too long it overflows the page. Is there a way to make the note continuing on the next page if it doesn't fit?

No, margin texts are unbreakable blocks.

When you many side notes with lots of text it’s better to use a layout with a wider margin and a narrower textblock, before you do this you can try “\inmargin[stack=yes]{…}” in the definition of the side note command.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vertically aligned side margin footnotes
  2011-10-07  8:02     ` Wolfgang Schuster
@ 2011-10-07  8:37       ` Alexandre Leray
  2011-10-07 15:36         ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Leray @ 2011-10-07  8:37 UTC (permalink / raw)
  To: ntg-context

Hello Wolfgang,

Thanks for your reply. I will adjust my text flow "manually" if 
necessary as I only have a couple of pages to deal with.

While I was searching for an answer in the mailing list archive I found 
this email:

[NTG-context] Flowfram-like behavior?
http://archive.contextgarden.net/message/20110706.133155.c488c215.en.html

I think such a feature would have been great here, and I was wondering 
if there was any plan for this in the future?

Thank you,

Alex

On 07/10/2011 10:02, Wolfgang Schuster wrote:
> No, margin texts are unbreakable blocks.
>
> When you many side notes with lots of text it’s better to use a layout with a wider margin and a narrower textblock, before you do this you can try “\inmargin[stack=yes]{…}” in the definition of the side note command.
>
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vertically aligned side margin footnotes
  2011-10-07  8:37       ` Alexandre Leray
@ 2011-10-07 15:36         ` Hans Hagen
  2011-10-09 19:37           ` Alexandre Leray
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2011-10-07 15:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 7-10-2011 10:37, Alexandre Leray wrote:
> Hello Wolfgang,
>
> Thanks for your reply. I will adjust my text flow "manually" if
> necessary as I only have a couple of pages to deal with.
>
> While I was searching for an answer in the mailing list archive I found
> this email:
>
> [NTG-context] Flowfram-like behavior?
> http://archive.contextgarden.net/message/20110706.133155.c488c215.en.html
>
> I think such a feature would have been great here, and I was wondering
> if there was any plan for this in the future?

There is an experimental stream feature but I haven't looked into that 
one for a while.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vertically aligned side margin footnotes
  2011-10-07 15:36         ` Hans Hagen
@ 2011-10-09 19:37           ` Alexandre Leray
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Leray @ 2011-10-09 19:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Would it be possible to typeset the text on the left page and the 
comments on the right page?

Thanks

Alex
> There is an experimental stream feature but I haven't looked into that
> one for a while.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-09 19:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06 16:25 vertically aligned side margin footnotes Alexandre Leray
2011-09-06 20:27 ` Wolfgang Schuster
2011-10-06 20:25   ` Alexandre Leray
2011-10-07  8:02     ` Wolfgang Schuster
2011-10-07  8:37       ` Alexandre Leray
2011-10-07 15:36         ` Hans Hagen
2011-10-09 19:37           ` Alexandre Leray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).