I nearly finished the first step, but two problems are still left. I would be happy for any hint to solve following problems:
1. \getnumber[absatz] is executes in every \in[..], so that everytime the same reference is named different. To solve it I want to convert the result of \getnumber[absatz] when \absatzende[refname] is executed to pure text. But I could not figure out how.. :-( 2. \getmarking[sectionnumber] is working but not a subsectionnumber or currentnumber. How can I get the actual hierarchy-number? The usage of the following: placing \absatzende[refname] at the end of every paragraph. To reference to a paragraph is done by \in[refname] (meaning of absatzende: end of paragraph) \definenumber[absatz] \setuphead[chapter,section,subsection,subsubsection] [after={\resetnumber[absatz]}] \def\absatzende[#1] { \incrementnumber[absatz] \doifnotempty {#1} { \reference[#1]{\getmarking[sectionnnumber]/\getnumber[absatz } \color[hintergrunddunkel] {\tfx\hfill(\getnumber[absatz])} } >After each paragraph I like to have at the right bottom corner a small >number. This number shout increase with every paragraph. The counting should >restart after every heading (doesn't care which level). > >How can I realize this? > >Additionaly I like to use this number with the in-command: Instead of >referering only to the heading number (e.g. 2.3.1) I want to refer to the >paragraph (e.g. 2.3.1 / 16). But it should also be possible to refer to a >group of paragraphs (e.g. 2.3.1 / 16 - 18 or 2.3.1 / 16, 21). Maybe with the >possibility to exchange the / with anything else (e.g. 2.3.1 Abs. 17). > >I am really happy for any hint, tip, implementing strategy to realize this. >Of course: if I have finally a working solution i will enter it into the >context-wiki. ___________________________________________________________________________________ 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 ___________________________________________________________________________________