From: David G. <go...@py...> - 2015-06-15 15:44:59
|
On Sun, Jun 14, 2015 at 3:48 PM, Guenter Milde <mi...@us...> wrote: > On 2015-06-14, mansour amini wrote: > >> hihow can i show power function in reStructedText (for exapmle instead >> of 2 * 2 = 4 write 2^2 =4)? i don't want to use ^, i want show like >> mathematics expression > > Then you can use a mehtematical expression in a "math" role or directive. > The input syntax is "LaTeX math", the output is properly typeset (if the > aoutput format supports math (html and latex do, see the reStructuredText > documentation for details).) > > Aternatively, you can use superscript Unicode characters or the "sup" role > for the exponent. For simple expressions (x² etc), I like to use Unicode superscript characters: ¹²³⁴⁵⁶⁷⁸⁹⁰. There are also subscript characters: ₁₂₃₄₅₆₇₈₉₀. And lots of others besides. To type these, I enable the Compose Key on my systems. Native support on Linux, WinCompose on Windows. -- David Goodger <http://python.net/~goodger> |