Re: power in reStructuredText

David Goodger <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CABiJP=+nZeVXUM3PpFLGYus6nhNPUe+uV_JLboCKNPASWb9NGA@mail.gmail.com>
On Sun, Jun 14, 2015 at 3:48 PM, Guenter Milde <[email protected]> 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>

------------------------------------------------------------------------------
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.