From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: LaTeX style command re-use but for within org-mode documents? Date: Sun, 11 May 2014 09:51:18 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjZms-0002YE-0D for emacs-orgmode@gnu.org; Sun, 11 May 2014 15:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjZmb-000291-VA for emacs-orgmode@gnu.org; Sun, 11 May 2014 15:51:53 -0400 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:48750) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WjZmb-00028T-NT for emacs-orgmode@gnu.org; Sun, 11 May 2014 15:51:37 -0400 In-Reply-To: (Grant Rettke's message of "Sun, 11 May 2014 14:38:13 -0500") 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: Grant Rettke Cc: "emacs-orgmode@gnu.org" Aloha Grant, Perhaps a macro? Macro expansion takes place during export. All the best, Tom Grant Rettke writes: > Hi, > > Today we are working on an org-document that contains a quote that > will re-appear multiple times within > the same document. Coming from LaTeX, my initial reaction is to create > a new command with \newcommand. > Trying to find something like that within org-mode set me down two paths. > > The first was to consider utilize literate programming. This would be > a fine approach if I were publishing the tangled document, but I am > not. Additionally, it is not code, just human readable text (a quote). > > The second thought was to learn about export filters. Stuff like using > \rarr works just fine no matter where you export, so I wondered if I > should follow a similar approach. I didn't pursue this further though, > I wanted to get some feedback first. > > What is the standard approach for doing stuff like this? > > Regards, > > Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi > grettke@acm.org | http://www.wisdomandwonder.com/ > =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates > ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) > =E2=80=9CLife has become immeasurably better since I have been forced to = stop > taking it seriously.=E2=80=9D --Thompson > > --=20 Thomas S. Dye http://www.tsdye.com