Re: Possibly Dumb RestructuredText Question
Doug Hellmann <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On Dec 8, 2014, at 2:31 PM, Tim Daneliuk <[email protected]> wrote: > 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 … 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