Joachim Kreimer-de Fries wrote:
> Hey friendly helpers,
> 
> I see, this list is one for experts and programmers, less for simple 
> users. But given that there is no list for beginners of ConTeXt, I make 
> my last attempt to get help in the following problem:
> 
> How to create _numbered_ margin notes in ConTeXt?

quick and dirty command (instead one can use enumerations and do some 
complex setup)

\def\mnote{\dosingleempty\domnote}

\def\domnote[#1]#2%
   {\doglobal\increment\MyMarginalNote\plusone
    \inmargin
      {\MyMarginalNote:
       \doifsomething{#1}
         {\expanded{\textreference[#1]{\MyMarginalNote}}}%
       #2}}

\setupinmargin[stack=yes]

\starttext

bla bla bla \mnote{xxx} bla bla bla bla bla bla bla bla bla bla bla bla 
bla bla bla bla bla bla bla bla bla
bla bla bla \mnote[foo]{xxx} bla bla bla bla bla bla bla bla bla bla bla 
bla bla bla bla bla bla bla bla bla bla
bla bla bla \mnote{xxx} bla \mnote{xxx} bla bla bla bla bla bla bla bla 
bla bla bla bla bla bla bla bla bla bla bla bla

in \in {note} [foo]

\stoptext


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to