From: Oleksandr G. <gav...@gm...> - 2016-06-03 07:50:20
|
On 2016-06-01, David M. Karr wrote: > I'm just starting to look at ReST. I'll likely be editing rst files in > Emacs, although I could use Eclipse if a suitable editor was available. > As it's just simple text formatting, I could probably get by with a > plain text view in Eclipse if I had to. The Emacs mode appears to be a > little more functional. > I probably use docutils-common: /usr/share/emacs/site-lisp/rst.el On "C-c C-t C-t" it shows TOC for easy navigation and on "C-c C-=" it fixes and cycles through header declarations. I never use any other commands. Full command list is available on C-h m. I miss indenting and text wrapping in definition list declaration but except this and syntax highlighting issues in "verbatim" text it works fine > What I can't figure out is how to get the various RST preview tools, > like "rst2pdf". I see that "rst2pdf" is available on Ubuntu, but I > don't see it in the default repos for CentOS7. I don't use RH, just make web search for Debian "apt-file" alternative: sudo yum install yum-utils repoquery --whatprovides '*bin/rst2pdf' In this way you be able to find any package that contain specific file. See: http://stackoverflow.com/questions/1133495/how-do-i-find-which-rpm-package-supplies-a-file-im-looking-for While I build RST files with GNU make there are command C-c C-c C-c (M-x rst-compile). If you work with Java (I assume that because you are mentioning Eclipse) it is possible to build Java project documentation in Maven project with: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.2</version> <dependencies> <dependency> <groupId>org.nuiton.jrst</groupId> <artifactId>doxia-module-jrst</artifactId> <version>1.5</version> </dependency> </dependencies> </plugin> -- http://defun.work/ |