\note doesn’t work when notes are placed in the text
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Hi, in the following example the \note commands shows only unknown references. It has something to do with “location=text” because “location=page” or “location=column” have working references. \setupfootnotes[location=text] \starttext Second Note\note[footnote][2] First Note\note[footnote][1] \setnotetext[footnote][1]{Footnote 1} \setnotetext[footnote][2]{Footnote 2} Second Note\note[footnote][2] First Note\note[footnote][1] \placenotes[footnote] \stopfootnote I tried to find a fix for thus bug but wasn’t able to find a good solution. There is a little hack below which works (it is only used for “location=text” and “location=none”) but I guess there is a better solution. \unexpanded\setvalue{\??constructionnotehandler\v!notation:\v!note}% in the running text {\ifnotesenabled % do be done elsewhere % %let\currentnote\currentconstructionmain \let\currentnote\currentconstruction % else wrong inheritance % \iftrialtypesetting \strc_notes_inject_dummy \else \begingroup \edef\currentnotenumber{\ctxcommand{storenote("\currentnote",\currentconstructionlistentry)}}% \settrue\processingnote \ifconditional\c_strc_notes_skip \globallet\lastnotesymbol\strc_notes_inject_symbol + \ifconditional\c_strc_notes_delayed + \currentconstructionsynchronize + \fi \else \iftypesettinglines % otherwise problems with \type <crlf> {xxx} \ignorelines % makes footnotes work in \startlines ... \stoplines \fi \ifconditional\c_strc_notes_symbol \strc_notes_inject_symbol \else \unskip\unskip \globallet\lastnotesymbol\strc_notes_inject_symbol \fi \fi \ifconditional\postponingnotes % todo: per note class \global\settrue\postponednote \else\ifconditional\inlocalnotes % todo: per note class \global\settrue\postponednote \else \handlenoteinsert\currentnote\currentnotenumber % either an insert or just delayed \fi\fi \endgroup \fi \fi \ifconditional\c_strc_notes_skip \global\setfalse\c_strc_notes_skip \else \kern\notesignal\relax % \relax is needed to honor spaces \fi} Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 16-10-2012 11:07, Wolfgang Schuster wrote:
Hi,
in the following example the \note commands shows only unknown references. It has something to do with “location=text” because “location=page” or “location=column” have working references.
\setupfootnotes[location=text]
\starttext
Second Note\note[footnote][2] First Note\note[footnote][1]
\setnotetext[footnote][1]{Footnote 1} \setnotetext[footnote][2]{Footnote 2}
Second Note\note[footnote][2] First Note\note[footnote][1]
\placenotes[footnote]
\stopfootnote
I tried to find a fix for thus bug but wasn’t able to find a good solution. There is a little hack below which works (it is only used for “location=text” and “location=none”) but I guess there is a better solution.
The fix ls nearlu ok ... we also need to makr sure that the sync only happens once (as \lastnotesymbol can also do it). I also mkvi'd the file so you might want to check it (uploading now). 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster