Re: power in reStructuredText

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
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.

Günter



------------------------------------------------------------------------------
_______________________________________________
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.