ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: vertically aligned side margin footnotes
Date: Tue, 6 Sep 2011 22:27:22 +0200	[thread overview]
Message-ID: <9EE0A1E3-4611-4AD6-8325-DC296A29344D@googlemail.com> (raw)
In-Reply-To: <4E664986.9020802@alexandreleray.com>


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
___________________________________________________________________________________


  reply	other threads:[~2011-09-06 20:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06 16:25 Alexandre Leray
2011-09-06 20:27 ` Wolfgang Schuster [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9EE0A1E3-4611-4AD6-8325-DC296A29344D@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).