From: Guenter M. <mi...@us...> - 2016-02-16 11:45:11
|
On 2016-02-15, Oleksandr Gavenko wrote: > This: > .. |fib| replace:: :math:`fib(n) = fib(n-1)+fib(n-2)` > works in: > Substitution of mathematic formula: |fib|. > But this: > .. |fib| math:: fib(n) = fib(n-1)+fib(n-2) > produced error: > main.rst:211: (WARNING/2) Substitution definition "fib" empty or invalid. > .. |fib| math:: fib(n) = fib(n-1)+fib(n-2) > main.rst:209: (ERROR/3) Undefined substitution referenced: "fib". > HTML output from rst2html have marked |fib| and formula shown only for > directive. > It that correct? Yes, the second syntax is invalid. There is a limited set of replacement options, only the directives listed in http://docutils.sourceforge.net/docs/ref/rst/directives.html#directives-for-substitution-definitions and image are supported. Günter |