all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is it possible to repeat a block of org-mode text on export, maybe with replacement?
@ 2013-11-19 13:47 Gary Oberbrunner
  2013-11-19 16:13 ` Thorsten Jolitz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gary Oberbrunner @ 2013-11-19 13:47 UTC (permalink / raw)
  To: Orgmode Mailing List

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1348 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-21 23:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 13:47 Is it possible to repeat a block of org-mode text on export, maybe with replacement? Gary Oberbrunner
2013-11-19 16:13 ` Thorsten Jolitz
2013-11-19 16:36 ` Eric Schulte
2013-11-19 17:19 ` Thomas S. Dye
2013-11-21 23:23   ` Gary Oberbrunner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.