ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placeformula and startmathcases give no numbered formula
@ 2014-07-26 11:02 Pol Stra
  0 siblings, 0 replies; only message in thread
From: Pol Stra @ 2014-07-26 11:02 UTC (permalink / raw)
  To: ntg-context

Hello,

I know there is troubles with formula numbering (according to the wiki) but 
this one is not in the list:

When I use smartmathcase in a placeformula context, the formula is not 
numbered and reference to the formula in the text doesn't work.

Sample:

\starttext

This gives the numbered \in{formula}[myFormula].

\placeformula[myFormula]{
	\startformula
		f(x) = a x + b
	\stopformula
}

… but this gives the unnumbered \in{formula}[myBraceFormula].

\placeformula[myBraceFormula]{
	\startformula
		f(x) = \startmathcases
	   \NC x, \NC if $0 \le x \le \frac12$ \NR
	   \NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR
				\stopmathcases
\stopformula
}
\stoptext

This is just for info, I changed my text so I don't need to refer to my 
formula.

Best regards,
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-26 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26 11:02 placeformula and startmathcases give no numbered formula Pol Stra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).