Am 04.12.2008 um 15:30 schrieb Hans Hagen:
Steffen Wolfrum wrote:
Am 04.12.2008 um 14:28 schrieb Wolfgang Schuster:
Am 04.12.2008 um 12:46 schrieb Steffen Wolfrum:
Hi,
this code \setupformulas[location=left] \placeformula \startformula K = V + W(V) × S (Gleichung 1) \stopformula
gives, as expected: (1.1) K = V + W(V ) × S
But I need the following label ("Gleichung" means "formula"): (Gleichung 1) K = V + W(V ) × S
How can this be done (in Mk II) ? In the same way as you do it in MkIV :)
\setupformulas[way=bytext] \setuplabeltext[de][formula=Gleichung~]
Two remarks:
1) In this case the equation is not centered to textwidth anymore. It is centered to the space that's left.
2) And what about if the author wants to add a footnote to this respective formula?
An example could look like the following fake: \noindent(Gleichung 2)\note[339]\hfill{$1 = -W'(V^*) × S$}\hfill \hphantom{(Gleichung 2)\note[339]}
maybe putting \postponefootnotes in front of the formula helps (future mkiv versions might solve this in a better way; it has to do with the fact that one cannot use inserts too deeply nested in tex constructs
This did solve it, here is new version for you, Steffen. \setupformulas[way=bytext] \let\theformulanote\relax \define[1]\formulanote {\def\theformulanote{#1}}% \def\placeformulanote {\doiftext\theformulanote{\postponefootnotes \footnote{\theformulanote}}} \define[1]\FormulaNumber {\rlap{(Gleichung~#1)\placeformulanote}} \setupformulas [left=, right=, numbercommand=\FormulaNumber, location=left] \starttext \chapter{dummy} \placeformula \startformula \formulanote{one} K = V + W(V) \times S \stopformula text\footnote{text} \placeformula \startformula \formulanote{two} K = V + W(V) \times S \stopformula \stoptext Wolfgang