768
Comment:
|
1470
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
* Docutils__ | * Docutils_ |
Line 14: | Line 14: |
__ http://docutils.sourceforge.net/ | |
Line 18: | Line 17: |
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 20: | Line 39: |
.. _Docutils: http://docutils.sourceforge.net/ |
.. 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/