Differences between revisions 5 and 9 (spanning 4 versions)
Revision 5 as of 2005-04-28 08:27:37
Size: 538
Editor: dyn176202
Comment:
Revision 9 as of 2008-10-03 20:19:42
Size: 1470
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

.. contents::
Line 5: Line 7:
Links
=====
* reStructuredText_
* `Quick Reference`__
* Docutils_

__ http://docutils.sourceforge.net/docs/user/rst/quickref.html

WinEdt shortcuts
================
Suppose docutils is installed properly in ::
 
 C:\Python23\Lib\site-packages\docutils

and the docutils tools are copied to ::

 C:\Python23\Lib\site-packages\docutils\tools

In WinEdit, add a Macro menu item, with *Macro* as::
 
 WinExe('','python C:\Python23\Lib\site-packages\docutils\tools\rst2latex.py "%n%t" "%n_reST.tex" ','%p','reST to LaTeX',1110,0,'', '', '%N.log'); CMD("Errors...");

and *Require File Filter* as::

 %p\%n.txt

tick "Requires a Document" and "Save Input File to Disk". Then we are done.

Start a reST file with an .txt extenstion, say watever.txt, and run the macro from the menu, the generated LaTeX file whatever_reST.tex is ready to fly.
Line 7: Line 39:
.. _Docutils: http://docutils.sourceforge.net/
Rendering of reStructured text is not possible, please install Docutils.

.. contents::

reStructuredText_ is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system. It is useful for in-line program documentation (such as Python docstrings), for quickly creating simple web pages, and for stand-alone documents. !ReStructuredText is designed for extensibility for specific application domains. reStructuredText_ is a revision and re-interpretation of the !StructuredText and Setext lightweight markup systems.

Links
=====
* reStructuredText_
* `Quick Reference`__
* Docutils_

__ http://docutils.sourceforge.net/docs/user/rst/quickref.html

WinEdt shortcuts
================
Suppose docutils is installed properly in ::
 
 C:\Python23\Lib\site-packages\docutils

and the docutils tools are copied to ::

 C:\Python23\Lib\site-packages\docutils\tools

In WinEdit, add a Macro menu item, with *Macro* as::
 
 WinExe('','python C:\Python23\Lib\site-packages\docutils\tools\rst2latex.py "%n%t" "%n_reST.tex" ','%p','reST to LaTeX',1110,0,'', '', '%N.log'); CMD("Errors...");

and *Require File Filter* as::

 %p\%n.txt

tick "Requires a Document" and "Save Input File to Disk". Then we are done.

Start a reST file with an .txt extenstion, say watever.txt, and run the macro from the menu, the generated LaTeX file whatever_reST.tex is ready to fly.


.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _Docutils: http://docutils.sourceforge.net/

JunHu: JunHu/Memo/ReStructuredText (last edited 2008-10-03 20:19:42 by localhost)