Thank you Wolfgang. This was the easy part ... ... but do you also know how to implement in ConTeXt the real usage of runner – what I have described when starting this thread? [Is it understandable what I am looking for? Otherwise I can contact you privately in German.] Steffen On Sun, 8 Jul 2007 12:30:12 +0200, Wolfgang Schuster wrote:
On Sat, 7 Jul 2007 20:03:30 +0200 Steffen Wolfrum
wrote: Hi,
now I found something (for LaTeX) that looks like exactly what I mean:
a "runner"
see http://www.ctan.org/tex-archive/macros/latex/contrib/juramisc/doc/jmgerdoc.p... , page 20: "\rn[ (Marke) ] { (erstes Wort) } rn steht für Randnummer oder für runner, der englischen Bezeichnung für Randziffern."
Does someone know how to do this in ConTeXt? Steffen
\unprotect
\newcounter\rn!counter
\def\rn{\dosingleempty\dorn}
\def\dorn[#1]#2% {\doglobal\increment\rn!counter \iffirstargument \reference[#1]{\rn!counter} \fi \dontleavehmode\llap{\rn!counter\quad}}
\protect
\starttext
Wolfgang
\rn text text
\rn[rn:one] text text
see \in{runner}[rn:one] \unknown
\rn text text
\stoptext ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________