Hello Wolfgang. After some searching and experimenting, here is my functional solution. I wrote it into the wiki. I have not found there eg. defineformula command etc Jaroslav Hajtmar \defineformula[MY][ align=left, strut=no, spacebefore=, spaceafter=, ] % so you can modify the settings of defineforumla[MY] \setupformulae[MY][align=right,strut=yes,spacebefore=medium,spaceafter=big] % so we can create new start-stopsmallformula \definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula, ] % and we can so create new start-stopmysmallformula: \definestartstop[mysmallformula] [before={\startMYformula[small]}, after=\stopMYformula, ] % and here is my shortcuts: \let\bmyformula\startmysmallformula \let\emyformula\stopmysmallformula \starttext \title{Example of use and behavior} startformula: \startformula c^2 = a^2 + b^2 \stopformula startformula$[$small$]$: \startformula[small] c^2 = a^2 + b^2 \stopformula startformula[8pt]: \startformula[8pt] c^2 = a^2 + b^2 \stopformula startsmallformula: \startsmallformula c^2 = a^2 + b^2 \stopsmallformula startmysmallformula: \startmysmallformula c^2 = a^2 + b^2 \stopmysmallformula startMYformula: \startMYformula c^2 = a^2 + b^2 \stopMYformula startMYformula[5pt]: \startMYformula[5pt] c^2 = a^2 + b^2 \stopMYformula bmyformula: \bmyformula c^2 = a^2 + b^2 \emyformula \stoptext http://wiki.contextgarden.net/defineformula Dne 11.3.2015 v 18:18 Jaroslav Hajtmar napsal(a):
Thanx Wolfgang for reply. I had no idea that it is possible in this way to change the font size. I could not figure a way for your solution set alignment formulas to right and how work \defineformula and \definestartstop together.
After defining a new MY formula in combination with your solution works it fine, as I had imagined. Is there any possibility of setting of parameters a newly defined formulas? Or, it can not be done, and everything must be solved within the initial definition?
One more thanx Jaroslav Hajtmar
\defineformula[MY][ align=right, strut=yes, spacebefore=, spaceafter=, ]
\definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula, ]
% \setupformulas[align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[smallformula][align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[small][align=right,strut=yes,spacebefore=,spaceafter=] % \setupsmallformulas[align=right,strut=yes,spacebefore=,spaceafter=] % \setupsmallformulaformulas[align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[MY][align=right,strut=yes,spacebefore=,spaceafter=] % \setupformulas[MYformula][align=right,strut=yes,spacebefore=,spaceafter=] % \setupMYformulas[align=right,strut=yes,spacebefore=,spaceafter=]
\starttext
\startformula c^2 = a^2 + b^2 \stopformula
\startformula[small] c^2 = a^2 + b^2 \stopformula
\startformula[8pt] c^2 = a^2 + b^2 \stopformula
\startsmallformula c^2 = a^2 + b^2 \stopsmallformula
\startMYformula[small] c^2 = a^2 + b^2 \stopMYformula
\startMYformula[5pt] c^2 = a^2 + b^2 \stopMYformula
\stoptext
Dne 11.3.2015 v 0:52 Wolfgang Schuster napsal(a):
\startformula has a optional argument which let you change the font, e.g. \startformula[9pt].
\definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula]
\starttext
\startformula c^2 = a^2 + b^2 \stopformula
\startformula[small] c^2 = a^2 + b^2 \stopformula
\startsmallformula c^2 = a^2 + b^2 \stopsmallformula
\stoptext
___________________________________________________________________________________
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 ___________________________________________________________________________________