[dev-context] core-con.mkiv: Wrong argument for \date

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Feb 4 18:01:58 CET 2019


Hi Hans,

you pass the wrong argument (#1 instead of #2) to the Lua function for 
the \date command.


\def\syst_converters_date[#1][#2]%
   {\dontleavehmode
    \begingroup
    \scratchcounterone  \normalyear
    \scratchcountertwo  \normalmonth
    \scratchcounterthree\normalday
    \iffirstargument
      \letdummyparameter\c!y\empty
      \letdummyparameter\c!m\empty
      \letdummyparameter\c!d\empty
      \getdummyparameters[#1]%
\edef\temp{\dummyparameter\c!y}\ifx\temp\empty\else\scratchcounterone 
\temp\fi
\edef\temp{\dummyparameter\c!m}\ifx\temp\empty\else\scratchcountertwo 
\temp\fi
\edef\temp{\dummyparameter\c!d}\ifx\temp\empty\else\scratchcounterthree\temp\fi
      \relax
    \fi
    \the\everycurrentdate
    \clf_currentdate
-    {#1}{\currentdatespecification}{\labellanguage}%
+    {#2}{\currentdatespecification}{\labellanguage}%
      \scratchcounterone\scratchcountertwo\scratchcounterthree
    \endgroup}


Wolfgang



More information about the dev-context mailing list