From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: copy title text string from #+TITLE field? Date: Mon, 10 Feb 2014 01:24:53 -0500 Message-ID: <87vbwnzdqi.fsf@gmail.com> References: <8738jr1odj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCkIs-0004ik-QR for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 01:25:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCkIl-0000L0-HP for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 01:25:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:55159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCkIl-0000Ke-BP for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 01:25:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WCkIj-00062V-Mn for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 07:25:05 +0100 Received: from pool-98-110-175-184.bstnma.fios.verizon.net ([98.110.175.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Feb 2014 07:25:05 +0100 Received: from ndokos by pool-98-110-175-184.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Feb 2014 07:25:05 +0100 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: emacs-orgmode@gnu.org Nick Dokos writes: > Peter Salazar writes: > >> Next question: is there a way to take the text from the #+TITLE: field >> of an org file and insert it, as text, somewhere else within the file >> (i.e. inside an HTML block)?  >> >> I can't do this manually because my various org files all use an >> #+INCLUDE: reference to the same org file, which contains some HTML >> blocks. For each different org file, I'd like to copy the title text >> string from #+TITLE field and insert it inside an

field in >> an HTML block in the included file. >> >> Is this possible? Thanks! >> > > {{{title}}} should do it. See > > (info "(org) Macro replacement") Actually, I'm not sure it will do: macro replacement takes place during export, so it may or may not be enough, depending on what you really want to do. -- Nick