Am 05.04.10 15:39, schrieb Vianney le Clément:
The patch seems to break \footnote:
New attempt.

\unprotect

% strc-des.mkiv

\def\@@makedescription[#1]#2%
 {\postponenotes % new, assumes grouping
  \edef\currentdescriptionreference{#1}%
  \doenumerationcheckconditions
\dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]%
  \@@dostartdescriptionindeed}

% strc-not.mkiv

\def\@@notemakedescription[#1]#2#3%
  {\ifnotesenabled
     \edef\currentdescriptionreference{#1}%
     \iftrialtypesetting
        \doenumerationcheckconditions
        \let\currentnote\currentdescriptionmain
        \typesetdummynotesymbol
     \else
       \begingroup
       \doenumerationcheckconditions
       \let\currentnote\currentdescriptionmain
\dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#3},\c!list=,\c!bookmark=,][]% \xdef\currentnotenumber{\ctxlua{structure.notes.store("\currentnote",\currentdescriptionnumberentry)}}%
       \settrue\processingnote
       \ifconditional\skipnoteplacement
         \globallet\lastnotesymbol\dolastnotesymbol
       \else
         \iftypesettinglines % otherwise problems with \type <crlf> {xxx}
\ignorelines % makes footnotes work in \startlines ... \stoplines
         \fi
         \ifnotesymbol
           \dolastnotesymbol
         \else
           \unskip\unskip
           \globallet\lastnotesymbol\dolastnotesymbol
         \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
       \fi\fi
       \endgroup
     \fi
   \fi
   \ifconditional\skipnoteplacement
     \global\setfalse\skipnoteplacement
   \else
     \kern\notesignal\relax % \relax is needed to honor spaces
   \fi}

\defineenumeration[test][location=left]

\protect

\starttext

\test    First \par
\test[-] Second\par
\test    Third \par
\test    Fourth\par

Blabla\footnote{blabla}

\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 via email to