reStructuredText is a lightweight markup language intended to be highly readable in source format.
Questions tagged [restructuredtext]
1265 questions
0
votes
1 answer
Writing several texts which follows same link with reST
the following reST don't work as expected. How can I do it right?
Only the word python_ in this text is linked. What to do if
I want using other words such as `like it `_ to jump
to the same link?
.. _python: http://www.python.org
Thanks…

mutetella
- 192
- 1
- 8
0
votes
1 answer
Cheatsheet for Markdown and Restructure syntax comparision?
Is there a cheatsheet that compares the usage of Markdown with Restructure? With this, I could learn rst faster if I already knew Markdown. I tried google for it but haven't found one..

Hanfei Sun
- 45,281
- 39
- 129
- 237
0
votes
1 answer
Turn fields in reStructuredText into html
So I've got a reStructuredText document which includes fields:
:param foo: set this to do magic
and I want to turn the rST into html, with special treatment of param (and other) fields.
Turning rST into html can be done with…

lost
- 2,210
- 2
- 20
- 34
0
votes
3 answers
Python Tkinter don't create Button
I'm developing reStructuredText editor with Tkinter. If i run the below code, i'm getting IndentationError..
from Tkinter import *
from tkFileDialog import asksaveasfile as savefile
class RSTkinter:
def __init__(self):
…

Kurtuluş Mert
- 5
- 4
0
votes
1 answer
How to type large curly brackets in reStructuredText / Sphinx
How to type large curly brackets in reStructuredText / Sphinx?
Thanks much!

xxks-kkk
- 2,336
- 3
- 28
- 48
0
votes
1 answer
Syntax highlighting doesn't work with reStructuredText
I was using this directive but the html generated simply omitted my code. For example, if I use:
.. code:: python
def my_function():
"just a test"
print 8/2
The html generated just doesn't contain this block of code whatsoever.
I have…

Derek Chiang
- 3,330
- 6
- 27
- 34
0
votes
1 answer
Troubles with reStructuredText (with Portable Python)
I'm trying to run rst2odt.py and rst2wordml.py with Matti Pastelli's example on a Windows XP 32-bit computer. The R step works well, then I get the files ascii-example.rst, ascii-example.rst and ascii-example.pdf.
With Portable Python 2.7.3.1 I get…

Stéphane Laurent
- 75,186
- 15
- 119
- 225
0
votes
1 answer
Inline and Multi-line equations fail
I am trying to write some equations in the Sphinx Python documentation system. I have been trying to get following multi-line equation to work:
.. math::
P_{Survival} (L) = P_{S} (L) = exp \{ - \frac{ \sigma (E) \rho L}{m_{T}} \}
…

madtowneast
- 2,350
- 3
- 22
- 31
0
votes
1 answer
Which DataFrame representation for readable tests
I write a lot of tests (nose based) involving DataFrame.
Those tests should be readable by end-users. DataFrame constructors are not very friendly
to read compared to a plain text table representation.
What about using a text representation like…

PhE
- 15,656
- 4
- 23
- 21
0
votes
2 answers
Markup languages, converters, editors, environments (reST/Markdown, PDF/HTML)
Mainly I'm looking for a tool which supports batch conversion to PDF/HTML from some markup language (reST/Markdown/Textile), but... there are few conditions:
Markup language has to be reST/Markdown or like them
there should be simple editor with…

Simon
- 2,329
- 4
- 30
- 49
0
votes
2 answers
Why would I write doctests in restructured text?
Another way to ask this:
If I wrote doctests in reST, can I use it for Sphinx or other automatic documentation efforts?
Background: I don't know how to use Sphinx and have not much experience with reST either, so I am wondering if I can use…

K.-Michael Aye
- 5,465
- 6
- 44
- 56
-1
votes
1 answer
How to supscript ®-symbol in h1 header?
I try to use the "®-symbol" in a generated documentation using Sphinx.
This special symbol makes some problems in headers but is working fine in normal text.
Here is my reStructuredText:
Name®
=====
Name®
Name®
================
and the…

mosc9575
- 5,618
- 2
- 9
- 32
-1
votes
1 answer
How to reference a text block several times in a document?
I am writing lots of Sphinx/RestructuredText and this includes Sequence Diagrams using PlantUML. I have lots of text that I am reusing, so to make things cleaner, I created a definitions.iuml file. In this file, I can create named text references…

Michael Norton
- 27
- 8
-1
votes
1 answer
How to align text in restructured text so that will be aligned in latexpdf?
I've tried to write own rst-classes and apply it to H1, H2 (headers like ====== or ~~~~~~~) and it works good when I make html. But in PDF it looks like headers, it is unexpected.
Please help me to solve this problem. I need to provide my report…

greenstm
- 1
-1
votes
1 answer
Link the same text to different targets in reStructuredText
How can I make two links have the same text but different targets in reStructuredText? The following script doesn't work but can help you get the point:
This Python_ is not the same as that Python_.
.. _Python2: https://docs.python.org/2/
..…

Cyker
- 9,946
- 8
- 65
- 93