Discussion:
[Docutils-users] Possibly Dumb RestructuredText Question
Tim Daneliuk
2014-12-08 19:31:13 UTC
Permalink
I've been using RST for some years with great success but I have a sort
of dumb question. In the old nroff/troff and even LaTeX days, there
were ways to define text aliases and reference them later in the
document. I want to be able to do something like this:

SHORTSTRING = ``my really`` **looooong** string

And then make reference to it later as in:


So, as you can see, SHORTSTRING is at least 20 chars long.

Even more, I'd like to be able to nest such definitions:

LONGERSTRING = I've described SHORTSTRING to demonstrate the principle.


Is any/all of this directly supported via RST/Docutils (I realize this can
be achieved with an m4 pass first but I'd rather avoid this if at all possible ...


----------------------------------------------------------------------------
Tim Daneliuk ***@tundraware.com
PGP Key: http://www.tundraware.com/PGP/


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Ben Finney
2014-12-08 19:59:38 UTC
Permalink
Post by Tim Daneliuk
I've been using RST for some years with great success but I have a sort
of dumb question. In the old nroff/troff and even LaTeX days, there
were ways to define text aliases and reference them later in the
document.
reST has substitution directives, I think that'll do what you want
<URL:http://docutils.sourceforge.net/docs/ref/rst/directives.html#directives-for-substitution-definitions>.
--
\ “… Nature … is seen to do all things Herself and through |
`\ herself of own accord, rid of all gods.” —Titus Lucretius |
_o__) Carus, c. 40 BCE |
Ben Finney


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Pl
Doug Hellmann
2014-12-08 19:51:33 UTC
Permalink
Post by Tim Daneliuk
I've been using RST for some years with great success but I have a sort
of dumb question. In the old nroff/troff and even LaTeX days, there
were ways to define text aliases and reference them later in the
SHORTSTRING = ``my really`` **looooong** string
So, as you can see, SHORTSTRING is at least 20 chars long.
LONGERSTRING = I've described SHORTSTRING to demonstrate the principle.
Is any/all of this directly supported via RST/Docutils (I realize this can
be achieved with an m4 pass first but I'd rather avoid this if at all possible …
Have a look at “substitution definitions” and see if that does what you want.

http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#substitution-definitions

Doug


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Tim Daneliuk
2014-12-08 20:39:03 UTC
Permalink
Post by Doug Hellmann
Post by Tim Daneliuk
I've been using RST for some years with great success but I have a sort
of dumb question. In the old nroff/troff and even LaTeX days, there
were ways to define text aliases and reference them later in the
SHORTSTRING = ``my really`` **looooong** string
So, as you can see, SHORTSTRING is at least 20 chars long.
LONGERSTRING = I've described SHORTSTRING to demonstrate the principle.
Is any/all of this directly supported via RST/Docutils (I realize this can
be achieved with an m4 pass first but I'd rather avoid this if at all possible …
Have a look at “substitution definitions” and see if that does what you want.
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#substitution-definitions
Doug
Yep, that's it. Thanks all ...
--
----------------------------------------------------------------------------
Tim Daneliuk ***@tundraware.com
PGP Key: http://www.tundraware.com/PGP/


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Virgil Arrington
2014-12-11 23:00:57 UTC
Permalink
I'm a relative noob to ReStructuredText and I like it's plain text
method of work.

I've been using it on Gedit in Ubuntu Linux with the ReStructuredText
plugin. It works great on shorter documents. But some of my documents
are longer with ten or more section headings. I'd like to be able to
quickly jump from one section to the next, but I don't see any type of
navigator panel in Gedit geared to ReStructuredText headings.

I've read online about people writing whole books in ReStructuredText.
So, my question is, what editor are y'all using to get the job done?

WriteMonkey works great on the Windows side for Markdown as it has a
"jumps" panel to make navigating a long document fairly easy. But, I've
not seen anything similar for ReStructuredText.

Virgil

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Ben Finney
2014-12-11 23:04:37 UTC
Permalink
Post by Virgil Arrington
I've read online about people writing whole books in ReStructuredText.
So, my question is, what editor are y'all using to get the job done?
GNU Emacs has decent support for reStructuredText, so that satisfies my
needs even for quite large documents.
--
\ “Writing a book is like washing an elephant: there no good |
`\ place to begin or end, and it's hard to keep track of what |
_o__) you've already covered.” —anonymous |
Ben Finney


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply t
Pete Jemian
2014-12-11 23:06:29 UTC
Permalink
reST editor for use in eclipse
resteditor.sf.net

works where eclipse works
provides a section index, as you describe
"Normalize section markers" feature is a nice thing
does other nice stuff
Post by Virgil Arrington
...
So, my question is, what editor are y'all using to get the job done?
WriteMonkey works great on the Windows side for Markdown as it has a
"jumps" panel to make navigating a long document fairly easy. But, I've
not seen anything similar for ReStructuredText.
Virgil
...
--
----------------------------------------------------------
Pete R. Jemian, Ph.D. <***@anl.gov>
Beam line Controls and Data Acquisition, Group Leader
Advanced Photon Source, Argonne National Laboratory
Argonne, IL 60439 630 - 252 - 3189
-----------------------------------------------------------
Education is the one thing for which people
are willing to pay yet not receive.
-----------------------------------------------------------



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Peter Funk
2014-12-12 15:15:57 UTC
Permalink
Post by Virgil Arrington
I'm a relative noob to ReStructuredText and I like it's plain text
method of work.
I've been using it on Gedit in Ubuntu Linux with the ReStructuredText
plugin. It works great on shorter documents. But some of my documents
are longer with ten or more section headings. I'd like to be able to
quickly jump from one section to the next, but I don't see any type of
navigator panel in Gedit geared to ReStructuredText headings.
I've hesitated to respond because I'm one of those greybeards
using VIM and therefore don't know much about Gedit and never tried
the reStructuredText plugin for it: http://kib2.alwaysdata.net/GEdit/
Post by Virgil Arrington
I've read online about people writing whole books in ReStructuredText.
So, my question is, what editor are y'all using to get the job done?
...

Recently I was surprised that (from my point of view ☺) young people
see merits in learning vim:


So you might consider it for a look.

Best Regards,
Peter Funk
--
Peter Funk, home: ✉Oldenburger Str.86, D-27777 Ganderkesee
mobile:+49-179-640-8878 phone:+49-421-20419-0 <http://www.artcom-gmbh.de/>
office: ArtCom GmbH, ✉Haferwende 2, D-28357 Bremen, Germany
Virgil Arrington
2014-12-12 18:03:34 UTC
Permalink
I've hesitated to respond because I'm one of those greybeards using
VIM and therefore don't know much about Gedit and never tried the
reStructuredText plugin for it: http://kib2.alwaysdata.net/GEdit/
I've downloaded both VIM and Emacs, and I must say they both look
impressive in their respective feature sets, and their users seem
fiercely loyal. But, in both cases, as soon as I try to start using
them, the learning curve hits me in the face. They are sooooo different
from anything else I've ever used. I'd really like to learn them (or one
of them), but right now, it's a little like tackling Greek.

Virgil

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Ben Finney
2014-12-12 19:19:21 UTC
Permalink
Post by Virgil Arrington
I've downloaded both VIM and Emacs, and I must say they both look
impressive in their respective feature sets, and their users seem
fiercely loyal.
That last point is a special benefit of the tool, to the person
considering what text editor to invest time in learning.

The text editor used by a “knowledge worker”, if that term applies, can
make a massive difference in how effective the person will be in their
work. Investing time in a mediocre tool quickly turns out to be wasted
time, even if the person doesn't know it for a long time.

A free-software text editor with a diverse, passionate community, who
have been using it over decades for a staggeringly wide variety of
useful purposes, is a sign that the text editor will continue to meet
its community's needs as those needs change into the future.

This is only possible if the text editor is licensed as free software
(i.e. granting software freedom to every recipient), so the passionate
community is empowered to maintain and extend and support it, without
any particular vendor being critical to its future.

The only text editors I know which are free software, cross-platform,
powerfully extensible, already adapted to countless editing tasks out of
the box, and many-decades mature with a passionate community, are Vim
and Emacs.
Post by Virgil Arrington
But, in both cases, as soon as I try to start using them, the learning
curve hits me in the face. They are sooooo different from anything
else I've ever used. I'd really like to learn them (or one of them),
but right now, it's a little like tackling Greek.
You're right, that is a cost of these tools. You need to judge when to
invest the effort needed to become proficient in one of those text
editors.

I can only say that what you learn of either of those tools will be
valuable for the rest of your keyboard-using career, and beginning
sooner will be better than beginning later.
--
\ “Yesterday I told a chicken to cross the road. It said, ‘What |
`\ for?’” —Steven Wright |
_o__) |
Ben Finney


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply t
Terry Brown
2014-12-12 19:32:58 UTC
Permalink
On Sat, 13 Dec 2014 06:19:21 +1100
Post by Ben Finney
The only text editors I know which are free software, cross-platform,
powerfully extensible, already adapted to countless editing tasks out
of the box, and many-decades mature with a passionate community, are
Vim and Emacs.
I think you can say the same thing about http://leoeditor.com/ just not
to quite the same degree as Vim and Emacs. Leo is decades old (not the
current code-base though ;-), free software, cross-platform,
powerfully extensible, already adapted to countless editing tasks out
of the box, and has a passionate community. Leo is not as old, doesn't
have as large a community, and would have a shorter list of out of the
box editing tasks than Emacs / Vim, but if you want an extensible tool
you can live in and in particular if you use Python / PyQt, you'll
probably be able to extend it to your specific needs with a lower
learning curve than Emacs (which I used for years) or Vim, which I
haven't used.

And, to stay on topic :-) it has rst integration.

Cheers -Terry

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Aahz
2014-12-12 23:52:29 UTC
Permalink
Post by Terry Brown
On Sat, 13 Dec 2014 06:19:21 +1100
Post by Ben Finney
The only text editors I know which are free software, cross-platform,
powerfully extensible, already adapted to countless editing tasks out
of the box, and many-decades mature with a passionate community, are
Vim and Emacs.
I think you can say the same thing about http://leoeditor.com/ just not
to quite the same degree as Vim and Emacs. Leo is decades old (not the
current code-base though ;-), free software, cross-platform,
powerfully extensible, already adapted to countless editing tasks out
of the box, and has a passionate community. Leo is not as old, doesn't
have as large a community, and would have a shorter list of out of the
box editing tasks than Emacs / Vim, but if you want an extensible tool
you can live in and in particular if you use Python / PyQt, [...]
That last bit is exactly why I stick with vim -- my pinky hurts when I
use Emacs, and I'm still very much a command-line fanatic (I run Vim in
a terminal window).

The OP should consider whether requiring a GUI for editing is too
limiting.
--
Aahz (***@pythoncraft.com) <*> http://www.pythoncraft.com/

Member of the Groucho Marx Fan Club

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Ben Finney
2014-12-14 05:04:42 UTC
Permalink
Post by Aahz
That last bit is exactly why I stick with vim -- my pinky hurts when I
use Emacs, and I'm still very much a command-line fanatic (I run Vim
in a terminal window).
I can't imagine asking anyone to make heavy use of either of Vim nor
Emacs, without mapping the key directly next to the pinky finger's home
position – usually labelled “Caps Lock” – as a “Ctrl” key.

<URL:https://usevim.com/2014/11/12/caps/>
<URL:https://superuser.com/questions/1193/reassigning-the-caps-lock-key-on-windows-or-os-x>

If you're wanting to make heavy keyboard use of any Unix-style program,
you'll be pressing “Ctrl” quite a lot. Your pinky finger will thank you
for mapping that key to a more easily-accessible position.

I don't see that using Vim makes that any less true than for Emacs; they
both require use of a lot of key chords with the “Ctrl” key.
--
\ “Some people, when confronted with a problem, think ‘I know, |
`\ I'll use regular expressions’. Now they have two problems.” |
_o__) —Jamie Zawinski, in alt.religion.emacs |
Ben Finney
Aahz
2014-12-14 21:01:39 UTC
Permalink
Post by Ben Finney
Post by Aahz
That last bit is exactly why I stick with vim -- my pinky hurts when I
use Emacs, and I'm still very much a command-line fanatic (I run Vim
in a terminal window).
I can't imagine asking anyone to make heavy use of either of Vim nor
Emacs, without mapping the key directly next to the pinky finger's home
position -- usually labelled "Caps Lock" -- as a "Ctrl" key.
Been doing that for a couple of decades, ever since keyboards stopped
putting the CTRL key where God intended it.
Post by Ben Finney
If you're wanting to make heavy keyboard use of any Unix-style program,
you'll be pressing "Ctrl" quite a lot. Your pinky finger will thank you
for mapping that key to a more easily-accessible position.
Duh.
Post by Ben Finney
I don't see that using Vim makes that any less true than for Emacs; they
both require use of a lot of key chords with the "Ctrl" key.
vim requires fewer for editing and navigation. That's the joy of command
mode versus insert mode. Keep in mind that I initially made the decision
of vi versus emacs on an honest-to-goodness terminal (can't remember
whether it was actually a VT100 or something else), and another stellar
advantage of vi was that it consumed far fewer resources.
--
Aahz (***@pythoncraft.com) <*> http://www.pythoncraft.com/

Member of the Groucho Marx Fan Club

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Peter Funk
2014-12-14 13:18:10 UTC
Permalink
Post by Virgil Arrington
I've hesitated to respond because I'm one of those greybeards using
VIM and therefore don't know much about Gedit and never tried the
reStructuredText plugin for it: http://kib2.alwaysdata.net/GEdit/
I've downloaded both VIM and Emacs, and I must say they both look
impressive in their respective feature sets, and their users seem
fiercely loyal. But, in both cases, as soon as I try to start using
them, the learning curve hits me in the face. They are sooooo different
from anything else I've ever used. I'd really like to learn them (or one
of them), but right now, it's a little like tackling Greek.
I remember well: In 1983 or 1984 when I had to learn 'vi'
because it was the only visual editor available for Unix
in our University at that time I had similar feelings. ☺
Fortunately times have changed a lot since.

Did you know that both VIM and Emacs today also come with
a decent graphical user interface which can help you a lot as
training wheels on your first steps?

Since you mentioned gedit I assume you are using some flavor of Linux.
On several Linux distributions you have to install one or
more additional software packages to get the GUI command gvim:
For example either "vim-gtk" or "vim-gnome" on Ubuntu Linux.
The windows package however: ftp://ftp.vim.org/pub/vim/pc/gvim74.exe
already includes both the GUI and console versions.

Back to your original question: The Tools menu of gvim contains
a sub menu called: "Folding" which allows to collapse and expand
chapters, sections and subsections of large documents at will.

I'm pretty sure that the other text editors (Emacs, Leo) will provide
similar features. I've seen screenshots of Leo a while back which
looked pretty promising in this regard:
http://leoeditor.com/slides/leo-basics-step-by-step/slide-011.html

BTW: Thanks to this thread I've also learned something new about
Emacs: I remember times when one had to install a forked version
package called XEmacs to get the GUI for Emacs. As a vi user
I never noticed that this is no longer true. ☺

Best Regards,
Peter Funk
--
Peter Funk, home: ✉Oldenburger Str.86, D-27777 Ganderkesee
mobile:+49-179-640-8878 phone:+49-421-20419-0 <http://www.artcom-gmbh.de/>
office: ArtCom GmbH, ✉Haferwende 2, D-28357 Bremen, Germany
Kevin Horn
2014-12-14 18:09:18 UTC
Permalink
I really like SublimeText with the SublimeRstCompletion plugin:
https://github.com/mgaitan/sublime-rst-completion

The plugin has various completion functions, but also provides header
folding, header navigation, etc.
Post by Peter Funk
Post by Virgil Arrington
I've hesitated to respond because I'm one of those greybeards using
VIM and therefore don't know much about Gedit and never tried the
reStructuredText plugin for it: http://kib2.alwaysdata.net/GEdit/
I've downloaded both VIM and Emacs, and I must say they both look
impressive in their respective feature sets, and their users seem
fiercely loyal. But, in both cases, as soon as I try to start using
them, the learning curve hits me in the face. They are sooooo different
from anything else I've ever used. I'd really like to learn them (or one
of them), but right now, it's a little like tackling Greek.
I remember well: In 1983 or 1984 when I had to learn 'vi'
because it was the only visual editor available for Unix
in our University at that time I had similar feelings. ☺
Fortunately times have changed a lot since.
Did you know that both VIM and Emacs today also come with
a decent graphical user interface which can help you a lot as
training wheels on your first steps?
Since you mentioned gedit I assume you are using some flavor of Linux.
On several Linux distributions you have to install one or
For example either "vim-gtk" or "vim-gnome" on Ubuntu Linux.
The windows package however: ftp://ftp.vim.org/pub/vim/pc/gvim74.exe
already includes both the GUI and console versions.
Back to your original question: The Tools menu of gvim contains
a sub menu called: "Folding" which allows to collapse and expand
chapters, sections and subsections of large documents at will.
I'm pretty sure that the other text editors (Emacs, Leo) will provide
similar features. I've seen screenshots of Leo a while back which
http://leoeditor.com/slides/leo-basics-step-by-step/slide-011.html
BTW: Thanks to this thread I've also learned something new about
Emacs: I remember times when one had to install a forked version
package called XEmacs to get the GUI for Emacs. As a vi user
I never noticed that this is no longer true. ☺
Best Regards,
Peter Funk
--
Peter Funk, home: ✉Oldenburger Str.86, D-27777 Ganderkesee
mobile:+49-179-640-8878 phone:+49-421-20419-0 <http://www.artcom-gmbh.de/>
office: ArtCom GmbH, ✉Haferwende 2, D-28357 Bremen, Germany
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.
--
--
Kevin Horn
Virgil Arrington
2014-12-14 19:21:27 UTC
Permalink
Post by Peter Funk
Did you know that both VIM and Emacs today also come with
a decent graphical user interface which can help you a lot as
training wheels on your first steps?
Yes, both versions of VIM and Emacs that I have downloaded have that
feature and it is helpful.
Post by Peter Funk
Since you mentioned gedit I assume you are using some flavor of Linux.
Back to your original question: The Tools menu of gvim contains
a sub menu called: "Folding" which allows to collapse and expand
chapters, sections and subsections of large documents at will.
Yes, that's what I'm looking for. I've read about "folding" but never
understood the term. I've only seen it used in the VIM or Emacs world.
Post by Peter Funk
I'm pretty sure that the other text editors (Emacs, Leo) will provide
similar features.
I've been impressed with Geany. It has a separate panel showing section
headings. I also like the way you can create your own build commands for
different systems, such as LaTeX, MarkDown and ReStructuredText. I
imagine VIM and Emacs can do the same thing, but it'll be a while before
I can figure it out.

One thing I've noticed is that there are many different uses for these
programs. I'm sure many of you are programmers or web developers who
need the features in programs like VIM and Emacs. I just like writing
prose mostly for fun, or for various academic endeavors. In the past, my
writing was mainly printed out on paper. Now, more often than not, I'll
format it to my Kindle and never print out a hard copy. This is where I
like ReStructuredText.

Thanks to all for your suggestions. It's nice to know that there are
powerful options out there.

Virgil

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Bernhard Grotz
2014-12-15 05:41:05 UTC
Permalink
Hi,
Post by Virgil Arrington
I've downloaded both VIM and Emacs, and I must say they both look
impressive in their respective feature sets, and their users seem
fiercely loyal. But, in both cases, as soon as I try to start using
them, the learning curve hits me in the face. They are sooooo different
from anything else I've ever used. I'd really like to learn them (or one
of them), but right now, it's a little like tackling Greek.
One of the most important Vim-Plugins for writing Restructured Text may be
snipMate:

http://www.vim.org/scripts/script.php?script_id=2540

With this plugin, you can define your own keyboard shortcuts in a way like this:

--------------------

snippet abbrev
template

Example:

snippet toc

.. toctree::
:maxdepth: 2

${1}

--------------------

In the example above, when you write "toc" and hit the tab-key (or whatever key
you choose as a trigger), the plugin replaces your input with the given template
and puts your cursor at the position ${1}. In this way, you can even have
LaTeX-Code-Completion within Restructured-Text-Files.

I don't know if Emacs also comes with such a feature.

Greetings,

Bernhard


P.S.: You can call "vimtutor" in a shell to learn the very basics of Vim.

P.P.S.: If you also have Vim-LaTeX-Suite installed, you can use <++> as further
jumping points inside of your templates. With a line like

imap <c-l> <PLUG>IMAP_JumpForward

in your Vim configuration file, you can jump to the next <++> mark by typing
``Ctrl l`` in insert mode. I use this quite often..
Guenter Milde
2014-12-15 07:54:07 UTC
Permalink
On 2014-12-11, Virgil Arrington wrote:
...
Post by Virgil Arrington
I've read online about people writing whole books in ReStructuredText.
So, my question is, what editor are y'all using to get the job done?
...

The `Docutils link list`__ has a section on editors.
(Most entries were already mentioned, except for JED, one more free
extensible text editor with rst support.)

Günter

__ http://docutils.sourceforge.net/docs/user/links.html#editors


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to
Mantas
2014-12-15 08:01:44 UTC
Permalink
I find Voom [1] (vim plugin) very useful for editing rst files with
many sections.

[1] http://vim-voom.github.io/
Post by Guenter Milde
...
Post by Virgil Arrington
I've read online about people writing whole books in ReStructuredText.
So, my question is, what editor are y'all using to get the job done?
...
The `Docutils link list`__ has a section on editors.
(Most entries were already mentioned, except for JED, one more free
extensible text editor with rst support.)
Günter
__ http://docutils.sourceforge.net/docs/user/links.html#editors
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.
--
Mantas aka sirex
__o /\
_ \<,_ -- launchpad.net/~sirex -- /\/ \
___(_)/_(_)_____________________________/_/ \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Virgil Arrington
2014-12-15 15:46:06 UTC
Permalink
In the Docutils Quick Reference Guide, I find the following with respect
to footnotes.


Footnote references, like [5]_.
Note that footnotes may get
rearranged, e.g., to the bottom of
the "page".

.. [5] A numerical footnote. Note
there's no colon after the ``]``.


Does anyone know what determines where footnotes appear in the resulting
HTML file? I'm finding that, if I insert a footnote as shown in the
example, the footnote will appear in the resulting document right below
the paragraph containing the footnote reference. I prefer footnotes at
the end of the HTML document. To obtain this, I put the actual footnote
text at the end of the source code document. But, on a long document
with more than a few footnotes, I can lose track of my footnotes. If I
want to move footnotes around, finding the footnote text that links with
the footnote reference can be a challenge.

With MarkDown Extra, footnotes always appear at the end of the document
even if I put them right after the reference paragraph in the source
document.

So, what determines whether a footnote gets "rearranged, e.g., to the
bottom of the 'page'"?

For my browser, I'm using Mozilla Firefox on Ubuntu Linux.

Virgil
David Goodger
2014-12-15 16:27:40 UTC
Permalink
In the Docutils Quick Reference Guide, I find the following with respect to
footnotes.
Footnote references, like [5]_.
Note that footnotes may get
rearranged, e.g., to the bottom of
the "page".
.. [5] A numerical footnote. Note
there's no colon after the ``]``.
Does anyone know what determines where footnotes appear in the resulting
HTML file? I'm finding that, if I insert a footnote as shown in the example,
the footnote will appear in the resulting document right below the paragraph
containing the footnote reference. I prefer footnotes at the end of the HTML
document. To obtain this, I put the actual footnote text at the end of the
source code document. But, on a long document with more than a few
footnotes, I can lose track of my footnotes. If I want to move footnotes
around, finding the footnote text that links with the footnote reference can
be a challenge.
With MarkDown Extra, footnotes always appear at the end of the document even
if I put them right after the reference paragraph in the source document.
So, what determines whether a footnote gets "rearranged, e.g., to the bottom
of the 'page'"?
There is currently no functionality to do automatic rearranging in the
HTML writer (there may be in other writers). I intended to write a
"footnotes" directive that would "move all footnotes in the document
to this point", but never got around to it. It wouldn't be that
difficult to write; contributions are welcome.

If you have a lot of footnotes, I offer this workaround. Keep your
footnotes in a separate file, say "footnotes.txt". At the point in
your document where you want the footnotes to appear, use ".. include:
footnotes.txt". That's the best I can think of, right now.
--
David Goodger <http://python.net/~goodger>
For my browser, I'm using Mozilla Firefox on Ubuntu Linux.
Virgil
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Virgil Arrington
2014-12-15 17:41:55 UTC
Permalink
Post by David Goodger
There is currently no functionality to do automatic rearranging in the
HTML writer (there may be in other writers). I intended to write a
"footnotes" directive that would "move all footnotes in the document
to this point", but never got around to it. It wouldn't be that
difficult to write; contributions are welcome. If you have a lot of
footnotes, I offer this workaround. Keep your footnotes in a separate
file, say "footnotes.txt". At the point in your document where you
want the footnotes to appear, use ".. include: footnotes.txt". That's
the best I can think of, right now.
Thank you for the quick response.

Virgil

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Eric Knibbe
2015-01-04 22:52:39 UTC
Permalink
Post by Virgil Arrington
I've read online about people writing whole books in ReStructuredText.
So, my question is, what editor are y'all using to get the job done?
For anyone on Mac OS X, I wrote a reST language module for BBEdit or
TextWrangler. I wrote it to make editing this book <http://lassoguide.com>
much easier. Find it here: <http://ericfromcanada.bitbucket.org>
---
Eric3



------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Matěj Cepl
2015-03-07 00:13:46 UTC
Permalink
But some of my documents are longer with ten or more section
headings. I'd like to be able to quickly jump from one section
to the next, but I don't see any type of navigator panel in
Gedit geared to ReStructuredText headings.
BTW, just to note that the screenshot on
https://github.com/bittner/gedit-reST-plugin sports a chapter
navigation panel.

Matěj
Ben Finney
2015-03-07 08:11:46 UTC
Permalink
But some of my documents are longer with ten or more section headings.
I'd like to be able to quickly jump from one section to the next, but
I don't see any type of navigator panel in Gedit geared to
ReStructuredText headings.
In Emacs's ‘rst-mode’, I have the usual bindings for ‘rst-forward-section’
and ‘rst-backward-section’.

I find Emacs a very good tool for editing reST documents.
--
\ “Your [government] representative owes you, not his industry |
`\ only, but his judgment; and he betrays, instead of serving you, |
_o__) if he sacrifices it to your opinion.” —Edmund Burke, 1774 |
Ben Finney
Guenter Milde
2015-03-07 10:53:39 UTC
Permalink
Post by Ben Finney
But some of my documents are longer with ten or more section headings.
I'd like to be able to quickly jump from one section to the next, but
I don't see any type of navigator panel in Gedit geared to
ReStructuredText headings.
In Emacs's ‘rst-mode’, I have the usual bindings for ‘rst-forward-section’
and ‘rst-backward-section’.
I find Emacs a very good tool for editing reST documents.
In Jed's rst-mode, there are navigating-by-section functions, too.
Besides this, there is also the "navigator": a buffer that lists the
sections headings and links them to the section headings in the document.

Günter


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to
TP
2015-03-07 12:38:48 UTC
Permalink
Post by Ben Finney
But some of my documents are longer with ten or more section headings.
I'd like to be able to quickly jump from one section to the next, but
I don't see any type of navigator panel in Gedit geared to
ReStructuredText headings.
In Emacs's ‘rst-mode’, I have the usual bindings for ‘rst-forward-section’
and ‘rst-backward-section’.
I find Emacs a very good tool for editing reST documents.
And the rst-toc command (normally bound to C-c C-t C-t), displays a
table of contents buffer that can be used to navigate quickly to any
section.

Loading...