In strc-mat.mkiv, we have: \let\startplaceformula\placeformula \let\stopplaceformula \relax But would it not be more coherent with respect to ConTeXt syntax for it to be used as: \startplaceformula [reference=ref] \stopplaceformula rather than the present \startplaceformula [ref] \stopplaceformula ? \startplaceformula should take all of the options of \setupformulas. In the case of named formulas (\placenamedformula), one could have \startplaceformula [reference=ref,title=name] \stopplaceformula This would of course require some minor modifications. Alan
On 2/24/2016 6:19 AM, Alan BRASLAU wrote:
In strc-mat.mkiv, we have:
\let\startplaceformula\placeformula \let\stopplaceformula \relax
But would it not be more coherent with respect to ConTeXt syntax for it to be used as:
\startplaceformula [reference=ref] \stopplaceformula
rather than the present
\startplaceformula [ref] \stopplaceformula
? \startplaceformula should take all of the options of \setupformulas.
In the case of named formulas (\placenamedformula), one could have
\startplaceformula [reference=ref,title=name] \stopplaceformula
This would of course require some minor modifications.
indeed this is on the agenda (one of these when-i'm-in-the-mood things) (the problem is that these mechanism are bit complicated by the fact that we need to pick up the content, need to deal with sub things, etc.) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2/24/2016 6:19 AM, Alan BRASLAU wrote:
In strc-mat.mkiv, we have:
\let\startplaceformula\placeformula \let\stopplaceformula \relax
But would it not be more coherent with respect to ConTeXt syntax for it to be used as:
\startplaceformula [reference=ref] \stopplaceformula
rather than the present
\startplaceformula [ref] \stopplaceformula
? \startplaceformula should take all of the options of \setupformulas.
In the case of named formulas (\placenamedformula), one could have
\startplaceformula [reference=ref,title=name] \stopplaceformula
This would of course require some minor modifications.
i made the next ... so it's not entirely compatible (we need to keep the explicit \start..\stop because there can be matrices as well (unless i also patch those but let's not go too fast) \starttext \startplaceformula \startformula e=mc^2 \stopformula \stopplaceformula \startplaceformula[-] \startformula e=mc^2 \stopformula \stopplaceformula \startplaceformula[x] \startformula e=mc^2 \stopformula \stopplaceformula \startplaceformula[reference=foo] \startformula e=mc^2 \stopformula \stopplaceformula \startplaceformula[title=whatever] \startformula e=mc^2 \stopformula \stopplaceformula \startplaceformula[suffix=x] \startformula e=mc^2 \stopformula \stopplaceformula \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen mailto:pragma@wxs.nl 25. Februar 2016 um 14:04
i made the next ... so it's not entirely compatible (we need to keep the explicit \start..\stop because there can be matrices as well (unless i also patch those but let's not go too fast)
\starttext \startplaceformula this produces an unwanted empty brace because you forgot the dummy argument.
-\def\strc_formulas_start_place_nop +\def\strc_formulas_start_place_nop[#1]% {\let\currentplaceformulareference\empty \let\currentplaceformulasuffix \empty \strc_formulas_place_nop} You reset also the wrong dummy parameter: \def\strc_formulas_start_place_parameters[#1]% - {\letdummyparameter\c!name \empty + {\letdummyparameter\c!title \empty \letdummyparameter\c!reference\empty \letdummyparameter\c!suffix \empty \getdummyparameters[#1]% \edef\currentplaceformulatitle {\dummyparameter\c!title}% \edef\currentplaceformulareference{\dummyparameter\c!reference}% \edef\currentplaceformulasuffix {\dummyparameter\c!suffix}% \ifx\currentplaceformulatitle\empty\else \normalexpanded{\setformulalistentry{\currentplaceformulatitle}}% \fi \doifelsenextbgroup\strc_formulas_place_yes\strc_formulas_place_nop} % [ref]{} Wolfgang
participants (3)
-
Alan BRASLAU
-
Hans Hagen
-
Wolfgang Schuster