Re: How to get rst preview tools on CentOS7?
Oleksandr Gavenko <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Organization | Oleksandr Gavenko <[email protected]>, http://defun.work/ |
| Message-ID | <[email protected]> |
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/
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e