From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Is it possible to repeat a block of org-mode text on export, maybe with replacement? Date: Tue, 19 Nov 2013 08:47:41 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01160678931b9804eb87e83f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vilel-0005b5-AB for emacs-orgmode@gnu.org; Tue, 19 Nov 2013 08:48:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VileZ-0003Sn-6P for emacs-orgmode@gnu.org; Tue, 19 Nov 2013 08:47:55 -0500 Received: from mail-oa0-f51.google.com ([209.85.219.51]:44311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VileZ-0003ST-2p for emacs-orgmode@gnu.org; Tue, 19 Nov 2013 08:47:43 -0500 Received: by mail-oa0-f51.google.com with SMTP id i7so3632813oag.38 for ; Tue, 19 Nov 2013 05:47:42 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Orgmode Mailing List --089e01160678931b9804eb87e83f Content-Type: text/plain; charset=ISO-8859-1 I don't know if this is beyond the capabilities of org-mode or not. I'd like to have a block of text repeated multiple times with slight variations. For the sake of the example, a numbered list: 1. this is the first line 1. this is the second line with %VARIANT% as the value 1. this is the third line When exported, say as ASCII, I'd like this: 1. this is the first line 2. this is the second line with foo as the value 3. this is the third line 1. this is the first line 2. this is the second line with bar as the value 3. this is the third line 1. this is the first line 2. this is the second line with baz as the value 3. this is the third line I'm not sure how to go about this; I assume I'd use org-babel with source blocks that contain org-mode text or elisp or something. Of course if the right answer is I should write a python script to generate my org-mode text, well, that's OK too. :-) -- Gary --089e01160678931b9804eb87e83f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I don't know if this is beyond the capabilities of org= -mode or not. =A0I'd like to have a block of text repeated multiple tim= es with slight variations. =A0For the sake of the example, a numbered list:=

1. this is the first line
1. this is the seco= nd line with %VARIANT% as the value
1. this is the third line

When exported, say as ASCII, I'd like= this:

1. this is the first line
2. this is the= second line with foo as the value
3. this is the third line

1. this is the first line=
2. this is the second line with bar as the value
3. this is = the third line

1. thi= s is the first line
2. this is the second line with baz as the va= lue
3. this is the third line

=
I'm not sure how to go about this; I assume I'd use org-babel = with source blocks that contain org-mode text or elisp or something.

Of course if the right answer is I should write a pytho= n script to generate my org-mode text, well, that's OK too. :-)

--
Gary
--089e01160678931b9804eb87e83f--