Hi, Thanks for your attention, Wolfgang: indeed removing \analyzecurrentreference from your example allows mkiv to typeset correctly and obtain the expected result.
Regarding Marco Patzer’s smartref command, I can typest the following example if I \input directly \input conditionalfloatreferences.mkvi but invoking \usemodule[conditionalfloatreferences] does not work. (By the way I didn’t check whether the module is included in the minimals: so I am sending the file with this mail). Best regards: OK %%% begin test-smartref.tex %\usemodule[conditionalfloatreferences] \input conditionalfloatreferences.mkvi \useMPlibrary[dum] \starttext {\bf Test 1:} See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma]. See \smartref{equation}[eq:Fermat]. \page {\bf Test 2:} See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma]. See \smartref{equation}[eq:Fermat]. \startplacefigure [reference=fig:alpha] \externalfigure \stopplacefigure \startplacefigure [reference=fig:beta] \externalfigure \stopplacefigure \input knuth.tex \placeformula[eq:Fermat] \startformula a,b,c \in {\Bbb N}^*, \quad n \geq 3, \quad a^n + b^n = c^n \imply abc = 0. \stopformula \page {\bf Test 3:} See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma]. See \smartref{equation}[eq:Fermat]. \startplacefigure [reference=fig:gamma] \externalfigure \stopplacefigure \startplacefigure [reference=fig:delta] \externalfigure \stopplacefigure \page {\bf Test 4:} See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma]. See \smartref{equation}[eq:Fermat]. \page {\bf Test 5:} See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma]. See \smartref{equation}[eq:Fermat]. \stoptext %%% end test-smartref.tex
conditionalfloatreferences.mkvi
Description: Binary data
On 24 Jul 2014, at 13:34, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > > Am 24.07.2014 um 13:20 schrieb Otared Kavian <ota...@gmail.com>: > >> Hi Rik, >> >> As a matter of fact the example given by Wolfgang works despite mkiv >> complaining about >> \analyzecurrentreference >> being unknown… Whent the typesetting stops because of this command, saying « >> run » or rather « r » continues the typesetting. > > Better remove the \analyzecurrentreference command. > >> I didn’t send the example module of Marco Patzer since it doesn’t seem to >> work anymore with recent versions of mkiv. > > Do you have a example because I run the example at the end of the module and > had no problems. > > What could be improved in the module is the check for left/right pages > because the current check > can fail when the reference appears at the begin of a page. > > 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 > ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________